@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.
Files changed (68) hide show
  1. package/dist/config/index.d.ts +2 -2
  2. package/dist/config/index.js +24 -24
  3. package/dist/config/type.d.ts +82 -82
  4. package/dist/config/type.js +8 -8
  5. package/dist/config/utils.d.ts +2 -2
  6. package/dist/config/utils.js +53 -53
  7. package/dist/constants.d.ts +14 -14
  8. package/dist/constants.js +26 -26
  9. package/dist/generator/abstract.d.ts +34 -28
  10. package/dist/generator/abstract.d.ts.map +1 -1
  11. package/dist/generator/abstract.js +251 -214
  12. package/dist/generator/abstract.js.map +1 -1
  13. package/dist/generator/index.d.ts +4 -4
  14. package/dist/generator/index.js +26 -26
  15. package/dist/generator/module.d.ts +13 -13
  16. package/dist/generator/module.js +34 -34
  17. package/dist/generator/v2/index.d.ts +1 -1
  18. package/dist/generator/v2/index.js +23 -23
  19. package/dist/generator/v2/module.d.ts +24 -26
  20. package/dist/generator/v2/module.d.ts.map +1 -1
  21. package/dist/generator/v2/module.js +516 -516
  22. package/dist/generator/v2/module.js.map +1 -1
  23. package/dist/generator/v3/index.d.ts +1 -1
  24. package/dist/generator/v3/index.js +23 -23
  25. package/dist/generator/v3/module.d.ts +29 -30
  26. package/dist/generator/v3/module.d.ts.map +1 -1
  27. package/dist/generator/v3/module.js +498 -507
  28. package/dist/generator/v3/module.js.map +1 -1
  29. package/dist/index.d.ts +7 -7
  30. package/dist/index.js +29 -29
  31. package/dist/metadata.d.ts +3 -3
  32. package/dist/metadata.js +13 -13
  33. package/dist/schema/constants.d.ts +27 -6
  34. package/dist/schema/constants.d.ts.map +1 -1
  35. package/dist/schema/constants.js +39 -16
  36. package/dist/schema/constants.js.map +1 -1
  37. package/dist/schema/index.d.ts +4 -4
  38. package/dist/schema/index.js +26 -26
  39. package/dist/schema/type.d.ts +138 -139
  40. package/dist/schema/type.d.ts.map +1 -1
  41. package/dist/schema/type.js +8 -8
  42. package/dist/schema/v2/constants.d.ts +7 -7
  43. package/dist/schema/v2/constants.js +17 -17
  44. package/dist/schema/v2/index.d.ts +2 -2
  45. package/dist/schema/v2/index.js +24 -24
  46. package/dist/schema/v2/type.d.ts +115 -115
  47. package/dist/schema/v2/type.d.ts.map +1 -1
  48. package/dist/schema/v2/type.js +8 -8
  49. package/dist/schema/v3/constants.d.ts +6 -6
  50. package/dist/schema/v3/constants.js +16 -16
  51. package/dist/schema/v3/index.d.ts +2 -2
  52. package/dist/schema/v3/index.js +24 -24
  53. package/dist/schema/v3/type.d.ts +158 -157
  54. package/dist/schema/v3/type.d.ts.map +1 -1
  55. package/dist/schema/v3/type.js +8 -8
  56. package/dist/type.d.ts +48 -48
  57. package/dist/type.js +8 -8
  58. package/dist/utils/character.d.ts +2 -2
  59. package/dist/utils/character.js +20 -20
  60. package/dist/utils/index.d.ts +4 -4
  61. package/dist/utils/index.js +26 -26
  62. package/dist/utils/object.d.ts +1 -1
  63. package/dist/utils/object.js +14 -14
  64. package/dist/utils/path.d.ts +1 -1
  65. package/dist/utils/path.js +20 -20
  66. package/dist/utils/value.d.ts +1 -1
  67. package/dist/utils/value.js +25 -25
  68. package/package.json +4 -4
