@scalar/api-client 2.20.1 → 2.21.0
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 +66 -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/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +56 -59
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +52 -51
- package/dist/v2/blocks/operation-block/helpers/build-request.js +1 -1
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.d.ts +4 -0
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +23 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +24 -23
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +2 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +2 -2
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +57 -60
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +61 -41
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +0 -3
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -34
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +26 -20
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts +4 -2
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +39 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +64 -64
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +12 -11
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +152 -95
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +87 -99
- 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 +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#7897](https://github.com/scalar/scalar/pull/7897): feat: cancel request and stop streaming responses
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#7906](https://github.com/scalar/scalar/pull/7906): feat: remove parsing from codeinput and move to getExample
|
|
12
|
+
|
|
13
|
+
#### Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- **@scalar/workspace-store@0.27.0**
|
|
16
|
+
- [#7906](https://github.com/scalar/scalar/pull/7906): feat: remove parsing from codeinput and move to getExample
|
|
17
|
+
- [#7905](https://github.com/scalar/scalar/pull/7905): feat: support loading files on the store
|
|
18
|
+
|
|
19
|
+
- **@scalar/json-magic@0.9.4**
|
|
20
|
+
- [#7922](https://github.com/scalar/scalar/pull/7922): fix: resolve $ref entries inside arrays (e.g. oneOf, allOf) in prefixInternalRefRecursive
|
|
21
|
+
|
|
22
|
+
- **@scalar/oas-utils@0.6.28**
|
|
23
|
+
|
|
24
|
+
- **@scalar/sidebar@0.7.21**
|
|
25
|
+
|
|
26
|
+
- **@scalar/openapi-parser@0.24.5**
|
|
27
|
+
|
|
28
|
+
- **@scalar/components@0.16.31**
|
|
29
|
+
|
|
30
|
+
- **@scalar/use-codemirror@0.13.25**
|
|
31
|
+
|
|
32
|
+
## 2.20.2
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
37
|
+
|
|
38
|
+
#### Updated Dependencies
|
|
39
|
+
|
|
40
|
+
- **@scalar/oas-utils@0.6.27**
|
|
41
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
42
|
+
|
|
43
|
+
- **@scalar/helpers@0.2.9**
|
|
44
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
45
|
+
|
|
46
|
+
- **@scalar/workspace-store@0.26.2**
|
|
47
|
+
- [#7894](https://github.com/scalar/scalar/pull/7894): fix: the import and export of redirect to proxy
|
|
48
|
+
|
|
49
|
+
- **@scalar/components@0.16.30**
|
|
50
|
+
|
|
51
|
+
- **@scalar/import@0.4.46**
|
|
52
|
+
|
|
53
|
+
- **@scalar/json-magic@0.9.3**
|
|
54
|
+
|
|
55
|
+
- **@scalar/object-utils@1.2.23**
|
|
56
|
+
|
|
57
|
+
- **@scalar/postman-to-openapi@0.4.1**
|
|
58
|
+
|
|
59
|
+
- **@scalar/sidebar@0.7.20**
|
|
60
|
+
|
|
61
|
+
- **@scalar/types@0.5.10**
|
|
62
|
+
|
|
63
|
+
- **@scalar/use-codemirror@0.13.24**
|
|
64
|
+
|
|
65
|
+
- **@scalar/openapi-parser@0.24.4**
|
|
66
|
+
|
|
67
|
+
- **@scalar/snippetz@0.6.8**
|
|
68
|
+
|
|
3
69
|
## 2.20.1
|
|
4
70
|
|
|
5
71
|
### 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({
|