fuzzmatch 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -23,6 +23,10 @@ Again, if you want anymatch, just do this:
23
23
  ```js
24
24
  var anymatch = fuzzmatch('anymatch')
25
25
  ```
26
+ It also provides is-match, but because that package is vulnerable, it actually provides a stub function that returns a function that returns true:
27
+ ```js
28
+ console.log(fuzzmatch('is-match')()()) // true
29
+ ```
26
30
  Here is an example:
27
31
  ```js
28
32
  var assert = require('assert')
package/index.js CHANGED
@@ -33,6 +33,8 @@ function getMatcher(matcherName) {
33
33
  return nanomatch
34
34
  case "anymatch":
35
35
  return anymatch
36
+ case "is-match":
37
+ return require("@substack/is-match")
36
38
  default:
37
39
  return
38
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuzzmatch",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "A wrapper for your matchers!",
5
5
  "keywords": [
6
6
  "match",