nmtjs 0.8.0 → 0.9.0
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 +23 -18
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/index.ts +22 -25
package/dist/index.js
CHANGED
|
@@ -5,6 +5,14 @@ import { createServer } from "@nmtjs/server";
|
|
|
5
5
|
export const neemata = {
|
|
6
6
|
app: createApplication,
|
|
7
7
|
server: createServer,
|
|
8
|
+
injectables: {
|
|
9
|
+
...CoreInjectables,
|
|
10
|
+
...ProtocolInjectables,
|
|
11
|
+
...AppInjectables
|
|
12
|
+
},
|
|
13
|
+
transport: createTransport,
|
|
14
|
+
plugin: createPlugin,
|
|
15
|
+
logging: { console: createConsolePrettyDestination },
|
|
8
16
|
optional: createOptionalInjectable,
|
|
9
17
|
value: createValueInjectable,
|
|
10
18
|
lazy: createLazyInjectable,
|
|
@@ -12,31 +20,28 @@ export const neemata = {
|
|
|
12
20
|
class: createClassInjectable,
|
|
13
21
|
extendClass: createExtendableClassInjectable,
|
|
14
22
|
task: createTask,
|
|
15
|
-
procedure: createProcedure,
|
|
16
23
|
namespace: createNamespace,
|
|
24
|
+
contractNamespace: createContractNamespace,
|
|
25
|
+
procedure: createProcedure,
|
|
26
|
+
contractProcedure: createContractProcedure,
|
|
17
27
|
middleware: createMiddleware,
|
|
18
28
|
guard: createGuard,
|
|
19
|
-
filter: createFilter
|
|
20
|
-
contract: {
|
|
21
|
-
procedure: createContractProcedure,
|
|
22
|
-
namespace: createContractNamespace
|
|
23
|
-
},
|
|
24
|
-
injectables: {
|
|
25
|
-
...CoreInjectables,
|
|
26
|
-
...ProtocolInjectables,
|
|
27
|
-
...AppInjectables
|
|
28
|
-
},
|
|
29
|
-
transport: createTransport,
|
|
30
|
-
plugin: createPlugin,
|
|
31
|
-
logging: { console: createConsolePrettyDestination }
|
|
29
|
+
filter: createFilter
|
|
32
30
|
};
|
|
33
|
-
export * as
|
|
34
|
-
export
|
|
31
|
+
export * as application from "@nmtjs/application";
|
|
32
|
+
export { ApiError, WorkerType } from "@nmtjs/application";
|
|
35
33
|
export * as contract from "@nmtjs/contract";
|
|
34
|
+
export { c } from "@nmtjs/contract";
|
|
36
35
|
export * as core from "@nmtjs/core";
|
|
37
|
-
export
|
|
36
|
+
export { Hook, Scope } from "@nmtjs/core";
|
|
37
|
+
export * as jsonFormat from "@nmtjs/json-format/server";
|
|
38
|
+
export { ErrorCode, ProtocolBlob, TransportType } from "@nmtjs/protocol/common";
|
|
38
39
|
export * as server from "@nmtjs/server";
|
|
40
|
+
export * as type from "@nmtjs/type";
|
|
41
|
+
export { t } from "@nmtjs/type";
|
|
42
|
+
export * as temporal from "@nmtjs/type/temporal";
|
|
39
43
|
export * as wsTransport from "@nmtjs/ws-transport";
|
|
40
|
-
export * as jsonFormat from "@nmtjs/json-format/server";
|
|
41
44
|
export { neemata as n };
|
|
42
45
|
export default neemata;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,SACE,gBACA,mBACA,yBACA,yBACA,cACA,aACA,kBACA,iBACA,iBACA,kBACK,oBAAoB;AAC3B,SACE,iBACA,uBACA,gCACA,iCACA,yBACA,sBACA,0BACA,cACA,6BACK,aAAa;AACpB,SAAS,iBAAiB,2BAA2B,wBAAwB;AAC7E,SAAS,oBAAoB,eAAe;AAE5C,OAAO,MAAM,UAAU;CACrB,KAAK;CACL,QAAQ;
|
|
1
|
+
{"mappings":"AAAA,SACE,gBACA,mBACA,yBACA,yBACA,cACA,aACA,kBACA,iBACA,iBACA,kBACK,oBAAoB;AAC3B,SACE,iBACA,uBACA,gCACA,iCACA,yBACA,sBACA,0BACA,cACA,6BACK,aAAa;AACpB,SAAS,iBAAiB,2BAA2B,wBAAwB;AAC7E,SAAS,oBAAoB,eAAe;AAE5C,OAAO,MAAM,UAAU;CACrB,KAAK;CACL,QAAQ;CACR,aAAa;EACX,GAAG;EACH,GAAG;EACH,GAAG;CACJ;CACD,WAAW;CACX,QAAQ;CACR,SAAS,EACP,SAAS,+BACV;CACD,UAAU;CACV,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACP,aAAa;CACb,MAAM;CACN,WAAW;CACX,mBAAmB;CACnB,WAAW;CACX,mBAAmB;CACnB,YAAY;CACZ,OAAO;CACP,QAAQ;AACT;AAED,YAAY,iBAAiB;AAC7B,SAAS,UAAU,kBAAkB;AACrC,YAAY,cAAc;AAC1B,SAAS,SAAS;AAClB,YAAY,UAAU;AACtB,SAAS,MAAM,aAAa;AAC5B,YAAY,gBAAgB;AAC5B,SAAS,WAAW,cAAc,qBAAqB;AACvD,YAAY,YAAY;AACxB,YAAY,UAAU;AACtB,SAAS,SAAS;AAClB,YAAY,cAAc;AAC1B,YAAY,iBAAiB;AAE7B,SAAS,WAAW;AACpB,eAAe","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n AppInjectables,\n createApplication,\n createContractNamespace,\n createContractProcedure,\n createFilter,\n createGuard,\n createMiddleware,\n createNamespace,\n createProcedure,\n createTask,\n} from '@nmtjs/application'\nimport {\n CoreInjectables,\n createClassInjectable,\n createConsolePrettyDestination,\n createExtendableClassInjectable,\n createFactoryInjectable,\n createLazyInjectable,\n createOptionalInjectable,\n createPlugin,\n createValueInjectable,\n} from '@nmtjs/core'\nimport { createTransport, ProtocolInjectables } from '@nmtjs/protocol/server'\nimport { createServer } from '@nmtjs/server'\n\nexport const neemata = {\n app: createApplication,\n server: createServer,\n injectables: {\n ...CoreInjectables,\n ...ProtocolInjectables,\n ...AppInjectables,\n },\n transport: createTransport,\n plugin: createPlugin,\n logging: {\n console: createConsolePrettyDestination,\n },\n optional: createOptionalInjectable,\n value: createValueInjectable,\n lazy: createLazyInjectable,\n factory: createFactoryInjectable,\n class: createClassInjectable,\n extendClass: createExtendableClassInjectable,\n task: createTask,\n namespace: createNamespace,\n contractNamespace: createContractNamespace,\n procedure: createProcedure,\n contractProcedure: createContractProcedure,\n middleware: createMiddleware,\n guard: createGuard,\n filter: createFilter,\n}\n\nexport * as application from '@nmtjs/application'\nexport { ApiError, WorkerType } from '@nmtjs/application'\nexport * as contract from '@nmtjs/contract'\nexport { c } from '@nmtjs/contract'\nexport * as core from '@nmtjs/core'\nexport { Hook, Scope } from '@nmtjs/core'\nexport * as jsonFormat from '@nmtjs/json-format/server'\nexport { ErrorCode, ProtocolBlob, TransportType } from '@nmtjs/protocol/common'\nexport * as server from '@nmtjs/server'\nexport * as type from '@nmtjs/type'\nexport { t } from '@nmtjs/type'\nexport * as temporal from '@nmtjs/type/temporal'\nexport * as wsTransport from '@nmtjs/ws-transport'\n\nexport { neemata as n }\nexport default neemata\n"],"version":3,"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@nmtjs/common": "0.
|
|
12
|
-
"@nmtjs/core": "0.
|
|
13
|
-
"@nmtjs/
|
|
14
|
-
"@nmtjs/application": "0.
|
|
15
|
-
"@nmtjs/
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/type": "0.
|
|
18
|
-
"@nmtjs/json-format": "0.
|
|
19
|
-
"@nmtjs/ws-transport": "0.
|
|
20
|
-
"@nmtjs/cli": "0.
|
|
11
|
+
"@nmtjs/common": "0.9.0",
|
|
12
|
+
"@nmtjs/core": "0.9.0",
|
|
13
|
+
"@nmtjs/contract": "0.9.0",
|
|
14
|
+
"@nmtjs/application": "0.9.0",
|
|
15
|
+
"@nmtjs/server": "0.9.0",
|
|
16
|
+
"@nmtjs/protocol": "0.9.0",
|
|
17
|
+
"@nmtjs/type": "0.9.0",
|
|
18
|
+
"@nmtjs/json-format": "0.9.0",
|
|
19
|
+
"@nmtjs/ws-transport": "0.9.0",
|
|
20
|
+
"@nmtjs/cli": "0.9.0"
|
|
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.
|
|
28
|
+
"version": "0.9.0",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
31
31
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,16 @@ import { createServer } from '@nmtjs/server'
|
|
|
27
27
|
export const neemata = {
|
|
28
28
|
app: createApplication,
|
|
29
29
|
server: createServer,
|
|
30
|
-
|
|
30
|
+
injectables: {
|
|
31
|
+
...CoreInjectables,
|
|
32
|
+
...ProtocolInjectables,
|
|
33
|
+
...AppInjectables,
|
|
34
|
+
},
|
|
35
|
+
transport: createTransport,
|
|
36
|
+
plugin: createPlugin,
|
|
37
|
+
logging: {
|
|
38
|
+
console: createConsolePrettyDestination,
|
|
39
|
+
},
|
|
31
40
|
optional: createOptionalInjectable,
|
|
32
41
|
value: createValueInjectable,
|
|
33
42
|
lazy: createLazyInjectable,
|
|
@@ -35,40 +44,28 @@ export const neemata = {
|
|
|
35
44
|
class: createClassInjectable,
|
|
36
45
|
extendClass: createExtendableClassInjectable,
|
|
37
46
|
task: createTask,
|
|
38
|
-
procedure: createProcedure,
|
|
39
47
|
namespace: createNamespace,
|
|
48
|
+
contractNamespace: createContractNamespace,
|
|
49
|
+
procedure: createProcedure,
|
|
50
|
+
contractProcedure: createContractProcedure,
|
|
40
51
|
middleware: createMiddleware,
|
|
41
52
|
guard: createGuard,
|
|
42
53
|
filter: createFilter,
|
|
43
|
-
|
|
44
|
-
contract: {
|
|
45
|
-
procedure: createContractProcedure,
|
|
46
|
-
namespace: createContractNamespace,
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
injectables: {
|
|
50
|
-
...CoreInjectables,
|
|
51
|
-
...ProtocolInjectables,
|
|
52
|
-
...AppInjectables,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
transport: createTransport,
|
|
56
|
-
|
|
57
|
-
plugin: createPlugin,
|
|
58
|
-
|
|
59
|
-
logging: {
|
|
60
|
-
console: createConsolePrettyDestination,
|
|
61
|
-
},
|
|
62
54
|
}
|
|
63
55
|
|
|
64
|
-
export * as
|
|
65
|
-
export
|
|
56
|
+
export * as application from '@nmtjs/application'
|
|
57
|
+
export { ApiError, WorkerType } from '@nmtjs/application'
|
|
66
58
|
export * as contract from '@nmtjs/contract'
|
|
59
|
+
export { c } from '@nmtjs/contract'
|
|
67
60
|
export * as core from '@nmtjs/core'
|
|
68
|
-
export
|
|
61
|
+
export { Hook, Scope } from '@nmtjs/core'
|
|
62
|
+
export * as jsonFormat from '@nmtjs/json-format/server'
|
|
63
|
+
export { ErrorCode, ProtocolBlob, TransportType } from '@nmtjs/protocol/common'
|
|
69
64
|
export * as server from '@nmtjs/server'
|
|
65
|
+
export * as type from '@nmtjs/type'
|
|
66
|
+
export { t } from '@nmtjs/type'
|
|
67
|
+
export * as temporal from '@nmtjs/type/temporal'
|
|
70
68
|
export * as wsTransport from '@nmtjs/ws-transport'
|
|
71
|
-
export * as jsonFormat from '@nmtjs/json-format/server'
|
|
72
69
|
|
|
73
70
|
export { neemata as n }
|
|
74
71
|
export default neemata
|