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

@scalar/openapi-parser

Package Overview
Dependencies
Maintainers
8
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/openapi-parser - npm Package Compare versions

Comparing version 0.10.3 to 0.10.4

6

CHANGELOG.md
# @scalar/openapi-parser
## 0.10.4
### Patch Changes
- 64df4fc: fix: example arrays are transformed to objects
## 0.10.3

@@ -4,0 +10,0 @@

6

dist/utils/traverse.js

@@ -10,3 +10,3 @@ /**

result[key] = value.map((item, index) => {
if (typeof item === 'object' && item !== null) {
if (typeof item === 'object' && !Array.isArray(item) && item !== null) {
return traverse(item, transform, [...currentPath, index.toString()]);

@@ -17,3 +17,5 @@ }

}
else if (typeof value === 'object' && value !== null) {
else if (typeof value === 'object' &&
!Array.isArray(value) &&
value !== null) {
result[key] = traverse(value, transform, currentPath);

@@ -20,0 +22,0 @@ }

@@ -20,3 +20,3 @@ {

],
"version": "0.10.3",
"version": "0.10.4",
"engines": {

@@ -68,5 +68,5 @@ "node": ">=18"

"tinybench": "^2.8.0",
"@scalar/types": "0.0.25",
"@scalar/build-tooling": "0.1.12",
"@scalar/openapi-types": "0.1.5"
"@scalar/openapi-types": "0.1.6",
"@scalar/types": "0.0.26"
},

@@ -73,0 +73,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