glob
Advanced tools
Comparing version 10.3.2 to 10.3.3
{ | ||
"version": "10.3.2", | ||
"version": "10.3.3", | ||
"type": "commonjs" | ||
} |
@@ -65,2 +65,6 @@ "use strict"; | ||
constructor(pattern, opts) { | ||
/* c8 ignore start */ | ||
if (!opts) | ||
throw new TypeError('glob options required'); | ||
/* c8 ignore stop */ | ||
this.withFileTypes = !!opts.withFileTypes; | ||
@@ -67,0 +71,0 @@ this.signal = opts.signal; |
@@ -62,2 +62,6 @@ import { Minimatch } from 'minimatch'; | ||
constructor(pattern, opts) { | ||
/* c8 ignore start */ | ||
if (!opts) | ||
throw new TypeError('glob options required'); | ||
/* c8 ignore stop */ | ||
this.withFileTypes = !!opts.withFileTypes; | ||
@@ -64,0 +68,0 @@ this.signal = opts.signal; |
{ | ||
"version": "10.3.2", | ||
"version": "10.3.3", | ||
"type": "module" | ||
} |
@@ -5,3 +5,3 @@ { | ||
"description": "the most correct and second fastest glob implementation in JavaScript", | ||
"version": "10.3.2", | ||
"version": "10.3.3", | ||
"bin": "./dist/cjs/src/bin.js", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -58,3 +58,3 @@ # Glob | ||
// folder multiple times. | ||
const g = new Glob('**/foo') | ||
const g = new Glob('**/foo', {}) | ||
// glob objects are async iterators, can also do globIterate() or | ||
@@ -362,2 +362,4 @@ // g.iterate(), same deal | ||
Options object is required. | ||
See full options descriptions below. | ||
@@ -364,0 +366,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
451741
4248
1215