🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

array-to-tree

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-to-tree - npm Package Compare versions

Comparing version

to
3.1.0

3

index.js
'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