@scalar/api-client 0.7.35 → 0.7.36

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,11 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 0.7.36
4
+
5
+ ### Patch Changes
6
+
7
+ - bc23e62: fix: don’t trim / from the path, if it’s the only character
8
+
3
9
  ## 0.7.35
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -25588,7 +25588,7 @@ const normalizePath = (path) => {
25588
25588
  return "";
25589
25589
  }
25590
25590
  let normalizedPath = path.trim();
25591
- if (normalizedPath.startsWith("/")) {
25591
+ if (normalizedPath.length > 1 && normalizedPath.startsWith("/")) {
25592
25592
  normalizedPath = normalizedPath.slice(1);
25593
25593
  }
25594
25594
  return normalizedPath;
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "rest",
14
14
  "testing"
15
15
  ],
16
- "version": "0.7.35",
16
+ "version": "0.7.36",
17
17
  "engines": {
18
18
  "node": ">=20"
19
19
  },