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

templates

Package Overview
Dependencies
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

templates - npm Package Compare versions

Comparing version 0.22.1 to 0.22.2

4

changelog.md

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

### v0.22.2
- fixes `List` bug that was caused collection helpers to explode
### v0.22.0

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

28

lib/collection.js

@@ -105,2 +105,21 @@ 'use strict';

/**
* Identical to `.addItem`, except the collection instance is returned instead of
* the item, to allow chaining.
*
* ```js
* collection.setItem('foo', {content: 'bar'});
* ```
* @emits `item` With the created `item` and `collection` instance as arguments.
* @param {String|Object} `key` Item name or object
* @param {Object} `val` Item object, when `key` is a string.
* @return {Object} returns the `collection` instance.
* @api public
*/
Collection.prototype.setItem = function(/*key, value*/) {
this.addItem.apply(this, arguments);
return this;
};
/**
* Get an item from `collection.items`.

@@ -196,11 +215,2 @@ *

/**
* Deprecated
*/
Collection.prototype.setItem = function(/*key, value*/) {
console.log('`.setItem` is deprecated. Use `.addItem` instead.');
return this.addItem.apply(this, arguments);
};
/**
* Expose static properties

@@ -207,0 +217,0 @@ */

{
"name": "templates",
"description": "System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.",
"version": "0.22.1",
"version": "0.22.2",
"homepage": "https://github.com/jonschlinkert/templates",

@@ -55,3 +55,2 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"template-error": "^0.1.2",
"vinyl": "^1.1.1",
"vinyl-item": "^0.1.0",

@@ -63,21 +62,11 @@ "vinyl-view": "^0.1.0"

"base-test-runner": "^0.2.0",
"consolidate": "^0.14.1",
"engine-handlebars": "^0.8.0",
"base-test-suite": "^0.1.10",
"ent": "^2.2.0",
"event-stream": "^3.3.2",
"find-pkg": "^0.1.1",
"gulp": "^3.9.1",
"gulp-eslint": "^2.0.0",
"gulp-format-md": "^0.1.9",
"gulp-istanbul": "^0.10.4",
"gulp-istanbul": "^1.0.0",
"gulp-mocha": "^2.2.0",
"gulp-unused": "^0.1.2",
"is-buffer": "^1.1.3",
"kind-of": "^3.0.3",
"mocha": "^2.5.3",
"parser-front-matter": "^1.3.0",
"remarkable": "^1.6.2",
"resolve-glob": "^0.1.8",
"rimraf": "^2.5.2",
"swig": "^1.4.2",
"verb-readme-generator": "^0.1.13",

@@ -84,0 +73,0 @@ "yargs-parser": "^2.4.0"

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