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

grunt-includes

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-includes - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "grunt-includes",
"description": "Include other files within a file.",
"version": "0.5.0",
"version": "0.5.1",
"author": "vanetix <matmcfarland@gmail.com>",

@@ -6,0 +6,0 @@ "main": "Gruntfile.js",

@@ -205,3 +205,16 @@ /**

next = path.join((opts.includePath || path.dirname(p)), fileLocation);
// Try to locate the file through multiple includePath if array
if(grunt.util.kindOf(opts.includePath) === 'array') {
opts.includePath.some(function(p) {
next = path.join(p, fileLocation);
return grunt.file.isFile(next);
});
if(!next) {
next = path.join(path.dirname(p), fileLocation);
}
} else {
next = path.join((opts.includePath || path.dirname(p)), fileLocation);
}
content = recurse(next, opts, included, indents + indent);

@@ -208,0 +221,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