array-to-tree
Advanced tools
Comparing version
'use strict'; | ||
var assign = require('lodash.assign'); | ||
var property = require('nested-property'); | ||
@@ -72,3 +71,3 @@ var keyBy = require('lodash.keyby'); | ||
module.exports = function arrayToTree(data, options) { | ||
options = assign( | ||
options = Object.assign( | ||
{ | ||
@@ -75,0 +74,0 @@ parentProperty: 'parent_id', |
{ | ||
"name": "array-to-tree", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Convert a plain array of nodes (with pointers to parent nodes) to a tree", | ||
@@ -22,4 +22,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^3.2.0", | ||
"eslint": "^5.3.0", | ||
"chai": "^4.1.2", | ||
"eslint": "^5.4.0", | ||
"json": "^9.0.3", | ||
@@ -37,3 +37,2 @@ "mocha": "^5.2.0" | ||
"dependencies": { | ||
"lodash.assign": "^4.0.6", | ||
"lodash.keyby": "^4.6.0", | ||
@@ -40,0 +39,0 @@ "nested-property": "^0.0.7" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
-33.33%0
-100%113019
-2.26%316
-0.32%- Removed
- Removed