nestia 2.0.1 → 2.0.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.
- package/package.json +2 -2
- package/src/IConfiguration.ts +1 -1
- package/src/NestiaApplication.ts +3 -3
- package/src/analyses/ControllerAnalyzer.ts +2 -2
- package/src/analyses/GenericAnalyzer.ts +1 -1
- package/src/analyses/ImportAnalyzer.ts +1 -1
- package/src/analyses/ReflectAnalyzer.ts +3 -3
- package/src/analyses/SourceFinder.ts +2 -2
- package/src/executable/sdk.ts +4 -4
- package/src/generates/FileGenerator.ts +1 -1
- package/src/generates/FunctionGenerator.ts +1 -1
- package/src/generates/SdkGenerator.ts +1 -1
- package/src/structures/IRoute.ts +1 -1
- package/src/utils/DirectoryUtil.ts +1 -1
- package/src/utils/ImportDictionary.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestia",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Automatic SDK and Document generator for the NestJS",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cli": "^1.0.1",
|
|
37
37
|
"del": "^6.0.0",
|
|
38
38
|
"glob": "^7.2.0",
|
|
39
|
-
"ts-node": "^
|
|
39
|
+
"ts-node": "^10.4.0",
|
|
40
40
|
"tstl": "^2.5.3",
|
|
41
41
|
"ttypescript": "^1.5.13",
|
|
42
42
|
"typescript": "^4.6.3",
|
package/src/IConfiguration.ts
CHANGED
package/src/NestiaApplication.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import tsc from "typescript";
|
|
1
|
+
import * as fs from "fs";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
import * as tsc from "typescript";
|
|
4
4
|
import { Pair } from "tstl/utility/Pair";
|
|
5
5
|
import { Singleton } from "tstl/thread/Singleton";
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as NodePath from "path";
|
|
2
|
+
import { equal } from "tstl/ranges/module";
|
|
2
3
|
|
|
3
4
|
import { ArrayUtil } from "../utils/ArrayUtil";
|
|
4
5
|
import { StringUtil } from "../utils/StringUtil";
|
|
5
6
|
|
|
6
7
|
import { IController } from "../structures/IController";
|
|
7
8
|
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(
|
|
131
|
+
const funcPathArguments: string[] = StringUtil.betweens(NodePath.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)
|
package/src/executable/sdk.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import cli from "cli";
|
|
2
|
-
import fs from "fs";
|
|
3
|
-
import path from "path";
|
|
4
|
-
import tsc from "typescript";
|
|
1
|
+
import * as cli from "cli";
|
|
2
|
+
import * as fs from "fs";
|
|
3
|
+
import * as path from "path";
|
|
4
|
+
import * as tsc from "typescript";
|
|
5
5
|
import { Primitive } from "nestia-fetcher";
|
|
6
6
|
|
|
7
7
|
import { IConfiguration } from "../IConfiguration";
|
package/src/structures/IRoute.ts
CHANGED