@scalar/api-client 1.2.11 → 1.2.12
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 +6 -0
- package/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@scalar/api-client)
|
|
4
4
|
[](https://www.npmjs.com/package/@scalar/api-client)
|
|
5
5
|
[](https://www.npmjs.com/package/@scalar/api-client)
|
|
6
|
-
[](https://discord.gg/
|
|
6
|
+
[](https://discord.gg/scalar)
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
package/dist/index.js
CHANGED
|
@@ -25943,7 +25943,7 @@ function authenticationRequired(security) {
|
|
|
25943
25943
|
return true;
|
|
25944
25944
|
}
|
|
25945
25945
|
function getRequestFromAuthentication(authentication2, operationSecurity) {
|
|
25946
|
-
var _a2;
|
|
25946
|
+
var _a2, _b;
|
|
25947
25947
|
const headers = [];
|
|
25948
25948
|
const queryString = [];
|
|
25949
25949
|
const cookies = [];
|
|
@@ -25960,7 +25960,7 @@ function getRequestFromAuthentication(authentication2, operationSecurity) {
|
|
|
25960
25960
|
if (securityScheme) {
|
|
25961
25961
|
if ("type" in securityScheme && securityScheme.type === "apiKey") {
|
|
25962
25962
|
if ("in" in securityScheme && securityScheme.in === "header") {
|
|
25963
|
-
const token = authentication2.apiKey.token.length ? authentication2.apiKey.token : "YOUR_TOKEN";
|
|
25963
|
+
const token = ((_b = authentication2.apiKey.token) == null ? void 0 : _b.length) ? authentication2.apiKey.token : "YOUR_TOKEN";
|
|
25964
25964
|
headers.push({
|
|
25965
25965
|
name: "name" in securityScheme ? securityScheme.name : "",
|
|
25966
25966
|
value: token
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rest",
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
|
-
"version": "1.2.
|
|
16
|
+
"version": "1.2.12",
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@scalar/components": "0.6.1",
|
|
46
46
|
"@scalar/themes": "0.7.6",
|
|
47
47
|
"@scalar/use-modal": "0.3.0",
|
|
48
|
-
"@scalar/use-
|
|
49
|
-
"@scalar/use-
|
|
48
|
+
"@scalar/use-codemirror": "0.10.1",
|
|
49
|
+
"@scalar/use-tooltip": "0.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/content-type": "^1.1.6",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"vue": "^3.4.21",
|
|
60
60
|
"vue-tsc": "^1.8.19",
|
|
61
61
|
"@scalar/api-client-proxy": "0.5.24",
|
|
62
|
-
"@scalar/
|
|
63
|
-
"@scalar/
|
|
62
|
+
"@scalar/echo-server": "0.6.1",
|
|
63
|
+
"@scalar/oas-utils": "0.1.6"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"vue": "^3.3.0",
|