Comparing version 3.0.2 to 3.1.0
@@ -1,12 +0,3 @@ | ||
declare module 'escalade' { | ||
type Promisable<T> = T | Promise<T>; | ||
export type Callback = (directory: string, files: string[]) => Promisable<string | false | void>; | ||
function escalade(directory: string, callback: Callback): Promise<string | void>; | ||
export = escalade; | ||
} | ||
declare module 'escalade/sync' { | ||
export type Callback = (directory: string, files: string[]) => string | false | void; | ||
function escalade(directory: string, callback: Callback): string | void; | ||
export = escalade; | ||
} | ||
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>; |
{ | ||
"name": "escalade", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"repository": "lukeed/escalade", | ||
@@ -51,6 +51,6 @@ "description": "A tiny (183B to 210B) and fast utility to ascend parent directories", | ||
"devDependencies": { | ||
"bundt": "1.0.1", | ||
"bundt": "1.1.1", | ||
"esm": "3.2.25", | ||
"uvu": "0.0.11" | ||
"uvu": "0.3.3" | ||
} | ||
} |
@@ -12,2 +12,8 @@ # escalade [![CI](https://github.com/lukeed/escalade/workflows/CI/badge.svg)](https://github.com/lukeed/escalade/actions) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/escalade)](https://codecov.io/gh/lukeed/escalade) | ||
--- | ||
**Notice:** As of v3.1.0, `escalade` now includes [Deno support](http://deno.land/x/escalade)! Please see [Deno Usage](#deno) below. | ||
--- | ||
## Install | ||
@@ -181,3 +187,19 @@ | ||
## Deno | ||
As of v3.1.0, `escalade` is available on the Deno registry. | ||
Please note that the [API](#api) is identical and that there are still [two modes](#modes) from which to choose: | ||
```ts | ||
// Choose "async" mode | ||
import escalade from 'https://deno.land/escalade/async.ts'; | ||
// Choose "sync" mode | ||
import escalade from 'https://deno.land/escalade/sync.ts'; | ||
``` | ||
> **Important:** The `allow-read` permission is required! | ||
## Related | ||
@@ -184,0 +206,0 @@ |
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
11344
9
212
71