Socket
Socket
Sign inDemoInstall

@types/picomatch

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.2.2

32

picomatch/index.d.ts
// Type definitions for picomatch 2.2
// Project: https://github.com/micromatch/picomatch
// Definitions by: Patrick <https://github.com/Patcher56>
// Definitions by: Patrick <https://github.com/p-kuen>
// Daniel Tschinder <https://github.com/danez>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -21,4 +22,27 @@ // Minimum TypeScript Version: 3.0

interface ParseState {
input: string;
index: number;
start: number;
dot: boolean;
consumed: string;
output: string;
prefix: string;
backtrack: boolean;
negated: boolean;
negatedExtglob?: boolean;
brackets: number;
braces: number;
parens: number;
quotes: number;
globstar: boolean;
tokens: Array<Record<string, unknown>>;
}
type Matcher = (test: string) => boolean;
interface MatcherWithState extends Matcher {
state: ParseState;
}
interface Result {

@@ -55,3 +79,7 @@ glob: string;

*/
(glob: string | string[], options?: PicomatchOptions, returnState?: boolean): Matcher;
<T extends true | false>(
glob: string | string[],
options?: PicomatchOptions,
returnState?: T
): T extends true ? MatcherWithState : Matcher;

@@ -58,0 +86,0 @@ test(

15

picomatch/package.json
{
"name": "@types/picomatch",
"version": "2.2.1",
"version": "2.2.2",
"description": "TypeScript definitions for picomatch",

@@ -9,4 +9,9 @@ "license": "MIT",

"name": "Patrick",
"url": "https://github.com/Patcher56",
"githubUsername": "Patcher56"
"url": "https://github.com/p-kuen",
"githubUsername": "p-kuen"
},
{
"name": "Daniel Tschinder",
"url": "https://github.com/danez",
"githubUsername": "danez"
}

@@ -23,4 +28,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "12173c91f11ef757e67643c5b34ce321ab6b3536c9fe955cc195916ff0a95dc0",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "7bf0ec2a05c440dd31b713a5be64dbaf1b544aab31376b514f2bef6f4ec5d022",
"typeScriptVersion": "3.5"
}

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

### Additional Details
* Last updated: Mon, 27 Apr 2020 21:49:37 GMT
* Last updated: Mon, 12 Apr 2021 20:31:18 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Patrick](https://github.com/Patcher56).
These definitions were written by [Patrick](https://github.com/p-kuen), and [Daniel Tschinder](https://github.com/danez).
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