nmtjs 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/index.ts +5 -5
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ export let neemata;
|
|
|
11
11
|
const lazy = _neemata.lazy = createLazyInjectable;
|
|
12
12
|
const factory = _neemata.factory = createFactoryInjectable;
|
|
13
13
|
const task = _neemata.task = createTask;
|
|
14
|
-
const procedure = _neemata.procedure =
|
|
15
|
-
const namespace = _neemata.namespace =
|
|
14
|
+
const procedure = _neemata.procedure = createProcedure;
|
|
15
|
+
const namespace = _neemata.namespace = createNamespace;
|
|
16
16
|
const middleware = _neemata.middleware = createMiddleware;
|
|
17
17
|
const guard = _neemata.guard = createGuard;
|
|
18
18
|
const filter = _neemata.filter = createFilter;
|
|
@@ -24,11 +24,11 @@ export let neemata;
|
|
|
24
24
|
const transport = _neemata.transport = createTransport;
|
|
25
25
|
const plugin = _neemata.plugin = createPlugin;
|
|
26
26
|
const logging = _neemata.logging = { console: createConsolePrettyDestination };
|
|
27
|
-
let
|
|
28
|
-
(function(
|
|
29
|
-
const procedure =
|
|
30
|
-
const namespace =
|
|
31
|
-
})(
|
|
27
|
+
let contract;
|
|
28
|
+
(function(_contract) {
|
|
29
|
+
const procedure = _contract.procedure = createContractProcedure;
|
|
30
|
+
const namespace = _contract.namespace = createContractNamespace;
|
|
31
|
+
})(contract || (contract = _neemata.contract || (_neemata.contract = {})));
|
|
32
32
|
})(neemata || (neemata = {}));
|
|
33
33
|
export { neemata as n };
|
|
34
34
|
export { ApiError, WorkerType } from "@nmtjs/application";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,SACE,gBACA,aACA,yBACA,yBACA,cACA,aACA,kBACA,iBACA,iBACA,kBACK,oBAAoB;AAC3B,SACE,iBAC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AAEM;EACE,MAAM,kCAAY;EAClB,MAAM,kCAAY;;;AAI7B,SAAS,WAAW;AAEpB,SACE,UAKA,kBACK;AACP,SACE,GACA,gBAMK;AAEP,SAA6B,MAAmB,aAAa;AAC7D,SACE,WACA,cAEA,qBACK;AAEP,SAAS,GAAG,YAAY","names":[],"sources":["src/index.ts"],"sourcesContent":["import {\n AppInjectables,\n Application,\n createContractNamespace,\n createContractProcedure,\n createFilter,\n createGuard,\n createMiddleware,\n createNamespace,\n createProcedure,\n createTask,\n} from '@nmtjs/application'\nimport {\n CoreInjectables,\n createConsolePrettyDestination,\n createFactoryInjectable,\n createLazyInjectable,\n createOptionalInjectable,\n createPlugin,\n createValueInjectable,\n} from '@nmtjs/core'\nimport { createTransport, ProtocolInjectables } from '@nmtjs/protocol/server'\nimport { ApplicationServer } from '@nmtjs/server'\n\nexport namespace neemata {\n export const app = (...args: ConstructorParameters<typeof Application>) =>\n new Application(...args)\n\n export const server = (\n ...args: ConstructorParameters<typeof ApplicationServer>\n ) => new ApplicationServer(...args)\n\n export const optional = createOptionalInjectable\n export const value = createValueInjectable\n export const lazy = createLazyInjectable\n export const factory = createFactoryInjectable\n export const task = createTask\n export const procedure = createProcedure\n export const namespace = createNamespace\n export const middleware = createMiddleware\n export const guard = createGuard\n export const filter = createFilter\n export const injectables = {\n ...CoreInjectables,\n ...ProtocolInjectables,\n ...AppInjectables,\n }\n export const transport = createTransport\n export const plugin = createPlugin\n export const logging = {\n console: createConsolePrettyDestination,\n }\n\n export namespace contract {\n export const procedure = createContractProcedure\n export const namespace = createContractNamespace\n }\n}\n\nexport { neemata as n }\n\nexport {\n ApiError,\n type ApplicationWorkerOptions,\n type FilterLike,\n type GuardLike,\n type MiddlewareLike,\n WorkerType,\n} from '@nmtjs/application'\nexport {\n c,\n contract,\n type TAPIContract,\n type TEventContract,\n type TNamespaceContract,\n type TProcedureContract,\n type TSubscriptionContract,\n} from '@nmtjs/contract'\n\nexport { type AnyInjectable, Hook, type Logger, Scope } from '@nmtjs/core'\nexport {\n ErrorCode,\n ProtocolBlob,\n type ProtocolBlobMetadata,\n TransportType,\n} from '@nmtjs/protocol/common'\n\nexport { t, type } from '@nmtjs/type'\n"],"version":3}
|
package/package.json
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@nmtjs/common": "0.7.
|
|
12
|
-
"@nmtjs/core": "0.7.
|
|
13
|
-
"@nmtjs/protocol": "0.7.
|
|
14
|
-
"@nmtjs/application": "0.7.
|
|
15
|
-
"@nmtjs/
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/
|
|
18
|
-
"@nmtjs/
|
|
19
|
-
"@nmtjs/
|
|
20
|
-
"@nmtjs/
|
|
11
|
+
"@nmtjs/common": "0.7.2",
|
|
12
|
+
"@nmtjs/core": "0.7.2",
|
|
13
|
+
"@nmtjs/protocol": "0.7.2",
|
|
14
|
+
"@nmtjs/application": "0.7.2",
|
|
15
|
+
"@nmtjs/server": "0.7.2",
|
|
16
|
+
"@nmtjs/contract": "0.7.2",
|
|
17
|
+
"@nmtjs/type": "0.7.2",
|
|
18
|
+
"@nmtjs/ws-transport": "0.7.2",
|
|
19
|
+
"@nmtjs/cli": "0.7.2",
|
|
20
|
+
"@nmtjs/json-format": "0.7.2"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"LICENSE.md",
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
|
-
"version": "0.7.
|
|
28
|
+
"version": "0.7.2",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
31
31
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -35,8 +35,8 @@ export namespace neemata {
|
|
|
35
35
|
export const lazy = createLazyInjectable
|
|
36
36
|
export const factory = createFactoryInjectable
|
|
37
37
|
export const task = createTask
|
|
38
|
-
export const procedure =
|
|
39
|
-
export const namespace =
|
|
38
|
+
export const procedure = createProcedure
|
|
39
|
+
export const namespace = createNamespace
|
|
40
40
|
export const middleware = createMiddleware
|
|
41
41
|
export const guard = createGuard
|
|
42
42
|
export const filter = createFilter
|
|
@@ -51,9 +51,9 @@ export namespace neemata {
|
|
|
51
51
|
console: createConsolePrettyDestination,
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export namespace
|
|
55
|
-
export const procedure =
|
|
56
|
-
export const namespace =
|
|
54
|
+
export namespace contract {
|
|
55
|
+
export const procedure = createContractProcedure
|
|
56
|
+
export const namespace = createContractNamespace
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|