@kubb/core
Advanced tools
Comparing version 0.33.0 to 0.34.0
@@ -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
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
132629
1627
22
9