New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-layouts

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-layouts - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

4

History.md

@@ -0,1 +1,5 @@

1.8.1 - April 20, 2017
----------------------
* fix "too many opened files" error
1.8.0 - February 3, 2017

@@ -2,0 +6,0 @@ ------------------------

@@ -94,2 +94,3 @@ /**

var matches = {};
var templates = {};

@@ -118,3 +119,9 @@ /**

data.contents = data.contents.toString();
matches[file] = data;
var template = metalsmith.path(dir, data.layout || def);
if (!templates[template]) {
debug('found new template: %s', template);
templates[template] = file;
} else {
matches[file] = data;
}
});

@@ -158,6 +165,15 @@

/**
* Render all matched files
* Render all matched files.
*/
each(Object.keys(matches), convert, done);
function renderFiles(err) {
if (err) {
return done(err);
}
each(Object.keys(matches), convert, done);
}
// Do a first pass to load templates into the consolidate cache.
each(templates, convert, renderFiles);
};
}

2

package.json

@@ -6,3 +6,3 @@ {

"repository": "git://github.com/superwolff/metalsmith-layouts.git",
"version": "1.8.0",
"version": "1.8.1",
"license": "MIT",

@@ -9,0 +9,0 @@ "main": "lib/index.js",

@@ -5,4 +5,2 @@ # metalsmith-layouts

[![build status][build-badge]][build-url]
[![dependency status][dependency-badge]][dependency-url]
[![devdependency status][devdependency-badge]][devdependency-url]
[![downloads][downloads-badge]][downloads-url]

@@ -12,5 +10,2 @@

[![stack overflow][stackoverflow-badge]][stackoverflow-url]
[![slack chat][slack-badge]][slack-url]
This plugin allows you to apply layouts to your source files. It passes your source files to the selected layout as the variable `contents` and renders the result with the templating engine of your choice. You can use any templating engine supported by [consolidate.js](https://github.com/tj/consolidate.js#supported-template-engines).

@@ -249,13 +244,7 @@

[build-url]: https://travis-ci.org/superwolff/metalsmith-layouts
[dependency-badge]: https://david-dm.org/superwolff/metalsmith-layouts.svg
[dependency-url]: https://david-dm.org/superwolff/metalsmith-layouts
[devdependency-badge]: https://david-dm.org/superwolff/metalsmith-layouts/dev-status.svg
[devdependency-url]: https://david-dm.org/superwolff/metalsmith-layouts#info=devDependencies
[downloads-badge]: https://img.shields.io/npm/dm/metalsmith-layouts.svg
[downloads-url]: https://www.npmjs.com/package/metalsmith-layouts
[slack-badge]: https://img.shields.io/badge/Slack-Join%20Chat%20→-blue.svg
[slack-url]: http://metalsmith-slack.herokuapp.com/
[stackoverflow-badge]: https://img.shields.io/badge/stack%20overflow-%23metalsmith-red.svg
[stackoverflow-url]: http://stackoverflow.com/questions/tagged/metalsmith
[version-badge]: https://img.shields.io/npm/v/metalsmith-layouts.svg
[version-url]: https://www.npmjs.com/package/metalsmith-layouts
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