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

contentful-resolve-response

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-resolve-response - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

coverage.lcov

18

index.js

@@ -42,2 +42,19 @@ const cloneDeep = require('lodash/cloneDeep');

/**
* cleanUpLink Function
* - Removes unresolvable links from Arrays and Objects
*
* @param {Object[]|Object} input
* @param {number|string} key
*/
const cleanUpLink = (input, key) => {
if (input[key] === undefined) {
if (Array.isArray(input)) {
input.splice(key, 1);
} else {
delete input[key];
}
}
};
/**
* walkMutate Function

@@ -58,2 +75,3 @@ * @param input

input[key] = walkMutate(input[key], predicate, mutator);
cleanUpLink(input, key);
}

@@ -60,0 +78,0 @@ }

2

package.json
{
"name": "contentful-resolve-response",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "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