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.1.2 to 3.2.0

index.d.mts

16

index.d.ts
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;

25

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