Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "nunjucks", | ||
"description": "A jinja inspired templating engine", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "James Long", |
@@ -7,2 +7,5 @@ | ||
// Node <0.7.1 compatibility | ||
var existsSync = fs.existsSync ? fs.existsSync : path.existsSync; | ||
var FileSystemLoader = Object.extend({ | ||
@@ -24,3 +27,3 @@ init: function(searchPaths) { | ||
var p = path.join(paths[i], name); | ||
if(fs.existsSync(p)) { | ||
if(existsSync(p)) { | ||
fullpath = p; | ||
@@ -27,0 +30,0 @@ break; |
@@ -63,3 +63,3 @@ | ||
if(lineno && colno) { | ||
msg = '[' + lineno + ',' + colno + '] ' + msg; | ||
msg = '[Line ' + (lineno + 1) + ', Column ' + (colno + 1) + '] ' + msg; | ||
} | ||
@@ -649,3 +649,5 @@ | ||
else { | ||
throw new Error("parseExpression: invalid token: " + tok.value); | ||
this.fail('unexpected token: ' + tok.value, | ||
tok.lineno, | ||
tok.colno); | ||
} | ||
@@ -652,0 +654,0 @@ }, |
Sorry, the diff of this file is too big to display
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
327407
9263