Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-nunjucks-api

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-nunjucks-api - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

8

index.js

@@ -49,2 +49,3 @@ 'use strict';

g.data = lodash.merge({}, og.data, options.data);
g.extensions = lodash.merge({}, og.extensions, options.extensions);
g.filters = lodash.merge({}, og.filters, options.filters);

@@ -54,2 +55,3 @@ g.functions = lodash.merge({}, og.functions, options.functions);

delete options.data;
delete options.extensions;
delete options.filters;

@@ -62,3 +64,5 @@ delete options.functions;

var env;
var filters = config.g.filters;
var g = config.g;
var filters = g.filters;
var extensions = g.extensions;

@@ -78,2 +82,4 @@ // At this point, options should only contain fields which are relevant to

env.addFilter(name, filters[name]);
for (name in extensions)
env.addExtension(name, extensions[name]);
}

@@ -80,0 +86,0 @@

2

package.json
{
"name": "gulp-nunjucks-api",
"version": "0.5.1",
"version": "0.5.2",
"description": "Render Nunjucks templates with data, custom filters, custom context functions and options for other Nunjucks API features.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -78,2 +78,4 @@ # gulp-nunjucks-api

context.
- **extensions** _(default: {})_ Object. Global extensions added to the
Nunjucks environment.
- **filters** _(default: {})_ Object. Global filter functions added to the

@@ -84,4 +86,5 @@ Nunjucks environment.

- **globals** _(default: undefined)_ Object. A single object which provides
`data`, `filters` and `functions` objects instead of setting each of these
options separately. Other global options are merged into this object.
`data`, `extensions`, `filters` and `functions` objects instead of setting
each of these options separately. The separate global options are merged into
this base object.

@@ -128,2 +131,2 @@ For example

[gulp-nunjucks](https://www.npmjs.org/package/gulp-nunjucks) for precompiling
Nunjucks templates. I updated his to render instead of precompile.
Nunjucks templates.
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