Socket
Socket
Sign inDemoInstall

@types/which

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 3.0.0

18

which/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for which 2.0
// Type definitions for which 3.0
// Project: https://github.com/isaacs/node-which

@@ -9,18 +9,2 @@ // Definitions by: vvakame <https://github.com/vvakame>

/** Finds all instances of a specified executable in the PATH environment variable */
declare function which(
cmd: string,
options: which.Options & which.AsyncOptions & which.OptionsAll,
cb: (err: Error | null, paths: ReadonlyArray<string> | undefined) => void,
): void;
declare function which(
cmd: string,
options: which.Options & which.AsyncOptions & which.OptionsFirst,
cb: (err: Error | null, path: string | undefined) => void,
): void;
declare function which(
cmd: string,
options: which.Options & which.AsyncOptions,
cb: (err: Error | null, path: string | ReadonlyArray<string> | undefined) => void,
): void;
declare function which(cmd: string, cb: (err: Error | null, path: string | undefined) => void): void;
declare function which(cmd: string, options: which.Options & which.AsyncOptions & which.OptionsAll): Promise<string[]>;

@@ -27,0 +11,0 @@ declare function which(cmd: string, options?: which.Options & which.AsyncOptions & which.OptionsFirst): Promise<string>;

6

which/package.json
{
"name": "@types/which",
"version": "2.0.2",
"version": "3.0.0",
"description": "TypeScript definitions for which",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/which",

"dependencies": {},
"typesPublisherContentHash": "bb030e810883f6391704f6dba53e9fc0bb1b782bdbd6ba24719d196e92745b1e",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "2ef42211f36628285c1c2df4c665fa4029e4348e22720a4954c664ff146daf44",
"typeScriptVersion": "4.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 14 Feb 2023 10:32:35 GMT
* Last updated: Wed, 22 Mar 2023 20:32:44 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc