New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-fest

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-fest - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

test/expected/tmp/dynamic-named/test/fixtures/qux/bar/baz.js

2

CHANGELOG.md

@@ -0,1 +1,3 @@

v0.1.3
Support for function name within dynamic mappings
v0.1.2

@@ -2,0 +4,0 @@ Added option to name compiled function

2

CONTRIBUTING.md

@@ -1,1 +0,1 @@

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). Before pull-request to dev branch do rebase.

@@ -85,2 +85,12 @@ /*

}
},
named_function_within_dynamic_expansion: {
files: [{
expand: true, // Enable dynamic expantion.
src: ['test/fixtures/qux/**/*.xml'],
dest: 'test/tmp/dynamic-named' // Destination path prefix.
}],
options: {
name: true
}
}

@@ -87,0 +97,0 @@ },

{
"name": "grunt-fest",
"description": "Compile Fest templates",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/eprev/grunt-fest",

@@ -6,0 +6,0 @@ "author": {

@@ -70,3 +70,3 @@ # grunt-fest [![Build Status](https://travis-ci.org/eprev/grunt-fest.png)](https://travis-ci.org/eprev/grunt-fest)

Compiled function’s name.
Compiled function’s name. The basename of the source file will be used if is set to True.

@@ -190,3 +190,3 @@ #### options.template

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). Before pull-request to dev branch do rebase.

@@ -193,0 +193,0 @@ ## Release History

@@ -56,4 +56,8 @@ /*

grunt.log.write('Compiling "' + src + '" to "' + dest + '"...');
name = options.name;
if (name === true) {
name = basename(src, se);
}
try {
contents = compile(src, extend({}, options.compile), options.name);
contents = compile(src, extend({}, options.compile), name);
} catch (e) {

@@ -60,0 +64,0 @@ grunt.log.writeln();

@@ -32,3 +32,3 @@ 'use strict';

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/fixtures/' + tpl + '.js');
var actual = grunt.file.read('test/expected/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/fixtures/' + tpl + '.js');

@@ -41,3 +41,3 @@ test.equal(actual, expected);

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/fixtures/' + tpl + '.xml.js');
var actual = grunt.file.read('test/expected/fixtures/' + tpl + '.xml.js');
var expected = grunt.file.read('test/fixtures/' + tpl + '.xml.js');

@@ -79,3 +79,11 @@ test.equal(actual, expected);

test.done();
},
named_function_within_dynamic_expansion: function (test) {
this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/dynamic-named/test/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/dynamic-named/test/fixtures/' + tpl + '.js');
test.equal(actual, expected);
});
test.done();
}
};
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