@nestia/sdk 2.3.1 → 2.3.2-dev.20231019
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/lib/INestiaConfig.d.ts
CHANGED
|
@@ -102,14 +102,6 @@ export interface INestiaConfig {
|
|
|
102
102
|
* @default true
|
|
103
103
|
*/
|
|
104
104
|
primitive?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Location of `tsconfig.json` file.
|
|
107
|
-
*
|
|
108
|
-
* If be configured, target file will replace the `tsconfig.json` file.
|
|
109
|
-
*
|
|
110
|
-
* @default tsconfig.json
|
|
111
|
-
*/
|
|
112
|
-
project?: string;
|
|
113
105
|
/**
|
|
114
106
|
* Whether to assert parameter types or not.
|
|
115
107
|
*
|
|
@@ -81,7 +81,7 @@ var NestiaConfigLoader;
|
|
|
81
81
|
try {
|
|
82
82
|
return (input => {
|
|
83
83
|
const __is = input => {
|
|
84
|
-
const $io0 = input => null !== input.input && undefined !== input.input && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io2(input.swagger)) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.simulate || "boolean" === typeof input.simulate) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.propagate || "boolean" === typeof input.propagate) && (undefined === input.clone || "boolean" === typeof input.clone) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.
|
|
84
|
+
const $io0 = input => null !== input.input && undefined !== input.input && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io2(input.swagger)) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.simulate || "boolean" === typeof input.simulate) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.propagate || "boolean" === typeof input.propagate) && (undefined === input.clone || "boolean" === typeof input.clone) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json);
|
|
85
85
|
const $io1 = input => Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem));
|
|
86
86
|
const $io2 = input => "string" === typeof input.output && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io3(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io7(input.security)) && (undefined === input.decompose || "boolean" === typeof input.decompose);
|
|
87
87
|
const $io3 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService)) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io4(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io5(input.license)) && (undefined === input.version || "string" === typeof input.version);
|
|
@@ -189,10 +189,6 @@ var NestiaConfigLoader;
|
|
|
189
189
|
path: _path + ".primitive",
|
|
190
190
|
expected: "(boolean | undefined)",
|
|
191
191
|
value: input.primitive
|
|
192
|
-
})) && (undefined === input.project || "string" === typeof input.project || $guard(_exceptionable, {
|
|
193
|
-
path: _path + ".project",
|
|
194
|
-
expected: "(string | undefined)",
|
|
195
|
-
value: input.project
|
|
196
192
|
})) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
|
|
197
193
|
path: _path + ".assert",
|
|
198
194
|
expected: "(boolean | undefined)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaConfigLoader.js","sourceRoot":"","sources":["../../../src/executable/internal/NestiaConfigLoader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,qCAAmC;AACnC,uCAAuC;AACvC,4DAA4B;AAE5B,kDAA0B;AAI1B,IAAiB,kBAAkB,CAyDlC;AAzDD,WAAiB,kBAAkB;IAClB,kCAAe,GAAG,CAC3B,OAAe,EACY,EAAE;QAC7B,MAAM,cAAc,GAAG,oBAAE,CAAC,cAAc,CACpC,OAAO,CAAC,GAAG,EAAE,EACb,oBAAE,CAAC,GAAG,CAAC,UAAU,EACjB,OAAO,CACV,CAAC;QACF,IAAI,CAAC,cAAc;YACf,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,SAAS,CAAC,CAAC;QAEzD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,sBAAW,EAAC,cAAc,CAAC,CAAC;QACvD,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,EAAE,MAAM,EAAE,GAAG,oBAAE,CAAC,yBAAyB,CAC3C,cAAc,EACd,cAAc,CACjB,CAAC;QACF,MAAM,iBAAiB,GAAG,oBAAE,CAAC,0BAA0B,CACnD,MAAM,EACN,oBAAE,CAAC,GAAG,EACN,cAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAC/B,CAAC;QAEF,MAAM,KACF,iBAAiB,CAAC,GAAG,CAAC,eAAe,EADnC,EAAE,gBAAgB,OACiB,EADZ,MAAM,cAA7B,oBAA+B,CACI,CAAC;QAC1C,OAAO,MAAM,CAAC;IA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6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://nestia.io",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nestia/fetcher": "^2.3.
|
|
38
|
+
"@nestia/fetcher": "^2.3.2-dev.20231019",
|
|
39
39
|
"cli": "^1.0.1",
|
|
40
40
|
"get-function-location": "^2.0.0",
|
|
41
41
|
"glob": "^7.2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typia": "^5.2.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nestia/fetcher": ">=2.3.
|
|
50
|
+
"@nestia/fetcher": ">=2.3.2-dev.20231019",
|
|
51
51
|
"@nestjs/common": ">=7.0.1",
|
|
52
52
|
"@nestjs/core": ">=7.0.1",
|
|
53
53
|
"reflect-metadata": ">=0.1.12",
|
package/src/INestiaConfig.ts
CHANGED
|
@@ -118,15 +118,6 @@ export interface INestiaConfig {
|
|
|
118
118
|
*/
|
|
119
119
|
primitive?: boolean;
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* Location of `tsconfig.json` file.
|
|
123
|
-
*
|
|
124
|
-
* If be configured, target file will replace the `tsconfig.json` file.
|
|
125
|
-
*
|
|
126
|
-
* @default tsconfig.json
|
|
127
|
-
*/
|
|
128
|
-
project?: string;
|
|
129
|
-
|
|
130
121
|
/**
|
|
131
122
|
* Whether to assert parameter types or not.
|
|
132
123
|
*
|