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

liquid-node

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquid-node - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

README.md

24

CHANGELOG.md
# LiquidNode Change History
## 1.1.0
- COMPAT: Update `bluebird` dependency.
## 1.0.0
- COMPAT: Require Node.js `>=0.10`.
- COMPAT: Stricter dependencies (i.e. bluebird, strftime) with `~` instead of `^`.
## 0.3.4
- ADDED: Added a `date` filter.
## 0.3.3
- ADDED: Added various standard filters (by **@dotnil**).
- FIXED: `toString` helper used by filters didn't return a String in all cases.
- FIXED: `undefined | my_filter:123` would output the string `my_filter:123`.
- IMPROVEMENT: append and prepend filters don't use Array.join anymore.
## 0.3.2
- FIX: `capture` tag captured output as an arrays and not as a string.
## 0.3.1

@@ -4,0 +28,0 @@

26

lib/liquid/block.js

@@ -139,18 +139,14 @@ // Generated by CoffeeScript 1.7.1

Block.prototype.renderAll = function(list, context) {
return Promise.reduce(list, function(output, token) {
if (typeof (token != null ? token.render : void 0) === "function") {
return Promise["try"](function() {
return Promise.cast(token.render(context)).then(function(renderedToken) {
output.push(renderedToken);
return output;
});
})["catch"](function(e) {
output.push(context.handleError(e));
return output;
});
} else {
output.push(token);
return output;
return Promise.map(list, function(token) {
if (typeof (token != null ? token.render : void 0) !== "function") {
return token;
}
}, []);
return Promise["try"](function() {
return token.render(context);
})["catch"](function(e) {
return context.handleError(e);
});
}, {
concurrency: 1
});
};

@@ -157,0 +153,0 @@

@@ -52,8 +52,7 @@ // Generated by CoffeeScript 1.7.1

Variable.prototype.render = function(context) {
var UNDEFINED, mapper;
var reducer;
if (this.name == null) {
return '';
}
UNDEFINED = {};
mapper = (function(_this) {
reducer = (function(_this) {
return function(output, filter) {

@@ -64,5 +63,2 @@ var filterArgs;

});
if (output === UNDEFINED) {
output = void 0;
}
return Promise.join.apply(Promise, [output].concat(__slice.call(filterArgs))).spread(function() {

@@ -85,6 +81,3 @@ var e, filterArgs, output;

return function(value) {
if (value == null) {
value = UNDEFINED;
}
return Promise.reduce(_this.filters, mapper, value).then(function(value) {
return Promise.reduce(_this.filters, reducer, value).then(function(value) {
if (value instanceof Liquid.Drop) {

@@ -91,0 +84,0 @@ if (typeof value.toString === "function") {

@@ -15,3 +15,3 @@ {

"description": "Node.js port of Tobias Lütke's Liquid template engine.",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://github.com/sirlantis/liquid-node",

@@ -31,3 +31,3 @@ "bugs": "https://github.com/sirlantis/liquid-node/issues",

"dependencies": {
"bluebird": "~1.2.2",
"bluebird": "~2.1.3",
"strftime": "~0.8.0"

@@ -38,3 +38,3 @@ },

"chai": "~1.9.1",
"mocha": "~1.18.2",
"mocha": "~1.20.1",
"chai-as-promised": "~4.1.1"

@@ -41,0 +41,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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