Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-ignore

Package Overview
Dependencies
Maintainers
3
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.1.2 to 1.0.0

21

History.md
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
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