nmtjs 0.7.7 → 0.7.8
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.map +1 -1
- package/package.json +11 -11
- package/src/index.ts +8 -0
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,iBACA,uBACA,gCACA,iCACA,yBACA,sBACA,0BACA,cACA,6BACK,aAAa;AACpB,SAAS,iBAAiB,2BAA2B,wBAAwB;AAC7E,SAAS,yBAAyB,eAAe;AAEjD,OAAO,MAAM,UAAU;CACrB,KAAK,CAAC,GAAG,SACP,IAAI,YAAY,GAAG;CAErB,QAAQ,CAAC,GAAG,SACV,IAAI,kBAAkB,GAAG;CAE3B,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,SAAS,WAAW;AAEpB,SACE,
|
|
1
|
+
{"mappings":"AAAA,SACE,gBACA,aACA,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,yBAAyB,eAAe;AAEjD,OAAO,MAAM,UAAU;CACrB,KAAK,CAAC,GAAG,SACP,IAAI,YAAY,GAAG;CAErB,QAAQ,CAAC,GAAG,SACV,IAAI,kBAAkB,GAAG;CAE3B,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,SAAS,WAAW;AAEpB,SACE,UAQA,kBACK;AAEP,SACE,GACA,gBAWK;AAEP,SAA6B,MAAmB,aAAa;AAE7D,SACE,WACA,cAEA,qBACK;AAEP,cAAc","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 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 { ApplicationServer } from '@nmtjs/server'\n\nexport const neemata = {\n app: (...args: ConstructorParameters<typeof Application>) =>\n new Application(...args),\n\n server: (...args: ConstructorParameters<typeof ApplicationServer>) =>\n new ApplicationServer(...args),\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 { neemata as n }\n\nexport {\n ApiError,\n type ApplicationWorkerOptions,\n type ExtractApplicationAPIContract,\n type FilterLike,\n type GuardLike,\n type MiddlewareLike,\n type Namespace,\n type Procedure,\n WorkerType,\n} from '@nmtjs/application'\n\nexport {\n c,\n contract,\n type TAnyAPIContract,\n type TAnyEventContract,\n type TAnyNamespaceContract,\n type TAnyProcedureContract,\n type TAnySubscriptionContract,\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'\n\nexport {\n ErrorCode,\n ProtocolBlob,\n type ProtocolBlobMetadata,\n TransportType,\n} from '@nmtjs/protocol/common'\n\nexport * from '@nmtjs/type'\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.7.
|
|
14
|
-
"@nmtjs/application": "0.7.
|
|
15
|
-
"@nmtjs/
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/
|
|
18
|
-
"@nmtjs/
|
|
19
|
-
"@nmtjs/
|
|
20
|
-
"@nmtjs/
|
|
11
|
+
"@nmtjs/common": "0.7.8",
|
|
12
|
+
"@nmtjs/core": "0.7.8",
|
|
13
|
+
"@nmtjs/protocol": "0.7.8",
|
|
14
|
+
"@nmtjs/application": "0.7.8",
|
|
15
|
+
"@nmtjs/server": "0.7.8",
|
|
16
|
+
"@nmtjs/contract": "0.7.8",
|
|
17
|
+
"@nmtjs/type": "0.7.8",
|
|
18
|
+
"@nmtjs/ws-transport": "0.7.8",
|
|
19
|
+
"@nmtjs/cli": "0.7.8",
|
|
20
|
+
"@nmtjs/json-format": "0.7.8"
|
|
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.8",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
31
31
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -69,15 +69,23 @@ export { neemata as n }
|
|
|
69
69
|
export {
|
|
70
70
|
ApiError,
|
|
71
71
|
type ApplicationWorkerOptions,
|
|
72
|
+
type ExtractApplicationAPIContract,
|
|
72
73
|
type FilterLike,
|
|
73
74
|
type GuardLike,
|
|
74
75
|
type MiddlewareLike,
|
|
76
|
+
type Namespace,
|
|
77
|
+
type Procedure,
|
|
75
78
|
WorkerType,
|
|
76
79
|
} from '@nmtjs/application'
|
|
77
80
|
|
|
78
81
|
export {
|
|
79
82
|
c,
|
|
80
83
|
contract,
|
|
84
|
+
type TAnyAPIContract,
|
|
85
|
+
type TAnyEventContract,
|
|
86
|
+
type TAnyNamespaceContract,
|
|
87
|
+
type TAnyProcedureContract,
|
|
88
|
+
type TAnySubscriptionContract,
|
|
81
89
|
type TAPIContract,
|
|
82
90
|
type TEventContract,
|
|
83
91
|
type TNamespaceContract,
|