nmtjs 0.6.2 → 0.6.4
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 +6 -11
- package/dist/index.js.map +1 -1
- package/package.json +8 -10
- package/src/index.ts +14 -14
- package/tsconfig.json +0 -6
package/dist/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { AppInjectables, Application, createContractNamespace, createContractProcedure, createFilter, createGuard, createMiddleware, createNamespace, createProcedure } from '@nmtjs/application';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CoreInjectables } from '@nmtjs/core';
|
|
5
|
-
import { createLazyInjectable } from '@nmtjs/core';
|
|
6
|
-
import { createValueInjectable } from '@nmtjs/core';
|
|
7
|
-
import { createOptionalInjectable } from '@nmtjs/core';
|
|
8
|
-
import { ProtocolInjectables, createTransport } from '@nmtjs/protocol/server';
|
|
1
|
+
import { AppInjectables, Application, createContractNamespace, createContractProcedure, createFilter, createGuard, createMiddleware, createNamespace, createProcedure, createTask } from '@nmtjs/application';
|
|
2
|
+
import { CoreInjectables, createConsolePrettyDestination, createFactoryInjectable, createLazyInjectable, createOptionalInjectable, createPlugin, createValueInjectable } from '@nmtjs/core';
|
|
3
|
+
import { createTransport, ProtocolInjectables } from '@nmtjs/protocol/server';
|
|
9
4
|
import { ApplicationServer } from '@nmtjs/server';
|
|
10
5
|
export var neemata;
|
|
11
6
|
(function(neemata) {
|
|
@@ -38,8 +33,8 @@ export var neemata;
|
|
|
38
33
|
})(contractless = neemata.contractless || (neemata.contractless = {}));
|
|
39
34
|
})(neemata || (neemata = {}));
|
|
40
35
|
export { neemata as n };
|
|
36
|
+
export { ApiError, WorkerType } from '@nmtjs/application';
|
|
41
37
|
export { c, contract } from '@nmtjs/contract';
|
|
38
|
+
export { Hook, Scope } from '@nmtjs/core';
|
|
39
|
+
export { ErrorCode, ProtocolBlob, TransportType } from '@nmtjs/protocol/common';
|
|
42
40
|
export { t, type } from '@nmtjs/type';
|
|
43
|
-
export { Scope, Hook } from '@nmtjs/core';
|
|
44
|
-
export { ApiError, WorkerType } from '@nmtjs/application';
|
|
45
|
-
export { ProtocolBlob, ErrorCode, TransportType } from '@nmtjs/protocol/common';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"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 = createContractProcedure\n export const namespace = createContractNamespace\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 contractless {\n export const procedure = createProcedure\n export const namespace = createNamespace\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 { c, contract } 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"],"names":["AppInjectables","Application","createContractNamespace","createContractProcedure","createFilter","createGuard","createMiddleware","createNamespace","createProcedure","createTask","CoreInjectables","createConsolePrettyDestination","createFactoryInjectable","createLazyInjectable","createOptionalInjectable","createPlugin","createValueInjectable","createTransport","ProtocolInjectables","ApplicationServer","neemata","app","args","server","optional","value","lazy","factory","task","procedure","namespace","middleware","guard","filter","injectables","transport","plugin","logging","console","contractless","n","ApiError","WorkerType","c","contract","Hook","Scope","ErrorCode","ProtocolBlob","TransportType","t","type"],"mappings":"AAAA,SACEA,cAAc,EACdC,WAAW,EACXC,uBAAuB,EACvBC,uBAAuB,EACvBC,YAAY,EACZC,WAAW,EACXC,gBAAgB,EAChBC,eAAe,EACfC,eAAe,EACfC,UAAU,QACL,qBAAoB;AAC3B,SACEC,eAAe,EACfC,8BAA8B,EAC9BC,uBAAuB,EACvBC,oBAAoB,EACpBC,wBAAwB,EACxBC,YAAY,EACZC,qBAAqB,QAChB,cAAa;AACpB,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,yBAAwB;AAC7E,SAASC,iBAAiB,QAAQ,gBAAe;;UAEhCC;YACFC,MAAM,CAAC,GAAGC,OACrB,IAAIrB,eAAeqB;YAERC,SAAS,CACpB,GAAGD,OACA,IAAIH,qBAAqBG;YAEjBE,WAAWV;YACXW,QAAQT;YACRU,OAAOb;YACPc,UAAUf;YACVgB,OAAOnB;YACPoB,YAAY1B;YACZ2B,YAAY5B;YACZ6B,aAAazB;YACb0B,QAAQ3B;YACR4B,SAAS7B;YACT8B,cAAc;QACzB,GAAGxB,eAAe;QAClB,GAAGQ,mBAAmB;QACtB,GAAGlB,cAAc;IACnB;YACamC,YAAYlB;YACZmB,SAASrB;YACTsB,UAAU;QACrBC,SAAS3B;IACX;;cAEiB4B;qBACFV,YAAYrB;qBACZsB,YAAYvB;IAC3B,GAHiBgC,uBAAAA,yBAAAA;AAInB,GAjCiBnB,YAAAA;AAmCjB,SAASA,WAAWoB,CAAC,GAAE;AAEvB,SACEC,QAAQ,EAKRC,UAAU,QACL,qBAAoB;AAC3B,SAASC,CAAC,EAAEC,QAAQ,QAAQ,kBAAiB;AAE7C,SAA6BC,IAAI,EAAeC,KAAK,QAAQ,cAAa;AAC1E,SACEC,SAAS,EACTC,YAAY,EAEZC,aAAa,QACR,yBAAwB;AAE/B,SAASC,CAAC,EAAEC,IAAI,QAAQ,cAAa"}
|
package/package.json
CHANGED
|
@@ -9,23 +9,21 @@
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nmtjs/common": "0.6.
|
|
13
|
-
"@nmtjs/
|
|
14
|
-
"@nmtjs/
|
|
15
|
-
"@nmtjs/application": "0.6.
|
|
16
|
-
"@nmtjs/server": "0.6.
|
|
17
|
-
"@nmtjs/contract": "0.6.
|
|
18
|
-
"@nmtjs/
|
|
19
|
-
"@nmtjs/type": "0.6.2"
|
|
12
|
+
"@nmtjs/common": "0.6.4",
|
|
13
|
+
"@nmtjs/protocol": "0.6.4",
|
|
14
|
+
"@nmtjs/core": "0.6.4",
|
|
15
|
+
"@nmtjs/application": "0.6.4",
|
|
16
|
+
"@nmtjs/server": "0.6.4",
|
|
17
|
+
"@nmtjs/contract": "0.6.4",
|
|
18
|
+
"@nmtjs/type": "0.6.4"
|
|
20
19
|
},
|
|
21
20
|
"files": [
|
|
22
21
|
"src",
|
|
23
22
|
"dist",
|
|
24
|
-
"tsconfig.json",
|
|
25
23
|
"LICENSE.md",
|
|
26
24
|
"README.md"
|
|
27
25
|
],
|
|
28
|
-
"version": "0.6.
|
|
26
|
+
"version": "0.6.4",
|
|
29
27
|
"scripts": {
|
|
30
28
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
31
29
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ApiError,
|
|
3
2
|
AppInjectables,
|
|
4
3
|
Application,
|
|
5
4
|
createContractNamespace,
|
|
@@ -9,18 +8,18 @@ import {
|
|
|
9
8
|
createMiddleware,
|
|
10
9
|
createNamespace,
|
|
11
10
|
createProcedure,
|
|
11
|
+
createTask,
|
|
12
12
|
} from '@nmtjs/application'
|
|
13
|
-
import { createTask } from '@nmtjs/application'
|
|
14
13
|
import {
|
|
14
|
+
CoreInjectables,
|
|
15
15
|
createConsolePrettyDestination,
|
|
16
16
|
createFactoryInjectable,
|
|
17
|
+
createLazyInjectable,
|
|
18
|
+
createOptionalInjectable,
|
|
17
19
|
createPlugin,
|
|
20
|
+
createValueInjectable,
|
|
18
21
|
} from '@nmtjs/core'
|
|
19
|
-
import {
|
|
20
|
-
import { createLazyInjectable } from '@nmtjs/core'
|
|
21
|
-
import { createValueInjectable } from '@nmtjs/core'
|
|
22
|
-
import { createOptionalInjectable } from '@nmtjs/core'
|
|
23
|
-
import { ProtocolInjectables, createTransport } from '@nmtjs/protocol/server'
|
|
22
|
+
import { createTransport, ProtocolInjectables } from '@nmtjs/protocol/server'
|
|
24
23
|
import { ApplicationServer } from '@nmtjs/server'
|
|
25
24
|
|
|
26
25
|
export namespace neemata {
|
|
@@ -60,21 +59,22 @@ export namespace neemata {
|
|
|
60
59
|
|
|
61
60
|
export { neemata as n }
|
|
62
61
|
|
|
63
|
-
export { c, contract } from '@nmtjs/contract'
|
|
64
|
-
export { t, type } from '@nmtjs/type'
|
|
65
|
-
|
|
66
|
-
export { Scope, type AnyInjectable, type Logger, Hook } from '@nmtjs/core'
|
|
67
62
|
export {
|
|
68
63
|
ApiError,
|
|
69
64
|
type ApplicationWorkerOptions,
|
|
65
|
+
type FilterLike,
|
|
70
66
|
type GuardLike,
|
|
71
67
|
type MiddlewareLike,
|
|
72
|
-
type FilterLike,
|
|
73
68
|
WorkerType,
|
|
74
69
|
} from '@nmtjs/application'
|
|
70
|
+
export { c, contract } from '@nmtjs/contract'
|
|
71
|
+
|
|
72
|
+
export { type AnyInjectable, Hook, type Logger, Scope } from '@nmtjs/core'
|
|
75
73
|
export {
|
|
76
|
-
ProtocolBlob,
|
|
77
74
|
ErrorCode,
|
|
78
|
-
|
|
75
|
+
ProtocolBlob,
|
|
79
76
|
type ProtocolBlobMetadata,
|
|
77
|
+
TransportType,
|
|
80
78
|
} from '@nmtjs/protocol/common'
|
|
79
|
+
|
|
80
|
+
export { t, type } from '@nmtjs/type'
|