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 1.1.1 to 1.2.0

9

lib/handle-filters.js

@@ -10,3 +10,4 @@ 'use strict';

module.exports = handleFilters;
function handleFilters(ast, filters) {
function handleFilters(ast, filters, options) {
options = options || {};
walk(ast, function (node) {

@@ -18,2 +19,8 @@ var dir = node.filename ? dirname(node.filename) : null;

var attrs = getAttributes(node);
var opts = options[node.name] || {};
Object.keys(opts).forEach(function (opt) {
if (!attrs.hasOwnProperty(opt)) {
attrs[opt] = opts[opt];
}
});
attrs.filename = node.filename;

@@ -20,0 +27,0 @@ node.type = 'Text';

2

package.json
{
"name": "pug-filters",
"version": "1.1.1",
"version": "1.2.0",
"description": "Code for processing filters in pug templates",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,3 +6,3 @@ # pug-filters

[![Build Status](https://img.shields.io/travis/pugjs/pug-filters/master.svg)](https://travis-ci.org/pugjs/pug-filters)
[![Dependency Status](https://img.shields.io/gemnasium/pugjs/pug-filters.svg)](https://gemnasium.com/pugjs/pug-filters)
[![Dependency Status](https://img.shields.io/david/pugjs/pug-filters.svg)](https://david-dm.org/pugjs/pug-filters)
[![NPM version](https://img.shields.io/npm/v/pug-filters.svg)](https://www.npmjs.org/package/pug-filters)

@@ -9,0 +9,0 @@

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