nmtjs 0.7.7 → 0.8.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 +13 -9
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/index.ts +14 -37
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AppInjectables,
|
|
1
|
+
import { AppInjectables, createApplication, createContractNamespace, createContractProcedure, createFilter, createGuard, createMiddleware, createNamespace, createProcedure, createTask } from "@nmtjs/application";
|
|
2
2
|
import { CoreInjectables, createClassInjectable, createConsolePrettyDestination, createExtendableClassInjectable, createFactoryInjectable, createLazyInjectable, createOptionalInjectable, createPlugin, createValueInjectable } from "@nmtjs/core";
|
|
3
3
|
import { createTransport, ProtocolInjectables } from "@nmtjs/protocol/server";
|
|
4
|
-
import {
|
|
4
|
+
import { createServer } from "@nmtjs/server";
|
|
5
5
|
export const neemata = {
|
|
6
|
-
app:
|
|
7
|
-
server:
|
|
6
|
+
app: createApplication,
|
|
7
|
+
server: createServer,
|
|
8
8
|
optional: createOptionalInjectable,
|
|
9
9
|
value: createValueInjectable,
|
|
10
10
|
lazy: createLazyInjectable,
|
|
@@ -30,9 +30,13 @@ export const neemata = {
|
|
|
30
30
|
plugin: createPlugin,
|
|
31
31
|
logging: { console: createConsolePrettyDestination }
|
|
32
32
|
};
|
|
33
|
+
export * as type from "@nmtjs/type";
|
|
34
|
+
export * as temporal from "@nmtjs/type/temporal";
|
|
35
|
+
export * as contract from "@nmtjs/contract";
|
|
36
|
+
export * as core from "@nmtjs/core";
|
|
37
|
+
export * as application from "@nmtjs/application";
|
|
38
|
+
export * as server from "@nmtjs/server";
|
|
39
|
+
export * as wsTransport from "@nmtjs/ws-transport";
|
|
40
|
+
export * as jsonFormat from "@nmtjs/json-format/server";
|
|
33
41
|
export { neemata as n };
|
|
34
|
-
export
|
|
35
|
-
export { c, contract } from "@nmtjs/contract";
|
|
36
|
-
export { Hook, Scope } from "@nmtjs/core";
|
|
37
|
-
export { ErrorCode, ProtocolBlob, TransportType } from "@nmtjs/protocol/common";
|
|
38
|
-
export * from "@nmtjs/type";
|
|
42
|
+
export default neemata;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,SACE,gBACA,
|
|
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;CAER,UAAU;CACV,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACP,aAAa;CACb,MAAM;CACN,WAAW;CACX,WAAW;CACX,YAAY;CACZ,OAAO;CACP,QAAQ;CAER,UAAU;EACR,WAAW;EACX,WAAW;CACZ;CAED,aAAa;EACX,GAAG;EACH,GAAG;EACH,GAAG;CACJ;CAED,WAAW;CAEX,QAAQ;CAER,SAAS,EACP,SAAS,+BACV;AACF;AAED,YAAY,UAAU;AACtB,YAAY,cAAc;AAC1B,YAAY,cAAc;AAC1B,YAAY,UAAU;AACtB,YAAY,iBAAiB;AAC7B,YAAY,YAAY;AACxB,YAAY,iBAAiB;AAC7B,YAAY,gBAAgB;AAE5B,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\n optional: createOptionalInjectable,\n value: createValueInjectable,\n lazy: createLazyInjectable,\n factory: createFactoryInjectable,\n class: createClassInjectable,\n extendClass: createExtendableClassInjectable,\n task: createTask,\n procedure: createProcedure,\n namespace: createNamespace,\n middleware: createMiddleware,\n guard: createGuard,\n filter: createFilter,\n\n contract: {\n procedure: createContractProcedure,\n namespace: createContractNamespace,\n },\n\n injectables: {\n ...CoreInjectables,\n ...ProtocolInjectables,\n ...AppInjectables,\n },\n\n transport: createTransport,\n\n plugin: createPlugin,\n\n logging: {\n console: createConsolePrettyDestination,\n },\n}\n\nexport * as type from '@nmtjs/type'\nexport * as temporal from '@nmtjs/type/temporal'\nexport * as contract from '@nmtjs/contract'\nexport * as core from '@nmtjs/core'\nexport * as application from '@nmtjs/application'\nexport * as server from '@nmtjs/server'\nexport * as wsTransport from '@nmtjs/ws-transport'\nexport * as jsonFormat from '@nmtjs/json-format/server'\n\nexport { neemata as n }\nexport default neemata\n"],"version":3}
|
package/package.json
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@nmtjs/
|
|
12
|
-
"@nmtjs/
|
|
13
|
-
"@nmtjs/protocol": "0.
|
|
14
|
-
"@nmtjs/application": "0.
|
|
15
|
-
"@nmtjs/contract": "0.
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/
|
|
18
|
-
"@nmtjs/json-format": "0.
|
|
19
|
-
"@nmtjs/ws-transport": "0.
|
|
20
|
-
"@nmtjs/cli": "0.
|
|
11
|
+
"@nmtjs/common": "0.8.0",
|
|
12
|
+
"@nmtjs/core": "0.8.0",
|
|
13
|
+
"@nmtjs/protocol": "0.8.0",
|
|
14
|
+
"@nmtjs/application": "0.8.0",
|
|
15
|
+
"@nmtjs/contract": "0.8.0",
|
|
16
|
+
"@nmtjs/server": "0.8.0",
|
|
17
|
+
"@nmtjs/type": "0.8.0",
|
|
18
|
+
"@nmtjs/json-format": "0.8.0",
|
|
19
|
+
"@nmtjs/ws-transport": "0.8.0",
|
|
20
|
+
"@nmtjs/cli": "0.8.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.8.0",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
31
31
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppInjectables,
|
|
3
|
-
|
|
3
|
+
createApplication,
|
|
4
4
|
createContractNamespace,
|
|
5
5
|
createContractProcedure,
|
|
6
6
|
createFilter,
|
|
@@ -22,14 +22,11 @@ import {
|
|
|
22
22
|
createValueInjectable,
|
|
23
23
|
} from '@nmtjs/core'
|
|
24
24
|
import { createTransport, ProtocolInjectables } from '@nmtjs/protocol/server'
|
|
25
|
-
import {
|
|
25
|
+
import { createServer } from '@nmtjs/server'
|
|
26
26
|
|
|
27
27
|
export const neemata = {
|
|
28
|
-
app:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
server: (...args: ConstructorParameters<typeof ApplicationServer>) =>
|
|
32
|
-
new ApplicationServer(...args),
|
|
28
|
+
app: createApplication,
|
|
29
|
+
server: createServer,
|
|
33
30
|
|
|
34
31
|
optional: createOptionalInjectable,
|
|
35
32
|
value: createValueInjectable,
|
|
@@ -64,34 +61,14 @@ export const neemata = {
|
|
|
64
61
|
},
|
|
65
62
|
}
|
|
66
63
|
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
WorkerType,
|
|
76
|
-
} from '@nmtjs/application'
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
c,
|
|
80
|
-
contract,
|
|
81
|
-
type TAPIContract,
|
|
82
|
-
type TEventContract,
|
|
83
|
-
type TNamespaceContract,
|
|
84
|
-
type TProcedureContract,
|
|
85
|
-
type TSubscriptionContract,
|
|
86
|
-
} from '@nmtjs/contract'
|
|
87
|
-
|
|
88
|
-
export { type AnyInjectable, Hook, type Logger, Scope } from '@nmtjs/core'
|
|
64
|
+
export * as type from '@nmtjs/type'
|
|
65
|
+
export * as temporal from '@nmtjs/type/temporal'
|
|
66
|
+
export * as contract from '@nmtjs/contract'
|
|
67
|
+
export * as core from '@nmtjs/core'
|
|
68
|
+
export * as application from '@nmtjs/application'
|
|
69
|
+
export * as server from '@nmtjs/server'
|
|
70
|
+
export * as wsTransport from '@nmtjs/ws-transport'
|
|
71
|
+
export * as jsonFormat from '@nmtjs/json-format/server'
|
|
89
72
|
|
|
90
|
-
export {
|
|
91
|
-
|
|
92
|
-
ProtocolBlob,
|
|
93
|
-
type ProtocolBlobMetadata,
|
|
94
|
-
TransportType,
|
|
95
|
-
} from '@nmtjs/protocol/common'
|
|
96
|
-
|
|
97
|
-
export * from '@nmtjs/type'
|
|
73
|
+
export { neemata as n }
|
|
74
|
+
export default neemata
|