@scalar/api-client 1.2.10 → 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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 1.2.12
4
+
5
+ ### Patch Changes
6
+
7
+ - c6e4385: fix: passing a prefilled token as null throws an exception
8
+
9
+ ## 1.2.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [2706d57]
14
+ - @scalar/components@0.6.1
15
+
3
16
  ## 1.2.10
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Version](https://img.shields.io/npm/v/%40scalar/api-client)](https://www.npmjs.com/package/@scalar/api-client)
4
4
  [![Downloads](https://img.shields.io/npm/dm/%40scalar/api-client)](https://www.npmjs.com/package/@scalar/api-client)
5
5
  [![License](https://img.shields.io/npm/l/%40scalar%2Fapi-client)](https://www.npmjs.com/package/@scalar/api-client)
6
- [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS)
6
+ [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](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.10",
16
+ "version": "1.2.12",
17
17
  "engines": {
18
18
  "node": ">=18"
19
19
  },
@@ -42,10 +42,10 @@
42
42
  "nanoid": "^5.0.1",
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
- "@scalar/components": "0.6.0",
45
+ "@scalar/components": "0.6.1",
46
+ "@scalar/themes": "0.7.6",
46
47
  "@scalar/use-modal": "0.3.0",
47
48
  "@scalar/use-codemirror": "0.10.1",
48
- "@scalar/themes": "0.7.6",
49
49
  "@scalar/use-tooltip": "0.6.0"
50
50
  },
51
51
  "devDependencies": {