@trapi/swagger 1.0.0-alpha.10 → 1.0.0-alpha.12
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/config/index.d.ts +2 -2
- package/dist/config/index.js +24 -24
- package/dist/config/type.d.ts +82 -82
- package/dist/config/type.js +8 -8
- package/dist/config/utils.d.ts +2 -2
- package/dist/config/utils.js +53 -53
- package/dist/constants.d.ts +14 -14
- package/dist/constants.js +26 -26
- package/dist/generator/abstract.d.ts +34 -28
- package/dist/generator/abstract.d.ts.map +1 -1
- package/dist/generator/abstract.js +251 -214
- package/dist/generator/abstract.js.map +1 -1
- package/dist/generator/index.d.ts +4 -4
- package/dist/generator/index.js +26 -26
- package/dist/generator/module.d.ts +13 -13
- package/dist/generator/module.js +34 -34
- package/dist/generator/v2/index.d.ts +1 -1
- package/dist/generator/v2/index.js +23 -23
- package/dist/generator/v2/module.d.ts +24 -26
- package/dist/generator/v2/module.d.ts.map +1 -1
- package/dist/generator/v2/module.js +516 -516
- package/dist/generator/v2/module.js.map +1 -1
- package/dist/generator/v3/index.d.ts +1 -1
- package/dist/generator/v3/index.js +23 -23
- package/dist/generator/v3/module.d.ts +29 -30
- package/dist/generator/v3/module.d.ts.map +1 -1
- package/dist/generator/v3/module.js +498 -507
- package/dist/generator/v3/module.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +29 -29
- package/dist/metadata.d.ts +3 -3
- package/dist/metadata.js +13 -13
- package/dist/schema/constants.d.ts +27 -6
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +39 -16
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +26 -26
- package/dist/schema/type.d.ts +138 -139
- package/dist/schema/type.d.ts.map +1 -1
- package/dist/schema/type.js +8 -8
- package/dist/schema/v2/constants.d.ts +7 -7
- package/dist/schema/v2/constants.js +17 -17
- package/dist/schema/v2/index.d.ts +2 -2
- package/dist/schema/v2/index.js +24 -24
- package/dist/schema/v2/type.d.ts +115 -115
- package/dist/schema/v2/type.d.ts.map +1 -1
- package/dist/schema/v2/type.js +8 -8
- package/dist/schema/v3/constants.d.ts +6 -6
- package/dist/schema/v3/constants.js +16 -16
- package/dist/schema/v3/index.d.ts +2 -2
- package/dist/schema/v3/index.js +24 -24
- package/dist/schema/v3/type.d.ts +158 -157
- package/dist/schema/v3/type.d.ts.map +1 -1
- package/dist/schema/v3/type.js +8 -8
- package/dist/type.d.ts +48 -48
- package/dist/type.js +8 -8
- package/dist/utils/character.d.ts +2 -2
- package/dist/utils/character.js +20 -20
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.js +26 -26
- package/dist/utils/object.d.ts +1 -1
- package/dist/utils/object.js +14 -14
- package/dist/utils/path.d.ts +1 -1
- package/dist/utils/path.js +20 -20
- package/dist/utils/value.d.ts +1 -1
- package/dist/utils/value.js +25 -25
- package/package.json +4 -4
package/dist/schema/v2/type.d.ts
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import type { CollectionFormat } from '@trapi/metadata';
|
|
2
|
-
import type { SecurityType } from '../../constants';
|
|
3
|
-
import type { ApiKeySecurity, BaseSecurity } from '../../type';
|
|
4
|
-
import type { TransferProtocol } from '../constants';
|
|
5
|
-
import type { BaseOperation, BaseResponse, BaseSchema, BaseSpec, BodyParameter,
|
|
6
|
-
export interface SpecV2 extends BaseSpec {
|
|
7
|
-
swagger: '2.0';
|
|
8
|
-
host?: string;
|
|
9
|
-
basePath?: string;
|
|
10
|
-
schemes?: string[];
|
|
11
|
-
consumes?: string[];
|
|
12
|
-
produces?: string[];
|
|
13
|
-
paths: {
|
|
14
|
-
[pathName: string]: Path<OperationV2, ResponseV2>;
|
|
15
|
-
};
|
|
16
|
-
definitions?: {
|
|
17
|
-
[definitionsName: string]: SchemaV2;
|
|
18
|
-
};
|
|
19
|
-
parameters?: {
|
|
20
|
-
[parameterName: string]: ParameterV2;
|
|
21
|
-
};
|
|
22
|
-
responses?: {
|
|
23
|
-
[responseName: string]: ResponseV2;
|
|
24
|
-
};
|
|
25
|
-
security?: SecurityV2[];
|
|
26
|
-
securityDefinitions?: {
|
|
27
|
-
[name: string]: SecurityV2;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
type PatternField = `x-${string}`;
|
|
31
|
-
export interface BaseParameterV2 {
|
|
32
|
-
type?:
|
|
33
|
-
format?:
|
|
34
|
-
allowEmptyValue?: boolean;
|
|
35
|
-
items?: Record<string, any>;
|
|
36
|
-
collectionFormat?: `${CollectionFormat}`;
|
|
37
|
-
default?: any;
|
|
38
|
-
maximum?: number;
|
|
39
|
-
exclusiveMaximum?: number;
|
|
40
|
-
minimum?: number;
|
|
41
|
-
exclusiveMinimum?: number;
|
|
42
|
-
maxLength?: number;
|
|
43
|
-
minLength?: number;
|
|
44
|
-
pattern?: string;
|
|
45
|
-
maxItems?: number;
|
|
46
|
-
minItems?: number;
|
|
47
|
-
uniqueItems?: number;
|
|
48
|
-
enum?: unknown[];
|
|
49
|
-
multipleOf?: number;
|
|
50
|
-
}
|
|
51
|
-
export interface BodyParameterV2 extends BodyParameter {
|
|
52
|
-
schema: BaseSchema<SchemaV2>;
|
|
53
|
-
}
|
|
54
|
-
export interface QueryParameterV2 extends QueryParameter, BaseParameterV2 {
|
|
55
|
-
}
|
|
56
|
-
export interface PathParameterV2 extends PathParameter, BaseParameterV2 {
|
|
57
|
-
}
|
|
58
|
-
export interface HeaderParameterV2 extends HeaderParameter, BaseParameterV2 {
|
|
59
|
-
}
|
|
60
|
-
export interface FormDataParameterV2 extends FormDataParameter, BaseParameterV2 {
|
|
61
|
-
}
|
|
62
|
-
export type ParameterV2 = (BodyParameterV2 | QueryParameterV2 | PathParameterV2 | HeaderParameterV2 | FormDataParameterV2) & {
|
|
63
|
-
[key: PatternField]: any | undefined;
|
|
64
|
-
};
|
|
65
|
-
export interface OperationV2 extends BaseOperation<ParameterV2, ResponseV2> {
|
|
66
|
-
consumes?: string[];
|
|
67
|
-
produces?: string[];
|
|
68
|
-
schemes?: `${TransferProtocol}`[];
|
|
69
|
-
}
|
|
70
|
-
export interface ResponseV2 extends BaseResponse {
|
|
71
|
-
schema?: SchemaV2;
|
|
72
|
-
headers?: {
|
|
73
|
-
[headerName: string]: HeaderV2;
|
|
74
|
-
};
|
|
75
|
-
examples?: {
|
|
76
|
-
[exampleName: string]: unknown;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export interface HeaderV2 {
|
|
80
|
-
type: 'string' | 'number' | 'integer' | 'boolean' | 'array';
|
|
81
|
-
}
|
|
82
|
-
export interface SchemaV2 extends BaseSchema<SchemaV2> {
|
|
83
|
-
['x-nullable']?: boolean;
|
|
84
|
-
['x-deprecated']?: boolean;
|
|
85
|
-
}
|
|
86
|
-
export interface BasicSecurityV2 extends BaseSecurity {
|
|
87
|
-
type: `${SecurityType.BASIC}`;
|
|
88
|
-
}
|
|
89
|
-
export interface BaseOAuthSecurityV2 extends BaseSecurity {
|
|
90
|
-
type: `${SecurityType.OAUTH2}`;
|
|
91
|
-
}
|
|
92
|
-
export interface OAuth2ImplicitSecurityV2 extends BaseOAuthSecurityV2 {
|
|
93
|
-
flow: 'implicit';
|
|
94
|
-
authorizationUrl: string;
|
|
95
|
-
scopes?: Record<string, string>;
|
|
96
|
-
}
|
|
97
|
-
export interface OAuth2PasswordSecurityV2 extends BaseOAuthSecurityV2 {
|
|
98
|
-
flow: 'password';
|
|
99
|
-
tokenUrl: string;
|
|
100
|
-
scopes?: Record<string, string>;
|
|
101
|
-
}
|
|
102
|
-
export interface OAuth2ApplicationSecurityV2 extends BaseOAuthSecurityV2 {
|
|
103
|
-
flow: 'application';
|
|
104
|
-
tokenUrl: string;
|
|
105
|
-
scopes?: Record<string, string>;
|
|
106
|
-
}
|
|
107
|
-
export interface OAuth2AccessCodeSecurityV2 extends BaseOAuthSecurityV2 {
|
|
108
|
-
flow: 'accessCode';
|
|
109
|
-
tokenUrl: string;
|
|
110
|
-
authorizationUrl: string;
|
|
111
|
-
scopes?: Record<string, string>;
|
|
112
|
-
}
|
|
113
|
-
export type OAuth2SecurityV2 = OAuth2AccessCodeSecurityV2 | OAuth2ApplicationSecurityV2 | OAuth2ImplicitSecurityV2 | OAuth2PasswordSecurityV2;
|
|
114
|
-
export type SecurityV2 = BasicSecurityV2 | OAuth2SecurityV2 | ApiKeySecurity;
|
|
115
|
-
export {};
|
|
1
|
+
import type { CollectionFormat } from '@trapi/metadata';
|
|
2
|
+
import type { SecurityType } from '../../constants';
|
|
3
|
+
import type { ApiKeySecurity, BaseSecurity } from '../../type';
|
|
4
|
+
import type { DataFormatName, DataTypeName, TransferProtocol } from '../constants';
|
|
5
|
+
import type { BaseOperation, BaseResponse, BaseSchema, BaseSpec, BodyParameter, FormDataParameter, HeaderParameter, Path, PathParameter, QueryParameter } from '../type';
|
|
6
|
+
export interface SpecV2 extends BaseSpec {
|
|
7
|
+
swagger: '2.0';
|
|
8
|
+
host?: string;
|
|
9
|
+
basePath?: string;
|
|
10
|
+
schemes?: string[];
|
|
11
|
+
consumes?: string[];
|
|
12
|
+
produces?: string[];
|
|
13
|
+
paths: {
|
|
14
|
+
[pathName: string]: Path<OperationV2, ResponseV2>;
|
|
15
|
+
};
|
|
16
|
+
definitions?: {
|
|
17
|
+
[definitionsName: string]: SchemaV2;
|
|
18
|
+
};
|
|
19
|
+
parameters?: {
|
|
20
|
+
[parameterName: string]: ParameterV2;
|
|
21
|
+
};
|
|
22
|
+
responses?: {
|
|
23
|
+
[responseName: string]: ResponseV2;
|
|
24
|
+
};
|
|
25
|
+
security?: SecurityV2[];
|
|
26
|
+
securityDefinitions?: {
|
|
27
|
+
[name: string]: SecurityV2;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
type PatternField = `x-${string}`;
|
|
31
|
+
export interface BaseParameterV2 {
|
|
32
|
+
type?: `${DataTypeName}`;
|
|
33
|
+
format?: `${DataFormatName}`;
|
|
34
|
+
allowEmptyValue?: boolean;
|
|
35
|
+
items?: Record<string, any>;
|
|
36
|
+
collectionFormat?: `${CollectionFormat}`;
|
|
37
|
+
default?: any;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: number;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: number;
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maxItems?: number;
|
|
46
|
+
minItems?: number;
|
|
47
|
+
uniqueItems?: number;
|
|
48
|
+
enum?: unknown[];
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface BodyParameterV2 extends BodyParameter {
|
|
52
|
+
schema: BaseSchema<SchemaV2>;
|
|
53
|
+
}
|
|
54
|
+
export interface QueryParameterV2 extends QueryParameter, BaseParameterV2 {
|
|
55
|
+
}
|
|
56
|
+
export interface PathParameterV2 extends PathParameter, BaseParameterV2 {
|
|
57
|
+
}
|
|
58
|
+
export interface HeaderParameterV2 extends HeaderParameter, BaseParameterV2 {
|
|
59
|
+
}
|
|
60
|
+
export interface FormDataParameterV2 extends FormDataParameter, BaseParameterV2 {
|
|
61
|
+
}
|
|
62
|
+
export type ParameterV2 = (BodyParameterV2 | QueryParameterV2 | PathParameterV2 | HeaderParameterV2 | FormDataParameterV2) & {
|
|
63
|
+
[key: PatternField]: any | undefined;
|
|
64
|
+
};
|
|
65
|
+
export interface OperationV2 extends BaseOperation<ParameterV2, ResponseV2> {
|
|
66
|
+
consumes?: string[];
|
|
67
|
+
produces?: string[];
|
|
68
|
+
schemes?: `${TransferProtocol}`[];
|
|
69
|
+
}
|
|
70
|
+
export interface ResponseV2 extends BaseResponse {
|
|
71
|
+
schema?: SchemaV2;
|
|
72
|
+
headers?: {
|
|
73
|
+
[headerName: string]: HeaderV2;
|
|
74
|
+
};
|
|
75
|
+
examples?: {
|
|
76
|
+
[exampleName: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export interface HeaderV2 {
|
|
80
|
+
type: 'string' | 'number' | 'integer' | 'boolean' | 'array';
|
|
81
|
+
}
|
|
82
|
+
export interface SchemaV2 extends BaseSchema<SchemaV2> {
|
|
83
|
+
['x-nullable']?: boolean;
|
|
84
|
+
['x-deprecated']?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface BasicSecurityV2 extends BaseSecurity {
|
|
87
|
+
type: `${SecurityType.BASIC}`;
|
|
88
|
+
}
|
|
89
|
+
export interface BaseOAuthSecurityV2 extends BaseSecurity {
|
|
90
|
+
type: `${SecurityType.OAUTH2}`;
|
|
91
|
+
}
|
|
92
|
+
export interface OAuth2ImplicitSecurityV2 extends BaseOAuthSecurityV2 {
|
|
93
|
+
flow: 'implicit';
|
|
94
|
+
authorizationUrl: string;
|
|
95
|
+
scopes?: Record<string, string>;
|
|
96
|
+
}
|
|
97
|
+
export interface OAuth2PasswordSecurityV2 extends BaseOAuthSecurityV2 {
|
|
98
|
+
flow: 'password';
|
|
99
|
+
tokenUrl: string;
|
|
100
|
+
scopes?: Record<string, string>;
|
|
101
|
+
}
|
|
102
|
+
export interface OAuth2ApplicationSecurityV2 extends BaseOAuthSecurityV2 {
|
|
103
|
+
flow: 'application';
|
|
104
|
+
tokenUrl: string;
|
|
105
|
+
scopes?: Record<string, string>;
|
|
106
|
+
}
|
|
107
|
+
export interface OAuth2AccessCodeSecurityV2 extends BaseOAuthSecurityV2 {
|
|
108
|
+
flow: 'accessCode';
|
|
109
|
+
tokenUrl: string;
|
|
110
|
+
authorizationUrl: string;
|
|
111
|
+
scopes?: Record<string, string>;
|
|
112
|
+
}
|
|
113
|
+
export type OAuth2SecurityV2 = OAuth2AccessCodeSecurityV2 | OAuth2ApplicationSecurityV2 | OAuth2ImplicitSecurityV2 | OAuth2PasswordSecurityV2;
|
|
114
|
+
export type SecurityV2 = BasicSecurityV2 | OAuth2SecurityV2 | ApiKeySecurity;
|
|
115
|
+
export {};
|
|
116
116
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/schema/v2/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/schema/v2/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EACR,aAAa,EACb,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,aAAa,EACb,cAAc,EACjB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,MAAO,SAAQ,QAAQ;IACpC,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA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ada5hi)
|
|
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) 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
//# sourceMappingURL=type.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum ParameterSourceV3 {
|
|
2
|
-
COOKIE = "cookie",
|
|
3
|
-
HEADER = "header",
|
|
4
|
-
PATH = "path",
|
|
5
|
-
QUERY = "query"
|
|
6
|
-
}
|
|
1
|
+
export declare enum ParameterSourceV3 {
|
|
2
|
+
COOKIE = "cookie",
|
|
3
|
+
HEADER = "header",
|
|
4
|
+
PATH = "path",
|
|
5
|
+
QUERY = "query"
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
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.ParameterSourceV3 = void 0;
|
|
10
|
-
var ParameterSourceV3;
|
|
11
|
-
(function (ParameterSourceV3) {
|
|
12
|
-
ParameterSourceV3["COOKIE"] = "cookie";
|
|
13
|
-
ParameterSourceV3["HEADER"] = "header";
|
|
14
|
-
ParameterSourceV3["PATH"] = "path";
|
|
15
|
-
ParameterSourceV3["QUERY"] = "query";
|
|
16
|
-
})(ParameterSourceV3 = exports.ParameterSourceV3 || (exports.ParameterSourceV3 = {}));
|
|
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.ParameterSourceV3 = void 0;
|
|
10
|
+
var ParameterSourceV3;
|
|
11
|
+
(function (ParameterSourceV3) {
|
|
12
|
+
ParameterSourceV3["COOKIE"] = "cookie";
|
|
13
|
+
ParameterSourceV3["HEADER"] = "header";
|
|
14
|
+
ParameterSourceV3["PATH"] = "path";
|
|
15
|
+
ParameterSourceV3["QUERY"] = "query";
|
|
16
|
+
})(ParameterSourceV3 = exports.ParameterSourceV3 || (exports.ParameterSourceV3 = {}));
|
|
17
17
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './type';
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './type';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/schema/v3/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2022.
|
|
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("./type"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
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("./type"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|