nestia 3.0.8-dev.20220708-3 → 3.0.8-dev.20220708-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.
|
@@ -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, index5222442657135138) => "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, index33232415578428753) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
89
|
+
path: path + ".include[" + index33232415578428753 + "]",
|
|
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, index003744580011592502) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
97
|
+
path: path + ".exclude[" + index003744580011592502 + "]",
|
|
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, index2730165794529662) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
218
|
+
path: path + ".lib[" + index2730165794529662 + "]",
|
|
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, index39253236419642223) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
238
|
+
path: path + ".moduleSuffixes[" + index39253236419642223 + "]",
|
|
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, index5927399052974909) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
386
|
+
path: path + ".rootDirs[" + index5927399052974909 + "]",
|
|
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, index45419210545762123) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
454
|
+
path: path + ".types[" + index45419210545762123 + "]",
|
|
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, index5110761379722906) => $pred("string" === typeof elem, exceptionable, () => ({
|
|
462
|
+
path: path + ".typeRoots[" + index5110761379722906 + "]",
|
|
463
463
|
expected: "string",
|
|
464
464
|
value: elem
|
|
465
465
|
}))), exceptionable, () => ({
|
|
@@ -35,12 +35,12 @@ class ImportDictionary {
|
|
|
35
35
|
.join("/");
|
|
36
36
|
const index = location.lastIndexOf(NODE_MODULES);
|
|
37
37
|
return index === -1
|
|
38
|
-
? location
|
|
38
|
+
? `./${location}`
|
|
39
39
|
: location.substring(index + NODE_MODULES.length);
|
|
40
40
|
})();
|
|
41
41
|
const realistic = it.second.first;
|
|
42
42
|
const instances = it.second.second.toJSON();
|
|
43
|
-
statements.push(`import ${!realistic ? "type " : ""}{ ${instances.join(", ")} } from "
|
|
43
|
+
statements.push(`import ${!realistic ? "type " : ""}{ ${instances.join(", ")} } from "${file}";`);
|
|
44
44
|
}
|
|
45
45
|
return statements.join("\n");
|
|
46
46
|
}
|
|
@@ -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;IA8CtB,CAAC;IA5CU,KAAK;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAEM,OAAO,CAAC,IAAY,EAAE,SAAkB,EAAE,QAAgB;QAC7D,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO;YAAE,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,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