@scalar/oas-utils
Advanced tools
Comparing version 0.2.52 to 0.2.53
# @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 @@ |
@@ -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 |
@@ -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
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
351911
7427
+ Added@scalar/themes@0.9.35(transitive)
- Removed@scalar/themes@0.9.34(transitive)
- Removedhookable@5.5.3(transitive)
- Removedzhead@2.2.4(transitive)
Updated@scalar/themes@0.9.35