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

rc-tree

Package Overview
Dependencies
Maintainers
10
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree - npm Package Compare versions

Comparing version 5.3.3 to 5.3.4

1

es/interface.d.ts

@@ -56,2 +56,3 @@ import * as React from 'react';

node: TreeDataType;
nodes: TreeDataType[];
parent?: DataEntity<TreeDataType>;

@@ -58,0 +59,0 @@ children?: DataEntity<TreeDataType>[];

3

es/NodeList.js

@@ -36,3 +36,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

pos: '0',
node: MotionNode
node: MotionNode,
nodes: [MotionNode]
};

@@ -39,0 +40,0 @@ var MotionFlattenData = {

@@ -38,2 +38,3 @@ import * as React from 'react';

level: number;
nodes: DataNode[];
}) => void, config?: TraverseDataNodesConfig | string): void;

@@ -40,0 +41,0 @@ interface Wrapper {

@@ -201,5 +201,6 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

function processNode(node, index, parent) {
function processNode(node, index, parent, pathNodes) {
var children = node ? node[mergeChildrenPropName] : dataNodes;
var pos = node ? getPosition(parent.pos, index) : '0'; // Process node if is not root
var pos = node ? getPosition(parent.pos, index) : '0';
var connectNodes = node ? [].concat(_toConsumableArray(pathNodes), [node]) : []; // Process node if is not root

@@ -214,3 +215,4 @@ if (node) {

parentPos: parent.node ? parent.pos : null,
level: parent.level + 1
level: parent.level + 1,
nodes: connectNodes
};

@@ -227,3 +229,3 @@ callback(data);

level: parent ? parent.level + 1 : -1
});
}, connectNodes);
});

@@ -270,5 +272,7 @@ }

parentPos = item.parentPos,
level = item.level;
level = item.level,
nodes = item.nodes;
var entity = {
node: node,
nodes: nodes,
index: index,

@@ -275,0 +279,0 @@ key: key,

@@ -56,2 +56,3 @@ import * as React from 'react';

node: TreeDataType;
nodes: TreeDataType[];
parent?: DataEntity<TreeDataType>;

@@ -58,0 +59,0 @@ children?: DataEntity<TreeDataType>[];

@@ -53,3 +53,4 @@ "use strict";

pos: '0',
node: MotionNode
node: MotionNode,
nodes: [MotionNode]
};

@@ -56,0 +57,0 @@ exports.MotionEntity = MotionEntity;

@@ -38,2 +38,3 @@ import * as React from 'react';

level: number;
nodes: DataNode[];
}) => void, config?: TraverseDataNodesConfig | string): void;

@@ -40,0 +41,0 @@ interface Wrapper {

@@ -228,5 +228,6 @@ "use strict";

function processNode(node, index, parent) {
function processNode(node, index, parent, pathNodes) {
var children = node ? node[mergeChildrenPropName] : dataNodes;
var pos = node ? (0, _util.getPosition)(parent.pos, index) : '0'; // Process node if is not root
var pos = node ? (0, _util.getPosition)(parent.pos, index) : '0';
var connectNodes = node ? [].concat((0, _toConsumableArray2.default)(pathNodes), [node]) : []; // Process node if is not root

@@ -241,3 +242,4 @@ if (node) {

parentPos: parent.node ? parent.pos : null,
level: parent.level + 1
level: parent.level + 1,
nodes: connectNodes
};

@@ -254,3 +256,3 @@ callback(data);

level: parent ? parent.level + 1 : -1
});
}, connectNodes);
});

@@ -298,5 +300,7 @@ }

parentPos = item.parentPos,
level = item.level;
level = item.level,
nodes = item.nodes;
var entity = {
node: node,
nodes: nodes,
index: index,

@@ -303,0 +307,0 @@ key: key,

{
"name": "rc-tree",
"version": "5.3.3",
"version": "5.3.4",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "engines": {

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