You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
1
Versions
816
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/core - npm Package Compare versions

Comparing version

to
0.34.0

6

dist/index.d.ts

@@ -83,7 +83,7 @@ import EventEmitter from 'events';

forEach(callback: (treeNode: TreeNode<T>) => void): this;
static generate(path: string, options?: DirectoryTreeOptions): TreeNode<{
static build(path: string, options?: DirectoryTreeOptions): TreeNode<{
name: string;
path: string;
type: "file" | "directory";
}>;
}> | undefined;
}

@@ -365,3 +365,3 @@

get options(): TOptions;
abstract build(...params: any): any;
abstract build(...params: unknown[]): unknown;
}

@@ -368,0 +368,0 @@

@@ -335,4 +335,7 @@ 'use strict';

}
static generate(path, options = {}) {
static build(path, options = {}) {
const filteredTree = dirTree(path, { extensions: options?.extensions, exclude: options.exclude });
if (!filteredTree) {
return;
}
const treeNode = new TreeNode({ name: filteredTree.name, path: filteredTree.path, type: filteredTree.type });

@@ -339,0 +342,0 @@ const recurse = (node, item) => {

{
"name": "@kubb/core",
"version": "0.33.0",
"version": "0.34.0",
"description": "Generator core",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet