contentful-resolve-response
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19653
0
+ Addedfast-copy@^2.1.0
+ Addedfast-copy@2.1.7(transitive)
- Removedlodash@^4.17.15
- Removedlodash@4.17.21(transitive)