typia 12.0.2 → 12.1.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.
- package/README.md +1 -1
- package/lib/executable/typia.js +8 -40
- package/lib/executable/typia.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/samchon/typia/blob/master/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/typia)
|
|
6
6
|
[](https://www.npmjs.com/package/typia)
|
|
7
|
-
[](https://github.com/samchon/typia/actions?query=workflow%3Atest)
|
|
7
|
+
[](https://github.com/samchon/typia/actions?query=workflow%3Atest+branch%3Amaster)
|
|
8
8
|
[](https://typia.io/docs/)
|
|
9
9
|
[](https://gurubase.io/g/typia)
|
|
10
10
|
[](https://discord.gg/E94XhzrUCZ)
|
package/lib/executable/typia.js
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
3
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
4
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
5
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -42,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
9
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
10
|
});
|
|
44
11
|
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
13
|
const USAGE = `Wrong command has been detected. Use like below:
|
|
46
14
|
|
|
47
15
|
npx typia setup \\
|
|
@@ -64,30 +32,30 @@ const halt = (desc) => {
|
|
|
64
32
|
};
|
|
65
33
|
const main = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
34
|
try {
|
|
67
|
-
yield
|
|
68
|
-
yield
|
|
69
|
-
yield
|
|
35
|
+
yield import("comment-json");
|
|
36
|
+
yield import("inquirer");
|
|
37
|
+
yield import("commander");
|
|
70
38
|
}
|
|
71
39
|
catch (_a) {
|
|
72
40
|
halt(`typia has not been installed. Run "npm i typia" before.`);
|
|
73
41
|
}
|
|
74
42
|
const type = process.argv[2];
|
|
75
43
|
if (type === "setup") {
|
|
76
|
-
const { TypiaSetupWizard } = yield
|
|
44
|
+
const { TypiaSetupWizard } = yield import("./TypiaSetupWizard.js");
|
|
77
45
|
yield TypiaSetupWizard.setup();
|
|
78
46
|
}
|
|
79
47
|
else if (type === "patch") {
|
|
80
|
-
const { TypiaPatchWizard } = yield
|
|
48
|
+
const { TypiaPatchWizard } = yield import("./TypiaPatchWizard.js");
|
|
81
49
|
yield TypiaPatchWizard.main();
|
|
82
50
|
}
|
|
83
51
|
else if (type === "generate") {
|
|
84
52
|
try {
|
|
85
|
-
yield
|
|
53
|
+
yield import("typescript");
|
|
86
54
|
}
|
|
87
55
|
catch (_b) {
|
|
88
56
|
halt(`typescript has not been installed. Run "npm i -D typescript" before.`);
|
|
89
57
|
}
|
|
90
|
-
const { TypiaGenerateWizard } = yield
|
|
58
|
+
const { TypiaGenerateWizard } = yield import("./TypiaGenerateWizard.js");
|
|
91
59
|
yield TypiaGenerateWizard.generate();
|
|
92
60
|
}
|
|
93
61
|
else
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typia.js","sourceRoot":"","sources":["../../src/executable/typia.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typia.js","sourceRoot":"","sources":["../../src/executable/typia.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;CAeb,CAAC;AAEF,MAAM,IAAI,GAAG,CAAC,IAAY,EAAS,EAAE;IACnC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,GAAwB,EAAE;IACrC,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC;QAC7B,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;QACzB,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAC5B,CAAC;IAAC,WAAM,CAAC;QACP,IAAI,CAAC,yDAAyD,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,IAAI,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;QACnE,MAAM,gBAAgB,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;SAAM,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC5B,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;QACnE,MAAM,gBAAgB,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;SAAM,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;QAC7B,CAAC;QAAC,WAAM,CAAC;YACP,IAAI,CACF,sEAAsE,CACvE,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC;QACzE,MAAM,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC;;QAAM,IAAI,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC,CAAA,CAAC;AACF,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typia",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Superfast runtime validators with only one line",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"inquirer": "^8.2.5",
|
|
47
47
|
"package-manager-detector": "^0.2.0",
|
|
48
48
|
"randexp": "^0.5.3",
|
|
49
|
-
"@typia/
|
|
50
|
-
"@typia/
|
|
51
|
-
"@typia/
|
|
52
|
-
"@typia/
|
|
49
|
+
"@typia/core": "^12.1.0",
|
|
50
|
+
"@typia/interface": "^12.1.0",
|
|
51
|
+
"@typia/transform": "^12.1.0",
|
|
52
|
+
"@typia/utils": "^12.1.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"typescript": ">=4.8.0 <
|
|
55
|
+
"typescript": ">=4.8.0 <7.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"suppress-warnings": "^1.0.2",
|
|
73
73
|
"tinyglobby": "^0.2.12",
|
|
74
74
|
"ts-node": "^10.9.2",
|
|
75
|
-
"typescript": "~
|
|
75
|
+
"typescript": "~6.0.3"
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"files": [
|