@nestia/sdk 3.3.0-dev.20240624 → 3.3.0-dev.20240627

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.
Files changed (31) hide show
  1. package/lib/NestiaSdkApplication.d.ts +0 -1
  2. package/lib/analyses/ConfigAnalyzer.d.ts +0 -1
  3. package/lib/analyses/ExceptionAnalyzer.d.ts +0 -1
  4. package/lib/analyses/GenericAnalyzer.d.ts +0 -1
  5. package/lib/analyses/ImportAnalyzer.d.ts +0 -1
  6. package/lib/analyses/TypedControllerAnalyzer.d.ts +0 -1
  7. package/lib/analyses/TypedHttpOperationAnalyzer.d.ts +0 -1
  8. package/lib/analyses/TypedWebSocketOperationAnalyzer.d.ts +0 -1
  9. package/lib/executable/internal/NestiaConfigLoader.d.ts +0 -1
  10. package/lib/executable/internal/NestiaConfigLoader.js +1 -1
  11. package/lib/generates/SwaggerGenerator.d.ts +0 -1
  12. package/lib/generates/SwaggerGenerator.js +5 -5
  13. package/lib/generates/internal/FilePrinter.d.ts +0 -1
  14. package/lib/generates/internal/FilePrinter.js +1 -1
  15. package/lib/generates/internal/ImportDictionary.d.ts +0 -1
  16. package/lib/generates/internal/SdkAliasCollection.d.ts +0 -1
  17. package/lib/generates/internal/SdkHttpCloneProgrammer.d.ts +0 -1
  18. package/lib/generates/internal/SdkHttpFunctionProgrammer.d.ts +0 -1
  19. package/lib/generates/internal/SdkHttpNamespaceProgrammer.d.ts +0 -1
  20. package/lib/generates/internal/SdkHttpRouteProgrammer.d.ts +0 -1
  21. package/lib/generates/internal/SdkHttpSimulationProgrammer.d.ts +0 -1
  22. package/lib/generates/internal/SdkTypeProgrammer.d.ts +0 -1
  23. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.d.ts +0 -1
  24. package/lib/generates/internal/SdkWebSocketRouteProgrammer.d.ts +0 -1
  25. package/lib/generates/internal/SwaggerSchemaGenerator.d.ts +0 -1
  26. package/lib/structures/INestiaProject.d.ts +0 -1
  27. package/lib/structures/ITypeTuple.d.ts +0 -1
  28. package/lib/structures/ITypedHttpRoute.d.ts +0 -1
  29. package/lib/structures/ITypedWebSocketRoute.d.ts +0 -1
  30. package/lib/structures/TypeEntry.d.ts +0 -1
  31. package/package.json +8 -8
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaConfig } from "./INestiaConfig";
4
3
  export declare class NestiaSdkApplication {
@@ -1,4 +1,3 @@
1
- /// <reference path="../../src/typings/get-function-location.d.ts" />
2
1
  import { INestiaConfig } from "../INestiaConfig";
3
2
  import { INormalizedInput } from "../structures/INormalizedInput";
4
3
  export declare namespace ConfigAnalyzer {
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../structures/INestiaProject";
4
3
  import { IReflectController } from "../structures/IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  export declare namespace GenericAnalyzer {
4
3
  type Dictionary = WeakMap<ts.Type, ts.Type>;
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import { HashMap, HashSet } from "tstl";
3
2
  import ts from "typescript";
4
3
  import { ITypeTuple } from "../structures/ITypeTuple";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../structures/INestiaProject";
4
3
  import { IReflectController } from "../structures/IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../structures/INestiaProject";
4
3
  import { IReflectController } from "../structures/IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../structures/INestiaProject";
4
3
  import { IReflectController } from "../structures/IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaConfig } from "../../INestiaConfig";
4
3
  export declare namespace NestiaConfigLoader {
@@ -642,7 +642,7 @@ var NestiaConfigLoader;
642
642
  }
643
643
  catch (exp) {
644
644
  if ((input => {
645
- const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
645
+ const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
646
646
  return "object" === typeof input && null !== input && $io0(input);
647
647
  })(exp))
648
648
  exp.message = `invalid "${file}" data.`;
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import { OpenApi } from "@samchon/openapi";
3
2
  import ts from "typescript";
4
3
  import { MetadataCollection } from "typia/lib/factories/MetadataCollection";
@@ -187,7 +187,7 @@ var SwaggerGenerator;
187
187
  INITIALIZERS
188
188
  --------------------------------------------------------- */
189
189
  const initialize = (config) => __awaiter(this, void 0, void 0, function* () {
190
- var _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
190
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
191
191
  const pack = new tstl_1.Singleton(() => __awaiter(this, void 0, void 0, function* () {
192
192
  const location = yield FileRetriever_1.FileRetriever.file("package.json")(process.cwd());
193
193
  if (location === null)
@@ -269,24 +269,24 @@ var SwaggerGenerator;
269
269
  : undefined,
270
270
  };
271
271
  }
272
- catch (_3) {
272
+ catch (_a) {
273
273
  return null;
274
274
  }
275
275
  }));
276
276
  return {
277
277
  openapi: "3.1.0",
278
- servers: (_k = config.servers) !== null && _k !== void 0 ? _k : [
278
+ servers: (_a = config.servers) !== null && _a !== void 0 ? _a : [
279
279
  {
280
280
  url: "https://github.com/samchon/nestia",
281
281
  description: "insert your server url",
282
282
  },
283
283
  ],
284
- info: Object.assign(Object.assign({}, ((_l = config.info) !== null && _l !== void 0 ? _l : {})), { version: (_q = (_o = (_m = config.info) === null || _m === void 0 ? void 0 : _m.version) !== null && _o !== void 0 ? _o : (_p = (yield pack.get())) === null || _p === void 0 ? void 0 : _p.version) !== null && _q !== void 0 ? _q : "0.1.0", title: (_u = (_s = (_r = config.info) === null || _r === void 0 ? void 0 : _r.title) !== null && _s !== void 0 ? _s : (_t = (yield pack.get())) === null || _t === void 0 ? void 0 : _t.title) !== null && _u !== void 0 ? _u : "Swagger Documents", description: (_y = (_w = (_v = config.info) === null || _v === void 0 ? void 0 : _v.description) !== null && _w !== void 0 ? _w : (_x = (yield pack.get())) === null || _x === void 0 ? void 0 : _x.description) !== null && _y !== void 0 ? _y : "Generated by nestia - https://github.com/samchon/nestia", license: (_0 = (_z = config.info) === null || _z === void 0 ? void 0 : _z.license) !== null && _0 !== void 0 ? _0 : (_1 = (yield pack.get())) === null || _1 === void 0 ? void 0 : _1.license }),
284
+ info: Object.assign(Object.assign({}, ((_b = config.info) !== null && _b !== void 0 ? _b : {})), { version: (_f = (_d = (_c = config.info) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : (_e = (yield pack.get())) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "0.1.0", title: (_k = (_h = (_g = config.info) === null || _g === void 0 ? void 0 : _g.title) !== null && _h !== void 0 ? _h : (_j = (yield pack.get())) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : "Swagger Documents", description: (_p = (_m = (_l = config.info) === null || _l === void 0 ? void 0 : _l.description) !== null && _m !== void 0 ? _m : (_o = (yield pack.get())) === null || _o === void 0 ? void 0 : _o.description) !== null && _p !== void 0 ? _p : "Generated by nestia - https://github.com/samchon/nestia", license: (_r = (_q = config.info) === null || _q === void 0 ? void 0 : _q.license) !== null && _r !== void 0 ? _r : (_s = (yield pack.get())) === null || _s === void 0 ? void 0 : _s.license }),
285
285
  paths: {},
286
286
  components: {
287
287
  schemas: {},
288
288
  },
289
- tags: (_2 = config.tags) !== null && _2 !== void 0 ? _2 : [],
289
+ tags: (_t = config.tags) !== null && _t !== void 0 ? _t : [],
290
290
  "x-samchon-emended": true,
291
291
  };
292
292
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  export declare namespace FilePrinter {
4
3
  const description: <Node extends ts.Node>(node: Node, comment: string) => Node;
@@ -38,7 +38,7 @@ var FilePrinter;
38
38
  parser: "typescript",
39
39
  });
40
40
  }
41
- catch (_b) {
41
+ catch (_a) {
42
42
  return script;
43
43
  }
44
44
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  export declare class ImportDictionary {
4
3
  readonly file: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { Metadata } from "typia/lib/schemas/metadata/Metadata";
4
3
  import { MetadataObject } from "typia/lib/schemas/metadata/MetadataObject";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedWebSocketRoute } from "../../structures/ITypedWebSocketRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaProject } from "../../structures/INestiaProject";
4
3
  import { ITypedWebSocketRoute } from "../../structures/ITypedWebSocketRoute";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import { OpenApi } from "@samchon/openapi";
3
2
  import ts from "typescript";
4
3
  import { MetadataCollection } from "typia/lib/factories/MetadataCollection";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { INestiaConfig } from "../INestiaConfig";
4
3
  import { IErrorReport } from "./IErrorReport";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  export interface ITypeTuple {
4
3
  type: ts.Type;
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { Metadata } from "typia/lib/schemas/metadata/Metadata";
4
3
  import { IReflectController } from "./IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  import { Metadata } from "typia/lib/schemas/metadata/Metadata";
4
3
  import { IReflectController } from "./IReflectController";
@@ -1,4 +1,3 @@
1
- /// <reference types="ts-expose-internals/typescript" />
2
1
  import ts from "typescript";
3
2
  export declare class TypeEntry {
4
3
  readonly type: ts.Type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/sdk",
3
- "version": "3.3.0-dev.20240624",
3
+ "version": "3.3.0-dev.20240627",
4
4
  "description": "Nestia SDK and Swagger generator",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://nestia.io",
34
34
  "dependencies": {
35
- "@nestia/fetcher": "^3.3.0-dev.20240624",
35
+ "@nestia/fetcher": "^3.3.0-dev.20240627",
36
36
  "@samchon/openapi": "^0.1.21",
37
37
  "cli": "^1.0.1",
38
38
  "get-function-location": "^2.0.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.0.3"
46
+ "typia": "^6.3.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@nestia/fetcher": ">=3.3.0-dev.20240624",
49
+ "@nestia/fetcher": ">=3.3.0-dev.20240627",
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.0.3 <7.0.0"
54
+ "typia": ">=6.3.0 <7.0.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@nestia/e2e": "^0.4.3",
@@ -67,9 +67,9 @@
67
67
  "eslint": "^8.29.0",
68
68
  "eslint-plugin-deprecation": "^1.4.1",
69
69
  "rimraf": "^3.0.2",
70
- "tgrid": "^1.0.0",
71
- "ts-patch": "^3.2.0",
72
- "typescript": "<5.5.0",
70
+ "tgrid": "^1.0.2",
71
+ "ts-patch": "^3.2.1",
72
+ "typescript": "^5.5.2",
73
73
  "typescript-transform-paths": "^3.4.4",
74
74
  "uuid": "^9.0.0"
75
75
  },