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

grunt-include-source

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-include-source - npm Package Compare versions

Comparing version

to
0.6.1

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

### 2015-07-10 ver. 0.6.1
* Add support to specify target with include options (see https://github.com/jwvdiermen/grunt-include-source/pull/39)
### 2015-05-24 ver. 0.6.0

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

2

package.json
{
"name": "grunt-include-source",
"description": "Include your sources into your HTML files automatically.",
"version": "0.6.0",
"version": "0.6.1",
"homepage": "https://github.com/jwvdiermen/grunt-include-source",

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

@@ -206,3 +206,2 @@ /*

grunt.log.debug('Starting task "includeSource"...');
var options = this.options({

@@ -214,2 +213,3 @@ basePath: '',

});
options.target = this.target;

@@ -286,3 +286,8 @@ var typeMappings = extendr.clone(defaultTypeMappings);

includes.forEach(function(include, includeIndex) {
var files = resolveFiles(options, include.options);
var files = [];
if (include.options.target && options.target !== include.options.target) {
grunt.log.debug('Include target is "' + include.options.target + '" and task target is "' + options.target + '", skipping include.');
} else {
files = resolveFiles(options, include.options);
}
orderFiles(files, include.options);

@@ -289,0 +294,0 @@