@scalar/oas-utils
Advanced tools
Comparing version 0.2.69 to 0.2.70
# @scalar/oas-utils | ||
## 0.2.70 | ||
### Patch Changes | ||
- c3e76d9: fix: handle scopes as an array | ||
- Updated dependencies [a607115] | ||
- @scalar/openapi-types@0.1.5 | ||
- @scalar/types@0.0.19 | ||
- @scalar/themes@0.9.46 | ||
## 0.2.69 | ||
@@ -4,0 +14,0 @@ |
@@ -25,2 +25,7 @@ import { securitySchemeSchema, authExampleFromSchema } from '../entities/spec/security.js'; | ||
...flow, | ||
scopes: | ||
// Ensure we convert array scope to an object | ||
Array.isArray(flow.scopes) && typeof flow.scopes[0] === 'string' | ||
? flow.scopes.reduce((prev, s) => ({ ...prev, [s]: '' }), {}) | ||
: flow.scopes, | ||
type, | ||
@@ -27,0 +32,0 @@ }, |
@@ -19,3 +19,3 @@ { | ||
], | ||
"version": "0.2.69", | ||
"version": "0.2.70", | ||
"engines": { | ||
@@ -110,6 +110,6 @@ "node": ">=18" | ||
"zod": "^3.23.8", | ||
"@scalar/themes": "0.9.46", | ||
"@scalar/object-utils": "1.1.11", | ||
"@scalar/themes": "0.9.45", | ||
"@scalar/types": "0.0.18", | ||
"@scalar/openapi-types": "0.1.4" | ||
"@scalar/openapi-types": "0.1.5", | ||
"@scalar/types": "0.0.19" | ||
}, | ||
@@ -121,5 +121,5 @@ "devDependencies": { | ||
"zod-to-ts": "^1.2.0", | ||
"@scalar/openapi-parser": "0.8.8", | ||
"@scalar/openapi-types": "0.1.4", | ||
"@scalar/build-tooling": "0.1.11" | ||
"@scalar/build-tooling": "0.1.11", | ||
"@scalar/openapi-types": "0.1.5", | ||
"@scalar/openapi-parser": "0.8.9" | ||
}, | ||
@@ -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
383031
8020
+ Added@scalar/openapi-types@0.1.5(transitive)
+ Added@scalar/themes@0.9.46(transitive)
+ Added@scalar/types@0.0.19(transitive)
+ Added@unhead/schema@1.11.11(transitive)
+ Addednanoid@5.0.8(transitive)
- Removed@scalar/openapi-types@0.1.4(transitive)
- Removed@scalar/themes@0.9.45(transitive)
- Removed@scalar/types@0.0.18(transitive)
- Removed@unhead/schema@1.11.13(transitive)
- Removednanoid@5.0.9(transitive)
Updated@scalar/openapi-types@0.1.5
Updated@scalar/themes@0.9.46
Updated@scalar/types@0.0.19