glob-promise
Advanced tools
Comparing version 4.0.1 to 4.1.0
{ | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"name": "glob-promise", | ||
@@ -11,3 +11,3 @@ "description": "Promise version of glob", | ||
}, | ||
"license": "ISC", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
@@ -14,0 +14,0 @@ "types": "lib/index.d.ts", |
@@ -11,3 +11,3 @@ # Promise version of glob | ||
> ***Note**: This is just a [`Promise`](http://promisesaplus.com/) wrapped version of [`glob`](https://github.com/isaacs/node-glob)* | ||
> ***Note**: This is just a [`Promise`][] wrapped version of [`glob`][]* | ||
@@ -22,6 +22,6 @@ ## Install | ||
[`glob`](https://github.com/isaacs/node-glob) is set as a `peerDependency` in [`package.json`](package.json) | ||
[`glob`][] is set as a `peerDependency` in [`package.json`][] | ||
- `npm` \<= `2` will automatically install `peerDependencies` if they are not explicitly depended upon higher in the dependency tree. | ||
- `npm` \>= 3 will no longer automatically install `peerDependencies`. | ||
- `npm` <= `2` will automatically install `peerDependencies` if they are not explicitly depended upon higher in the dependency tree. | ||
- `npm` >= 3 will no longer automatically install `peerDependencies`. | ||
@@ -40,7 +40,7 @@ You will need to manually add `glob` as a dependency to your project for `glob-promise` to work. | ||
*options*: `Object` or `String` | ||
Return: `Object` ([Promise](http://promisesaplus.com/)) | ||
Return: `Object` ([Promise][`Promise`]) | ||
When it finishes, it will be [*fulfilled*](http://promisesaplus.com/#point-26) with an `Array` of filenames as its first argument. | ||
When it finishes, it will be [*fulfilled*][] with an `Array` of filenames as its first argument. | ||
When it fails to read the files, it will be [*rejected*](http://promisesaplus.com/#point-30) with an error as its first argument. | ||
When it fails to read the files, it will be [*rejected*][] with an error as its first argument. | ||
@@ -61,20 +61,31 @@ ``` js | ||
> see [`glob`](https://github.com/isaacs/node-glob#globpattern-options-cb) | ||
> see [`glob`][1] | ||
### `glob.sync(pattern [, options])` | ||
> see [`glob.sync()`](https://github.com/isaacs/node-glob#globsyncpattern-options) | ||
> see [`glob.sync()`][] | ||
### `glob.hasMagic(pattern, [options])` | ||
> see [`glob.hasMagic()`](https://github.com/isaacs/node-glob#globhasmagicpattern-options) | ||
> see [`glob.hasMagic()`][] | ||
### `Class: glob.Glob` | ||
> see [`Glob`](https://github.com/isaacs/node-glob#class-globglob) | ||
> see [`Glob`][2] | ||
#### options | ||
The option object will be directly passed to [glob](https://github.com/isaacs/node-glob#options). | ||
The option object will be directly passed to [glob][]. | ||
[`Promise`]: http://promisesaplus.com/ | ||
[`glob`]: https://github.com/isaacs/node-glob | ||
[`package.json`]: package.json | ||
[*fulfilled*]: http://promisesaplus.com/#point-26 | ||
[*rejected*]: http://promisesaplus.com/#point-30 | ||
[1]: https://github.com/isaacs/node-glob#globpattern-options-cb | ||
[`glob.sync()`]: https://github.com/isaacs/node-glob#globsyncpattern-options | ||
[`glob.hasMagic()`]: https://github.com/isaacs/node-glob#globhasmagicpattern-options | ||
[2]: https://github.com/isaacs/node-glob#class-globglob | ||
[glob]: https://github.com/isaacs/node-glob#options | ||
---- | ||
@@ -81,0 +92,0 @@ > Author: [Ahmad Nassri](https://www.ahmadnassri.com/) • |
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
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
6144
105