Comparing version 1.0.1 to 1.1.0
@@ -1,5 +0,13 @@ | ||
import { Stats } from 'fs'; | ||
declare module 'totalist' { | ||
import { Stats } from 'fs'; | ||
export type Caller = (relPath: string, absPath: string, stats: Stats) => any; | ||
function totalist(dir: string, callback: Caller, prefix?: string): Promise<void>; | ||
export = totalist; | ||
} | ||
export type Caller = (relPath: string, absPath: string, stats: Stats) => any; | ||
declare function totalist(dir: string, callback: Caller): Promise<void>; | ||
export default totalist; | ||
declare module 'totalist/sync' { | ||
import { Stats } from 'fs'; | ||
export type Caller = (relPath: string, absPath: string, stats: Stats) => any; | ||
function totalist(dir: string, callback: Caller, prefix?: string): void; | ||
export = totalist; | ||
} |
{ | ||
"name": "totalist", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"repository": "lukeed/totalist", | ||
@@ -11,3 +11,3 @@ "description": "A tiny (195B to 224B) utility to recursively list all (total) files in a directory", | ||
"files": [ | ||
"*.d.ts", | ||
"index.d.ts", | ||
"dist", | ||
@@ -32,12 +32,16 @@ "sync" | ||
"scripts": { | ||
"build": "node bin", | ||
"test": "tape -r esm test/*.js | tap-spec" | ||
"build": "bundt", | ||
"postbuild": "cp sync.d.ts sync/index.d.ts", | ||
"test": "uvu -r esm test -i fixtures" | ||
}, | ||
"modes": { | ||
"sync": "src/sync.js", | ||
"default": "src/async.js" | ||
}, | ||
"devDependencies": { | ||
"bundt": "0.4.0", | ||
"bundt": "1.0.1", | ||
"esm": "3.2.25", | ||
"premove": "1.0.0", | ||
"tap-spec": "5.0.0", | ||
"tape": "4.11.0" | ||
"uvu": "0.0.13" | ||
} | ||
} |
import { Stats } from 'fs'; | ||
export type Caller = (relPath: string, absPath: string, stats: Stats) => any; | ||
declare function totalist(dir: string, callback: Caller): void; | ||
declare function totalist(dir: string, callback: Caller, prefix?: string): void; | ||
export default totalist; |
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
7522
4
84