micromatch
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -158,6 +158,6 @@ 'use strict'; | ||
let matches = micromatch(list, patterns, { ...options, onResult }); | ||
let matches = new Set(micromatch(list, patterns, { ...options, onResult })); | ||
for (let item of items) { | ||
if (!matches.includes(item)) { | ||
if (!matches.has(item)) { | ||
result.add(item); | ||
@@ -412,3 +412,3 @@ } | ||
* const mm = require('micromatch'); | ||
* const state = mm(pattern[, options]); | ||
* const state = mm.parse(pattern[, options]); | ||
* ``` | ||
@@ -415,0 +415,0 @@ * @param {String} `glob` |
{ | ||
"name": "micromatch", | ||
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"homepage": "https://github.com/micromatch/micromatch", | ||
@@ -40,4 +40,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"braces": "^3.0.1", | ||
"picomatch": "^2.2.3" | ||
"braces": "^3.0.2", | ||
"picomatch": "^2.3.1" | ||
}, | ||
@@ -47,4 +47,4 @@ "devDependencies": { | ||
"gulp-format-md": "^2.0.0", | ||
"minimatch": "^3.0.4", | ||
"mocha": "^7.2.0", | ||
"minimatch": "^5.0.1", | ||
"mocha": "^9.2.2", | ||
"time-require": "github:jonschlinkert/time-require" | ||
@@ -51,0 +51,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Linux Build Status](https://img.shields.io/travis/micromatch/micromatch.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/micromatch) | ||
# micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Tests](https://github.com/micromatch/micromatch/actions/workflows/test.yml/badge.svg)](https://github.com/micromatch/micromatch/actions/workflows/test.yml) | ||
@@ -57,3 +57,3 @@ > Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch. | ||
Install with [npm](https://www.npmjs.com/): | ||
Install with [npm](https://www.npmjs.com/) (requires [Node.js](https://nodejs.org/en/) >=8.6): | ||
@@ -107,3 +107,3 @@ ```sh | ||
* Wildcards (`**`, `*.js`) | ||
* Negation (`'!a/*.js'`, `'*!(b).js']`) | ||
* Negation (`'!a/*.js'`, `'*!(b).js'`) | ||
* [extglobs](#extglobs) (`+(x|y)`, `!(a|b)`) | ||
@@ -424,3 +424,3 @@ * [POSIX character classes](#posix-bracket-expressions) (`[[:alpha:][:digit:]]`) | ||
const mm = require('micromatch'); | ||
const state = mm(pattern[, options]); | ||
const state = mm.parse(pattern[, options]); | ||
``` | ||
@@ -851,3 +851,3 @@ | ||
As of April 10, 2021 (longer bars are better): | ||
As of March 24, 2022 (longer bars are better): | ||
@@ -970,8 +970,8 @@ ```sh | ||
| --- | --- | | ||
| 508 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 512 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 12 | [es128](https://github.com/es128) | | ||
| 9 | [danez](https://github.com/danez) | | ||
| 8 | [doowb](https://github.com/doowb) | | ||
| 6 | [paulmillr](https://github.com/paulmillr) | | ||
| 5 | [mrmlnc](https://github.com/mrmlnc) | | ||
| 4 | [danez](https://github.com/danez) | | ||
| 3 | [DrPizza](https://github.com/DrPizza) | | ||
@@ -982,2 +982,3 @@ | 2 | [TrySound](https://github.com/TrySound) | | ||
| 2 | [MartinKolarik](https://github.com/MartinKolarik) | | ||
| 2 | [antonyk](https://github.com/antonyk) | | ||
| 2 | [Tvrqvoise](https://github.com/Tvrqvoise) | | ||
@@ -990,2 +991,3 @@ | 1 | [amilajack](https://github.com/amilajack) | | ||
| 1 | [frangio](https://github.com/frangio) | | ||
| 1 | [joyceerhl](https://github.com/joyceerhl) | | ||
| 1 | [juszczykjakub](https://github.com/juszczykjakub) | | ||
@@ -996,2 +998,3 @@ | 1 | [muescha](https://github.com/muescha) | | ||
| 1 | [fidian](https://github.com/fidian) | | ||
| 1 | [curbengh](https://github.com/curbengh) | | ||
| 1 | [simlu](https://github.com/simlu) | | ||
@@ -1011,3 +1014,3 @@ | 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | | ||
Copyright © 2021, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Copyright © 2022, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT License](LICENSE). | ||
@@ -1017,2 +1020,2 @@ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 10, 2021._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 24, 2022._ |
1011
55947
4
Updatedbraces@^3.0.2
Updatedpicomatch@^2.3.1