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

empty-schema

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

empty-schema - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "empty-schema",
"version": "0.0.3",
"version": "0.0.4",
"description": "Generate empty placeholder data from JSON Schemas",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,4 +6,3 @@ import empty from './empty'

items,
minItems,
// maxItems // does not matter
minItems
} = schema

@@ -16,8 +15,6 @@

} else if (minItems && items) {
// require at least this amount of items
return Array.from(new Array(minItems), () => empty(items, global))
} else {
// minItems is not given or we don't know item type
return []
}
}
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