@scalar/postman-to-openapi 0.7.32 → 0.7.34
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/CHANGELOG.md +16 -0
- package/README.md +2 -0
- package/dist/convert.d.ts.map +1 -1
- package/dist/convert.js +13 -11
- package/dist/helpers/auth.d.ts +5 -2
- package/dist/helpers/auth.d.ts.map +1 -1
- package/dist/helpers/auth.js +79 -19
- package/dist/helpers/form-data.d.ts +4 -0
- package/dist/helpers/form-data.d.ts.map +1 -1
- package/dist/helpers/form-data.js +13 -3
- package/dist/helpers/path-items.d.ts +6 -2
- package/dist/helpers/path-items.d.ts.map +1 -1
- package/dist/helpers/path-items.js +8 -5
- package/dist/helpers/prune-document.d.ts.map +1 -1
- package/dist/helpers/prune-document.js +7 -1
- package/dist/helpers/request-body.d.ts +3 -2
- package/dist/helpers/request-body.d.ts.map +1 -1
- package/dist/helpers/request-body.js +61 -9
- package/dist/types.d.ts +14 -12
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @scalar/postman-to-openapi
|
|
2
2
|
|
|
3
|
+
## 0.7.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#11092](https://github.com/scalar/scalar/pull/11092): Preserve folder authentication inheritance when converting collections and selected requests or folders.
|
|
8
|
+
Keep distinct authentication schemes separate so folder overrides do not change sibling authentication.
|
|
9
|
+
- [#11093](https://github.com/scalar/scalar/pull/11093): Preserve GraphQL queries and variables with explicit request body properties, and use the declared media type or application/octet-stream for file request bodies.
|
|
10
|
+
|
|
11
|
+
## 0.7.33
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#11076](https://github.com/scalar/scalar/pull/11076): Skip Postman auth types that OpenAPI cannot describe, such as AWS Signature, OAuth 1.0 and Hawk, instead of failing the whole conversion, convert digest auth to an HTTP digest scheme, and read the API key name and location from apikey auth, naming every key other than the default `api_key` header after its location and name so different keys no longer overwrite each other.
|
|
16
|
+
- [#11072](https://github.com/scalar/scalar/pull/11072): Import Postman form-data and urlencoded request bodies as named form rows, so the API client sends every field, code examples show the real field names and disabled rows stay disabled. Keep repeated keys in order, leave file fields empty until a file is attached, list repeated required fields once and keep fields named like `__proto__` in the schema.
|
|
17
|
+
- [#11004](https://github.com/scalar/scalar/pull/11004): Preserve package output paths and application aliases when building with TypeScript 6.
|
|
18
|
+
|
|
3
19
|
## 0.7.32
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -37,6 +37,8 @@ const result = await convert(myPostmanCollection)
|
|
|
37
37
|
console.log(result)
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
Authentication follows the request's own settings, then the nearest folder override, then the collection settings. This also applies when converting selected requests or folders with `requestIndexPaths`. A request or folder set to No Auth overrides inherited authentication.
|
|
41
|
+
|
|
40
42
|
### Detect Postman collections
|
|
41
43
|
|
|
42
44
|
Use `isPostmanCollection` to decide whether an input string should be parsed as a Postman collection before converting.
|
package/dist/convert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAoBxD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAoBxD,OAAO,KAAK,EAAsC,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEpF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,MAAM,EAAE,CAAA;AA6DvD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAA;AAisBhD,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAA;IACtD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,iBAAiB,EAAE,iBAAiB,GAAG,MAAM,EAC7C,OAAO,GAAE,cAA0C,GAClD,WAAW,CAAC,QAAQ,CAqOtB"}
|
package/dist/convert.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { processAuth } from './helpers/auth.js';
|
|
1
|
+
import { processAuth, resolveAuth } from './helpers/auth.js';
|
|
2
2
|
import { processContact } from './helpers/contact.js';
|
|
3
3
|
import { processExternalDocs } from './helpers/external-docs.js';
|
|
4
4
|
import { processLicense } from './helpers/license.js';
|
|
@@ -278,27 +278,28 @@ const getNodeAtPath = (items, path) => {
|
|
|
278
278
|
}
|
|
279
279
|
return node;
|
|
280
280
|
};
|
|
281
|
-
const
|
|
282
|
-
const
|
|
281
|
+
const collectParentContext = (items, path) => {
|
|
282
|
+
const context = { tags: [] };
|
|
283
283
|
if (path.length <= 1) {
|
|
284
|
-
return
|
|
284
|
+
return context;
|
|
285
285
|
}
|
|
286
286
|
let list = items;
|
|
287
287
|
for (let i = 0; i < path.length - 1; i++) {
|
|
288
288
|
const idx = path[i];
|
|
289
289
|
if (idx === undefined || idx < 0 || idx >= list.length) {
|
|
290
|
-
return [];
|
|
290
|
+
return { tags: [] };
|
|
291
291
|
}
|
|
292
292
|
const node = list[idx];
|
|
293
293
|
if (node === undefined || !isItemGroup(node)) {
|
|
294
|
-
return [];
|
|
294
|
+
return { tags: [] };
|
|
295
295
|
}
|
|
296
296
|
if (node.name) {
|
|
297
|
-
|
|
297
|
+
context.tags.push(node.name);
|
|
298
298
|
}
|
|
299
|
+
context.auth = resolveAuth(node.auth, context.auth);
|
|
299
300
|
list = node.item;
|
|
300
301
|
}
|
|
301
|
-
return
|
|
302
|
+
return context;
|
|
302
303
|
};
|
|
303
304
|
const dedupeIndexPaths = (paths) => {
|
|
304
305
|
const map = new Map();
|
|
@@ -627,6 +628,7 @@ export function convert(postmanCollection, options = { mergeOperation: false })
|
|
|
627
628
|
}
|
|
628
629
|
// Process each item in the collection and merge into OpenAPI spec
|
|
629
630
|
const allServerUsage = [];
|
|
631
|
+
const securitySchemes = { ...openapi.components?.securitySchemes };
|
|
630
632
|
const collectionVariableLookup = createCollectionVariableLookup(collection.variable);
|
|
631
633
|
if (collection.item) {
|
|
632
634
|
const usePathFilter = requestIndexPaths !== undefined;
|
|
@@ -639,8 +641,8 @@ export function convert(postmanCollection, options = { mergeOperation: false })
|
|
|
639
641
|
if (!node) {
|
|
640
642
|
continue;
|
|
641
643
|
}
|
|
642
|
-
const
|
|
643
|
-
const { paths: itemPaths, components: itemComponents, serverUsage, } = processItem(node, DEFAULT_EXAMPLE_NAME,
|
|
644
|
+
const parentContext = collectParentContext(collection.item, path);
|
|
645
|
+
const { paths: itemPaths, components: itemComponents, serverUsage, } = processItem(node, DEFAULT_EXAMPLE_NAME, parentContext.tags, '', mergeOperation, resolveTagName, collectionVariableLookup, keepHeaders, { inheritedAuth: parentContext.auth, securitySchemes });
|
|
644
646
|
allServerUsage.push(...serverUsage);
|
|
645
647
|
for (const [pathKey, pathItem] of Object.entries(itemPaths)) {
|
|
646
648
|
const normalizedPathKey = normalizePath(pathKey);
|
|
@@ -658,7 +660,7 @@ export function convert(postmanCollection, options = { mergeOperation: false })
|
|
|
658
660
|
const { tags, resolveTagName } = extractTags(collection.item, tagNamingStrategy);
|
|
659
661
|
assignTagsFromPostman(openapi, tags, isMergingIntoBase);
|
|
660
662
|
collection.item.forEach((item) => {
|
|
661
|
-
const { paths: itemPaths, components: itemComponents, serverUsage, } = processItem(item, DEFAULT_EXAMPLE_NAME, [], '', mergeOperation, resolveTagName, collectionVariableLookup, keepHeaders);
|
|
663
|
+
const { paths: itemPaths, components: itemComponents, serverUsage, } = processItem(item, DEFAULT_EXAMPLE_NAME, [], '', mergeOperation, resolveTagName, collectionVariableLookup, keepHeaders, { securitySchemes });
|
|
662
664
|
allServerUsage.push(...serverUsage);
|
|
663
665
|
openapi.paths = openapi.paths || {};
|
|
664
666
|
for (const [pathKey, pathItem] of Object.entries(itemPaths)) {
|
package/dist/helpers/auth.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { Auth } from '../types.js';
|
|
3
|
+
/** Resolves parent authentication when auth is omitted, null, or explicitly inherited. */
|
|
4
|
+
export declare const resolveAuth: (auth: Auth | null | undefined, parentAuth?: Auth) => Auth | undefined;
|
|
3
5
|
/**
|
|
4
6
|
* Processes authentication information from a Postman collection and updates
|
|
5
7
|
* the OpenAPI document with the corresponding security schemes and requirements.
|
|
6
|
-
* Supports API key, basic auth, bearer token, OAuth2, and no authentication types.
|
|
8
|
+
* Supports API key, basic auth, bearer token, digest, OAuth2, and no authentication types.
|
|
9
|
+
* Other Postman types, such as AWS Signature or Hawk, produce no scheme and no requirement.
|
|
7
10
|
*/
|
|
8
|
-
export declare function processAuth(auth: Auth): {
|
|
11
|
+
export declare function processAuth(auth: Auth, existingSchemes?: OpenAPIV3_1.ComponentsObject['securitySchemes']): {
|
|
9
12
|
securitySchemes: Record<string, OpenAPIV3_1.SecuritySchemeObject>;
|
|
10
13
|
security: OpenAPIV3_1.SecurityRequirementObject[];
|
|
11
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/helpers/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/helpers/auth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,SAAS,CAAA;AAEnD,0FAA0F;AAC1F,eAAO,MAAM,WAAW,GAAI,MAAM,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,aAAa,IAAI,KAAG,IAAI,GAAG,SACjC,CAAA;AA8LrD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,eAAe,GAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAM,GACpE;IACD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAA;IACjE,QAAQ,EAAE,WAAW,CAAC,yBAAyB,EAAE,CAAA;CAClD,CAgCA"}
|
package/dist/helpers/auth.js
CHANGED
|
@@ -1,25 +1,68 @@
|
|
|
1
|
+
import { isObjectLike } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { isObjectEqual } from '@scalar/helpers/object/is-object-equal';
|
|
3
|
+
/** Resolves parent authentication when auth is omitted, null, or explicitly inherited. */
|
|
4
|
+
export const resolveAuth = (auth, parentAuth) => auth && auth.type !== 'inherit' ? auth : parentAuth;
|
|
1
5
|
// Constants for security scheme names and URLs
|
|
2
6
|
const AUTH_SCHEMES = {
|
|
3
7
|
API_KEY: 'apikeyAuth',
|
|
4
8
|
BASIC: 'basicAuth',
|
|
5
9
|
BEARER: 'bearerAuth',
|
|
10
|
+
DIGEST: 'digestAuth',
|
|
6
11
|
OAUTH2: 'oauth2Auth',
|
|
7
12
|
};
|
|
8
13
|
const OAUTH2_DEFAULTS = {
|
|
9
14
|
AUTHORIZE_URL: '/oauth/authorize',
|
|
10
15
|
TOKEN_URL: '/oauth/token',
|
|
11
16
|
};
|
|
17
|
+
const API_KEY_DEFAULTS = {
|
|
18
|
+
NAME: 'api_key',
|
|
19
|
+
LOCATION: 'header',
|
|
20
|
+
};
|
|
21
|
+
const SCHEME_NAME_SAFE_CHAR = /[A-Za-z0-9_-]/;
|
|
22
|
+
/** Reads v2.1 attribute rows and v2.0 attribute objects as entries, because Postman exports both shapes. */
|
|
23
|
+
const toAttributeEntries = (attributes) => {
|
|
24
|
+
if (Array.isArray(attributes)) {
|
|
25
|
+
return attributes.map((attr) => [attr.key, attr.value]);
|
|
26
|
+
}
|
|
27
|
+
return isObjectLike(attributes) ? Object.entries(attributes) : [];
|
|
28
|
+
};
|
|
29
|
+
/** Collects attributes in a map, so names such as `__proto__` stay ordinary keys. */
|
|
30
|
+
const toAttributeMap = (attributes) => {
|
|
31
|
+
const attrMap = new Map();
|
|
32
|
+
toAttributeEntries(attributes).forEach(([key, value]) => {
|
|
33
|
+
if (key && value !== undefined && value !== null) {
|
|
34
|
+
attrMap.set(key, String(value));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return attrMap;
|
|
38
|
+
};
|
|
39
|
+
/** Escapes each byte a component key cannot hold as a dot plus hex, so different names never share a scheme key. */
|
|
40
|
+
const escapeSchemeNamePart = (value) => Array.from(new TextEncoder().encode(value), (byte) => {
|
|
41
|
+
const char = String.fromCharCode(byte);
|
|
42
|
+
return SCHEME_NAME_SAFE_CHAR.test(char) ? char : `.${byte.toString(16).toUpperCase().padStart(2, '0')}`;
|
|
43
|
+
}).join('');
|
|
12
44
|
/**
|
|
13
45
|
* Creates security configuration for API key authentication
|
|
46
|
+
* Uses the Postman key name and location, and falls back to a header like Postman does
|
|
14
47
|
*/
|
|
15
|
-
function createApiKeyConfig() {
|
|
48
|
+
function createApiKeyConfig(auth) {
|
|
49
|
+
const attrMap = toAttributeMap(auth?.apikey);
|
|
50
|
+
const name = attrMap.get('key') || API_KEY_DEFAULTS.NAME;
|
|
51
|
+
// Postman only offers header and query, so any other value is sent as a header.
|
|
52
|
+
const location = attrMap.get('in') === 'query' ? 'query' : API_KEY_DEFAULTS.LOCATION;
|
|
53
|
+
// Two API keys with different names or locations must not overwrite each other in components.
|
|
54
|
+
const isDefault = name === API_KEY_DEFAULTS.NAME && location === API_KEY_DEFAULTS.LOCATION;
|
|
55
|
+
const schemeName = isDefault
|
|
56
|
+
? AUTH_SCHEMES.API_KEY
|
|
57
|
+
: `${AUTH_SCHEMES.API_KEY}_${location}_${escapeSchemeNamePart(name)}`;
|
|
16
58
|
return {
|
|
17
59
|
scheme: {
|
|
18
60
|
type: 'apiKey',
|
|
19
|
-
name
|
|
20
|
-
in:
|
|
61
|
+
name,
|
|
62
|
+
in: location,
|
|
21
63
|
},
|
|
22
|
-
requirement: { [
|
|
64
|
+
requirement: { [schemeName]: [] },
|
|
65
|
+
schemeName,
|
|
23
66
|
};
|
|
24
67
|
}
|
|
25
68
|
/**
|
|
@@ -46,6 +89,18 @@ function createBearerConfig() {
|
|
|
46
89
|
requirement: { [AUTH_SCHEMES.BEARER]: [] },
|
|
47
90
|
};
|
|
48
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates security configuration for Digest authentication
|
|
94
|
+
*/
|
|
95
|
+
function createDigestConfig() {
|
|
96
|
+
return {
|
|
97
|
+
scheme: {
|
|
98
|
+
type: 'http',
|
|
99
|
+
scheme: 'digest',
|
|
100
|
+
},
|
|
101
|
+
requirement: { [AUTH_SCHEMES.DIGEST]: [] },
|
|
102
|
+
};
|
|
103
|
+
}
|
|
49
104
|
/**
|
|
50
105
|
* Creates security configuration for OAuth2 authentication
|
|
51
106
|
* Extracts actual OAuth2 URLs and scopes from the Postman auth object
|
|
@@ -57,13 +112,7 @@ function createOAuth2Config(auth) {
|
|
|
57
112
|
requirement: {},
|
|
58
113
|
};
|
|
59
114
|
}
|
|
60
|
-
const
|
|
61
|
-
const attrMap = new Map();
|
|
62
|
-
oauth2Attrs.forEach((attr) => {
|
|
63
|
-
if (attr.key && attr.value !== undefined) {
|
|
64
|
-
attrMap.set(attr.key, String(attr.value));
|
|
65
|
-
}
|
|
66
|
-
});
|
|
115
|
+
const attrMap = toAttributeMap(auth.oauth2);
|
|
67
116
|
const authUrl = attrMap.get('authUrl') || attrMap.get('authorizationUrl') || OAUTH2_DEFAULTS.AUTHORIZE_URL;
|
|
68
117
|
const tokenUrl = attrMap.get('accessTokenUrl') || attrMap.get('tokenUrl') || OAUTH2_DEFAULTS.TOKEN_URL;
|
|
69
118
|
const scopeValue = attrMap.get('scope') || '';
|
|
@@ -100,33 +149,44 @@ function createNoAuthConfig() {
|
|
|
100
149
|
}
|
|
101
150
|
/**
|
|
102
151
|
* Maps authentication types to their configuration creators
|
|
152
|
+
* Types missing here cannot be described in OpenAPI, so they are skipped
|
|
103
153
|
*/
|
|
104
154
|
const AUTH_TYPE_HANDLERS = {
|
|
105
155
|
apikey: createApiKeyConfig,
|
|
106
156
|
basic: createBasicConfig,
|
|
107
157
|
bearer: createBearerConfig,
|
|
158
|
+
digest: createDigestConfig,
|
|
108
159
|
oauth2: createOAuth2Config,
|
|
109
160
|
noauth: createNoAuthConfig,
|
|
110
161
|
};
|
|
111
162
|
/**
|
|
112
163
|
* Processes authentication information from a Postman collection and updates
|
|
113
164
|
* the OpenAPI document with the corresponding security schemes and requirements.
|
|
114
|
-
* Supports API key, basic auth, bearer token, OAuth2, and no authentication types.
|
|
165
|
+
* Supports API key, basic auth, bearer token, digest, OAuth2, and no authentication types.
|
|
166
|
+
* Other Postman types, such as AWS Signature or Hawk, produce no scheme and no requirement.
|
|
115
167
|
*/
|
|
116
|
-
export function processAuth(auth) {
|
|
168
|
+
export function processAuth(auth, existingSchemes = {}) {
|
|
117
169
|
const securitySchemes = {};
|
|
118
170
|
const security = [];
|
|
119
171
|
try {
|
|
120
|
-
|
|
172
|
+
// The type comes from the document, so an inherited key such as `constructor` is not a handler.
|
|
173
|
+
const handler = Object.hasOwn(AUTH_TYPE_HANDLERS, auth.type) ? AUTH_TYPE_HANDLERS[auth.type] : undefined;
|
|
121
174
|
if (!handler) {
|
|
122
|
-
|
|
175
|
+
return { securitySchemes, security };
|
|
123
176
|
}
|
|
124
|
-
const { scheme, requirement } = handler(auth);
|
|
177
|
+
const { scheme, requirement, schemeName = `${auth.type}Auth` } = handler(auth);
|
|
125
178
|
// Only add security schemes and requirements if they're not empty
|
|
126
179
|
if (Object.keys(scheme).length > 0) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
180
|
+
// Distinct OAuth2 endpoints or scopes must not change authentication on other operations.
|
|
181
|
+
let resolvedName = schemeName;
|
|
182
|
+
for (let suffix = 2; Object.hasOwn(existingSchemes, resolvedName); suffix++) {
|
|
183
|
+
if (isObjectEqual(existingSchemes[resolvedName], scheme)) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
resolvedName = `${schemeName}_${suffix}`;
|
|
187
|
+
}
|
|
188
|
+
securitySchemes[resolvedName] = scheme;
|
|
189
|
+
security.push({ [resolvedName]: requirement[schemeName] ?? [] });
|
|
130
190
|
}
|
|
131
191
|
}
|
|
132
192
|
catch (error) {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { FormParameter } from '../types.js';
|
|
3
|
+
/** Defines the field as an own property, so a field named `__proto__` is kept instead of replacing the prototype. */
|
|
4
|
+
export declare const setFormFieldSchema: (properties: Record<string, OpenAPIV3_1.SchemaObject>, key: string, property: OpenAPIV3_1.SchemaObject) => void;
|
|
5
|
+
/** Lists a field in `required` once, so repeated Postman keys do not duplicate it. */
|
|
6
|
+
export declare const addRequiredFormField: (required: string[], key: string) => void;
|
|
3
7
|
/**
|
|
4
8
|
* Processes form data parameters from a Postman request and converts them into an OpenAPI schema.
|
|
5
9
|
* Handles file uploads, required fields, and descriptions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-data.d.ts","sourceRoot":"","sources":["../../src/helpers/form-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,WAAW,CAAC,YAAY,CAiDzF"}
|
|
1
|
+
{"version":3,"file":"form-data.d.ts","sourceRoot":"","sources":["../../src/helpers/form-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,qHAAqH;AACrH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,EACpD,KAAK,MAAM,EACX,UAAU,WAAW,CAAC,YAAY,KACjC,IAEF,CAAA;AAED,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,EAAE,EAAE,KAAK,MAAM,KAAG,IAItE,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,WAAW,CAAC,YAAY,CAiDzF"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/** Defines the field as an own property, so a field named `__proto__` is kept instead of replacing the prototype. */
|
|
2
|
+
export const setFormFieldSchema = (properties, key, property) => {
|
|
3
|
+
Object.defineProperty(properties, key, { value: property, enumerable: true, writable: true, configurable: true });
|
|
4
|
+
};
|
|
5
|
+
/** Lists a field in `required` once, so repeated Postman keys do not duplicate it. */
|
|
6
|
+
export const addRequiredFormField = (required, key) => {
|
|
7
|
+
if (!required.includes(key)) {
|
|
8
|
+
required.push(key);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
1
11
|
/**
|
|
2
12
|
* Processes form data parameters from a Postman request and converts them into an OpenAPI schema.
|
|
3
13
|
* Handles file uploads, required fields, and descriptions.
|
|
@@ -20,8 +30,8 @@ export function processFormDataSchema(formdata) {
|
|
|
20
30
|
const descriptionText = typeof item.description === 'string' ? item.description : item.description.content || '';
|
|
21
31
|
property.description = descriptionText.replace(' [required]', '');
|
|
22
32
|
// If [required] was present, add to required array
|
|
23
|
-
if (descriptionText.includes('[required]')) {
|
|
24
|
-
schema.required
|
|
33
|
+
if (descriptionText.includes('[required]') && schema.required) {
|
|
34
|
+
addRequiredFormField(schema.required, item.key);
|
|
25
35
|
}
|
|
26
36
|
}
|
|
27
37
|
// Handle file type fields
|
|
@@ -35,7 +45,7 @@ export function processFormDataSchema(formdata) {
|
|
|
35
45
|
if (item.disabled === true) {
|
|
36
46
|
property['x-scalar-disabled'] = true;
|
|
37
47
|
}
|
|
38
|
-
schema.properties
|
|
48
|
+
setFormFieldSchema(schema.properties, item.key, property);
|
|
39
49
|
});
|
|
40
50
|
// Only keep required array if it has items
|
|
41
51
|
if (schema.required?.length === 0) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
import type { Item, ItemGroup } from '../types.js';
|
|
2
|
+
import type { Auth, Item, ItemGroup } from '../types.js';
|
|
3
3
|
type HttpMethods = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace';
|
|
4
4
|
export declare const POSTMAN_EXAMPLE_NAME_EXTENSION = "x-postman-example-name";
|
|
5
5
|
export declare const POSTMAN_PRE_REQUEST_SCRIPTS_EXTENSION = "x-postman-pre-request-scripts";
|
|
@@ -15,13 +15,17 @@ export type ServerUsage = {
|
|
|
15
15
|
method: HttpMethods;
|
|
16
16
|
};
|
|
17
17
|
type CollectionVariableLookup = ReadonlyMap<string, string>;
|
|
18
|
+
type AuthContext = {
|
|
19
|
+
inheritedAuth?: Auth;
|
|
20
|
+
securitySchemes: NonNullable<OpenAPIV3_1.ComponentsObject['securitySchemes']>;
|
|
21
|
+
};
|
|
18
22
|
/**
|
|
19
23
|
* Processes a Postman collection item or item group and returns
|
|
20
24
|
* the corresponding OpenAPI paths and components.
|
|
21
25
|
* Handles nested item groups, extracts request details, and generates corresponding
|
|
22
26
|
* OpenAPI path items and operations.
|
|
23
27
|
*/
|
|
24
|
-
export declare function processItem(item: Item | ItemGroup, exampleName?: string, parentTags?: string[], parentPath?: string, preserveCollapsedVariants?: boolean, resolveTagName?: (segments: string[]) => string | undefined, collectionVariableLookup?: CollectionVariableLookup, keepHeaders?: readonly string[]): {
|
|
28
|
+
export declare function processItem(item: Item | ItemGroup, exampleName?: string, parentTags?: string[], parentPath?: string, preserveCollapsedVariants?: boolean, resolveTagName?: (segments: string[]) => string | undefined, collectionVariableLookup?: CollectionVariableLookup, keepHeaders?: readonly string[], authContext?: AuthContext): {
|
|
25
29
|
paths: OpenAPIV3_1.PathsObject;
|
|
26
30
|
components: OpenAPIV3_1.ComponentsObject;
|
|
27
31
|
serverUsage: ServerUsage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-items.d.ts","sourceRoot":"","sources":["../../src/helpers/path-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"path-items.d.ts","sourceRoot":"","sources":["../../src/helpers/path-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAYpD,KAAK,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;AAE7F,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,qCAAqC,kCAAkC,CAAA;AACpF,eAAO,MAAM,uCAAu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|
|
2
2
|
import { parseMediaType, pickAcceptMediaType, readHeader } from './header-utils.js';
|
|
3
3
|
import { parseMdTable } from './markdown.js';
|
|
4
4
|
import { extractParameters } from './parameters.js';
|
|
@@ -35,14 +35,14 @@ function ensureRequestBodyContent(requestBody) {
|
|
|
35
35
|
* Handles nested item groups, extracts request details, and generates corresponding
|
|
36
36
|
* OpenAPI path items and operations.
|
|
37
37
|
*/
|
|
38
|
-
export function processItem(item, exampleName = 'default', parentTags = [], parentPath = '', preserveCollapsedVariants = false, resolveTagName, collectionVariableLookup = new Map(), keepHeaders) {
|
|
38
|
+
export function processItem(item, exampleName = 'default', parentTags = [], parentPath = '', preserveCollapsedVariants = false, resolveTagName, collectionVariableLookup = new Map(), keepHeaders, authContext = { securitySchemes: {} }) {
|
|
39
39
|
const paths = {};
|
|
40
40
|
const components = {};
|
|
41
41
|
const serverUsage = [];
|
|
42
42
|
if ('item' in item && Array.isArray(item.item)) {
|
|
43
43
|
const newParentTags = item.name ? [...parentTags, item.name] : parentTags;
|
|
44
44
|
item.item.forEach((childItem) => {
|
|
45
|
-
const childResult = processItem(childItem, exampleName, newParentTags, `${parentPath}/${item.name || ''}`, preserveCollapsedVariants, resolveTagName, collectionVariableLookup, keepHeaders);
|
|
45
|
+
const childResult = processItem(childItem, exampleName, newParentTags, `${parentPath}/${item.name || ''}`, preserveCollapsedVariants, resolveTagName, collectionVariableLookup, keepHeaders, { ...authContext, inheritedAuth: resolveAuth(item.auth, authContext.inheritedAuth) });
|
|
46
46
|
// Merge child paths and components
|
|
47
47
|
for (const [pathKey, pathItem] of Object.entries(childResult.paths)) {
|
|
48
48
|
if (!paths[pathKey]) {
|
|
@@ -175,11 +175,14 @@ export function processItem(item, exampleName = 'default', parentTags = [], pare
|
|
|
175
175
|
if (mergedParameters.size > 0) {
|
|
176
176
|
operationObject.parameters = Array.from(mergedParameters.values());
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
// Only folder and request overrides need operation security; collection auth stays at the document root.
|
|
179
|
+
const auth = resolveAuth(typeof request === 'string' ? undefined : request.auth, authContext.inheritedAuth);
|
|
180
|
+
if (auth) {
|
|
179
181
|
if (!operationObject.security) {
|
|
180
182
|
operationObject.security = [];
|
|
181
183
|
}
|
|
182
|
-
const { securitySchemes, security } = processAuth(
|
|
184
|
+
const { securitySchemes, security } = processAuth(auth, authContext.securitySchemes);
|
|
185
|
+
Object.assign(authContext.securitySchemes, securitySchemes);
|
|
183
186
|
if (!components.securitySchemes) {
|
|
184
187
|
components.securitySchemes = {};
|
|
185
188
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prune-document.d.ts","sourceRoot":"","sources":["../../src/helpers/prune-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"prune-document.d.ts","sourceRoot":"","sources":["../../src/helpers/prune-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAoCxD;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,WAAW,CAAC,QAAQ,KAAG,WAAW,CAAC,QAqB1E,CAAA"}
|
|
@@ -15,7 +15,13 @@ const removeUndefinedValues = (value) => {
|
|
|
15
15
|
for (const [key, val] of Object.entries(value)) {
|
|
16
16
|
const cleanedValue = removeUndefinedValues(val);
|
|
17
17
|
if (cleanedValue !== undefined) {
|
|
18
|
-
|
|
18
|
+
// Define the key, so a name like `__proto__` stays data instead of replacing the prototype.
|
|
19
|
+
Object.defineProperty(cleaned, key, {
|
|
20
|
+
value: cleanedValue,
|
|
21
|
+
enumerable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
});
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
return cleaned;
|
|
@@ -2,10 +2,11 @@ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
|
2
2
|
import type { RequestBody } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extracts and converts the request body from a Postman request to an OpenAPI RequestBodyObject.
|
|
5
|
-
* Handles raw
|
|
5
|
+
* Handles raw, GraphQL, file, form-data, and URL-encoded body types.
|
|
6
6
|
*
|
|
7
7
|
* When `contentType` is provided (already normalised via `parseMediaType`), it
|
|
8
|
-
* wins over the Postman `options.raw.language` hint for `raw` bodies
|
|
8
|
+
* wins over the Postman `options.raw.language` hint for `raw` bodies and the
|
|
9
|
+
* default media type for GraphQL and file bodies.
|
|
9
10
|
* `formdata` and `urlencoded` modes keep their natural media types.
|
|
10
11
|
*/
|
|
11
12
|
export declare function extractRequestBody(body: RequestBody, exampleName: string, contentType?: string): OpenAPIV3_1.RequestBodyObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/helpers/request-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAiB,WAAW,EAAuB,MAAM,SAAS,CAAA;AAK9E
|
|
1
|
+
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/helpers/request-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAiB,WAAW,EAAuB,MAAM,SAAS,CAAA;AAK9E;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,GACnB,WAAW,CAAC,iBAAiB,CAoD/B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { processFormDataSchema } from './form-data.js';
|
|
1
|
+
import { addRequiredFormField, processFormDataSchema, setFormFieldSchema } from './form-data.js';
|
|
2
2
|
import { createParameterObject } from './parameters.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extracts and converts the request body from a Postman request to an OpenAPI RequestBodyObject.
|
|
5
|
-
* Handles raw
|
|
5
|
+
* Handles raw, GraphQL, file, form-data, and URL-encoded body types.
|
|
6
6
|
*
|
|
7
7
|
* When `contentType` is provided (already normalised via `parseMediaType`), it
|
|
8
|
-
* wins over the Postman `options.raw.language` hint for `raw` bodies
|
|
8
|
+
* wins over the Postman `options.raw.language` hint for `raw` bodies and the
|
|
9
|
+
* default media type for GraphQL and file bodies.
|
|
9
10
|
* `formdata` and `urlencoded` modes keep their natural media types.
|
|
10
11
|
*/
|
|
11
12
|
export function extractRequestBody(body, exampleName, contentType) {
|
|
@@ -16,6 +17,35 @@ export function extractRequestBody(body, exampleName, contentType) {
|
|
|
16
17
|
handleRawBody(body, requestBody, exampleName, contentType);
|
|
17
18
|
return requestBody;
|
|
18
19
|
}
|
|
20
|
+
if (body.mode === 'graphql') {
|
|
21
|
+
const variables = parseGraphqlVariables(body.graphql?.variables);
|
|
22
|
+
requestBody.content = {
|
|
23
|
+
[contentType ?? 'application/json']: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
query: { type: 'string' },
|
|
28
|
+
variables: { type: 'object' },
|
|
29
|
+
},
|
|
30
|
+
required: ['query'],
|
|
31
|
+
},
|
|
32
|
+
examples: {
|
|
33
|
+
[exampleName]: {
|
|
34
|
+
value: {
|
|
35
|
+
query: body.graphql?.query ?? '',
|
|
36
|
+
...(variables !== undefined && { variables }),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
return requestBody;
|
|
43
|
+
}
|
|
44
|
+
if (body.mode === 'file') {
|
|
45
|
+
// A local filename is not the uploaded content and must not become an example.
|
|
46
|
+
requestBody.content = { [contentType ?? 'application/octet-stream']: {} };
|
|
47
|
+
return requestBody;
|
|
48
|
+
}
|
|
19
49
|
if (body.mode === 'formdata' && body.formdata) {
|
|
20
50
|
handleFormDataBody(body.formdata, requestBody, exampleName);
|
|
21
51
|
return requestBody;
|
|
@@ -26,6 +56,22 @@ export function extractRequestBody(body, exampleName, contentType) {
|
|
|
26
56
|
}
|
|
27
57
|
return requestBody;
|
|
28
58
|
}
|
|
59
|
+
/** Parses exported JSON variables while preserving unresolved templates or malformed input. */
|
|
60
|
+
const parseGraphqlVariables = (variables) => {
|
|
61
|
+
if (typeof variables !== 'string') {
|
|
62
|
+
return variables;
|
|
63
|
+
}
|
|
64
|
+
if (!variables.trim()) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
const parsed = JSON.parse(variables);
|
|
69
|
+
return parsed;
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return variables;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
29
75
|
function handleRawBody(body, requestBody, exampleName, contentType) {
|
|
30
76
|
const rawBody = body.raw || '';
|
|
31
77
|
const isJsonLanguage = body.options?.raw?.language === 'json';
|
|
@@ -70,13 +116,19 @@ function handleRawBody(body, requestBody, exampleName, contentType) {
|
|
|
70
116
|
},
|
|
71
117
|
};
|
|
72
118
|
}
|
|
119
|
+
/** Keeps every Postman row in order, including repeated keys, and leaves file rows empty until a file is attached. */
|
|
120
|
+
const toFormRows = (rows) => rows.map((row) => ({
|
|
121
|
+
name: row.key,
|
|
122
|
+
value: 'type' in row && row.type === 'file' ? '' : (row.value ?? ''),
|
|
123
|
+
isDisabled: row.disabled === true,
|
|
124
|
+
}));
|
|
73
125
|
function handleFormDataBody(formdata, requestBody, exampleName) {
|
|
74
126
|
requestBody.content = {
|
|
75
127
|
'multipart/form-data': {
|
|
76
128
|
schema: processFormDataSchema(formdata),
|
|
77
129
|
examples: {
|
|
78
130
|
[exampleName]: {
|
|
79
|
-
value: formdata,
|
|
131
|
+
value: toFormRows(formdata),
|
|
80
132
|
},
|
|
81
133
|
},
|
|
82
134
|
},
|
|
@@ -93,16 +145,16 @@ function handleUrlEncodedBody(urlencoded, requestBody, exampleName) {
|
|
|
93
145
|
const paramObject = createParameterObject(item, 'query', exampleName);
|
|
94
146
|
const property = {
|
|
95
147
|
type: 'string',
|
|
96
|
-
examples: [item.value],
|
|
148
|
+
examples: [item.value ?? ''],
|
|
97
149
|
description: paramObject.description,
|
|
98
150
|
};
|
|
99
151
|
// Add x-scalar-disabled extension if parameter is disabled
|
|
100
152
|
if (item.disabled === true) {
|
|
101
153
|
property['x-scalar-disabled'] = true;
|
|
102
154
|
}
|
|
103
|
-
schema.properties
|
|
104
|
-
if (paramObject.required) {
|
|
105
|
-
schema.required
|
|
155
|
+
setFormFieldSchema(schema.properties, item.key, property);
|
|
156
|
+
if (paramObject.required && schema.required) {
|
|
157
|
+
addRequiredFormField(schema.required, item.key);
|
|
106
158
|
}
|
|
107
159
|
}
|
|
108
160
|
});
|
|
@@ -111,7 +163,7 @@ function handleUrlEncodedBody(urlencoded, requestBody, exampleName) {
|
|
|
111
163
|
schema,
|
|
112
164
|
examples: {
|
|
113
165
|
[exampleName]: {
|
|
114
|
-
value: urlencoded,
|
|
166
|
+
value: toFormRows(urlencoded),
|
|
115
167
|
},
|
|
116
168
|
},
|
|
117
169
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -89,17 +89,19 @@ export type Variable = {
|
|
|
89
89
|
export type Auth = {
|
|
90
90
|
type: string;
|
|
91
91
|
noauth?: null;
|
|
92
|
-
apikey?:
|
|
93
|
-
awsv4?:
|
|
94
|
-
basic?:
|
|
95
|
-
bearer?:
|
|
96
|
-
digest?:
|
|
97
|
-
edgegrid?:
|
|
98
|
-
hawk?:
|
|
99
|
-
ntlm?:
|
|
100
|
-
oauth1?:
|
|
101
|
-
oauth2?:
|
|
102
|
-
};
|
|
92
|
+
apikey?: AuthAttributes;
|
|
93
|
+
awsv4?: AuthAttributes;
|
|
94
|
+
basic?: AuthAttributes;
|
|
95
|
+
bearer?: AuthAttributes;
|
|
96
|
+
digest?: AuthAttributes;
|
|
97
|
+
edgegrid?: AuthAttributes;
|
|
98
|
+
hawk?: AuthAttributes;
|
|
99
|
+
ntlm?: AuthAttributes;
|
|
100
|
+
oauth1?: AuthAttributes;
|
|
101
|
+
oauth2?: AuthAttributes;
|
|
102
|
+
};
|
|
103
|
+
/** Postman v2.1 lists attributes as key/value rows, while v2.0 uses one object. */
|
|
104
|
+
export type AuthAttributes = AuthAttribute[] | Record<string, string | number | boolean>;
|
|
103
105
|
type AuthAttribute = {
|
|
104
106
|
key: string;
|
|
105
107
|
value?: string | number | boolean;
|
|
@@ -145,7 +147,7 @@ export type RequestBody = {
|
|
|
145
147
|
raw?: string;
|
|
146
148
|
graphql?: {
|
|
147
149
|
query?: string;
|
|
148
|
-
variables?: Record<string,
|
|
150
|
+
variables?: string | Record<string, unknown> | null;
|
|
149
151
|
};
|
|
150
152
|
urlencoded?: UrlEncodedParameter[];
|
|
151
153
|
formdata?: FormParameter[];
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,EAAE,CAAC,IAAI,GAAG,SAAS,CAAC,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD,CAAA;AAED,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,WAAW,GACnB,MAAM,GAC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,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;KACd,CAAC,CAAA;CACH,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,CAAA;AAED,KAAK,uBAAuB,GAAG,EAE9B,CAAA"}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"export",
|
|
20
20
|
"scalar"
|
|
21
21
|
],
|
|
22
|
-
"version": "0.7.
|
|
22
|
+
"version": "0.7.34",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=22"
|
|
25
25
|
},
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"CHANGELOG.md"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@scalar/helpers": "0.18.
|
|
42
|
-
"@scalar/openapi-types": "0.9.
|
|
41
|
+
"@scalar/helpers": "0.18.1",
|
|
42
|
+
"@scalar/openapi-types": "0.9.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@scalar/openapi-parser": "0.29.
|
|
45
|
+
"@scalar/openapi-parser": "0.29.25",
|
|
46
46
|
"@types/node": "^24.19.2",
|
|
47
|
-
"vite": "8.3.
|
|
47
|
+
"vite": "8.3.8"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|