@@ -1,158 +1,159 @@
1
- import type { SecurityType } from '../../constants';
2
- import type { ApiKeySecurity, BaseSecurity } from '../../type';
3
- import type { BaseOperation, BaseResponse, BaseSchema, BaseSpec, BodyParameter, DataFormat, DataType, Example, FormDataParameter, HeaderParameter, Path, PathParameter, QueryParameter } from '../type';
4
- import type { ParameterSourceV3 } from './constants';
5
- export interface SpecV3 extends BaseSpec {
6
- openapi: string;
7
- servers: ServerV3[];
8
- components: ComponentsV3;
9
- paths: PathsV3;
10
- }
11
- export interface ServerV3 {
12
- url: string;
13
- description?: string;
14
- variables?: Record<string, VariableV3>;
15
- }
16
- export interface VariableV3 {
17
- enum?: string[];
18
- description?: string;
19
- default: string;
20
- }
21
- export interface ComponentsV3 {
22
- callbacks?: {
23
- [name: string]: any;
24
- };
25
- examples?: {
26
- [name: string]: Example | string;
27
- };
28
- headers?: {
29
- [name: string]: any;
30
- };
31
- links?: {
32
- [name: string]: any;
33
- };
34
- parameters?: {
35
- [name: string]: ParameterV3;
36
- };
37
- requestBodies?: {
38
- [name: string]: any;
39
- };
40
- responses?: {
41
- [name: string]: ResponseV3;
42
- };
43
- schemas?: {
44
- [name: string]: SchemaV3;
45
- };
46
- securitySchemes?: {
47
- [name: string]: SecurityV3;
48
- };
49
- }
50
- export interface PathsV3 {
51
- [key: string]: Path<OperationV3, ParameterV3>;
52
- }
53
- export interface BaseParameterV3 {
54
- /**
55
- * Default: false
56
- */
57
- deprecated?: boolean;
58
- /**
59
- * Default: false
60
- */
61
- allowEmptyValue?: boolean;
62
- style?: string;
63
- explode?: boolean;
64
- allowReserved?: boolean;
65
- schema?: BaseSchema<SchemaV3>;
66
- example?: unknown;
67
- examples?: Record<string, Example | string>;
68
- content?: Record<string, any>;
69
- }
70
- export interface BodyParameterV3 extends BodyParameter, BaseParameterV3 {
71
- }
72
- export interface CookieParameterV3 extends BaseParameterV3 {
73
- in: `${ParameterSourceV3.COOKIE}`;
74
- }
75
- export interface QueryParameterV3 extends QueryParameter, BaseParameterV3 {
76
- }
77
- export interface PathParameterV3 extends PathParameter, BaseParameterV3 {
78
- }
79
- export interface HeaderParameterV3 extends HeaderParameter, BaseParameterV3 {
80
- }
81
- export interface FormDataParameterV3 extends FormDataParameter, BaseParameterV3 {
82
- }
83
- export type ParameterV3 = BodyParameterV3 | CookieParameterV3 | QueryParameterV3 | PathParameterV3 | HeaderParameterV3 | FormDataParameterV3;
84
- export interface OperationV3 extends BaseOperation<ParameterV3, ResponseV3> {
85
- requestBody?: RequestBodyV3;
86
- [key: string]: unknown;
87
- }
88
- export interface ResponseV3 extends BaseResponse {
89
- content?: Record<string, {
90
- schema: SchemaV3;
91
- examples?: Record<string, Example>;
92
- }>;
93
- headers?: {
94
- [name: string]: HeaderV3;
95
- };
96
- }
97
- export interface HeaderV3 extends Omit<BaseSchema<SchemaV3>, 'required'> {
98
- required?: boolean;
99
- description?: string;
100
- example?: unknown;
101
- examples?: Record<string, Example | string>;
102
- schema: BaseSchema<SchemaV3>;
103
- type?: DataType;
104
- format?: DataFormat;
105
- }
106
- export interface RequestBodyV3 {
107
- content: {
108
- [name: string]: MediaTypeV3;
109
- };
110
- description?: string;
111
- required?: boolean;
112
- }
113
- export interface MediaTypeV3 {
114
- schema?: SchemaV3;
115
- example?: Example;
116
- examples?: Record<string, Example | string>;
117
- encoding?: {
118
- [name: string]: any;
119
- };
120
- }
121
- export interface SchemaV3 extends BaseSchema<SchemaV3> {
122
- nullable?: boolean;
123
- anyOf?: SchemaV3[];
124
- allOf?: SchemaV3[];
125
- deprecated?: boolean;
126
- }
127
- export interface BasicSecurityV3 extends BaseSecurity {
128
- type: `${SecurityType.HTTP}`;
129
- schema: 'basic';
130
- }
131
- export interface OAuth2SecurityV3 extends BaseSecurity {
132
- type: `${SecurityType.OAUTH2}`;
133
- flows: {
134
- implicit?: OAuth2ImplicitFlowV3;
135
- password?: OAuth2PasswordFlowV3;
136
- authorizationCode?: OAuth2AuthorizationCodeFlowV3;
137
- clientCredentials?: OAuth2ClientCredentialsFlowV3;
138
- };
139
- }
140
- export interface Oauth2BaseFlowV3 {
141
- scopes?: Record<string, string>;
142
- refreshUrl?: string;
143
- }
144
- export interface OAuth2ImplicitFlowV3 extends Oauth2BaseFlowV3 {
145
- authorizationUrl: string;
146
- }
147
- export interface OAuth2PasswordFlowV3 extends Oauth2BaseFlowV3 {
148
- tokenUrl: string;
149
- }
150
- export interface OAuth2AuthorizationCodeFlowV3 extends Oauth2BaseFlowV3 {
151
- authorizationUrl: string;
152
- tokenUrl: string;
153
- }
154
- export interface OAuth2ClientCredentialsFlowV3 extends Oauth2BaseFlowV3 {
155
- tokenUrl: string;
156
- }
157
- export type SecurityV3 = BasicSecurityV3 | OAuth2SecurityV3 | ApiKeySecurity;
1
+ import type { SecurityType } from '../../constants';
2
+ import type { ApiKeySecurity, BaseSecurity } from '../../type';
3
+ import type { DataFormatName, DataTypeName } from '../constants';
4
+ import type { BaseOperation, BaseResponse, BaseSchema, BaseSpec, BodyParameter, Example, FormDataParameter, HeaderParameter, Path, PathParameter, QueryParameter } from '../type';
5
+ import type { ParameterSourceV3 } from './constants';
6
+ export interface SpecV3 extends BaseSpec {
7
+ openapi: string;
8
+ servers: ServerV3[];
9
+ components: ComponentsV3;
10
+ paths: PathsV3;
11
+ }
12
+ export interface ServerV3 {
13
+ url: string;
14
+ description?: string;
15
+ variables?: Record<string, VariableV3>;
16
+ }
17
+ export interface VariableV3 {
18
+ enum?: string[];
19
+ description?: string;
20
+ default: string;
21
+ }
22
+ export interface ComponentsV3 {
23
+ callbacks?: {
24
+ [name: string]: any;
25
+ };
26
+ examples?: {
27
+ [name: string]: Example | string;
28
+ };
29
+ headers?: {
30
+ [name: string]: any;
31
+ };
32
+ links?: {
33
+ [name: string]: any;
34
+ };
35
+ parameters?: {
36
+ [name: string]: ParameterV3;
37
+ };
38
+ requestBodies?: {
39
+ [name: string]: any;
40
+ };
41
+ responses?: {
42
+ [name: string]: ResponseV3;
43
+ };
44
+ schemas?: {
45
+ [name: string]: SchemaV3;
46
+ };
47
+ securitySchemes?: {
48
+ [name: string]: SecurityV3;
49
+ };
50
+ }
51
+ export interface PathsV3 {
52
+ [key: string]: Path<OperationV3, ParameterV3>;
53
+ }
54
+ export interface BaseParameterV3 {
55
+ /**
56
+ * Default: false
57
+ */
58
+ deprecated?: boolean;
59
+ /**
60
+ * Default: false
61
+ */
62
+ allowEmptyValue?: boolean;
63
+ style?: string;
64
+ explode?: boolean;
65
+ allowReserved?: boolean;
66
+ schema?: BaseSchema<SchemaV3>;
67
+ example?: unknown;
68
+ examples?: Record<string, Example | string>;
69
+ content?: Record<string, any>;
70
+ }
71
+ export interface BodyParameterV3 extends BodyParameter, BaseParameterV3 {
72
+ }
73
+ export interface CookieParameterV3 extends BaseParameterV3 {
74
+ in: `${ParameterSourceV3.COOKIE}`;
75
+ }
76
+ export interface QueryParameterV3 extends QueryParameter, BaseParameterV3 {
77
+ }
78
+ export interface PathParameterV3 extends PathParameter, BaseParameterV3 {
79
+ }
80
+ export interface HeaderParameterV3 extends HeaderParameter, BaseParameterV3 {
81
+ }
82
+ export interface FormDataParameterV3 extends FormDataParameter, BaseParameterV3 {
83
+ }
84
+ export type ParameterV3 = BodyParameterV3 | CookieParameterV3 | QueryParameterV3 | PathParameterV3 | HeaderParameterV3 | FormDataParameterV3;
85
+ export interface OperationV3 extends BaseOperation<ParameterV3, ResponseV3> {
86
+ requestBody?: RequestBodyV3;
87
+ [key: string]: unknown;
88
+ }
89
+ export interface ResponseV3 extends BaseResponse {
90
+ content?: Record<string, {
91
+ schema: SchemaV3;
92
+ examples?: Record<string, Example>;
93
+ }>;
94
+ headers?: {
95
+ [name: string]: HeaderV3;
96
+ };
97
+ }
98
+ export interface HeaderV3 extends Omit<BaseSchema<SchemaV3>, 'required'> {
99
+ required?: boolean;
100
+ description?: string;
101
+ example?: unknown;
102
+ examples?: Record<string, Example | string>;
103
+ schema: BaseSchema<SchemaV3>;
104
+ type?: `${DataTypeName}`;
105
+ format?: `${DataFormatName}`;
106
+ }
107
+ export interface RequestBodyV3 {
108
+ content: {
109
+ [name: string]: MediaTypeV3;
110
+ };
111
+ description?: string;
112
+ required?: boolean;
113
+ }
114
+ export interface MediaTypeV3 {
115
+ schema?: SchemaV3;
116
+ example?: Example;
117
+ examples?: Record<string, Example | string>;
118
+ encoding?: {
119
+ [name: string]: any;
120
+ };
121
+ }
122
+ export interface SchemaV3 extends BaseSchema<SchemaV3> {
123
+ nullable?: boolean;
124
+ anyOf?: SchemaV3[];
125
+ allOf?: SchemaV3[];
126
+ deprecated?: boolean;
127
+ }
128
+ export interface BasicSecurityV3 extends BaseSecurity {
129
+ type: `${SecurityType.HTTP}`;
130
+ schema: 'basic';
131
+ }
132
+ export interface OAuth2SecurityV3 extends BaseSecurity {
133
+ type: `${SecurityType.OAUTH2}`;
134
+ flows: {
135
+ implicit?: OAuth2ImplicitFlowV3;
136
+ password?: OAuth2PasswordFlowV3;
137
+ authorizationCode?: OAuth2AuthorizationCodeFlowV3;
138
+ clientCredentials?: OAuth2ClientCredentialsFlowV3;
139
+ };
140
+ }
141
+ export interface Oauth2BaseFlowV3 {
142
+ scopes?: Record<string, string>;
143
+ refreshUrl?: string;
144
+ }
145
+ export interface OAuth2ImplicitFlowV3 extends Oauth2BaseFlowV3 {
146
+ authorizationUrl: string;
147
+ }
148
+ export interface OAuth2PasswordFlowV3 extends Oauth2BaseFlowV3 {
149
+ tokenUrl: string;
150
+ }
151
+ export interface OAuth2AuthorizationCodeFlowV3 extends Oauth2BaseFlowV3 {
152
+ authorizationUrl: string;
153
+ tokenUrl: string;
154
+ }
155
+ export interface OAuth2ClientCredentialsFlowV3 extends Oauth2BaseFlowV3 {
156
+ tokenUrl: string;
157
+ }
158
+ export type SecurityV3 = BasicSecurityV3 | OAuth2SecurityV3 | ApiKeySecurity;
158
159
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/schema/v3/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EACR,aAAa,EAAE,YAAY,EAC3B,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAClE,iBAAiB,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAC1E,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,MAAO,SAAQ,QAAQ;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB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W,oBAAqB,SAAQ,gBAAgB;IAC1D,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,CAAC"}
@@ -1,9 +1,9 @@
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 });
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
package/dist/type.d.ts CHANGED
@@ -1,49 +1,49 @@
1
- import type { SecurityType } from './constants';
2
- export interface DocumentFormatData {
3
- path: string;
4
- name: string;
5
- content?: string;
6
- }
7
- export interface BaseSecurity {
8
- description?: string;
9
- }
10
- export interface ApiKeySecurity extends BaseSecurity {
11
- type: `${SecurityType.API_KEY}`;
12
- name: string;
13
- in: 'query' | 'header';
14
- }
15
- export interface BasicSecurity extends BaseSecurity {
16
- type: `${SecurityType.HTTP}`;
17
- schema: 'basic';
18
- }
19
- export interface OAuth2Security extends BaseSecurity {
20
- type: `${SecurityType.OAUTH2}`;
21
- flows: {
22
- implicit?: OAuth2ImplicitFlow;
23
- password?: OAuth2PasswordFlow;
24
- authorizationCode?: OAuth2AuthorizationCodeFlow;
25
- clientCredentials?: OAuth2ClientCredentialsFlow;
26
- };
27
- }
28
- export interface Oauth2BaseFlow {
29
- scopes?: Record<string, string>;
30
- refreshUrl?: string;
31
- }
32
- export interface OAuth2ImplicitFlow extends Oauth2BaseFlow {
33
- authorizationUrl: string;
34
- }
35
- export interface OAuth2PasswordFlow extends Oauth2BaseFlow {
36
- tokenUrl: string;
37
- }
38
- export interface OAuth2AuthorizationCodeFlow extends Oauth2BaseFlow {
39
- authorizationUrl: string;
40
- tokenUrl: string;
41
- }
42
- export interface OAuth2ClientCredentialsFlow extends Oauth2BaseFlow {
43
- tokenUrl: string;
44
- }
45
- export type SecurityDefinition = ApiKeySecurity | BasicSecurity | OAuth2Security;
46
- export interface SecurityDefinitions {
47
- [key: string]: SecurityDefinition;
48
- }
1
+ import type { SecurityType } from './constants';
2
+ export interface DocumentFormatData {
3
+ path: string;
4
+ name: string;
5
+ content?: string;
6
+ }
7
+ export interface BaseSecurity {
8
+ description?: string;
9
+ }
10
+ export interface ApiKeySecurity extends BaseSecurity {
11
+ type: `${SecurityType.API_KEY}`;
12
+ name: string;
13
+ in: 'query' | 'header';
14
+ }
15
+ export interface BasicSecurity extends BaseSecurity {
16
+ type: `${SecurityType.HTTP}`;
17
+ schema: 'basic';
18
+ }
19
+ export interface OAuth2Security extends BaseSecurity {
20
+ type: `${SecurityType.OAUTH2}`;
21
+ flows: {
22
+ implicit?: OAuth2ImplicitFlow;
23
+ password?: OAuth2PasswordFlow;
24
+ authorizationCode?: OAuth2AuthorizationCodeFlow;
25
+ clientCredentials?: OAuth2ClientCredentialsFlow;
26
+ };
27
+ }
28
+ export interface Oauth2BaseFlow {
29
+ scopes?: Record<string, string>;
30
+ refreshUrl?: string;
31
+ }
32
+ export interface OAuth2ImplicitFlow extends Oauth2BaseFlow {
33
+ authorizationUrl: string;
34
+ }
35
+ export interface OAuth2PasswordFlow extends Oauth2BaseFlow {
36
+ tokenUrl: string;
37
+ }
38
+ export interface OAuth2AuthorizationCodeFlow extends Oauth2BaseFlow {
39
+ authorizationUrl: string;
40
+ tokenUrl: string;
41
+ }
42
+ export interface OAuth2ClientCredentialsFlow extends Oauth2BaseFlow {
43
+ tokenUrl: string;
44
+ }
45
+ export type SecurityDefinition = ApiKeySecurity | BasicSecurity | OAuth2Security;
46
+ export interface SecurityDefinitions {
47
+ [key: string]: SecurityDefinition;
48
+ }
49
49
  //# sourceMappingURL=type.d.ts.map
