Socket
Socket
Sign inDemoInstall

escalade

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escalade - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

sync/index.d.ts

15

index.d.ts

@@ -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>;

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc