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

json-refs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-refs - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

21

index.js

@@ -34,3 +34,2 @@ /*

// Cherry-pick lodash components to help with size
var _ = require('lodash');

@@ -62,3 +61,3 @@ var gl = require('graphlib');

function mergeQueryParams (obj) {
_.each(obj, function (val, key) {
_.forOwn(obj, function (val, key) {
combined[key] = val;

@@ -331,3 +330,3 @@ });

// Iterate over the references and process
_.each(refs, function (refDetails, refPtr) {
_.forOwn(refs, function (refDetails, refPtr) {
var refKey = makeAbsolute(options.location) + refPtr;

@@ -459,3 +458,3 @@ var refdKey = refDetails.refdId = makeAbsolute(isRemote(refDetails) ?

} else if (_.isObject(node)) {
_.each(node, function (cNode, key) {
_.forOwn(node, function (cNode, key) {
walkItem(cNode, key);

@@ -1180,4 +1179,4 @@ });

// Add edges
_.each(results.deps, function (props, node) {
_.each(props, function (dep) {
_.forOwn(results.deps, function (props, node) {
_.forOwn(props, function (dep) {
depGraph.setEdge(node, dep);

@@ -1199,4 +1198,4 @@ });

// Process circulars
_.each(results.deps, function (props, node) {
_.each(props, function (dep, prop) {
_.forOwn(results.deps, function (props, node) {
_.forOwn(props, function (dep, prop) {
var isCircular = false;

@@ -1246,3 +1245,3 @@ var refPtr = node + prop.slice(1);

// Resolve the references in reverse order since the current order is top-down
_.each(Object.keys(results.deps).reverse(), function (parentPtr) {
_.forOwn(Object.keys(results.deps).reverse(), function (parentPtr) {
var deps = results.deps[parentPtr];

@@ -1253,3 +1252,3 @@ var pPtrParts = parentPtr.split('#');

_.each(deps, function (dep, prop) {
_.forOwn(deps, function (dep, prop) {
var depParts = dep.split('#');

@@ -1340,3 +1339,3 @@ var dDocument = results.docs[depParts[0]];

// Sanitize the reference details
_.each(results.refs, function (refDetails) {
_.forOwn(results.refs, function (refDetails) {
// Delete the reference id used for dependency tracking and circular identification

@@ -1343,0 +1342,0 @@ delete refDetails.refdId;

{
"name": "json-refs",
"version": "3.0.2",
"version": "3.0.3",
"description": "Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).",

@@ -67,3 +67,3 @@ "main": "index.js",

"dependencies": {
"commander": "^2.11.0",
"commander": "~2.11.0",
"graphlib": "^2.1.1",

@@ -70,0 +70,0 @@ "js-yaml": "^3.10.0",

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