pug-filters
Advanced tools
Comparing version 2.1.5 to 3.0.0
@@ -22,3 +22,3 @@ 'use strict'; | ||
} else if (node.type === 'RawInclude' && node.filters.length) { | ||
var firstFilter = node.filters.shift(); | ||
var firstFilter = node.filters.pop(); | ||
var attrs = getAttributes(firstFilter, options); | ||
@@ -29,3 +29,3 @@ var filename = attrs.filename = node.file.fullPath; | ||
node.val = filterFileWithFallback(firstFilter, filename, str, attrs); | ||
node.filters.forEach(function (filter) { | ||
node.filters.slice().reverse().forEach(function (filter) { | ||
var attrs = getAttributes(filter, options); | ||
@@ -32,0 +32,0 @@ attrs.filename = filename; |
{ | ||
"name": "pug-filters", | ||
"version": "2.1.5", | ||
"version": "3.0.0", | ||
"description": "Code for processing filters in pug templates", | ||
@@ -11,5 +11,5 @@ "keywords": [ | ||
"constantinople": "^3.0.1", | ||
"jstransformer": "1.0.0", | ||
"pug-error": "^1.3.2", | ||
"pug-walk": "^1.1.5", | ||
"jstransformer": "1.0.0", | ||
"pug-walk": "^1.1.6", | ||
"resolve": "^1.1.6", | ||
@@ -26,5 +26,5 @@ "uglify-js": "^2.6.1" | ||
"jstransformer-uglify-js": "^1.1.1", | ||
"pug-lexer": "^3.1.0", | ||
"pug-load": "^2.0.9", | ||
"pug-parser": "^4.0.0" | ||
"pug-lexer": "^4.0.0", | ||
"pug-load": "^2.0.10", | ||
"pug-parser": "^4.0.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "repository": { |
@@ -107,2 +107,9 @@ { | ||
"type": "IncludeFilter", | ||
"name": "cdata", | ||
"attrs": [], | ||
"line": 7, | ||
"filename": "filters.include.tokens.json" | ||
}, | ||
{ | ||
"type": "IncludeFilter", | ||
"name": "coffee-script", | ||
@@ -154,2 +161,2 @@ "attrs": [ | ||
"filename": "filters.include.tokens.json" | ||
} | ||
} |
@@ -42,3 +42,3 @@ 'use strict'; | ||
} catch (ex) { | ||
if (!ex || !ex.code || !ex.code.indexOf('PUG:') === 0) throw ex; | ||
if (!ex || !ex.code || ex.code.indexOf('PUG:') !== 0) throw ex; | ||
actual = { | ||
@@ -45,0 +45,0 @@ msg: ex.msg, |
@@ -21,3 +21,3 @@ 'use strict'; | ||
} catch (ex) { | ||
if (!ex || !ex.code || !ex.code.indexOf('PUG:') === 0) throw ex; | ||
if (!ex || !ex.code || ex.code.indexOf('PUG:') !== 0) throw ex; | ||
return { | ||
@@ -24,0 +24,0 @@ msg: ex.msg, |
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
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
99522
1561
Updatedpug-walk@^1.1.6