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

grunt-neuter

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-neuter - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

test/expected/can_accept_file_patterns

5

Gruntfile.js

@@ -89,2 +89,7 @@ /*

}
},
can_accept_file_patterns: {
files: {
'tmp/can_accept_file_patterns': ['test/fixtures/glob/*.js']
}
}

@@ -91,0 +96,0 @@ },

12

package.json
{
"name": "grunt-neuter",
"version": "0.2.0",
"version": "0.3.0",
"description": "Builds source files in the order you require.",

@@ -19,8 +19,8 @@ "main": "Gruntfile.js",

"devDependencies": {
"grunt-contrib-jshint": "~0.1.0",
"grunt-contrib-nodeunit": "~0.1.1",
"grunt-contrib-clean": "~0.4.0a",
"grunt-contrib-internal": "~0.1.1",
"grunt": "~0.4.0"
"grunt": "~0.4.0rc5",
"grunt-contrib-jshint": "~0.1.1rc5",
"grunt-contrib-nodeunit": "0.1.2rc5",
"grunt-contrib-clean": "~0.4.0rc5",
"grunt-contrib-internal": "~0.1.1"
}
}

@@ -69,17 +69,19 @@ /*

// which defaults to a functional closure.
grunt.file.expand({nonull: true}, this.file.srcRaw).map(finder, this);
var outStr = out.map(function(section){
var templateData = {
data: section
};
this.files.forEach(function(file) {
grunt.file.expand({nonull: true}, file.src).map(finder, this);
var outStr = out.map(function(section){
var templateData = {
data: section
};
if (options.includeSourceURL) {
return "eval(" + JSON.stringify(grunt.template.process(options.template, templateData) + "//@ sourceURL=" + section.filepath) +")";
} else {
return grunt.template.process(options.template, templateData);
}
}).join(options.separator);
if (options.includeSourceURL) {
return "eval(" + JSON.stringify(grunt.template.process(options.template, templateData) + "//@ sourceURL=" + section.filepath) +")";
} else {
return grunt.template.process(options.template, templateData);
}
}).join(options.separator);
grunt.file.write(this.file.dest, outStr);
grunt.file.write(file.dest, outStr);
});
});
};

@@ -61,3 +61,11 @@ 'use strict';

test.done();
},
can_accept_file_patterns: function(test){
var actual = grunt.file.read('tmp/can_accept_file_patterns');
var expected = grunt.file.read('test/expected/can_accept_file_patterns');
test.equal(actual, expected, 'file patterns can be correctly read');
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