directory-tree 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
File without changes
package/index.d.ts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { Stats } from "fs";
2
2
 
3
- interface IObj {
4
- [key: string]: any;
5
- }
6
-
7
3
  declare function directoryTree<
8
- TCustomFile extends IObj = IObj,
9
- TCustomDir extends IObj = IObj,
10
- TCustomResult extends IObj = TCustomFile & TCustomDir
4
+ TCustomFile extends Record<string, any> = Record<string, any>,
5
+ TCustomDir extends Record<string, any> = Record<string, any>,
6
+ TCustomResult extends Record<string, any> = TCustomFile & TCustomDir
11
7
  >(
12
8
  path: string,
13
9
  options?: directoryTree.DirectoryTreeOptions,
@@ -18,7 +14,7 @@ declare function directoryTree<
18
14
  export as namespace directoryTree;
19
15
 
20
16
  declare namespace directoryTree {
21
- export interface DirectoryTree<C extends IObj = IObj> {
17
+ export interface DirectoryTree<C extends Record<string, any> = Record<string, any>> {
22
18
  path: string;
23
19
  name: string;
24
20
  size: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directory-tree",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Convert a directory tree to a JS object.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/node-directory-tree.iml" filepath="$PROJECT_DIR$/.idea/node-directory-tree.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>