Socket
Socket
Sign inDemoInstall

@rxap/data-structure-tree

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rxap/data-structure-tree - npm Package Compare versions

Comparing version 1.0.1-dev.3 to 1.0.1-dev.4

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [1.0.1-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/data-structure-tree@1.0.1-dev.3...@rxap/data-structure-tree@1.0.1-dev.4) (2023-08-16)
### Bug Fixes
- change from commonjs to es2022 ([a69aa25](https://gitlab.com/rxap/packages/commit/a69aa25b9824b94613392b3ea42fba18e5eb1168))
## [1.0.1-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/data-structure-tree@1.0.1-dev.2...@rxap/data-structure-tree@1.0.1-dev.3) (2023-08-04)

@@ -8,0 +14,0 @@

14

package.json
{
"name": "@rxap/data-structure-tree",
"version": "1.0.1-dev.3",
"type": "commonjs",
"version": "1.0.1-dev.4",
"type": "module",
"dependencies": {

@@ -10,4 +10,4 @@ "rxjs": "~7.8.0",

"peerDependencies": {
"@rxap/rxjs": "^1.0.1-dev.1",
"@rxap/utilities": "^16.0.0-dev.4"
"@rxap/rxjs": "^1.0.1-dev.2",
"@rxap/utilities": "^16.0.0-dev.6"
},

@@ -44,13 +44,13 @@ "publishConfig": {

"package": "@rxap/rxjs",
"version": "1.0.1-dev.1"
"version": "1.0.1-dev.2"
},
{
"package": "@rxap/utilities",
"version": "16.0.0-dev.4"
"version": "16.0.0-dev.6"
}
]
},
"gitHead": "20620e6fe09d85f69aedad8c9193f03a12e58951",
"gitHead": "0a544aebae8d17fbc57b23a936dc79f5d33ca1fb",
"main": "./src/index.js",
"types": "./src/index.d.ts"
}

@@ -21,3 +21,3 @@ # @rxap/data-structure-tree

```bash
yarn add @rxap/rxjs@^1.0.1-dev.1 @rxap/utilities@^16.0.0-dev.4
yarn add @rxap/rxjs@^1.0.1-dev.2 @rxap/utilities@^16.0.0-dev.6
```

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./lib/node"), exports);
export * from './lib/node';
//# sourceMappingURL=index.js.map

@@ -1,10 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Node = void 0;
const utilities_1 = require("@rxap/utilities");
const rxjs_1 = require("@rxap/rxjs");
class Node {
import { getIdentifierPropertyValue, } from '@rxap/utilities';
import { ToggleSubject } from '@rxap/rxjs';
export class Node {
static ToNode(item, depth, onExpand, onCollapse, toDisplay = () => 'to display function not defined', getIcon = () => null, onSelect = null, onDeselect = null, hasDetails = () => true, getStyle = () => ({}), parameters = null) {
var _a;
const children = ((_a = item.children) !== null && _a !== void 0 ? _a : []).map((child) => Node.ToNode(child, depth + 1, onExpand, onCollapse, toDisplay, getIcon, onSelect, onDeselect, hasDetails, getStyle, parameters));
const children = (item.children ?? []).map((child) => Node.ToNode(child, depth + 1, onExpand, onCollapse, toDisplay, getIcon, onSelect, onDeselect, hasDetails, getStyle, parameters));
return new Node(item, children, depth, onExpand, onCollapse, toDisplay(item), getIcon(item), onSelect, onDeselect, hasDetails(item), getStyle(item), parameters);

@@ -48,3 +44,3 @@ }

this._parameters = _parameters;
this.isLoading$ = new rxjs_1.ToggleSubject();
this.isLoading$ = new ToggleSubject();
this._expanded = false;

@@ -55,3 +51,3 @@ this._selected = false;

this.setChildren(children);
const identifier = (0, utilities_1.getIdentifierPropertyValue)(this.item);
const identifier = getIdentifierPropertyValue(this.item);
if (identifier === null) {

@@ -146,3 +142,2 @@ throw new Error('Node item has not an identifier property');

}
exports.Node = Node;
//# sourceMappingURL=node.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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