Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "walkdir", | ||
"description": "Find files simply. Walks a directory tree emitting events based on what it finds. Presents a familiar callback/emitter/a+sync interface. Walk a tree of any depth.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Ryan Day <soldair@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -36,3 +36,5 @@ import * as walkdir from './walkdir'; | ||
walkdir.async("").then((s)=>s.splice(0)) | ||
walkdir.async("",{}).then((s)=>s.splice(0)) | ||
walkdir.async("",{return_object:true}).then((a)=>{ | ||
@@ -39,0 +41,0 @@ a[Object.keys(a)[0]].isDirectory() |
@@ -178,3 +178,3 @@ import { EventEmitter } from "events"; | ||
export function sync(path:string,options:walkdir.WalkOptions&{return_object:true},eventListener?:walkdir.WalkEventListener):{[path:string]:Stats}; | ||
export function sync(path:string,options?:walkdir.WalkOptions&{return_object:false|undefined},eventListener?:walkdir.WalkEventListener):string[]; | ||
export function sync(path:string,options?:walkdir.WalkOptions&{return_object?:false},eventListener?:walkdir.WalkEventListener):string[]; | ||
export function sync(path:string,options?:walkdir.WalkOptions&{return_object?:boolean},eventListener?:walkdir.WalkEventListener):string[]|{[path:string]:Stats}; | ||
@@ -184,4 +184,4 @@ | ||
export function async(path:string,options:walkdir.WalkOptions&{return_object:true},eventListener?:walkdir.WalkEventListener):Promise<{[path:string]:Stats}>; | ||
export function async(path:string,options?:walkdir.WalkOptions&{return_object:false},eventListener?:walkdir.WalkEventListener):Promise<string[]>; | ||
export function async(path:string,options?:walkdir.WalkOptions&{return_object?:false},eventListener?:walkdir.WalkEventListener):Promise<string[]>; | ||
export function async(path:string,options?:walkdir.WalkOptions&{return_object?:boolean},eventListener?:walkdir.WalkEventListener):Promise<string[]>|Promise<{[path:string]:Stats}>; | ||
} |
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
41050