Comparing version 1.0.1 to 1.0.2
export = glob; | ||
/** | ||
* @typedef {string} Glob | ||
* @typedef {Object} OptionsExt | ||
* @property {Glob[]} [ignore] - Glob patterns to ignore | ||
* @typedef {object} OptionsExt | ||
* @property {string} [cwd=process.cwd()] | ||
@@ -27,6 +26,2 @@ * @property {boolean} [absolute=false] - If true produces absolute paths | ||
type OptionsExt = { | ||
/** | ||
* - Glob patterns to ignore | ||
*/ | ||
ignore?: string[] | undefined; | ||
cwd?: string | undefined; | ||
@@ -33,0 +28,0 @@ /** |
@@ -9,4 +9,3 @@ 'use strict' | ||
* @typedef {string} Glob | ||
* @typedef {Object} OptionsExt | ||
* @property {Glob[]} [ignore] - Glob patterns to ignore | ||
* @typedef {object} OptionsExt | ||
* @property {string} [cwd=process.cwd()] | ||
@@ -13,0 +12,0 @@ * @property {boolean} [absolute=false] - If true produces absolute paths |
{ | ||
"name": "it-glob", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Async iterable filename pattern matcher", | ||
"main": "index.js", | ||
"repository": "github:achingbrain/it", | ||
"homepage": "https://github.com/achingbrain/it#readme", | ||
"homepage": "https://github.com/achingbrain/it/tree/master/packages/it-glob#readme", | ||
"bugs": "https://github.com/achingbrain/it/issues", | ||
@@ -27,3 +27,3 @@ "scripts": { | ||
"ava": "^3.12.1", | ||
"it-all": "^1.0.5", | ||
"it-all": "^1.0.6", | ||
"nyc": "^15.1.0", | ||
@@ -38,3 +38,3 @@ "standard": "^16.0.3", | ||
"types": "dist/index.d.ts", | ||
"gitHead": "005ceb6e31c744667fff35a4fee1fd7b8105923e" | ||
"gitHead": "29126fa87dae108acef381693812f22ac8f9362b" | ||
} |
# it-glob | ||
[![Build status](https://travis-ci.org/achingbrain/it.svg?branch=master)](https://travis-ci.org/achingbrain/it?branch=master) [![Coverage Status](https://coveralls.io/repos/github/achingbrain/it/badge.svg?branch=master)](https://coveralls.io/github/achingbrain/it?branch=master) [![Dependencies Status](https://david-dm.org/achingbrain/it/status.svg?path=packages/it-glob)](https://david-dm.org/achingbrain/it?path=packages/it-glob) | ||
[![Build status](https://github.com/achingbrain/it/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/achingbrain/it/actions/workflows/test.yml) [![Coverage Status](https://coveralls.io/repos/github/achingbrain/it/badge.svg?branch=master)](https://coveralls.io/github/achingbrain/it?branch=master) [![Dependencies Status](https://david-dm.org/achingbrain/it/status.svg?path=packages/it-glob)](https://david-dm.org/achingbrain/it?path=packages/it-glob) | ||
@@ -5,0 +5,0 @@ > Async iterable filename pattern matcher |
12
test.js
@@ -15,3 +15,3 @@ const test = require('ava') | ||
t.truthy(files.includes('node_modules/it-all')) | ||
t.truthy(files.includes(path.join('node_modules', 'it-all'))) | ||
}) | ||
@@ -49,3 +49,3 @@ | ||
files.forEach(file => { | ||
t.truthy(file.startsWith('/')) | ||
t.truthy(path.isAbsolute(file)) | ||
}) | ||
@@ -60,3 +60,3 @@ }) | ||
files.forEach(file => { | ||
t.falsy(file.startsWith('/')) | ||
t.falsy(path.isAbsolute(file)) | ||
}) | ||
@@ -68,3 +68,3 @@ }) | ||
t.truthy(files.includes('node_modules/it-all')) | ||
t.truthy(files.includes(path.join('node_modules', 'it-all'))) | ||
}) | ||
@@ -78,4 +78,4 @@ | ||
t.falsy(files.includes('node_modules/.bin')) | ||
t.truthy(files.includes('node_modules/.bin/ava')) | ||
t.falsy(files.includes(path.join('node_modules', '.bin'))) | ||
t.truthy(files.includes(path.join('node_modules', '.bin', 'ava'))) | ||
}) |
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
7373
157