Comparing version 1.2.0 to 1.2.1
@@ -1,3 +0,29 @@ | ||
import { HexBase64Latin1Encoding } from 'crypto'; | ||
import { Stats } from 'fs'; | ||
declare type HexBase64Latin1Encoding = "latin1" | "hex" | "base64"; | ||
declare class Stats { | ||
isFile(): boolean; | ||
isDirectory(): boolean; | ||
isBlockDevice(): boolean; | ||
isCharacterDevice(): boolean; | ||
isSymbolicLink(): boolean; | ||
isFIFO(): boolean; | ||
isSocket(): boolean; | ||
dev: number; | ||
ino: number; | ||
mode: number; | ||
nlink: number; | ||
uid: number; | ||
gid: number; | ||
rdev: number; | ||
size: number; | ||
blksize: number; | ||
blocks: number; | ||
atimeMs: number; | ||
mtimeMs: number; | ||
ctimeMs: number; | ||
birthtimeMs: number; | ||
atime: Date; | ||
mtime: Date; | ||
ctime: Date; | ||
birthtime: Date; | ||
} | ||
export declare enum Type { | ||
@@ -45,1 +71,2 @@ DIRECTORY = "directory", | ||
export declare function scan(path: string, options?: Options, onFile?: Callback, onDir?: Callback): Dree; | ||
export {}; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const fs_1 = require("fs"); | ||
/* DREE TYPES */ | ||
var Type; | ||
@@ -12,2 +13,3 @@ (function (Type) { | ||
})(Type = exports.Type || (exports.Type = {})); | ||
/* DEFAULT OPTIONS */ | ||
const DEFAULT_OPTIONS = { | ||
@@ -28,2 +30,3 @@ stat: false, | ||
}; | ||
/* SUPPORT FUNCTIONS */ | ||
function mergeOptions(options) { | ||
@@ -141,2 +144,3 @@ let result = {}; | ||
} | ||
/* EXPORTED FUNCTIONS */ | ||
/** | ||
@@ -143,0 +147,0 @@ * Retrurns the Directory Tree of a given path |
{ | ||
"name": "dree", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A nodejs module wich helps you handle a directory tree providing you its abstraction through tested functions and a custom configuration.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
14182
228