@pnpm/matcher
Advanced tools
Comparing version 6.0.0 to 900.0.0
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createMatcherWithIndex = exports.createMatcher = void 0; | ||
exports.createMatcher = createMatcher; | ||
exports.createMatcherWithIndex = createMatcherWithIndex; | ||
const escape_string_regexp_1 = __importDefault(require("escape-string-regexp")); | ||
@@ -13,3 +14,2 @@ function createMatcher(patterns) { | ||
} | ||
exports.createMatcher = createMatcher; | ||
function createMatcherWithIndex(patterns) { | ||
@@ -41,3 +41,2 @@ switch (patterns.length) { | ||
} | ||
exports.createMatcherWithIndex = createMatcherWithIndex; | ||
function matchInputWithNonIgnoreMatchers(matchArr, input) { | ||
@@ -44,0 +43,0 @@ for (let i = 0; i < matchArr.length; i++) { |
{ | ||
"name": "@pnpm/matcher", | ||
"version": "6.0.0", | ||
"version": "900.0.0", | ||
"description": "A simple pattern matcher for pnpm", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/matcher": "6.0.0" | ||
"@pnpm/matcher": "900.0.0" | ||
}, | ||
@@ -38,2 +38,5 @@ "exports": { | ||
}, | ||
"jest": { | ||
"preset": "@pnpm/jest-config" | ||
}, | ||
"scripts": { | ||
@@ -40,0 +43,0 @@ "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", |
@@ -14,5 +14,5 @@ # @pnpm/matcher | ||
```ts | ||
import matcher from '@pnpm/matcher' | ||
import { createMatcher } from '@pnpm/matcher' | ||
const match = matcher(['eslint-*']) | ||
const match = createMatcher(['eslint-*']) | ||
match('eslint-plugin-foo') | ||
@@ -19,0 +19,0 @@ //> true |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9151
94