nestia 2.0.3 → 2.1.0-dev.20220413

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestia",
3
- "version": "2.0.3",
3
+ "version": "2.1.0-dev.20220413",
4
4
  "description": "Automatic SDK and Document generator for the NestJS",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
@@ -36,10 +36,10 @@
36
36
  "cli": "^1.0.1",
37
37
  "del": "^6.0.0",
38
38
  "glob": "^7.2.0",
39
- "ts-node": "^10.4.0",
39
+ "ts-node": "^9.1.1",
40
40
  "tstl": "^2.5.3",
41
41
  "ttypescript": "^1.5.13",
42
- "typescript": "^4.6.3",
42
+ "typescript": "^4.5.3",
43
43
  "typescript-is": "^0.19.0",
44
44
  "typescript-transform-paths": "^3.3.1"
45
45
  },
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import type tsc from "typescript";
2
2
 
3
3
  export interface IConfiguration
4
4
  {
@@ -1,6 +1,6 @@
1
- import * as fs from "fs";
2
- import * as path from "path";
3
- import * as tsc from "typescript";
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import tsc from "typescript";
4
4
  import { Pair } from "tstl/utility/Pair";
5
5
  import { Singleton } from "tstl/thread/Singleton";
6
6
 
@@ -1,5 +1,5 @@
1
- import * as NodePath from "path";
2
- import * as tsc from "typescript";
1
+ import NodePath from "path";
2
+ import tsc from "typescript";
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
 
5
5
  import { IController } from "../structures/IController";
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import tsc from "typescript";
2
2
 
3
3
  export namespace GenericAnalyzer
4
4
  {
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import tsc from "typescript";
2
2
 
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
  import { HashSet } from "tstl/container/HashSet";
@@ -1,11 +1,11 @@
1
- import * as NodePath from "path";
2
- import { equal } from "tstl/ranges/module";
1
+ import Pather from "path";
3
2
 
4
3
  import { ArrayUtil } from "../utils/ArrayUtil";
5
4
  import { StringUtil } from "../utils/StringUtil";
6
5
 
7
6
  import { IController } from "../structures/IController";
8
7
  import { ParamCategory } from "../structures/ParamCategory";
8
+ import { equal } from "tstl/ranges/module";
9
9
 
10
10
  type IModule =
11
11
  {
@@ -128,7 +128,7 @@ export namespace ReflectAnalyzer
128
128
  }
129
129
 
130
130
  // VALIDATE PATH ARGUMENTS
131
- const funcPathArguments: string[] = StringUtil.betweens(NodePath.join(controller.path, meta.path).split("\\").join("/"), ":", "/").sort();
131
+ const funcPathArguments: string[] = StringUtil.betweens(Pather.join(controller.path, meta.path).split("\\").join("/"), ":", "/").sort();
132
132
  const paramPathArguments: string[] = meta.parameters.filter(param => param.category === "param").map(param => param.field!).sort();
133
133
 
134
134
  if (equal(funcPathArguments, paramPathArguments) === false)
@@ -1,6 +1,6 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import glob from "glob";
3
- import * as path from "path";
3
+ import path from "path";
4
4
 
5
5
  import { IConfiguration } from "../IConfiguration";
6
6
 
@@ -1,7 +1,7 @@
1
- import * as cli from "cli";
2
- import * as fs from "fs";
3
- import * as path from "path";
4
- import * as tsc from "typescript";
1
+ import cli from "cli";
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import tsc from "typescript";
5
5
  import { Primitive } from "nestia-fetcher";
6
6
 
7
7
  import { IConfiguration } from "../IConfiguration";
@@ -1,4 +1,4 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import { HashMap } from "tstl/container/HashMap";
3
3
  import { IConfiguration } from "../IConfiguration";
4
4
 
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import type tsc from "typescript";
2
2
  import { Pair } from "tstl/utility/Pair";
3
3
  import { Vector } from "tstl/container/Vector";
4
4
 
@@ -1,4 +1,4 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import { DirectoryUtil } from "../utils/DirectoryUtil";
3
3
 
4
4
  import { IRoute } from "../structures/IRoute";
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import type tsc from "typescript";
2
2
  import { ParamCategory } from "./ParamCategory";
3
3
 
4
4
  export interface IRoute
@@ -1,5 +1,5 @@
1
1
  import del from "del";
2
- import * as fs from "fs";
2
+ import fs from "fs";
3
3
 
4
4
  export namespace DirectoryUtil
5
5
  {
@@ -1,4 +1,4 @@
1
- import * as path from "path";
1
+ import path from "path";
2
2
 
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
  import { HashSet } from "tstl/container/HashSet";