Socket
Socket
Sign inDemoInstall

metalsmith-ignore

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-ignore - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

6

History.md
0.1.0 - March 7, 2013
---------------------
* swap to `multimatch` from `minimatch`
0.0.1 - March 6, 2013
------------------------
---------------------
:sparkles:

10

lib/index.js
var Match = require('minimatch').Minimatch;
var match = require('multimatch');

@@ -22,7 +22,3 @@ /**

opts = opts || {};
var patterns = opts.patterns || [];
var matchers = patterns.map(function(str){
return new Match(str);
});

@@ -32,7 +28,5 @@ return function(files, metalsmith, done){

for (var file in files) {
for (var i = 0, matcher; matcher = matchers[i]; i++) {
if (matcher.match(file)) delete files[file];
}
if (match(file, patterns)) delete files[file];
}
};
}

@@ -5,7 +5,7 @@ {

"repository": "git://github.com/segmentio/metalsmith-ignore.git",
"version": "0.0.1",
"version": "0.1.0",
"license": "MIT",
"main": "lib/index.js",
"dependencies": {
"minimatch": "^0.2.14"
"multimatch": "^0.1.0"
},

@@ -12,0 +12,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc