minimatch
Advanced tools
Comparing version 5.1.4 to 6.0.0
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "5.1.4", | ||
"version": "6.0.0", | ||
"repository": { | ||
@@ -11,10 +11,41 @@ "type": "git", | ||
}, | ||
"main": "minimatch.js", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/mjs/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"test": "tap", | ||
"snap": "tap", | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"prepublishOnly": "git push origin --follow-tags" | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"preprepare": "rm -rf dist", | ||
"prepare": "tsc -p tsconfig-cjs.json && tsc -p tsconfig-esm.json", | ||
"postprepare": "bash fixup.sh", | ||
"pretest": "npm run prepare", | ||
"presnap": "npm run prepare", | ||
"test": "c8 tap", | ||
"snap": "c8 tap", | ||
"format": "prettier --write . --loglevel warn", | ||
"benchmark": "node benchmark/index.js", | ||
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts" | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": false, | ||
"bracketSameLine": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "lf" | ||
}, | ||
"engines": { | ||
@@ -27,9 +58,27 @@ "node": ">=10" | ||
"devDependencies": { | ||
"tap": "^16.3.2" | ||
"@types/brace-expansion": "^1.1.0", | ||
"@types/node": "^18.11.9", | ||
"@types/tap": "^15.0.7", | ||
"c8": "^7.12.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"mkdirp": "1", | ||
"prettier": "^2.8.2", | ||
"tap": "^16.3.3", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
}, | ||
"license": "ISC", | ||
"files": [ | ||
"minimatch.js", | ||
"lib" | ||
] | ||
"tap": { | ||
"coverage": false, | ||
"node-arg": [ | ||
"--no-warnings", | ||
"--loader", | ||
"ts-node/esm" | ||
], | ||
"ts": false | ||
}, | ||
"funding": { | ||
"url": "https://github.com/sponsors/isaacs" | ||
}, | ||
"license": "ISC" | ||
} |
@@ -5,5 +5,2 @@ # minimatch | ||
[![Build Status](https://travis-ci.org/isaacs/minimatch.svg?branch=master)](http://travis-ci.org/isaacs/minimatch) | ||
This is the matching library used internally by npm. | ||
@@ -16,4 +13,7 @@ | ||
```javascript | ||
var minimatch = require("minimatch") | ||
```js | ||
// hybrid module, load with require() or import | ||
import minimatch from 'minimatch' | ||
// or: | ||
const minimatch = require("minimatch").default | ||
@@ -20,0 +20,0 @@ minimatch("bar.foo", "*.foo") // true! |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
136820
11
1845
11
8
1