dustjs-linkedin
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -46,3 +46,5 @@ var dustCompiler = (function(dust) { | ||
literal: noop, | ||
comment: nullify | ||
comment: nullify, | ||
line: nullify, | ||
col: nullify | ||
}; | ||
@@ -49,0 +51,0 @@ |
@@ -173,4 +173,7 @@ var dust = {}; | ||
while (!ctx && !cur){ | ||
//if there was a partial match, don't search further | ||
if (i > 1) return undefined; | ||
// i is the count of number of path elements matched. If > 1 then we have a partial match | ||
// and do not continue to search for the rest of the path. | ||
// Note: a falsey value at the end of a matched path also comes here. | ||
// This returns the value or undefined if we just have a partial match. | ||
if (i > 1) return ctx; | ||
if (tail){ | ||
@@ -177,0 +180,0 @@ ctx = tail.head; |
{ | ||
"name": "dustjs-linkedin", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Aleksander Williams", | ||
@@ -22,2 +22,6 @@ "description": "Asynchronous templates for the browser and node.js ( LinkedIn fork )", | ||
"email": "rragan@ebay.com" | ||
}, | ||
{ | ||
"name": "Steven Foote", | ||
"email": "sfoote@linkedin.com" | ||
} | ||
@@ -36,6 +40,7 @@ ], | ||
"keywords": ["templates", "views"], | ||
"devDependencies": { | ||
"jasmine-node" : "1.9.x", | ||
"cover" : "0.2.x", | ||
"uglify-js" : "1.3.3" | ||
"devDependencies": { | ||
"jasmine-node" : "1.9.x", | ||
"cover" : "0.2.x", | ||
"uglify-js" : "1.3.3", | ||
"pegjs" : "0.7.0" | ||
}, | ||
@@ -42,0 +47,0 @@ "license": "MIT", |
@@ -732,2 +732,10 @@ var coreTests = [ | ||
{ | ||
name: "Standard dotted path with falsey value. Issue 317", | ||
source: "{foo.bar}", | ||
options: {pathScope: "global"}, | ||
context: { foo: {bar: 0} }, | ||
expected: "0", | ||
message: "should work when value at end of path is falsey" | ||
}, | ||
{ | ||
name: "dotted path resolution up context", | ||
@@ -734,0 +742,0 @@ source: "{#data.A.list}Aname{data.A.name}{/data.A.list}", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
2011695
88
52378
4
7
27