@scalar/api-client 2.20.0 → 2.20.2
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 +57 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +7 -6
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +32 -31
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +34 -33
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +3 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +28 -28
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +31 -22
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +2 -2
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/operation/helpers/combine-params.d.ts +2 -2
- package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/combine-params.js +11 -10
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +1 -1
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OperationObject,
|
|
1
|
+
import type { OperationObject, PathItemObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
/** Combine pathItem and operation parameters into a single, dereferenced parameter array */
|
|
3
|
-
export declare const combineParams: (pathParams?: PathItemObject["parameters"], operationParams?: OperationObject["parameters"]) =>
|
|
3
|
+
export declare const combineParams: (pathParams?: PathItemObject["parameters"], operationParams?: OperationObject["parameters"]) => OperationObject["parameters"];
|
|
4
4
|
//# sourceMappingURL=combine-params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/combine-params.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/combine-params.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAEnH,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,CAAC,YAAY,CAqB9B,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
+
const m = (a = [], r = []) => {
|
|
3
|
+
const o = r.flatMap((t) => {
|
|
4
|
+
const e = n(t);
|
|
5
|
+
return e ? `${e.in}:${e.name}` : [];
|
|
6
|
+
}), s = new Set(o);
|
|
7
|
+
return [...a.filter((t) => {
|
|
8
|
+
const e = n(t);
|
|
9
|
+
return e ? !s.has(`${e.in}:${e.name}`) : !1;
|
|
10
|
+
}), ...r];
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
m as combineParams
|
|
13
14
|
};
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (u) => {
|
|
35
35
|
u?.createNew && g.name === "request" && p();
|
|
36
|
-
}, v = "2.20.
|
|
36
|
+
}, v = "2.20.2";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,UAAU;AAChB,wEAAwE;AACxE,cAAc,MAAM;AACpB,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA4K/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,YAAK,EACN,cAAc,MAAM,GAAG,SAAS,KAC/B,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA2F/B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeUrlAbsolute as x } from "@scalar/helpers/url/make-url-absolute";
|
|
2
|
-
import { shouldUseProxy as U } from "@scalar/
|
|
2
|
+
import { shouldUseProxy as U } from "@scalar/helpers/url/redirect-to-proxy";
|
|
3
3
|
import { encode as w, fromUint8Array as S } from "js-base64";
|
|
4
4
|
const A = () => {
|
|
5
5
|
const e = new Uint8Array(32);
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.20.
|
|
21
|
+
"version": "2.20.2",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -328,24 +328,24 @@
|
|
|
328
328
|
"zod": "^4.3.5",
|
|
329
329
|
"@scalar/analytics-client": "1.0.1",
|
|
330
330
|
"@scalar/draggable": "0.3.0",
|
|
331
|
-
"@scalar/components": "0.16.
|
|
332
|
-
"@scalar/helpers": "0.2.
|
|
333
|
-
"@scalar/
|
|
331
|
+
"@scalar/components": "0.16.30",
|
|
332
|
+
"@scalar/helpers": "0.2.9",
|
|
333
|
+
"@scalar/import": "0.4.46",
|
|
334
334
|
"@scalar/icons": "0.5.2",
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/oas-utils": "0.6.
|
|
335
|
+
"@scalar/json-magic": "0.9.3",
|
|
336
|
+
"@scalar/object-utils": "1.2.23",
|
|
337
|
+
"@scalar/oas-utils": "0.6.27",
|
|
338
338
|
"@scalar/openapi-types": "0.5.3",
|
|
339
|
-
"@scalar/
|
|
340
|
-
"@scalar/
|
|
341
|
-
"@scalar/snippetz": "0.6.
|
|
339
|
+
"@scalar/postman-to-openapi": "0.4.1",
|
|
340
|
+
"@scalar/openapi-parser": "0.24.4",
|
|
341
|
+
"@scalar/snippetz": "0.6.8",
|
|
342
|
+
"@scalar/sidebar": "0.7.20",
|
|
343
|
+
"@scalar/types": "0.5.10",
|
|
344
|
+
"@scalar/use-codemirror": "0.13.24",
|
|
342
345
|
"@scalar/themes": "0.13.26",
|
|
343
|
-
"@scalar/
|
|
344
|
-
"@scalar/types": "0.5.9",
|
|
345
|
-
"@scalar/use-codemirror": "0.13.22",
|
|
346
|
+
"@scalar/use-hooks": "0.3.6",
|
|
346
347
|
"@scalar/use-toasts": "0.9.1",
|
|
347
|
-
"@scalar/workspace-store": "0.26.
|
|
348
|
-
"@scalar/use-hooks": "0.3.6"
|
|
348
|
+
"@scalar/workspace-store": "0.26.2"
|
|
349
349
|
},
|
|
350
350
|
"devDependencies": {
|
|
351
351
|
"@tailwindcss/vite": "^4.1.18",
|