Comparing version 3.1.2 to 3.2.0
type Promisable<T> = T | Promise<T>; | ||
export type Callback = (directory: string, files: string[]) => Promisable<string | false | void>; | ||
export default function (directory: string, callback: Callback): Promise<string | void>; | ||
declare namespace escalade { | ||
export type Callback = ( | ||
directory: string, | ||
files: string[], | ||
) => Promisable<string | false | void>; | ||
} | ||
declare function escalade( | ||
directory: string, | ||
callback: escalade.Callback, | ||
): Promise<string | void>; | ||
export = escalade; |
{ | ||
"name": "escalade", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"repository": "lukeed/escalade", | ||
@@ -18,5 +18,10 @@ "description": "A tiny (183B to 210B) and fast utility to ascend parent directories", | ||
{ | ||
"types": "./index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
"import": { | ||
"types": "./index.d.mts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
@@ -27,5 +32,10 @@ "./dist/index.js" | ||
{ | ||
"types": "./sync/index.d.ts", | ||
"import": "./sync/index.mjs", | ||
"require": "./sync/index.js" | ||
"import": { | ||
"types": "./sync/index.d.mts", | ||
"default": "./sync/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./sync/index.d.ts", | ||
"default": "./sync/index.js" | ||
} | ||
}, | ||
@@ -36,2 +46,3 @@ "./sync/index.js" | ||
"files": [ | ||
"*.d.mts", | ||
"*.d.ts", | ||
@@ -38,0 +49,0 @@ "dist", |
@@ -1,2 +0,13 @@ | ||
export type Callback = (directory: string, files: string[]) => string | false | void; | ||
export default function (directory: string, callback: Callback): string | void; | ||
declare namespace escalade { | ||
export type Callback = ( | ||
directory: string, | ||
files: string[], | ||
) => string | false | void; | ||
} | ||
declare function escalade( | ||
directory: string, | ||
callback: escalade.Callback, | ||
): string | void; | ||
export = escalade; |
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
12385
11
89