@trapi/metadata 1.0.0-alpha.7 → 1.0.0-alpha.8
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/dist/cache/driver.d.ts +13 -13
- package/dist/cache/driver.js +83 -83
- package/dist/cache/index.d.ts +3 -3
- package/dist/cache/index.js +25 -25
- package/dist/cache/type.d.ts +32 -32
- package/dist/cache/type.js +8 -8
- package/dist/cache/utils.d.ts +3 -3
- package/dist/cache/utils.js +52 -52
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +23 -23
- package/dist/config/type.d.ts +36 -36
- package/dist/config/type.js +8 -8
- package/dist/decorator/constants.d.ts +40 -40
- package/dist/decorator/constants.js +52 -52
- package/dist/decorator/index.d.ts +6 -6
- package/dist/decorator/index.js +28 -28
- package/dist/decorator/preset/index.d.ts +2 -2
- package/dist/decorator/preset/index.js +24 -24
- package/dist/decorator/preset/type.d.ts +5 -5
- package/dist/decorator/preset/type.js +8 -8
- package/dist/decorator/preset/utils/check.d.ts +2 -2
- package/dist/decorator/preset/utils/check.js +17 -17
- package/dist/decorator/preset/utils/index.d.ts +3 -3
- package/dist/decorator/preset/utils/index.js +25 -25
- package/dist/decorator/preset/utils/load.d.ts +2 -2
- package/dist/decorator/preset/utils/load.js +44 -44
- package/dist/decorator/preset/utils/normalize.d.ts +1 -1
- package/dist/decorator/preset/utils/normalize.js +26 -26
- package/dist/decorator/property-manager/index.d.ts +2 -2
- package/dist/decorator/property-manager/index.js +24 -24
- package/dist/decorator/property-manager/module.d.ts +16 -16
- package/dist/decorator/property-manager/module.js +58 -58
- package/dist/decorator/property-manager/utils.d.ts +5 -5
- package/dist/decorator/property-manager/utils.js +91 -91
- package/dist/decorator/resolver/index.d.ts +2 -2
- package/dist/decorator/resolver/index.js +24 -24
- package/dist/decorator/resolver/module.d.ts +26 -26
- package/dist/decorator/resolver/module.js +71 -71
- package/dist/decorator/resolver/type.d.ts +9 -9
- package/dist/decorator/resolver/type.js +2 -2
- package/dist/decorator/sets/class.d.ts +6 -6
- package/dist/decorator/sets/class.js +8 -8
- package/dist/decorator/sets/index.d.ts +7 -7
- package/dist/decorator/sets/index.js +28 -28
- package/dist/decorator/sets/method.d.ts +13 -13
- package/dist/decorator/sets/method.js +8 -8
- package/dist/decorator/sets/mixed.d.ts +11 -11
- package/dist/decorator/sets/mixed.js +8 -8
- package/dist/decorator/sets/parameter.d.ts +20 -20
- package/dist/decorator/sets/parameter.js +8 -8
- package/dist/decorator/sets/request.d.ts +5 -5
- package/dist/decorator/sets/request.js +8 -8
- package/dist/decorator/sets/response.d.ts +16 -16
- package/dist/decorator/sets/response.js +8 -8
- package/dist/decorator/sets/type.d.ts +3 -3
- package/dist/decorator/sets/type.js +2 -2
- package/dist/decorator/type.d.ts +31 -31
- package/dist/decorator/type.js +8 -8
- package/dist/error/base.d.ts +2 -2
- package/dist/error/base.js +12 -12
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +23 -23
- package/dist/generator/abstract.d.ts +18 -18
- package/dist/generator/abstract.js +150 -150
- package/dist/generator/abstract.js.map +1 -1
- package/dist/generator/controller/index.d.ts +2 -2
- package/dist/generator/controller/index.js +24 -24
- package/dist/generator/controller/module.d.ts +12 -12
- package/dist/generator/controller/module.js +67 -67
- package/dist/generator/controller/type.d.ts +46 -46
- package/dist/generator/controller/type.js +2 -2
- package/dist/generator/index.d.ts +6 -6
- package/dist/generator/index.js +28 -28
- package/dist/generator/metadata/index.d.ts +3 -3
- package/dist/generator/metadata/index.js +25 -25
- package/dist/generator/metadata/module.d.ts +38 -38
- package/dist/generator/metadata/module.js +142 -142
- package/dist/generator/metadata/type.d.ts +24 -24
- package/dist/generator/metadata/type.js +2 -2
- package/dist/generator/metadata/utils.d.ts +2 -2
- package/dist/generator/metadata/utils.js +18 -18
- package/dist/generator/method/constants.d.ts +10 -10
- package/dist/generator/method/constants.js +20 -20
- package/dist/generator/method/index.d.ts +3 -3
- package/dist/generator/method/index.js +25 -25
- package/dist/generator/method/module.d.ts +18 -18
- package/dist/generator/method/module.js +187 -187
- package/dist/generator/method/type.d.ts +22 -22
- package/dist/generator/method/type.js +8 -8
- package/dist/generator/parameter/constants.d.ts +18 -18
- package/dist/generator/parameter/constants.js +29 -29
- package/dist/generator/parameter/error.d.ts +34 -34
- package/dist/generator/parameter/error.js +67 -67
- package/dist/generator/parameter/index.d.ts +4 -4
- package/dist/generator/parameter/index.js +26 -26
- package/dist/generator/parameter/module.d.ts +28 -28
- package/dist/generator/parameter/module.js +555 -555
- package/dist/generator/parameter/type.d.ts +24 -24
- package/dist/generator/parameter/type.js +8 -8
- package/dist/generator/type.d.ts +19 -19
- package/dist/generator/type.js +8 -8
- package/dist/index.d.ts +9 -9
- package/dist/index.js +31 -31
- package/dist/module.d.ts +4 -4
- package/dist/module.js +40 -40
- package/dist/resolver/constants.d.ts +26 -26
- package/dist/resolver/constants.js +36 -36
- package/dist/resolver/error.d.ts +7 -7
- package/dist/resolver/error.js +40 -40
- package/dist/resolver/extension/index.d.ts +2 -2
- package/dist/resolver/extension/index.js +24 -24
- package/dist/resolver/extension/module.d.ts +4 -4
- package/dist/resolver/extension/module.js +26 -26
- package/dist/resolver/extension/type.d.ts +7 -7
- package/dist/resolver/extension/type.js +8 -8
- package/dist/resolver/index.d.ts +5 -5
- package/dist/resolver/index.js +27 -27
- package/dist/resolver/module.d.ts +53 -53
- package/dist/resolver/module.js +1102 -1102
- package/dist/resolver/type.d.ts +138 -138
- package/dist/resolver/type.js +129 -129
- package/dist/type.d.ts +1 -1
- package/dist/type.js +8 -8
- package/dist/utils/array.d.ts +2 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/array.js +22 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/index.d.ts +9 -8
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +31 -30
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/initializer.d.ts +4 -4
- package/dist/utils/initializer.js +130 -130
- package/dist/utils/js-doc/constants.d.ts +18 -18
- package/dist/utils/js-doc/constants.js +29 -29
- package/dist/utils/js-doc/index.d.ts +3 -3
- package/dist/utils/js-doc/index.js +25 -25
- package/dist/utils/js-doc/module.d.ts +8 -8
- package/dist/utils/js-doc/module.js +97 -97
- package/dist/utils/js-doc/utils.d.ts +2 -2
- package/dist/utils/js-doc/utils.js +28 -28
- package/dist/utils/node/index.d.ts +2 -2
- package/dist/utils/node/index.js +24 -24
- package/dist/utils/node/module.d.ts +9 -9
- package/dist/utils/node/module.js +51 -51
- package/dist/utils/node/type.d.ts +5 -5
- package/dist/utils/node/type.js +8 -8
- package/dist/utils/object.d.ts +1 -1
- package/dist/utils/object.js +14 -14
- package/dist/utils/path-normalize.d.ts +1 -1
- package/dist/utils/path-normalize.js +16 -16
- package/dist/utils/source-files.d.ts +2 -2
- package/dist/utils/source-files.js +31 -31
- package/dist/utils/tsconfig/index.d.ts +2 -2
- package/dist/utils/tsconfig/index.js +24 -24
- package/dist/utils/tsconfig/module.d.ts +3 -3
- package/dist/utils/tsconfig/module.js +53 -53
- package/dist/utils/tsconfig/type.d.ts +10 -10
- package/dist/utils/tsconfig/type.js +8 -8
- package/dist/utils/validator/constants.d.ts +12 -12
- package/dist/utils/validator/constants.js +22 -22
- package/dist/utils/validator/index.d.ts +3 -3
- package/dist/utils/validator/index.js +25 -25
- package/dist/utils/validator/module.d.ts +3 -3
- package/dist/utils/validator/module.js +141 -141
- package/dist/utils/validator/type.d.ts +5 -5
- package/dist/utils/validator/type.js +8 -8
- package/package.json +5 -6
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export declare enum DecoratorID {
|
|
2
|
-
CONTROLLER = "controller",
|
|
3
|
-
DESCRIPTION = "description",
|
|
4
|
-
EXAMPLE = "example",
|
|
5
|
-
PRODUCES = "produces",
|
|
6
|
-
ACCEPT = "accept",
|
|
7
|
-
CONSUMES = "consumes",
|
|
8
|
-
DEPRECATED = "deprecated",
|
|
9
|
-
EXTENSION = "extension",
|
|
10
|
-
HIDDEN = "hidden",
|
|
11
|
-
SECURITY = "security",
|
|
12
|
-
TAGS = "tags",
|
|
13
|
-
MOUNT = "mount",
|
|
14
|
-
ALL = "all",
|
|
15
|
-
GET = "get",
|
|
16
|
-
POST = "post",
|
|
17
|
-
PUT = "put",
|
|
18
|
-
DELETE = "delete",
|
|
19
|
-
PATCH = "patch",
|
|
20
|
-
OPTIONS = "options",
|
|
21
|
-
HEAD = "head",
|
|
22
|
-
IS_INT = "isInt",
|
|
23
|
-
IS_LONG = "isLong",
|
|
24
|
-
IS_FLOAT = "isFloat",
|
|
25
|
-
IS_DOUBLE = "isDouble",
|
|
26
|
-
CONTEXT = "context",
|
|
27
|
-
PARAM = "param",
|
|
28
|
-
PARAMS = "params",
|
|
29
|
-
QUERY = "query",
|
|
30
|
-
FORM = "form",
|
|
31
|
-
BODY = "body",
|
|
32
|
-
HEADER = "header",
|
|
33
|
-
HEADERS = "headers",
|
|
34
|
-
COOKIE = "cookie",
|
|
35
|
-
COOKIES = "cookies",
|
|
36
|
-
PATH = "path",
|
|
37
|
-
PATHS = "paths",
|
|
38
|
-
FILE = "file",
|
|
39
|
-
FILES = "files"
|
|
40
|
-
}
|
|
1
|
+
export declare enum DecoratorID {
|
|
2
|
+
CONTROLLER = "controller",
|
|
3
|
+
DESCRIPTION = "description",
|
|
4
|
+
EXAMPLE = "example",
|
|
5
|
+
PRODUCES = "produces",
|
|
6
|
+
ACCEPT = "accept",
|
|
7
|
+
CONSUMES = "consumes",
|
|
8
|
+
DEPRECATED = "deprecated",
|
|
9
|
+
EXTENSION = "extension",
|
|
10
|
+
HIDDEN = "hidden",
|
|
11
|
+
SECURITY = "security",
|
|
12
|
+
TAGS = "tags",
|
|
13
|
+
MOUNT = "mount",
|
|
14
|
+
ALL = "all",
|
|
15
|
+
GET = "get",
|
|
16
|
+
POST = "post",
|
|
17
|
+
PUT = "put",
|
|
18
|
+
DELETE = "delete",
|
|
19
|
+
PATCH = "patch",
|
|
20
|
+
OPTIONS = "options",
|
|
21
|
+
HEAD = "head",
|
|
22
|
+
IS_INT = "isInt",
|
|
23
|
+
IS_LONG = "isLong",
|
|
24
|
+
IS_FLOAT = "isFloat",
|
|
25
|
+
IS_DOUBLE = "isDouble",
|
|
26
|
+
CONTEXT = "context",
|
|
27
|
+
PARAM = "param",
|
|
28
|
+
PARAMS = "params",
|
|
29
|
+
QUERY = "query",
|
|
30
|
+
FORM = "form",
|
|
31
|
+
BODY = "body",
|
|
32
|
+
HEADER = "header",
|
|
33
|
+
HEADERS = "headers",
|
|
34
|
+
COOKIE = "cookie",
|
|
35
|
+
COOKIES = "cookies",
|
|
36
|
+
PATH = "path",
|
|
37
|
+
PATHS = "paths",
|
|
38
|
+
FILE = "file",
|
|
39
|
+
FILES = "files"
|
|
40
|
+
}
|
|
41
41
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DecoratorID = void 0;
|
|
10
|
-
var DecoratorID;
|
|
11
|
-
(function (DecoratorID) {
|
|
12
|
-
DecoratorID["CONTROLLER"] = "controller";
|
|
13
|
-
DecoratorID["DESCRIPTION"] = "description";
|
|
14
|
-
DecoratorID["EXAMPLE"] = "example";
|
|
15
|
-
DecoratorID["PRODUCES"] = "produces";
|
|
16
|
-
DecoratorID["ACCEPT"] = "accept";
|
|
17
|
-
DecoratorID["CONSUMES"] = "consumes";
|
|
18
|
-
DecoratorID["DEPRECATED"] = "deprecated";
|
|
19
|
-
DecoratorID["EXTENSION"] = "extension";
|
|
20
|
-
DecoratorID["HIDDEN"] = "hidden";
|
|
21
|
-
DecoratorID["SECURITY"] = "security";
|
|
22
|
-
DecoratorID["TAGS"] = "tags";
|
|
23
|
-
DecoratorID["MOUNT"] = "mount";
|
|
24
|
-
DecoratorID["ALL"] = "all";
|
|
25
|
-
DecoratorID["GET"] = "get";
|
|
26
|
-
DecoratorID["POST"] = "post";
|
|
27
|
-
DecoratorID["PUT"] = "put";
|
|
28
|
-
DecoratorID["DELETE"] = "delete";
|
|
29
|
-
DecoratorID["PATCH"] = "patch";
|
|
30
|
-
DecoratorID["OPTIONS"] = "options";
|
|
31
|
-
DecoratorID["HEAD"] = "head";
|
|
32
|
-
// Parameter
|
|
33
|
-
DecoratorID["IS_INT"] = "isInt";
|
|
34
|
-
DecoratorID["IS_LONG"] = "isLong";
|
|
35
|
-
DecoratorID["IS_FLOAT"] = "isFloat";
|
|
36
|
-
DecoratorID["IS_DOUBLE"] = "isDouble";
|
|
37
|
-
// Parameter Server
|
|
38
|
-
DecoratorID["CONTEXT"] = "context";
|
|
39
|
-
DecoratorID["PARAM"] = "param";
|
|
40
|
-
DecoratorID["PARAMS"] = "params";
|
|
41
|
-
DecoratorID["QUERY"] = "query";
|
|
42
|
-
DecoratorID["FORM"] = "form";
|
|
43
|
-
DecoratorID["BODY"] = "body";
|
|
44
|
-
DecoratorID["HEADER"] = "header";
|
|
45
|
-
DecoratorID["HEADERS"] = "headers";
|
|
46
|
-
DecoratorID["COOKIE"] = "cookie";
|
|
47
|
-
DecoratorID["COOKIES"] = "cookies";
|
|
48
|
-
DecoratorID["PATH"] = "path";
|
|
49
|
-
DecoratorID["PATHS"] = "paths";
|
|
50
|
-
DecoratorID["FILE"] = "file";
|
|
51
|
-
DecoratorID["FILES"] = "files";
|
|
52
|
-
})(DecoratorID = exports.DecoratorID || (exports.DecoratorID = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.DecoratorID = void 0;
|
|
10
|
+
var DecoratorID;
|
|
11
|
+
(function (DecoratorID) {
|
|
12
|
+
DecoratorID["CONTROLLER"] = "controller";
|
|
13
|
+
DecoratorID["DESCRIPTION"] = "description";
|
|
14
|
+
DecoratorID["EXAMPLE"] = "example";
|
|
15
|
+
DecoratorID["PRODUCES"] = "produces";
|
|
16
|
+
DecoratorID["ACCEPT"] = "accept";
|
|
17
|
+
DecoratorID["CONSUMES"] = "consumes";
|
|
18
|
+
DecoratorID["DEPRECATED"] = "deprecated";
|
|
19
|
+
DecoratorID["EXTENSION"] = "extension";
|
|
20
|
+
DecoratorID["HIDDEN"] = "hidden";
|
|
21
|
+
DecoratorID["SECURITY"] = "security";
|
|
22
|
+
DecoratorID["TAGS"] = "tags";
|
|
23
|
+
DecoratorID["MOUNT"] = "mount";
|
|
24
|
+
DecoratorID["ALL"] = "all";
|
|
25
|
+
DecoratorID["GET"] = "get";
|
|
26
|
+
DecoratorID["POST"] = "post";
|
|
27
|
+
DecoratorID["PUT"] = "put";
|
|
28
|
+
DecoratorID["DELETE"] = "delete";
|
|
29
|
+
DecoratorID["PATCH"] = "patch";
|
|
30
|
+
DecoratorID["OPTIONS"] = "options";
|
|
31
|
+
DecoratorID["HEAD"] = "head";
|
|
32
|
+
// Parameter
|
|
33
|
+
DecoratorID["IS_INT"] = "isInt";
|
|
34
|
+
DecoratorID["IS_LONG"] = "isLong";
|
|
35
|
+
DecoratorID["IS_FLOAT"] = "isFloat";
|
|
36
|
+
DecoratorID["IS_DOUBLE"] = "isDouble";
|
|
37
|
+
// Parameter Server
|
|
38
|
+
DecoratorID["CONTEXT"] = "context";
|
|
39
|
+
DecoratorID["PARAM"] = "param";
|
|
40
|
+
DecoratorID["PARAMS"] = "params";
|
|
41
|
+
DecoratorID["QUERY"] = "query";
|
|
42
|
+
DecoratorID["FORM"] = "form";
|
|
43
|
+
DecoratorID["BODY"] = "body";
|
|
44
|
+
DecoratorID["HEADER"] = "header";
|
|
45
|
+
DecoratorID["HEADERS"] = "headers";
|
|
46
|
+
DecoratorID["COOKIE"] = "cookie";
|
|
47
|
+
DecoratorID["COOKIES"] = "cookies";
|
|
48
|
+
DecoratorID["PATH"] = "path";
|
|
49
|
+
DecoratorID["PATHS"] = "paths";
|
|
50
|
+
DecoratorID["FILE"] = "file";
|
|
51
|
+
DecoratorID["FILES"] = "files";
|
|
52
|
+
})(DecoratorID = exports.DecoratorID || (exports.DecoratorID = {}));
|
|
53
53
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './property-manager';
|
|
3
|
-
export * from './resolver';
|
|
4
|
-
export * from './preset';
|
|
5
|
-
export * from './sets';
|
|
6
|
-
export * from './type';
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './property-manager';
|
|
3
|
+
export * from './resolver';
|
|
4
|
+
export * from './preset';
|
|
5
|
+
export * from './sets';
|
|
6
|
+
export * from './type';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/decorator/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
__exportStar(require("./constants"), exports);
|
|
24
|
-
__exportStar(require("./property-manager"), exports);
|
|
25
|
-
__exportStar(require("./resolver"), exports);
|
|
26
|
-
__exportStar(require("./preset"), exports);
|
|
27
|
-
__exportStar(require("./sets"), exports);
|
|
28
|
-
__exportStar(require("./type"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2021.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./constants"), exports);
|
|
24
|
+
__exportStar(require("./property-manager"), exports);
|
|
25
|
+
__exportStar(require("./resolver"), exports);
|
|
26
|
+
__exportStar(require("./preset"), exports);
|
|
27
|
+
__exportStar(require("./sets"), exports);
|
|
28
|
+
__exportStar(require("./type"), exports);
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './type';
|
|
2
|
-
export * from './utils';
|
|
1
|
+
export * from './type';
|
|
2
|
+
export * from './utils';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
__exportStar(require("./type"), exports);
|
|
24
|
-
__exportStar(require("./utils"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./type"), exports);
|
|
24
|
+
__exportStar(require("./utils"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DecoratorConfig } from '../type';
|
|
2
|
-
export type PresetSchema = {
|
|
3
|
-
extends: string[];
|
|
4
|
-
items: DecoratorConfig[];
|
|
5
|
-
};
|
|
1
|
+
import type { DecoratorConfig } from '../type';
|
|
2
|
+
export type PresetSchema = {
|
|
3
|
+
extends: string[];
|
|
4
|
+
items: DecoratorConfig[];
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
//# sourceMappingURL=type.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { PresetSchema } from '../type';
|
|
2
|
-
export declare function isPresetSchema(input: unknown): input is PresetSchema;
|
|
1
|
+
import type { PresetSchema } from '../type';
|
|
2
|
+
export declare function isPresetSchema(input: unknown): input is PresetSchema;
|
|
3
3
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.isPresetSchema = void 0;
|
|
10
|
-
const locter_1 = require("locter");
|
|
11
|
-
function isPresetSchema(input) {
|
|
12
|
-
return (0, locter_1.isObject)(input) &&
|
|
13
|
-
(0, locter_1.hasOwnProperty)(input, 'items') &&
|
|
14
|
-
Array.isArray(input.items) &&
|
|
15
|
-
(!(0, locter_1.hasOwnProperty)(input, 'extends') || Array.isArray(input.extends));
|
|
16
|
-
}
|
|
17
|
-
exports.isPresetSchema = isPresetSchema;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.isPresetSchema = void 0;
|
|
10
|
+
const locter_1 = require("locter");
|
|
11
|
+
function isPresetSchema(input) {
|
|
12
|
+
return (0, locter_1.isObject)(input) &&
|
|
13
|
+
(0, locter_1.hasOwnProperty)(input, 'items') &&
|
|
14
|
+
Array.isArray(input.items) &&
|
|
15
|
+
(!(0, locter_1.hasOwnProperty)(input, 'extends') || Array.isArray(input.extends));
|
|
16
|
+
}
|
|
17
|
+
exports.isPresetSchema = isPresetSchema;
|
|
18
18
|
//# sourceMappingURL=check.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './check';
|
|
2
|
-
export * from './load';
|
|
3
|
-
export * from './normalize';
|
|
1
|
+
export * from './check';
|
|
2
|
+
export * from './load';
|
|
3
|
+
export * from './normalize';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
__exportStar(require("./check"), exports);
|
|
24
|
-
__exportStar(require("./load"), exports);
|
|
25
|
-
__exportStar(require("./normalize"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./check"), exports);
|
|
24
|
+
__exportStar(require("./load"), exports);
|
|
25
|
+
__exportStar(require("./normalize"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DecoratorConfig } from '../../type';
|
|
2
|
-
export declare function loadPreset(input: string): Promise<DecoratorConfig[]>;
|
|
1
|
+
import type { DecoratorConfig } from '../../type';
|
|
2
|
+
export declare function loadPreset(input: string): Promise<DecoratorConfig[]>;
|
|
3
3
|
//# sourceMappingURL=load.d.ts.map
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.loadPreset = void 0;
|
|
10
|
-
const locter_1 = require("locter");
|
|
11
|
-
const check_1 = require("./check");
|
|
12
|
-
const normalize_1 = require("./normalize");
|
|
13
|
-
async function loadPreset(input) {
|
|
14
|
-
const items = [];
|
|
15
|
-
const lookupPaths = (0, normalize_1.generatePresetLookupPaths)(input);
|
|
16
|
-
let allFailed = true;
|
|
17
|
-
for (let i = 0; i < lookupPaths.length; i++) {
|
|
18
|
-
try {
|
|
19
|
-
const { value: content } = (0, locter_1.getModuleExport)(await (0, locter_1.load)(lookupPaths[i]));
|
|
20
|
-
if ((0, check_1.isPresetSchema)(content)) {
|
|
21
|
-
items.push(...content.items);
|
|
22
|
-
const extendsPromises = [];
|
|
23
|
-
if (content.extends) {
|
|
24
|
-
for (let j = 0; j < content.extends.length; j++) {
|
|
25
|
-
extendsPromises.push(loadPreset(content.extends[j]));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const output = await Promise.all(extendsPromises);
|
|
29
|
-
for (let j = 0; j < output.length; j++) {
|
|
30
|
-
items.push(...output[j]);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
allFailed = false;
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
// do nothing ...
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
if (allFailed) {
|
|
40
|
-
throw new Error(`The preset ${input} could not be resolved.`);
|
|
41
|
-
}
|
|
42
|
-
return items;
|
|
43
|
-
}
|
|
44
|
-
exports.loadPreset = loadPreset;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.loadPreset = void 0;
|
|
10
|
+
const locter_1 = require("locter");
|
|
11
|
+
const check_1 = require("./check");
|
|
12
|
+
const normalize_1 = require("./normalize");
|
|
13
|
+
async function loadPreset(input) {
|
|
14
|
+
const items = [];
|
|
15
|
+
const lookupPaths = (0, normalize_1.generatePresetLookupPaths)(input);
|
|
16
|
+
let allFailed = true;
|
|
17
|
+
for (let i = 0; i < lookupPaths.length; i++) {
|
|
18
|
+
try {
|
|
19
|
+
const { value: content } = (0, locter_1.getModuleExport)(await (0, locter_1.load)(lookupPaths[i]));
|
|
20
|
+
if ((0, check_1.isPresetSchema)(content)) {
|
|
21
|
+
items.push(...content.items);
|
|
22
|
+
const extendsPromises = [];
|
|
23
|
+
if (content.extends) {
|
|
24
|
+
for (let j = 0; j < content.extends.length; j++) {
|
|
25
|
+
extendsPromises.push(loadPreset(content.extends[j]));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const output = await Promise.all(extendsPromises);
|
|
29
|
+
for (let j = 0; j < output.length; j++) {
|
|
30
|
+
items.push(...output[j]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
allFailed = false;
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
// do nothing ...
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (allFailed) {
|
|
40
|
+
throw new Error(`The preset ${input} could not be resolved.`);
|
|
41
|
+
}
|
|
42
|
+
return items;
|
|
43
|
+
}
|
|
44
|
+
exports.loadPreset = loadPreset;
|
|
45
45
|
//# sourceMappingURL=load.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function generatePresetLookupPaths(input: string): string[];
|
|
1
|
+
export declare function generatePresetLookupPaths(input: string): string[];
|
|
2
2
|
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023.
|
|
4
|
-
* Author Peter Placzek (tada5hi)
|
|
5
|
-
* For the full copyright and license information,
|
|
6
|
-
* view the LICENSE file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.generatePresetLookupPaths = void 0;
|
|
13
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
14
|
-
function generatePresetLookupPaths(input) {
|
|
15
|
-
if (node_path_1.default.isAbsolute(input) || input.startsWith('./')) {
|
|
16
|
-
return [input];
|
|
17
|
-
}
|
|
18
|
-
if (input.startsWith('module:')) {
|
|
19
|
-
return [input.substring(0, 'module:'.length)];
|
|
20
|
-
}
|
|
21
|
-
if (!input.startsWith('@')) {
|
|
22
|
-
return [input, `@trapi/${input}`];
|
|
23
|
-
}
|
|
24
|
-
return [input];
|
|
25
|
-
}
|
|
26
|
-
exports.generatePresetLookupPaths = generatePresetLookupPaths;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.generatePresetLookupPaths = void 0;
|
|
13
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
14
|
+
function generatePresetLookupPaths(input) {
|
|
15
|
+
if (node_path_1.default.isAbsolute(input) || input.startsWith('./')) {
|
|
16
|
+
return [input];
|
|
17
|
+
}
|
|
18
|
+
if (input.startsWith('module:')) {
|
|
19
|
+
return [input.substring(0, 'module:'.length)];
|
|
20
|
+
}
|
|
21
|
+
if (!input.startsWith('@')) {
|
|
22
|
+
return [input, `@trapi/${input}`];
|
|
23
|
+
}
|
|
24
|
+
return [input];
|
|
25
|
+
}
|
|
26
|
+
exports.generatePresetLookupPaths = generatePresetLookupPaths;
|
|
27
27
|
//# sourceMappingURL=normalize.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './module';
|
|
2
|
-
export * from './utils';
|
|
1
|
+
export * from './module';
|
|
2
|
+
export * from './utils';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|