Updated to v1.9.9

This commit is contained in:
Henry Whitaker
2020-11-07 15:27:50 +00:00
parent 15d3583423
commit 8d811862a0
6349 changed files with 338454 additions and 213438 deletions

View File

@@ -1,12 +1,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>;

View File

@@ -1,32 +1,32 @@
{
"_args": [
[
"escalade@3.0.2",
"escalade@3.1.1",
"/home/henry/Documents/git/Speedtest-tracker-docker/conf/site"
]
],
"_development": true,
"_from": "escalade@3.0.2",
"_id": "escalade@3.0.2",
"_from": "escalade@3.1.1",
"_id": "escalade@3.1.1",
"_inBundle": false,
"_integrity": "sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ==",
"_integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"_location": "/escalade",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "escalade@3.0.2",
"raw": "escalade@3.1.1",
"name": "escalade",
"escapedName": "escalade",
"rawSpec": "3.0.2",
"rawSpec": "3.1.1",
"saveSpec": null,
"fetchSpec": "3.0.2"
"fetchSpec": "3.1.1"
},
"_requiredBy": [
"/browserslist"
],
"_resolved": "https://registry.npmjs.org/escalade/-/escalade-3.0.2.tgz",
"_spec": "3.0.2",
"_resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
"_spec": "3.1.1",
"_where": "/home/henry/Documents/git/Speedtest-tracker-docker/conf/site",
"author": {
"name": "Luke Edwards",
@@ -38,22 +38,28 @@
},
"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"
},
"engines": {
"node": ">=6"
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./sync": {
"import": "./sync/index.mjs",
"require": "./sync/index.js"
}
".": [
{
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./dist/index.js"
],
"./sync": [
{
"import": "./sync/index.mjs",
"require": "./sync/index.js"
},
"./sync/index.js"
]
},
"files": [
"*.d.ts",
@@ -87,5 +93,5 @@
"test": "uvu -r esm test -i fixtures"
},
"types": "index.d.ts",
"version": "3.0.2"
"version": "3.1.1"
}

View File

@@ -9,6 +9,12 @@ With [escalade](https://en.wikipedia.org/wiki/Escalade), you can scale parent di
> **Important:**<br>Please note that `escalade` only deals with direct ancestry it will not dive into parents' sibling directories.
---
**Notice:** As of v3.1.0, `escalade` now includes [Deno support](http://deno.land/x/escalade)! Please see [Deno Usage](#deno) below.
---
## Install
```
@@ -177,6 +183,22 @@ If the string is an absolute path, then it's left as is. Otherwise, the string i
escalade/sync x 1,248 ops/sec ± 0.50% (93 runs sampled)
```
## 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

2
conf/site/node_modules/escalade/sync/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export type Callback = (directory: string, files: string[]) => string | false | void;
export default function (directory: string, callback: Callback): string | void;