@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
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
|
+
|
|
40
|
+
## 2.20.1
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- [#7888](https://github.com/scalar/scalar/pull/7888): fix: more robust parameter upsert and deletion
|
|
45
|
+
- [#7889](https://github.com/scalar/scalar/pull/7889): fix: only attach the body to methods that allow
|
|
46
|
+
|
|
47
|
+
#### Updated Dependencies
|
|
48
|
+
|
|
49
|
+
- **@scalar/workspace-store@0.26.1**
|
|
50
|
+
- [#7888](https://github.com/scalar/scalar/pull/7888): fix: more robust parameter upsert and deletion
|
|
51
|
+
|
|
52
|
+
- **@scalar/oas-utils@0.6.26**
|
|
53
|
+
|
|
54
|
+
- **@scalar/sidebar@0.7.19**
|
|
55
|
+
|
|
56
|
+
- **@scalar/components@0.16.29**
|
|
57
|
+
|
|
58
|
+
- **@scalar/use-codemirror@0.13.23**
|
|
59
|
+
|
|
3
60
|
## 2.20.0
|
|
4
61
|
|
|
5
62
|
### Minor 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({
|