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

@scalar/oas-utils

Package Overview
Dependencies
Maintainers
8
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.52 to 0.2.53

8

CHANGELOG.md
# @scalar/oas-utils
## 0.2.53
### Patch Changes
- 46a55ae: feat(api-client): improve client import ux
- Updated dependencies [b26144c]
- @scalar/themes@0.9.35
## 0.2.52

@@ -4,0 +12,0 @@

6

dist/helpers/fetchSpecFromUrl.d.ts

@@ -1,3 +0,7 @@

/** Fetches an OpenAPI/Swagger specification from a given URL. */
/**
* Fetches an OpenAPI/Swagger specification from a given URL.
*
* @throws an error if the fetch fails
*/
export declare function fetchSpecFromUrl(url: string, proxy?: string): Promise<string>;
//# sourceMappingURL=fetchSpecFromUrl.d.ts.map

@@ -8,3 +8,7 @@ import { redirectToProxy } from './redirectToProxy.js';

const NEW_PROXY_URL = 'https://proxy.scalar.com';
/** Fetches an OpenAPI/Swagger specification from a given URL. */
/**
* Fetches an OpenAPI/Swagger specification from a given URL.
*
* @throws an error if the fetch fails
*/
async function fetchSpecFromUrl(url, proxy) {

@@ -24,2 +28,3 @@ // This replaces the OLD_PROXY_URL with the NEW_PROXY_URL on the fly.

}
throw new Error(`Failed to fetch the specification (Status: ${response.status})`);
}

@@ -26,0 +31,0 @@ // If it’s JSON, make it pretty

6

package.json

@@ -19,3 +19,3 @@ {

],
"version": "0.2.52",
"version": "0.2.53",
"engines": {

@@ -99,3 +99,3 @@ "node": ">=18"

"@scalar/types": "0.0.13",
"@scalar/themes": "0.9.34"
"@scalar/themes": "0.9.35"
},

@@ -108,4 +108,4 @@ "devDependencies": {

"zod-to-ts": "^1.2.0",
"@scalar/build-tooling": "0.1.10",
"@scalar/openapi-parser": "0.8.5",
"@scalar/build-tooling": "0.1.10",
"@scalar/openapi-types": "0.1.1"

@@ -112,0 +112,0 @@ },

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