New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deref

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deref - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

12

lib/util/resolve-schema.js

@@ -9,2 +9,6 @@ 'use strict';

function isKey(prop) {
return prop === 'enum' || prop === 'required' || prop === 'definitions';
}
function copy(obj, refs, parent, resolve) {

@@ -27,8 +31,6 @@ var target = Array.isArray(obj) ? [] : {};

for (var prop in obj) {
var value = obj[prop];
if (typeof value === 'object' && !(prop === 'enum' || prop === 'required')) {
target[prop] = copy(value, refs, parent, resolve);
if (typeof obj[prop] === 'object' && !isKey(prop)) {
target[prop] = copy(obj[prop], refs, parent, resolve);
} else {
target[prop] = value;
target[prop] = obj[prop];
}

@@ -35,0 +37,0 @@ }

{
"name": "deref",
"version": "0.6.1",
"version": "0.6.2",
"description": "JSON-Schema $ref resolution",

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

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