Socket
Socket
Sign inDemoInstall

pug-filters

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-filters - npm Package Compare versions

Comparing version 2.1.5 to 3.0.0

4

lib/handle-filters.js

@@ -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

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