package/dist/type.js CHANGED
@@ -1,9 +1,9 @@
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 });
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,3 +1,3 @@
1
- export declare function removeDuplicateSlashes(str: string): string;
2
- export declare function removeFinalCharacter(str: string, character: string): string;
1
+ export declare function removeDuplicateSlashes(str: string): string;
2
+ export declare function removeFinalCharacter(str: string, character: string): string;
3
3
  //# sourceMappingURL=character.d.ts.map
@@ -1,21 +1,21 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2021-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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.removeFinalCharacter = exports.removeDuplicateSlashes = void 0;
10
- function removeDuplicateSlashes(str) {
11
- return str.replace('/([^:]$)/+/g', '$1');
12
- }
13
- exports.removeDuplicateSlashes = removeDuplicateSlashes;
14
- function removeFinalCharacter(str, character) {
15
- while (str.charAt(str.length - 1) === character && str.length > 0) {
16
- str = str.slice(0, -1);
17
- }
18
- return str;
19
- }
20
- exports.removeFinalCharacter = removeFinalCharacter;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2021-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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.removeFinalCharacter = exports.removeDuplicateSlashes = void 0;
10
+ function removeDuplicateSlashes(str) {
11
+ return str.replace('/([^:]$)/+/g', '$1');
12
+ }
13
+ exports.removeDuplicateSlashes = removeDuplicateSlashes;
14
+ function removeFinalCharacter(str, character) {
15
+ while (str.charAt(str.length - 1) === character && str.length > 0) {
16
+ str = str.slice(0, -1);
17
+ }
18
+ return str;
19
+ }
20
+ exports.removeFinalCharacter = removeFinalCharacter;
21
21
  //# sourceMappingURL=character.js.map
