@scalar/oas-utils
Advanced tools
Comparing version 0.2.66 to 0.2.67
# @scalar/oas-utils | ||
## 0.2.67 | ||
### Patch Changes | ||
- 823c14d: fix: add tests for oauth2 flows, ensure we reject on state mismatch | ||
- 997cd35: fix: relative URLs are created wrong | ||
## 0.2.66 | ||
@@ -4,0 +11,0 @@ |
@@ -13,6 +13,7 @@ /** | ||
const cleanBaseUrl = baseUrl.split('?')[0].split('#')[0]; | ||
// Ensure the base URL ends with a slash if it doesn’t already | ||
// For base URLs with a path component, we want to remove the last path segment | ||
// if it doesn't end with a slash | ||
const normalizedBaseUrl = cleanBaseUrl.endsWith('/') | ||
? cleanBaseUrl | ||
: cleanBaseUrl + '/'; | ||
: cleanBaseUrl.substring(0, cleanBaseUrl.lastIndexOf('/') + 1); | ||
return new URL(url, normalizedBaseUrl).toString(); | ||
@@ -19,0 +20,0 @@ }; |
@@ -19,3 +19,3 @@ { | ||
], | ||
"version": "0.2.66", | ||
"version": "0.2.67", | ||
"engines": { | ||
@@ -110,4 +110,4 @@ "node": ">=18" | ||
"zod": "^3.23.8", | ||
"@scalar/object-utils": "1.1.11", | ||
"@scalar/openapi-types": "0.1.4", | ||
"@scalar/object-utils": "1.1.11", | ||
"@scalar/themes": "0.9.45", | ||
@@ -121,5 +121,5 @@ "@scalar/types": "0.0.18" | ||
"zod-to-ts": "^1.2.0", | ||
"@scalar/build-tooling": "0.1.11", | ||
"@scalar/openapi-parser": "0.8.8", | ||
"@scalar/openapi-types": "0.1.4" | ||
"@scalar/openapi-types": "0.1.4", | ||
"@scalar/build-tooling": "0.1.11" | ||
}, | ||
@@ -126,0 +126,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
380114
7965