Socket
Socket
Sign inDemoInstall

@cranq/tree-utils

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cranq/tree-utils - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/tree/getNode.d.ts
import { ContainerNode } from "../types/ContainerNode";
import { Node } from "../types/Node";
import { Path } from "../types/Path";
export declare function getNode<N extends Node>(tree: ContainerNode<any>, path: Path): N;
export declare function getNode<N extends Node>(tree: ContainerNode<any>, path: Path): N | undefined;
{
"name": "@cranq/tree-utils",
"version": "1.0.0",
"version": "1.0.1",
"description": "Tree manipulation utilities",

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

@@ -14,3 +14,3 @@ import {ContainerNode} from "../types/ContainerNode";

path: Path
): N {
): N | undefined {
const length = path.length;

@@ -26,3 +26,3 @@ let node = tree as Node;

}
return node as N;
return node as N | undefined;
}

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