@pnpm/matcher
Advanced tools
Comparing version 1.0.3 to 2.0.0
# @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 @@ |
"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
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
3940
0
29
1