shopify-liquid
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "shopify-liquid", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "A Shopify Liquid Implementation in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,5 +7,12 @@ const _ = require('lodash'); | ||
get: function(str) { | ||
var ctx = {}; | ||
for (var i = this.scopes.length - 1; i >= 0; i--) { | ||
if(str === undefined){ | ||
_.merge(ctx, this.scopes[i]); | ||
} | ||
var v = _.get(this.scopes[i], str); | ||
if (v !== undefined) return v; | ||
if(str === undefined){ | ||
return ctx; | ||
} | ||
} | ||
@@ -12,0 +19,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57526
1122