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

@pnpm/matcher

Package Overview
Dependencies
Maintainers
3
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 1.0.3 to 2.0.0

6

CHANGELOG.md
# @pnpm/matcher
## 2.0.0
### Major Changes
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
## 1.0.3

@@ -4,0 +10,0 @@

7

lib/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const escapeStringRegexp = require("escape-string-regexp");
const escape_string_regexp_1 = __importDefault(require("escape-string-regexp"));
function matcher(patterns) {

@@ -19,3 +22,3 @@ if (typeof patterns === 'string')

}
const escapedPattern = escapeStringRegexp(pattern).replace(/\\\*/g, '.*');
const escapedPattern = (0, escape_string_regexp_1.default)(pattern).replace(/\\\*/g, '.*');
if (escapedPattern === pattern) {

@@ -22,0 +25,0 @@ return (input) => input === pattern;

{
"name": "@pnpm/matcher",
"version": "1.0.3",
"description": "A simple pattern matcher for pnpm",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"engines": {
"node": ">=10.13"
},
"files": [
"lib",
"!*.map"
],
"scripts": {
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts",
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/matcher/coverage ts-node packages/matcher/test --type-check",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/matcher",
"keywords": [
"pnpm",
"match",
"wildcard",
"pattern"
],
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/matcher#readme",
"devDependencies": {
"@pnpm/matcher": "link:"
},
"dependencies": {
"escape-string-regexp": "^4.0.0"
},
"funding": "https://opencollective.com/pnpm"
"name": "@pnpm/matcher",
"version": "2.0.0",
"description": "A simple pattern matcher for pnpm",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"engines": {
"node": ">=12.17"
},
"files": [
"lib",
"!*.map"
],
"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/matcher",
"keywords": [
"pnpm",
"match",
"wildcard",
"pattern"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/matcher#readme",
"dependencies": {
"escape-string-regexp": "^4.0.0"
},
"funding": "https://opencollective.com/pnpm"
}

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