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.1.2 to 0.1.3

2

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

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

@@ -23,3 +23,3 @@ import deref from 'deref'

'enum': enum_,
// $ref,
$ref,
oneOf,

@@ -34,6 +34,5 @@ anyOf,

return enum_[0]
// } else if ($ref) {
// // a ref is passed, deref it and go on from there
// var s = deref($ref, global)
// return _empty(s, global)
} else if ($ref) {
const derefed = deref()($ref, global)
return _empty(derefed, global)
} else if (type) {

@@ -40,0 +39,0 @@ let kind

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