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

contentful-resolve-response

Package Overview
Dependencies
Maintainers
6
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.2.2 to 1.3.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.3.0](https://github.com/contentful/contentful-resolve-response/compare/v1.2.2...v1.3.0) (2020-11-25)
### Features
* remove lodash and replace cloneDeep with fast-copy ([b6bffed](https://github.com/contentful/contentful-resolve-response/commit/b6bffed343eebf4913d397a4e157787028929692))
## [1.2.2](https://github.com/contentful/contentful-resolve-response/compare/v1.2.1...v1.2.2) (2020-07-03)

@@ -2,0 +9,0 @@

6

dist/cjs/index.js

@@ -7,5 +7,5 @@ 'use strict';

var _cloneDeep = require('lodash/cloneDeep');
var _fastCopy = require('fast-copy');
var _cloneDeep2 = _interopRequireDefault(_cloneDeep);
var _fastCopy2 = _interopRequireDefault(_fastCopy);

@@ -138,3 +138,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

}
var responseClone = (0, _cloneDeep2.default)(response);
var responseClone = (0, _fastCopy2.default)(response);
var allIncludes = Object.keys(responseClone.includes || {}).reduce(function (all, type) {

@@ -141,0 +141,0 @@ return [].concat(_toConsumableArray(all), _toConsumableArray(response.includes[type]));

@@ -5,3 +5,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

import cloneDeep from 'lodash/cloneDeep';
import copy from 'fast-copy';

@@ -130,3 +130,3 @@ var UNRESOLVED_LINK = {}; // unique object to avoid polyfill bloat using Symbol()

}
var responseClone = cloneDeep(response);
var responseClone = copy(response);
var allIncludes = Object.keys(responseClone.includes || {}).reduce(function (all, type) {

@@ -133,0 +133,0 @@ return [].concat(_toConsumableArray(all), _toConsumableArray(response.includes[type]));

{
"name": "contentful-resolve-response",
"version": "1.2.2",
"version": "1.3.0",
"description": "",

@@ -28,3 +28,3 @@ "main": "./dist/cjs/index.js",

"dependencies": {
"lodash": "^4.17.15"
"fast-copy": "^2.1.0"
},

@@ -31,0 +31,0 @@ "devDependencies": {

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