Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scalar/oas-utils

Package Overview
Dependencies
Maintainers
0
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/oas-utils - npm Package Compare versions

Comparing version 0.2.66 to 0.2.67

7

CHANGELOG.md
# @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 @@

5

dist/helpers/makeUrlAbsolute.js

@@ -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 @@ };

8

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc