@nestia/sdk 3.13.0-dev.2024910 → 3.13.0
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.
|
@@ -14,14 +14,14 @@ var GenericAnalyzer;
|
|
|
14
14
|
}
|
|
15
15
|
GenericAnalyzer.analyze = analyze;
|
|
16
16
|
function explore(checker, dict, classNode) {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b, _c;
|
|
18
18
|
if (classNode.heritageClauses === undefined)
|
|
19
19
|
return;
|
|
20
20
|
for (const heritage of classNode.heritageClauses)
|
|
21
21
|
for (const hType of heritage.types) {
|
|
22
22
|
// MUST BE CLASS
|
|
23
23
|
const expression = checker.getTypeAtLocation(hType.expression);
|
|
24
|
-
const superNode = (_a = expression.symbol.getDeclarations()) === null ||
|
|
24
|
+
const superNode = (_c = (_b = (_a = expression.symbol) === null || _a === void 0 ? void 0 : _a.getDeclarations) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
|
|
25
25
|
if (superNode === undefined || !typescript_1.default.isClassDeclaration(superNode))
|
|
26
26
|
continue;
|
|
27
27
|
// SPECIFY GENERICS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericAnalyzer.js","sourceRoot":"","sources":["../../src/analyses/GenericAnalyzer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAE5B,IAAiB,eAAe,CA8C/B;AA9CD,WAAiB,eAAe;IAC9B,SAAgB,OAAO,CACrB,OAAuB,EACvB,SAA8B;QAE9B,MAAM,IAAI,GAA8B,IAAI,OAAO,EAAE,CAAC;QACtD,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAPe,uBAAO,UAOtB,CAAA;IAED,SAAS,OAAO,CACd,OAAuB,EACvB,IAA+B,EAC/B,SAA8B;;QAE9B,IAAI,SAAS,CAAC,eAAe,KA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B,KAAK,CAAC,aAAa,IAAI,EAAE,CAAC;gBACrE,MAAM,UAAU,GACd,SAAS,CAAC,cAAc,IAAI,EAAE,CAAC;gBAEjC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBAClC,MAAM,SAAS,GAAY,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;oBAC5D,MAAM,SAAS,GACb,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS;wBACzB,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;wBAC1C,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAQ,CAAC,CAAC;oBAEhD,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;gBACjC,CAAC,CAAC,CAAC;gBAEH,wBAAwB;gBACxB,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;YACpC,CAAC;IACL,CAAC;AACH,CAAC,EA9CgB,eAAe,+BAAf,eAAe,QA8C/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/sdk",
|
|
3
|
-
"version": "3.13.0
|
|
3
|
+
"version": "3.13.0",
|
|
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/core": "^3.13.0
|
|
36
|
-
"@nestia/fetcher": "^3.13.0
|
|
35
|
+
"@nestia/core": "^3.13.0",
|
|
36
|
+
"@nestia/fetcher": "^3.13.0",
|
|
37
37
|
"@samchon/openapi": "^1.0.0",
|
|
38
38
|
"cli": "^1.0.1",
|
|
39
39
|
"get-function-location": "^2.0.0",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"tsconfck": "^2.1.2",
|
|
45
45
|
"tsconfig-paths": "^4.1.1",
|
|
46
46
|
"tstl": "^3.0.0",
|
|
47
|
-
"typia": "
|
|
47
|
+
"typia": "^6.10.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nestia/core": ">=3.13.0
|
|
51
|
-
"@nestia/fetcher": ">=3.13.0
|
|
50
|
+
"@nestia/core": ">=3.13.0",
|
|
51
|
+
"@nestia/fetcher": ">=3.13.0",
|
|
52
52
|
"@nestjs/common": ">=7.0.1",
|
|
53
53
|
"@nestjs/core": ">=7.0.1",
|
|
54
54
|
"reflect-metadata": ">=0.1.12",
|
|
@@ -22,7 +22,7 @@ export namespace GenericAnalyzer {
|
|
|
22
22
|
// MUST BE CLASS
|
|
23
23
|
const expression: ts.Type = checker.getTypeAtLocation(hType.expression);
|
|
24
24
|
const superNode: ts.Declaration | undefined =
|
|
25
|
-
expression.symbol
|
|
25
|
+
expression.symbol?.getDeclarations?.()?.[0];
|
|
26
26
|
|
|
27
27
|
if (superNode === undefined || !ts.isClassDeclaration(superNode))
|
|
28
28
|
continue;
|