@@ -1,5 +1,5 @@
1
- export * from './character';
2
- export * from './path';
3
- export * from './object';
4
- export * from './value';
1
+ export * from './character';
2
+ export * from './path';
3
+ export * from './object';
4
+ export * from './value';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,27 +1,27 @@
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("./character"), exports);
24
- __exportStar(require("./path"), exports);
25
- __exportStar(require("./object"), exports);
26
- __exportStar(require("./value"), 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("./character"), exports);
24
+ __exportStar(require("./path"), exports);
25
+ __exportStar(require("./object"), exports);
26
+ __exportStar(require("./value"), exports);
27
27
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export declare function hasOwnProperty<X extends {}, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
1
+ export declare function hasOwnProperty<X extends {}, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
2
2
  //# sourceMappingURL=object.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2021-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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.hasOwnProperty = void 0;
10
- // eslint-disable-next-line @typescript-eslint/ban-types
11
- function hasOwnProperty(obj, prop) {
12
- return Object.prototype.hasOwnProperty.call(obj, prop);
13
- }
14
- exports.hasOwnProperty = hasOwnProperty;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2021-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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.hasOwnProperty = void 0;
10
+ // eslint-disable-next-line @typescript-eslint/ban-types
11
+ function hasOwnProperty(obj, prop) {
12
+ return Object.prototype.hasOwnProperty.call(obj, prop);
13
+ }
14
+ exports.hasOwnProperty = hasOwnProperty;
15
15
  //# sourceMappingURL=object.js.map
@@ -1,2 +1,2 @@
1
- export declare function normalizePathParameters(str: string): string;
1
+ export declare function normalizePathParameters(str: string): string;
2
2
  //# sourceMappingURL=path.d.ts.map