@scalar/api-client 2.20.1 → 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 +37 -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/v2/blocks/operation-block/helpers/build-request.js +1 -1
- 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/features/operation/Operation.vue.js +1 -1
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.20.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
8
|
+
|
|
9
|
+
#### Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- **@scalar/oas-utils@0.6.27**
|
|
12
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
13
|
+
|
|
14
|
+
- **@scalar/helpers@0.2.9**
|
|
15
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
16
|
+
|
|
17
|
+
- **@scalar/workspace-store@0.26.2**
|
|
18
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
19
|
+
|
|
20
|
+
- **@scalar/components@0.16.30**
|
|
21
|
+
|
|
22
|
+
- **@scalar/import@0.4.46**
|
|
23
|
+
|
|
24
|
+
- **@scalar/json-magic@0.9.3**
|
|
25
|
+
|
|
26
|
+
- **@scalar/object-utils@1.2.23**
|
|
27
|
+
|
|
28
|
+
- **@scalar/postman-to-openapi@0.4.1**
|
|
29
|
+
|
|
30
|
+
- **@scalar/sidebar@0.7.20**
|
|
31
|
+
|
|
32
|
+
- **@scalar/types@0.5.10**
|
|
33
|
+
|
|
34
|
+
- **@scalar/use-codemirror@0.13.24**
|
|
35
|
+
|
|
36
|
+
- **@scalar/openapi-parser@0.24.4**
|
|
37
|
+
|
|
38
|
+
- **@scalar/snippetz@0.6.8**
|
|
39
|
+
|
|
3
40
|
## 2.20.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjF"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { redirectToProxy as i } from "@scalar/helpers/url/redirect-to-proxy";
|
|
2
|
+
import { resolve as f } from "@scalar/import";
|
|
3
|
+
import { fetchWithProxyFallback as d } from "@scalar/oas-utils/helpers";
|
|
3
4
|
import { reactive as h } from "vue";
|
|
4
5
|
import { isUrl as m } from "../../../libs/isUrl.js";
|
|
5
|
-
function
|
|
6
|
+
function w() {
|
|
6
7
|
const n = h({
|
|
7
8
|
state: "idle",
|
|
8
9
|
content: null,
|
|
@@ -29,8 +30,8 @@ function v() {
|
|
|
29
30
|
error: null
|
|
30
31
|
};
|
|
31
32
|
try {
|
|
32
|
-
const t = await
|
|
33
|
-
fetch: (c) => fetch(r ?
|
|
33
|
+
const t = await f(e, {
|
|
34
|
+
fetch: (c) => fetch(r ? i(r, c) : c, {
|
|
34
35
|
cache: "no-cache"
|
|
35
36
|
})
|
|
36
37
|
});
|
|
@@ -101,5 +102,5 @@ function v() {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
+
w as useUrlPrefetcher
|
|
105
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAGxC,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAI9C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,aAAa,CAAC;IACvC,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAA;AAEtD,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,GAAI,yIAWpC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IAChC,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAC/C,OAAO,EAAE,OAAO,CAAA;CACjB,CAqPA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isDefined as N } from "@scalar/helpers/array/is-defined";
|
|
2
2
|
import { httpStatusCodes as Y } from "@scalar/helpers/http/http-status-codes";
|
|
3
3
|
import { mergeUrls as G } from "@scalar/helpers/url/merge-urls";
|
|
4
|
-
import { shouldUseProxy as H, redirectToProxy as J } from "@scalar/
|
|
4
|
+
import { shouldUseProxy as H, redirectToProxy as J } from "@scalar/helpers/url/redirect-to-proxy";
|
|
5
5
|
import { isElectron as U } from "../electron.js";
|
|
6
6
|
import { ERRORS as b, normalizeError as w } from "../errors.js";
|
|
7
7
|
import { normalizeHeaders as Z } from "../normalize-headers.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-request-cookies.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/set-request-cookies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-request-cookies.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/set-request-cookies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,mCAAmC,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAWrE;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,EACT,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG;IACF,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,CA8CA;AAyBD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,EAAE,qBAAqB,MAAM,KAAG,OAsB9E,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,MAAM,EAAE,EAAE,uBAAuB,MAAM,KAAG,MAUvF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { shouldUseProxy as f } from "@scalar/helpers/url/redirect-to-proxy";
|
|
1
2
|
import { cookieSchema as p } from "@scalar/oas-utils/entities/cookie";
|
|
2
|
-
import { shouldUseProxy as f } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { replaceTemplateVariables as $ } from "../string-template.js";
|
|
4
4
|
const l = "/";
|
|
5
5
|
function C({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canMethodHaveBody as S } from "@scalar/helpers/http/can-method-have-body";
|
|
2
|
-
import { shouldUseProxy as w, redirectToProxy as A } from "@scalar/
|
|
2
|
+
import { shouldUseProxy as w, redirectToProxy as A } from "@scalar/helpers/url/redirect-to-proxy";
|
|
3
3
|
import { getResolvedRef as B } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
4
|
import { isElectron as U } from "../../../../libs/electron.js";
|
|
5
5
|
import { ERRORS as h, normalizeError as D } from "../../../../libs/errors.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
|
|
2
2
|
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import { isElectron as u } from "../../../../libs/electron.js";
|
|
4
|
-
const i = "2.20.
|
|
4
|
+
const i = "2.20.2", m = "application/json", h = "*/*", c = (r, t, a) => ({
|
|
5
5
|
name: r,
|
|
6
6
|
defaultValue: t,
|
|
7
7
|
isOverridden: a.has(r.toLowerCase())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeUrlAbsolute as b } from "@scalar/helpers/url/make-url-absolute";
|
|
2
|
-
import { shouldUseProxy as E } from "@scalar/
|
|
2
|
+
import { shouldUseProxy as E } from "@scalar/helpers/url/redirect-to-proxy";
|
|
3
3
|
import { encode as A, fromUint8Array as C } from "js-base64";
|
|
4
4
|
const S = () => {
|
|
5
5
|
const s = new Uint8Array(32);
|
|
@@ -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
|
},
|
|
@@ -326,26 +326,26 @@
|
|
|
326
326
|
"whatwg-mimetype": "^4.0.0",
|
|
327
327
|
"yaml": "^2.8.0",
|
|
328
328
|
"zod": "^4.3.5",
|
|
329
|
-
"@scalar/components": "0.16.29",
|
|
330
329
|
"@scalar/analytics-client": "1.0.1",
|
|
331
|
-
"@scalar/import": "0.4.45",
|
|
332
|
-
"@scalar/helpers": "0.2.8",
|
|
333
|
-
"@scalar/icons": "0.5.2",
|
|
334
330
|
"@scalar/draggable": "0.3.0",
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/
|
|
338
|
-
"@scalar/
|
|
339
|
-
"@scalar/
|
|
331
|
+
"@scalar/components": "0.16.30",
|
|
332
|
+
"@scalar/helpers": "0.2.9",
|
|
333
|
+
"@scalar/import": "0.4.46",
|
|
334
|
+
"@scalar/icons": "0.5.2",
|
|
335
|
+
"@scalar/json-magic": "0.9.3",
|
|
336
|
+
"@scalar/object-utils": "1.2.23",
|
|
337
|
+
"@scalar/oas-utils": "0.6.27",
|
|
340
338
|
"@scalar/openapi-types": "0.5.3",
|
|
341
|
-
"@scalar/
|
|
342
|
-
"@scalar/
|
|
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",
|
|
343
345
|
"@scalar/themes": "0.13.26",
|
|
344
|
-
"@scalar/types": "0.5.9",
|
|
345
346
|
"@scalar/use-hooks": "0.3.6",
|
|
346
347
|
"@scalar/use-toasts": "0.9.1",
|
|
347
|
-
"@scalar/
|
|
348
|
-
"@scalar/workspace-store": "0.26.1"
|
|
348
|
+
"@scalar/workspace-store": "0.26.2"
|
|
349
349
|
},
|
|
350
350
|
"devDependencies": {
|
|
351
351
|
"@tailwindcss/vite": "^4.1.18",
|