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.4.5 to 0.5.0

License

2

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

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

@@ -175,2 +175,3 @@ # grunt-includes [![Build Status](https://travis-ci.org/vanetix/grunt-includes.png?branch=master)](https://travis-ci.org/vanetix/grunt-includes)

## Release History
- 0.5.0 - Given a full include path, filenamePrefix and filenameSuffix will now be ignored.
- 0.4.0 - Release templating ability. Thanks [nathankot](https://github.com/nathankot)!

@@ -189,3 +190,3 @@ - 0.3.7 - Various bug fixes and updates.

## License (MIT)
Copyright (c) 2012-2013 Matt McFarland
Copyright (c) 2012-2015 Matt McFarland and Contributors

@@ -192,0 +193,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

@@ -5,3 +5,3 @@ /**

*
* Copyright (c) 2013 Matt McFarland
* Copyright (c) 2012-2015 Matt McFarland and Contributors
* Licensed under the MIT license.

@@ -199,3 +199,9 @@ */

fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix;
// If a full filepath + extension is given, use it instead of building
if(isFilename(fileLocation)) {
fileLocation = fileLocation;
} else {
fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix;
}
next = path.join((opts.includePath || path.dirname(p)), fileLocation);

@@ -202,0 +208,0 @@ content = recurse(next, opts, included, indents + indent);

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