nestia 3.0.8-dev.20220708-2 → 3.0.8-dev.20220708-3
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.
|
@@ -64,7 +64,7 @@ var NestiaConfig;
|
|
|
64
64
|
return (input => { ((input, path = "$input") => {
|
|
65
65
|
const $pred = typescript_json_1.assertType.predicate;
|
|
66
66
|
const $ao = [
|
|
67
|
-
(input, path, exceptionable) => null !== input.input && undefined !== input.input && ("string" === typeof input.input || Array.isArray(input.input) && input.input.every((elem,
|
|
67
|
+
(input, path, exceptionable) => null !== input.input && undefined !== input.input && ("string" === typeof input.input || Array.isArray(input.input) && input.input.every((elem, index33078730447199844) => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $ao[1](input.input, path + ".input", false && exceptionable)) && $pred(undefined === input.output || "string" === typeof input.output, exceptionable, () => ({
|
|
68
68
|
path: path + ".output",
|
|
69
69
|
expected: "(string | undefined)",
|
|
70
70
|
value: input.output
|
|
@@ -85,16 +85,16 @@ var NestiaConfig;
|
|
|
85
85
|
expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
|
|
86
86
|
value: input.swagger
|
|
87
87
|
})),
|
|
88
|
-
(input, path, exceptionable) => $pred(Array.isArray(input.include) && input.include.every((elem,
|
|
89
|
-
path: path + ".include[" +
|
|
88
|
+
(input, path, exceptionable) => $pred(Array.isArray(input.include) && input.include.every((elem, index8238688124057272) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
89
|
+
path: path + ".include[" + index8238688124057272 + "]",
|
|
90
90
|
expected: "string",
|
|
91
91
|
value: elem
|
|
92
92
|
}))), exceptionable, () => ({
|
|
93
93
|
path: path + ".include",
|
|
94
94
|
expected: "Array<string>",
|
|
95
95
|
value: input.include
|
|
96
|
-
})) && $pred(undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every((elem,
|
|
97
|
-
path: path + ".exclude[" +
|
|
96
|
+
})) && $pred(undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every((elem, index3784305931330594) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
97
|
+
path: path + ".exclude[" + index3784305931330594 + "]",
|
|
98
98
|
expected: "string",
|
|
99
99
|
value: elem
|
|
100
100
|
}))), exceptionable, () => ({
|
|
@@ -214,8 +214,8 @@ var NestiaConfig;
|
|
|
214
214
|
path: path + ".keyofStringsOnly",
|
|
215
215
|
expected: "(boolean | undefined)",
|
|
216
216
|
value: input.keyofStringsOnly
|
|
217
|
-
})) && $pred(undefined === input.lib || Array.isArray(input.lib) && input.lib.every((elem,
|
|
218
|
-
path: path + ".lib[" +
|
|
217
|
+
})) && $pred(undefined === input.lib || Array.isArray(input.lib) && input.lib.every((elem, index4373705228755995) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
218
|
+
path: path + ".lib[" + index4373705228755995 + "]",
|
|
219
219
|
expected: "string",
|
|
220
220
|
value: elem
|
|
221
221
|
}))), exceptionable, () => ({
|
|
@@ -234,8 +234,8 @@ var NestiaConfig;
|
|
|
234
234
|
path: path + ".maxNodeModuleJsDepth",
|
|
235
235
|
expected: "(number | undefined)",
|
|
236
236
|
value: input.maxNodeModuleJsDepth
|
|
237
|
-
})) && (undefined === input.module || 0 === input.module || 1 === input.module || 2 === input.module || 3 === input.module || 4 === input.module || 5 === input.module || 6 === input.module || 7 === input.module || 99 === input.module || 100 === input.module || 199 === input.module) && (undefined === input.moduleResolution || 1 === input.moduleResolution || 2 === input.moduleResolution || 3 === input.moduleResolution || 99 === input.moduleResolution) && $pred(undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every((elem,
|
|
238
|
-
path: path + ".moduleSuffixes[" +
|
|
237
|
+
})) && (undefined === input.module || 0 === input.module || 1 === input.module || 2 === input.module || 3 === input.module || 4 === input.module || 5 === input.module || 6 === input.module || 7 === input.module || 99 === input.module || 100 === input.module || 199 === input.module) && (undefined === input.moduleResolution || 1 === input.moduleResolution || 2 === input.moduleResolution || 3 === input.moduleResolution || 99 === input.moduleResolution) && $pred(undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every((elem, index7661589138254672) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
238
|
+
path: path + ".moduleSuffixes[" + index7661589138254672 + "]",
|
|
239
239
|
expected: "string",
|
|
240
240
|
value: elem
|
|
241
241
|
}))), exceptionable, () => ({
|
|
@@ -382,8 +382,8 @@ var NestiaConfig;
|
|
|
382
382
|
path: path + ".rootDir",
|
|
383
383
|
expected: "(string | undefined)",
|
|
384
384
|
value: input.rootDir
|
|
385
|
-
})) && $pred(undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every((elem,
|
|
386
|
-
path: path + ".rootDirs[" +
|
|
385
|
+
})) && $pred(undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every((elem, index2780148894504475) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
386
|
+
path: path + ".rootDirs[" + index2780148894504475 + "]",
|
|
387
387
|
expected: "string",
|
|
388
388
|
value: elem
|
|
389
389
|
}))), exceptionable, () => ({
|
|
@@ -450,16 +450,16 @@ var NestiaConfig;
|
|
|
450
450
|
path: path + ".resolveJsonModule",
|
|
451
451
|
expected: "(boolean | undefined)",
|
|
452
452
|
value: input.resolveJsonModule
|
|
453
|
-
})) && $pred(undefined === input.types || Array.isArray(input.types) && input.types.every((elem,
|
|
454
|
-
path: path + ".types[" +
|
|
453
|
+
})) && $pred(undefined === input.types || Array.isArray(input.types) && input.types.every((elem, index6393005999861117) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
454
|
+
path: path + ".types[" + index6393005999861117 + "]",
|
|
455
455
|
expected: "string",
|
|
456
456
|
value: elem
|
|
457
457
|
}))), exceptionable, () => ({
|
|
458
458
|
path: path + ".types",
|
|
459
459
|
expected: "(Array<string> | undefined)",
|
|
460
460
|
value: input.types
|
|
461
|
-
})) && $pred(undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every((elem,
|
|
462
|
-
path: path + ".typeRoots[" +
|
|
461
|
+
})) && $pred(undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every((elem, index6368449067430892) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
462
|
+
path: path + ".typeRoots[" + index6368449067430892 + "]",
|
|
463
463
|
expected: "string",
|
|
464
464
|
value: elem
|
|
465
465
|
}))), exceptionable, () => ({
|
|
@@ -28,10 +28,16 @@ class ImportDictionary {
|
|
|
28
28
|
toScript(outDir) {
|
|
29
29
|
const statements = [];
|
|
30
30
|
for (const it of this.dict_) {
|
|
31
|
-
const file =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const file = (() => {
|
|
32
|
+
const location = path_1.default
|
|
33
|
+
.relative(outDir, it.first)
|
|
34
|
+
.split("\\")
|
|
35
|
+
.join("/");
|
|
36
|
+
const index = location.lastIndexOf(NODE_MODULES);
|
|
37
|
+
return index === -1
|
|
38
|
+
? location
|
|
39
|
+
: location.substring(index + NODE_MODULES.length);
|
|
40
|
+
})();
|
|
35
41
|
const realistic = it.second.first;
|
|
36
42
|
const instances = it.second.second.toJSON();
|
|
37
43
|
statements.push(`import ${!realistic ? "type " : ""}{ ${instances.join(", ")} } from "./${file}";`);
|
|
@@ -40,4 +46,5 @@ class ImportDictionary {
|
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
exports.ImportDictionary = ImportDictionary;
|
|
49
|
+
const NODE_MODULES = "node_modules/";
|
|
43
50
|
//# sourceMappingURL=ImportDictionary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportDictionary.js","sourceRoot":"","sources":["../../src/utils/ImportDictionary.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAiD;AACjD,oDAAiD;AACjD,4CAAyC;AAEzC,MAAa,gBAAgB;IAA7B;QACqB,UAAK,GAClB,IAAI,iBAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Im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