From ab6085a7e3feb015b2ebc5538c69f671d97f9af5 Mon Sep 17 00:00:00 2001 From: Martin Karkowski Date: Wed, 22 Jun 2022 20:10:53 +0200 Subject: [PATCH] small fixes for the imports --- CHANGELOG.md | 6 +++++- contribute/VERSION | 2 +- lib/helpers/descriptors.ts | 2 +- lib/module/BaseModule.injectable.ts | 3 +-- lib/module/GenericWrapper.injectable.ts | 2 +- lib/module/GenericWrapper.ts | 4 +--- lib/types/index.ts | 3 +-- package.json | 2 +- tsconfig.py.json | 28 +++++++++++++++++++++++++ 9 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 tsconfig.py.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 405f441..e7f20ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,4 +85,8 @@ Inital commit, which is working with the browser - INopeDispatcherOptions: Utilizes `INopeINopeConnectivityOptions` now. - dispatchers.ConnectivityManager.ConnectivityManager.spec: - Added test for forced masters. - - helpers.arrayMethods: Added Typings for `minOfArray` \ No newline at end of file + - helpers.arrayMethods: Added Typings for `minOfArray` + +# 1.0.36 +- Fixes: + - Small fixes in the imports of some items in `module.BaseModule.injectable`; `module.GenericWrapper.injectable`; `helpers.descriptors` to make shure, the `nope.d.ts` for the browser is compiled. \ No newline at end of file diff --git a/contribute/VERSION b/contribute/VERSION index fff1fac..d1c66e6 100644 --- a/contribute/VERSION +++ b/contribute/VERSION @@ -1 +1 @@ -1.0.35 \ No newline at end of file +1.0.36 \ No newline at end of file diff --git a/lib/helpers/descriptors.ts b/lib/helpers/descriptors.ts index 881693c..bb6c32d 100644 --- a/lib/helpers/descriptors.ts +++ b/lib/helpers/descriptors.ts @@ -3,7 +3,7 @@ * @email m.karkowski@zema.de */ -import { INopeDescriptor } from "../index.browser"; +import { INopeDescriptor } from "../types/nope"; import { isJsonSchema } from "./jsonSchemaMethods"; import { SPLITCHAR } from "./objectMethods"; diff --git a/lib/module/BaseModule.injectable.ts b/lib/module/BaseModule.injectable.ts index e62034c..76d073b 100644 --- a/lib/module/BaseModule.injectable.ts +++ b/lib/module/BaseModule.injectable.ts @@ -4,9 +4,8 @@ */ import { inject, injectable } from "inversify"; -import { INopeCore } from "../index.browser"; import { DISPATCHER_INSTANCE } from "../symbols/identifiers"; -import { INopeModule } from "../types/nope/nopeModule.interface"; +import { INopeCore } from "../types"; import { NopeBaseModule } from "./BaseModule"; /** diff --git a/lib/module/GenericWrapper.injectable.ts b/lib/module/GenericWrapper.injectable.ts index f131bb9..fa59b15 100644 --- a/lib/module/GenericWrapper.injectable.ts +++ b/lib/module/GenericWrapper.injectable.ts @@ -4,7 +4,7 @@ */ import { inject, injectable } from "inversify"; -import { INopeCore } from "../index.browser"; +import { INopeCore } from "../types/nope"; import { DISPATCHER_INSTANCE, OBSERVABLE_FACTORY, diff --git a/lib/module/GenericWrapper.ts b/lib/module/GenericWrapper.ts index 2547acf..c0744db 100644 --- a/lib/module/GenericWrapper.ts +++ b/lib/module/GenericWrapper.ts @@ -5,9 +5,7 @@ import { deepClone } from "../helpers/objectMethods"; import { getNopeLogger } from "../logger/getLogger"; -import { INopeCore } from "../types/nope"; -import { ICallOptions } from "../types/nope/nopeCommunication.interface"; -import { INopeDispatcher } from "../types/nope/nopeDispatcher.interface"; +import { ICallOptions, INopeCore } from "../types"; import { IEventOptions, IFunctionOptions, diff --git a/lib/types/index.ts b/lib/types/index.ts index 5b876b0..adf01c9 100644 --- a/lib/types/index.ts +++ b/lib/types/index.ts @@ -1,11 +1,10 @@ /** * @author Martin Karkowski * @email m.karkowski@zema.de - * @create date 2021-08-27 20:24:15 - * @modify date 2021-08-27 20:24:15 * @desc [description] */ import * as nope from "./nope/index"; +export * from "./nope/index"; export * from "./IJSONSchema"; export { nope }; diff --git a/package.json b/package.json index 8855e8e..7e25ea8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nope", - "version": "1.0.34", + "version": "1.0.35", "description": "NoPE Runtime for Nodejs. For Browser-Support please use nope-browser", "files": [ "dist-nodejs/**/*", diff --git a/tsconfig.py.json b/tsconfig.py.json new file mode 100644 index 0000000..7db56ad --- /dev/null +++ b/tsconfig.py.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "ES5", + "allowJs": true, + "allowUnusedLabels": true, + "charset": "utf-8", + "experimentalDecorators": true, + "module": "None", + "noFallthroughCasesInSwitch": false, + "noImplicitReturns": true, + "outDir": "./dist-py", + "pretty": false, + "removeComments": false, + "stripInternal": true, + "downlevelIteration": true, + "noImplicitAny": false, + "declaration": true + }, + "include": [ + "lib", + ], + "exclude": [ + "node_modules", + "temp", + "dist-nodejs", + "dist-browser" + ] +} \ No newline at end of file