@nestia/sdk 3.4.0-dev.20240701 → 3.4.1-dev.20240703
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.
|
@@ -74,7 +74,7 @@ var NestiaConfigLoader;
|
|
|
74
74
|
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));
|
|
75
75
|
const $io2 = input => "string" === typeof input.output && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify) && (undefined === input.additional || "boolean" === typeof input.additional) && (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) && $io9(input.security)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.decompose || "boolean" === typeof input.decompose);
|
|
76
76
|
const $io3 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof 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);
|
|
77
|
-
const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
|
77
|
+
const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email && /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email));
|
|
78
78
|
const $io5 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
|
79
79
|
const $io6 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io7(input.variables));
|
|
80
80
|
const $io7 = input => Object.keys(input).every(key => {
|
|
@@ -83,7 +83,7 @@ var NestiaConfigLoader;
|
|
|
83
83
|
return true;
|
|
84
84
|
return "object" === typeof value && null !== value && $io8(value);
|
|
85
85
|
});
|
|
86
|
-
const $io8 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) &&
|
|
86
|
+
const $io8 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description);
|
|
87
87
|
const $io9 = input => Object.keys(input).every(key => {
|
|
88
88
|
const value = input[key];
|
|
89
89
|
if (undefined === value)
|
|
@@ -326,9 +326,13 @@ var NestiaConfigLoader;
|
|
|
326
326
|
path: _path + ".url",
|
|
327
327
|
expected: "(string | undefined)",
|
|
328
328
|
value: input.url
|
|
329
|
-
}, errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
|
|
329
|
+
}, errorFactory)) && (undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || $guard(_exceptionable, {
|
|
330
330
|
path: _path + ".email",
|
|
331
|
-
expected: "
|
|
331
|
+
expected: "string & Format<\"email\">",
|
|
332
|
+
value: input.email
|
|
333
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
334
|
+
path: _path + ".email",
|
|
335
|
+
expected: "((string & Format<\"email\">) | undefined)",
|
|
332
336
|
value: input.email
|
|
333
337
|
}, errorFactory));
|
|
334
338
|
const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
@@ -381,19 +385,15 @@ var NestiaConfigLoader;
|
|
|
381
385
|
value: input["default"]
|
|
382
386
|
}, errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
|
|
383
387
|
path: _path + "[\"enum\"]",
|
|
384
|
-
expected: "(
|
|
385
|
-
value: input["enum"]
|
|
386
|
-
}, errorFactory)) && ((1 <= input["enum"].length || $guard(_exceptionable, {
|
|
387
|
-
path: _path + "[\"enum\"]",
|
|
388
|
-
expected: "Array<> & MinItems<1>",
|
|
388
|
+
expected: "(Array<string> | undefined)",
|
|
389
389
|
value: input["enum"]
|
|
390
390
|
}, errorFactory)) && input["enum"].every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
391
391
|
path: _path + "[\"enum\"][" + _index6 + "]",
|
|
392
392
|
expected: "string",
|
|
393
393
|
value: elem
|
|
394
|
-
}, errorFactory))
|
|
394
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
395
395
|
path: _path + "[\"enum\"]",
|
|
396
|
-
expected: "(
|
|
396
|
+
expected: "(Array<string> | undefined)",
|
|
397
397
|
value: input["enum"]
|
|
398
398
|
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
399
399
|
path: _path + ".description",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/sdk",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1-dev.20240703",
|
|
4
4
|
"description": "Nestia SDK and Swagger generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nestia.io",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nestia/fetcher": "^3.4.
|
|
36
|
-
"@samchon/openapi": "^0.
|
|
35
|
+
"@nestia/fetcher": "^3.4.1-dev.20240703",
|
|
36
|
+
"@samchon/openapi": "^0.3.0",
|
|
37
37
|
"cli": "^1.0.1",
|
|
38
38
|
"get-function-location": "^2.0.0",
|
|
39
39
|
"glob": "^7.2.0",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"tsconfck": "^2.0.1",
|
|
44
44
|
"tsconfig-paths": "^4.1.1",
|
|
45
45
|
"tstl": "^3.0.0",
|
|
46
|
-
"typia": "^6.
|
|
46
|
+
"typia": "^6.4.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@nestia/fetcher": ">=3.4.
|
|
49
|
+
"@nestia/fetcher": ">=3.4.1-dev.20240703",
|
|
50
50
|
"@nestjs/common": ">=7.0.1",
|
|
51
51
|
"@nestjs/core": ">=7.0.1",
|
|
52
52
|
"reflect-metadata": ">=0.1.12",
|
|
53
53
|
"ts-node": ">=10.6.0",
|
|
54
|
-
"typia": ">=6.
|
|
54
|
+
"typia": ">=6.4.0 <7.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@nestia/e2e": "^0.4.3",
|