From a021823405fc0ce435d79610f5f83f9b80590cb2 Mon Sep 17 00:00:00 2001 From: Ronny Esterluss Date: Fri, 18 Oct 2024 11:08:21 +0200 Subject: [PATCH] using version from package.json --- package.json | 2 +- src/index.ts | 3 ++- src/version.ts | 1 - tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/version.ts diff --git a/package.json b/package.json index 36cd51d..015eaea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uhttp-exit-app", - "version": "3.3.0", + "version": "3.3.1", "description": "u(nlinked)HTTP exit application", "author": "HOPR Association", "main": "src/index.ts", diff --git a/src/index.ts b/src/index.ts index 3ae5275..a6d50af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ import WebSocket from 'ws'; +import { version as Version } from '../package.json'; import { DpApi, EndpointApi, @@ -16,7 +17,7 @@ import { import * as DB from './db'; import * as RequestStore from './request-store'; import * as ResponseSegmentStore from './response-segment-store'; -import Version from './version'; + import log from './logger'; // WebSocket heartbeats diff --git a/src/version.ts b/src/version.ts deleted file mode 100644 index 49a6ae2..0000000 --- a/src/version.ts +++ /dev/null @@ -1 +0,0 @@ -export default '3.3.0'; diff --git a/tsconfig.json b/tsconfig.json index 0cafe82..d34f0a6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -39,7 +39,7 @@ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ - // "resolveJsonModule": true, /* Enable importing .json files. */ + "resolveJsonModule": true /* Enable importing .json files. */, // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */