@scalar/api-client 0.12.18 → 1.0.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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7fb8273: Migrate to @scalar/openapi-parser
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 6036d25: fix: allow application/vnd.api+json return type
|
|
12
|
+
- Updated dependencies [7fb8273]
|
|
13
|
+
- @scalar/use-codemirror@0.9.0
|
|
14
|
+
- @scalar/oas-utils@0.1.0
|
|
15
|
+
|
|
3
16
|
## 0.12.18
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue.ts"],"names":[],"mappings":";YA2KY,OAAO;UACT,GAAG;aACA,OAAO,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;YAFzB,OAAO;UACT,GAAG;aACA,OAAO,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;UAD3B,GAAG;YADD,OAAO;;AANnB,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const validRequestMethods: readonly ["GET", "POST", "PUT", "HEAD", "DELETE", "PATCH", "OPTIONS", "CONNECT", "TRACE"];
|
|
2
|
-
type RequestMethod = typeof validRequestMethods[number];
|
|
2
|
+
export type RequestMethod = typeof validRequestMethods[number];
|
|
3
3
|
export declare function isRequestMethod(s: string): s is RequestMethod;
|
|
4
4
|
export declare const requestMethodColors: {
|
|
5
5
|
[x in RequestMethod]: string;
|
|
@@ -7,5 +7,4 @@ export declare const requestMethodColors: {
|
|
|
7
7
|
export declare const requestMethodAbbreviations: {
|
|
8
8
|
[x in RequestMethod]: string;
|
|
9
9
|
};
|
|
10
|
-
export {};
|
|
11
10
|
//# sourceMappingURL=httpRequestMethods.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpRequestMethods.d.ts","sourceRoot":"","sources":["../../src/fixtures/httpRequestMethods.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2FAUtB,CAAA;AAEV,
|
|
1
|
+
{"version":3,"file":"httpRequestMethods.d.ts","sourceRoot":"","sources":["../../src/fixtures/httpRequestMethods.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2FAUtB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAE/D,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,aAAa,CAE7D;AAED,eAAO,MAAM,mBAAmB,EAAE;KAAG,CAAC,IAAI,aAAa,GAAG,MAAM;CAU/D,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE;KAAG,CAAC,IAAI,aAAa,GAAG,MAAM;CAUtE,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -32393,7 +32393,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32393
32393
|
}
|
|
32394
32394
|
});
|
|
32395
32395
|
const codeMirrorLanguage = computed(() => {
|
|
32396
|
-
if (mediaType.value === "application/json" || mediaType.value === "application/problem+json") {
|
|
32396
|
+
if (mediaType.value === "application/json" || mediaType.value === "application/problem+json" || mediaType.value === "application/vnd.api+json") {
|
|
32397
32397
|
return "json";
|
|
32398
32398
|
}
|
|
32399
32399
|
if (mediaType.value === "text/html") {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rest",
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "1.0.0",
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"pretty-ms": "^8.0.0",
|
|
42
42
|
"@scalar/components": "0.4.3",
|
|
43
43
|
"@scalar/themes": "0.6.2",
|
|
44
|
-
"@scalar/use-codemirror": "0.
|
|
44
|
+
"@scalar/use-codemirror": "0.9.0",
|
|
45
45
|
"@scalar/use-modal": "0.2.9"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"vue": "^3.3.0",
|
|
56
56
|
"vue-tsc": "^1.8.19",
|
|
57
57
|
"@scalar/api-client-proxy": "0.5.23",
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/
|
|
58
|
+
"@scalar/echo-server": "0.6.0",
|
|
59
|
+
"@scalar/oas-utils": "0.1.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"vue": "^3.3.0",
|
|
63
|
-
"@scalar/oas-utils": "0.0
|
|
63
|
+
"@scalar/oas-utils": "0.1.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|