nmtjs 0.4.2 → 0.4.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 +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/index.ts +11 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Application, asOptional } from '@nmtjs/application';
|
|
2
|
-
import { createFactoryInjectable, createLazyInjectable, createValueInjectable } from '@nmtjs/application';
|
|
3
|
-
import { createContractProcedure, createFilter, createGuard, createMiddleware, createProcedure } from '@nmtjs/application';
|
|
4
|
-
import { $createProvider, provide as _provide } from '@nmtjs/application';
|
|
2
|
+
import { builtin as _builtin, createFactoryInjectable, createLazyInjectable, createValueInjectable } from '@nmtjs/application';
|
|
3
|
+
import { createConsolePrettyDestination, createContractProcedure, createFilter, createGuard, createMiddleware, createPlugin, createProcedure, createTransport } from '@nmtjs/application';
|
|
5
4
|
import { createContractService, createService } from '@nmtjs/application';
|
|
6
5
|
import { $createSubscription, createContractSubscription } from '@nmtjs/application';
|
|
7
6
|
import { createTask } from '@nmtjs/application';
|
|
@@ -10,7 +9,6 @@ export var n;
|
|
|
10
9
|
(function(n) {
|
|
11
10
|
n.app = (...args)=>new Application(...args);
|
|
12
11
|
n.server = (...args)=>new ApplicationServer(...args);
|
|
13
|
-
n.provide = _provide;
|
|
14
12
|
n.optional = asOptional;
|
|
15
13
|
n.value = createValueInjectable;
|
|
16
14
|
n.lazy = createLazyInjectable;
|
|
@@ -22,7 +20,12 @@ export var n;
|
|
|
22
20
|
n.middleware = createMiddleware;
|
|
23
21
|
n.guard = createGuard;
|
|
24
22
|
n.filter = createFilter;
|
|
25
|
-
n
|
|
23
|
+
n.builtin = _builtin;
|
|
24
|
+
n.transport = createTransport;
|
|
25
|
+
n.plugin = createPlugin;
|
|
26
|
+
n.logging = {
|
|
27
|
+
console: createConsolePrettyDestination
|
|
28
|
+
};
|
|
26
29
|
let contractless;
|
|
27
30
|
(function(contractless) {
|
|
28
31
|
contractless.procedure = createProcedure;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Application, asOptional } from '@nmtjs/application'\nimport {\n createFactoryInjectable,\n createLazyInjectable,\n createValueInjectable,\n} from '@nmtjs/application'\nimport {\n createContractProcedure,\n createFilter,\n createGuard,\n createMiddleware,\n createProcedure,\n} from '@nmtjs/application'\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { Application, asOptional } from '@nmtjs/application'\nimport {\n builtin as _builtin,\n createFactoryInjectable,\n createLazyInjectable,\n createValueInjectable,\n} from '@nmtjs/application'\nimport {\n createConsolePrettyDestination,\n createContractProcedure,\n createFilter,\n createGuard,\n createMiddleware,\n createPlugin,\n createProcedure,\n createTransport,\n} from '@nmtjs/application'\nimport { createContractService, createService } from '@nmtjs/application'\nimport {\n $createSubscription,\n createContractSubscription,\n} from '@nmtjs/application'\nimport { createTask } from '@nmtjs/application'\nimport { ApplicationServer } from '@nmtjs/server'\n\nexport namespace n {\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 = asOptional\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 service = createContractService\n export const subscription = createContractSubscription\n export const middleware = createMiddleware\n export const guard = createGuard\n export const filter = createFilter\n export const builtin = _builtin\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 service = createService\n export const $subscription = $createSubscription\n }\n}\n\nexport const neemata = n\n\nexport { c } from '@nmtjs/contract'\nexport { t } from '@nmtjs/type'\n\nexport {\n builtin,\n type GuardLike,\n type MiddlewareLike,\n type FilterLike,\n type AnyInjectable,\n ApiError,\n WorkerType,\n Hook,\n Scope,\n} from '@nmtjs/application'\nexport { ErrorCode, TransportType, type ApiBlobMetadata } from '@nmtjs/common'\nexport {\n injectWorkerOptions,\n provideWorkerOptions,\n WTSubManagerPlugin,\n} from '@nmtjs/server'\n"],"names":["Application","asOptional","builtin","_builtin","createFactoryInjectable","createLazyInjectable","createValueInjectable","createConsolePrettyDestination","createContractProcedure","createFilter","createGuard","createMiddleware","createPlugin","createProcedure","createTransport","createContractService","createService","$createSubscription","createContractSubscription","createTask","ApplicationServer","n","app","args","server","optional","value","lazy","factory","task","procedure","service","subscription","middleware","guard","filter","transport","plugin","logging","console","contractless","$subscription","neemata","c","t","ApiError","WorkerType","Hook","Scope","ErrorCode","TransportType","injectWorkerOptions","provideWorkerOptions","WTSubManagerPlugin"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,QAAQ,qBAAoB;AAC5D,SACEC,WAAWC,QAAQ,EACnBC,uBAAuB,EACvBC,oBAAoB,EACpBC,qBAAqB,QAChB,qBAAoB;AAC3B,SACEC,8BAA8B,EAC9BC,uBAAuB,EACvBC,YAAY,EACZC,WAAW,EACXC,gBAAgB,EAChBC,YAAY,EACZC,eAAe,EACfC,eAAe,QACV,qBAAoB;AAC3B,SAASC,qBAAqB,EAAEC,aAAa,QAAQ,qBAAoB;AACzE,SACEC,mBAAmB,EACnBC,0BAA0B,QACrB,qBAAoB;AAC3B,SAASC,UAAU,QAAQ,qBAAoB;AAC/C,SAASC,iBAAiB,QAAQ,gBAAe;;UAEhCC;MACFC,MAAM,CAAC,GAAGC,OACrB,IAAIvB,eAAeuB;MAERC,SAAS,CACpB,GAAGD,OACA,IAAIH,qBAAqBG;MAEjBE,WAAWxB;MACXyB,QAAQpB;MACRqB,OAAOtB;MACPuB,UAAUxB;MACVyB,OAAOV;MACPW,YAAYtB;MACZuB,UAAUhB;MACViB,eAAed;MACfe,aAAatB;MACbuB,QAAQxB;MACRyB,SAAS1B;MACTP,UAAUC;MACViC,YAAYtB;MACZuB,SAASzB;MACT0B,UAAU;QACrBC,SAAShC;IACX;;cAEiBiC;qBACFV,YAAYjB;qBACZkB,UAAUf;qBACVyB,gBAAgBxB;IAC/B,GAJiBuB,iBAAAA,mBAAAA;AAKnB,GA/BiBnB,MAAAA;AAiCjB,OAAO,MAAMqB,UAAUrB,EAAC;AAExB,SAASsB,CAAC,QAAQ,kBAAiB;AACnC,SAASC,CAAC,QAAQ,cAAa;AAE/B,SACE1C,OAAO,EAKP2C,QAAQ,EACRC,UAAU,EACVC,IAAI,EACJC,KAAK,QACA,qBAAoB;AAC3B,SAASC,SAAS,EAAEC,aAAa,QAA8B,gBAAe;AAC9E,SACEC,mBAAmB,EACnBC,oBAAoB,EACpBC,kBAAkB,QACb,gBAAe"}
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nmtjs/common": "0.4.
|
|
13
|
-
"@nmtjs/application": "0.4.
|
|
14
|
-
"@nmtjs/server": "0.4.
|
|
15
|
-
"@nmtjs/
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/type": "0.4.
|
|
12
|
+
"@nmtjs/common": "0.4.4",
|
|
13
|
+
"@nmtjs/application": "0.4.4",
|
|
14
|
+
"@nmtjs/server": "0.4.4",
|
|
15
|
+
"@nmtjs/cli": "0.4.4",
|
|
16
|
+
"@nmtjs/contract": "0.4.4",
|
|
17
|
+
"@nmtjs/type": "0.4.4"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"src",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"LICENSE.md",
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
|
-
"version": "0.4.
|
|
26
|
+
"version": "0.4.4",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "neemata-build --root=./src './**/*.ts'",
|
|
29
29
|
"type-check": "tsc --noEmit"
|
package/src/index.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { Application, asOptional } from '@nmtjs/application'
|
|
2
2
|
import {
|
|
3
|
+
builtin as _builtin,
|
|
3
4
|
createFactoryInjectable,
|
|
4
5
|
createLazyInjectable,
|
|
5
6
|
createValueInjectable,
|
|
6
7
|
} from '@nmtjs/application'
|
|
7
8
|
import {
|
|
9
|
+
createConsolePrettyDestination,
|
|
8
10
|
createContractProcedure,
|
|
9
11
|
createFilter,
|
|
10
12
|
createGuard,
|
|
11
13
|
createMiddleware,
|
|
14
|
+
createPlugin,
|
|
12
15
|
createProcedure,
|
|
16
|
+
createTransport,
|
|
13
17
|
} from '@nmtjs/application'
|
|
14
|
-
import { $createProvider, provide as _provide } from '@nmtjs/application'
|
|
15
18
|
import { createContractService, createService } from '@nmtjs/application'
|
|
16
19
|
import {
|
|
17
20
|
$createSubscription,
|
|
@@ -28,7 +31,6 @@ export namespace n {
|
|
|
28
31
|
...args: ConstructorParameters<typeof ApplicationServer>
|
|
29
32
|
) => new ApplicationServer(...args)
|
|
30
33
|
|
|
31
|
-
export const provide = _provide
|
|
32
34
|
export const optional = asOptional
|
|
33
35
|
export const value = createValueInjectable
|
|
34
36
|
export const lazy = createLazyInjectable
|
|
@@ -40,8 +42,12 @@ export namespace n {
|
|
|
40
42
|
export const middleware = createMiddleware
|
|
41
43
|
export const guard = createGuard
|
|
42
44
|
export const filter = createFilter
|
|
43
|
-
|
|
44
|
-
export const
|
|
45
|
+
export const builtin = _builtin
|
|
46
|
+
export const transport = createTransport
|
|
47
|
+
export const plugin = createPlugin
|
|
48
|
+
export const logging = {
|
|
49
|
+
console: createConsolePrettyDestination,
|
|
50
|
+
}
|
|
45
51
|
|
|
46
52
|
export namespace contractless {
|
|
47
53
|
export const procedure = createProcedure
|
|
@@ -60,6 +66,7 @@ export {
|
|
|
60
66
|
type GuardLike,
|
|
61
67
|
type MiddlewareLike,
|
|
62
68
|
type FilterLike,
|
|
69
|
+
type AnyInjectable,
|
|
63
70
|
ApiError,
|
|
64
71
|
WorkerType,
|
|
65
72
|
Hook,
|