djedi-json
Advanced tools
Comparing version 0.6.1 to 0.6.2
import { NodeTreeItem } from '../../types'; | ||
/** Clean the tree from faulty nodes. */ | ||
export declare const cleanTree: (node: NodeTreeItem) => NodeTreeItem; | ||
/** Clean the tree from faulty nodes. */ | ||
export declare const addRefsToTree: (node: NodeTreeItem) => NodeTreeItem; | ||
/** | ||
* Walk the tree and omit bookkeeping/non-conent properties from `node`. | ||
* This includes `__uri`, `__ref`, `chosen`, `selected`. | ||
*/ | ||
export declare const onlyContent: (node: NodeTreeItem) => NodeTreeItem; | ||
/** Walk the tree and remove falsy `node.children`. */ | ||
export declare const omitFalsy: (node: NodeTreeItem) => NodeTreeItem; | ||
/** Walk the tree and add `__ref` property to `node` when missing. */ | ||
export declare const addRefs: (node: NodeTreeItem) => NodeTreeItem; |
@@ -36,4 +36,6 @@ /// <reference types="react" /> | ||
uri?: string; | ||
chosen?: boolean; | ||
selected?: boolean; | ||
__uri?: string; | ||
__ref?: ReturnType<typeof crypto.randomUUID>; | ||
} |
{ | ||
"name": "djedi-json", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "module": "build/index.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
406537
4345