nmtjs 0.7.2 → 0.7.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 CHANGED
@@ -1,5 +1,5 @@
1
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";
2
+ import { CoreInjectables, createClassInjectable, createConsolePrettyDestination, createExtendableClassInjectable, createFactoryInjectable, createLazyInjectable, createOptionalInjectable, createPlugin, createValueInjectable } from "@nmtjs/core";
3
3
  import { createTransport, ProtocolInjectables } from "@nmtjs/protocol/server";
4
4
  import { ApplicationServer } from "@nmtjs/server";
5
5
  export let neemata;
@@ -10,6 +10,8 @@ export let neemata;
10
10
  const value = _neemata.value = createValueInjectable;
11
11
  const lazy = _neemata.lazy = createLazyInjectable;
12
12
  const factory = _neemata.factory = createFactoryInjectable;
13
+ const klass = _neemata.klass = createClassInjectable;
14
+ const extend = _neemata.extend = createExtendableClassInjectable;
13
15
  const task = _neemata.task = createTask;
14
16
  const procedure = _neemata.procedure = createProcedure;
15
17
  const namespace = _neemata.namespace = createNamespace;
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,gCACA,yBACA,sBACA,0BACA,cACA,6BACK,aAAa;AACpB,SAAS,iBAAiB,2BAA2B,wBAAwB;AAC7E,SAAS,yBAAyB,eAAe;;AAE1C;CACE,MAAM,qBAAM,CAAC,GAAG,SACrB,IAAI,YAAY,GAAG;CAEd,MAAM,2BAAS,CACpB,GAAG,SACA,IAAI,kBAAkB,GAAG;CAEvB,MAAM,+BAAW;CACjB,MAAM,yBAAQ;CACd,MAAM,uBAAO;CACb,MAAM,6BAAU;CAChB,MAAM,uBAAO;CACb,MAAM,iCAAY;CAClB,MAAM,iCAAY;CAClB,MAAM,mCAAa;CACnB,MAAM,yBAAQ;CACd,MAAM,2BAAS;CACf,MAAM,qCAAc;EACzB,GAAG;EACH,GAAG;EACH,GAAG;CACJ;CACM,MAAM,iCAAY;CAClB,MAAM,2BAAS;CACf,MAAM,6BAAU,EACrB,SAAS,+BACV;;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}
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;;AAE1C;CACE,MAAM,qBAAM,CAAC,GAAG,SACrB,IAAI,YAAY,GAAG;CAEd,MAAM,2BAAS,CACpB,GAAG,SACA,IAAI,kBAAkB,GAAG;CAEvB,MAAM,+BAAW;CACjB,MAAM,yBAAQ;CACd,MAAM,uBAAO;CACb,MAAM,6BAAU;CAChB,MAAM,yBAAQ;CACd,MAAM,2BAAS;CACf,MAAM,uBAAO;CACb,MAAM,iCAAY;CAClB,MAAM,iCAAY;CAClB,MAAM,mCAAa;CACnB,MAAM,yBAAQ;CACd,MAAM,2BAAS;CACf,MAAM,qCAAc;EACzB,GAAG;EACH,GAAG;EACH,GAAG;CACJ;CACM,MAAM,iCAAY;CAClB,MAAM,2BAAS;CACf,MAAM,6BAAU,EACrB,SAAS,+BACV;;AAEM;EACE,MAAM,kCAAY;EAClB,MAAM,kCAAY;;;AAI7B,SAAS,WAAW;AAEpB,SACE,UAKA,kBACK;AAEP,SACE,GACA,gBAMK;AAEP,SAA6B,MAAmB,aAAa;AAE7D,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 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 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 klass = createClassInjectable\n export const extend = createExtendableClassInjectable\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'\n\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'\n\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.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"
11
+ "@nmtjs/common": "0.7.4",
12
+ "@nmtjs/protocol": "0.7.4",
13
+ "@nmtjs/contract": "0.7.4",
14
+ "@nmtjs/application": "0.7.4",
15
+ "@nmtjs/server": "0.7.4",
16
+ "@nmtjs/type": "0.7.4",
17
+ "@nmtjs/core": "0.7.4",
18
+ "@nmtjs/json-format": "0.7.4",
19
+ "@nmtjs/ws-transport": "0.7.4",
20
+ "@nmtjs/cli": "0.7.4"
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.2",
28
+ "version": "0.7.4",
29
29
  "scripts": {
30
30
  "build": "neemata-build --root=./src './**/*.ts'",
31
31
  "type-check": "tsc --noEmit"
package/src/index.ts CHANGED
@@ -12,7 +12,9 @@ import {
12
12
  } from '@nmtjs/application'
13
13
  import {
14
14
  CoreInjectables,
15
+ createClassInjectable,
15
16
  createConsolePrettyDestination,
17
+ createExtendableClassInjectable,
16
18
  createFactoryInjectable,
17
19
  createLazyInjectable,
18
20
  createOptionalInjectable,
@@ -34,6 +36,8 @@ export namespace neemata {
34
36
  export const value = createValueInjectable
35
37
  export const lazy = createLazyInjectable
36
38
  export const factory = createFactoryInjectable
39
+ export const klass = createClassInjectable
40
+ export const extend = createExtendableClassInjectable
37
41
  export const task = createTask
38
42
  export const procedure = createProcedure
39
43
  export const namespace = createNamespace
@@ -67,6 +71,7 @@ export {
67
71
  type MiddlewareLike,
68
72
  WorkerType,
69
73
  } from '@nmtjs/application'
74
+
70
75
  export {
71
76
  c,
72
77
  contract,
@@ -78,6 +83,7 @@ export {
78
83
  } from '@nmtjs/contract'
79
84
 
80
85
  export { type AnyInjectable, Hook, type Logger, Scope } from '@nmtjs/core'
86
+
81
87
  export {
82
88
  ErrorCode,
83
89
  ProtocolBlob,