Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/matcher

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/matcher - npm Package Compare versions

Comparing version 6.0.0 to 900.0.0

5

lib/index.js

@@ -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++) {

7

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

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