metalsmith-ignore
Advanced tools
Comparing version 0.1.2 to 1.0.0
0.1.2 - March 11, 2013 | ||
---------------------- | ||
# 1.0.0 - 2018-07-17 | ||
* Updated Packages to fix security concerns | ||
* Fixed API with v1.0.0 | ||
## 0.1.2 - March 11, 2013 | ||
* remove rogue `debugger` statement | ||
0.1.1 - March 10, 2013 | ||
---------------------- | ||
## 0.1.1 - March 10, 2013 | ||
* actually make it work with `multimatch`, thanks @stevenschobert | ||
0.1.0 - March 7, 2013 | ||
--------------------- | ||
## 0.1.0 - March 7, 2013 | ||
* swap to `multimatch` from `minimatch` | ||
0.0.1 - March 6, 2013 | ||
--------------------- | ||
## 0.0.1 - March 6, 2013 | ||
:sparkles: |
@@ -1,11 +0,4 @@ | ||
var match = require('multimatch'); | ||
/** | ||
* Expose `plugin`. | ||
*/ | ||
module.exports = plugin; | ||
/** | ||
* Metalsmith plugin to ignore files that match a pattern. | ||
@@ -16,4 +9,3 @@ * | ||
*/ | ||
function plugin(opts){ | ||
var plugin = function (opts) { | ||
if ('string' == typeof opts) opts = [opts]; | ||
@@ -26,6 +18,9 @@ if (opts instanceof Array) opts = { patterns: opts }; | ||
setImmediate(done); | ||
for (var file in files) { | ||
if (match(file, patterns)[0]) delete files[file]; | ||
} | ||
var result = match(Object.keys(files), patterns).forEach(function (filename) { | ||
delete files[filename]; | ||
}); | ||
}; | ||
} | ||
// Expose `plugin`. | ||
module.exports = plugin; |
@@ -5,14 +5,17 @@ { | ||
"repository": "git://github.com/segmentio/metalsmith-ignore.git", | ||
"version": "0.1.2", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"multimatch": "^0.1.0" | ||
"multimatch": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "1.x", | ||
"metalsmith": "0.x", | ||
"assert-dir-equal": "^0.1.0", | ||
"assert-dir-equal": "^1.1.0", | ||
"metalsmith": "^2.3.0", | ||
"mocha": "^5.2.0", | ||
"rimraf": "^2.2.6" | ||
}, | ||
"scripts": { | ||
"test": "mocha test" | ||
} | ||
} |
# metalsmith-ignore | ||
A Metalsmith plugin to ignore files that match a pattern. | ||
A Metalsmith plugin to ignore files that match a pattern. Uses [multimatch](https://github.com/sindresorhus/multimatch) for matching. | ||
@@ -58,2 +58,2 @@ ## Installation | ||
MIT | ||
MIT |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3614
1
59
27
56
1
+ Addedarray-differ@1.0.0(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmultimatch@2.1.0(transitive)
- Removedlodash@2.4.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.14(transitive)
- Removedmultimatch@0.1.0(transitive)
- Removedsigmund@1.0.1(transitive)
Updatedmultimatch@^2.1.0