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

grunt-html-build

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-html-build - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

6

package.json
{
"name": "grunt-html-build",
"description": "Grunt HTML Builder - Appends scripts and styles, Removes debug parts, append html partials, Template options",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "https://github.com/spatools/grunt-html-build.git",
"license": "MIT",
"author": {

@@ -21,3 +22,4 @@ "name": "SPA Tools",

"dependencies": {
"js-beautify": "^1.5.5"
"js-beautify": "^1.5.10",
"lodash":"^3.10.1"
},

@@ -24,0 +26,0 @@ "keywords": [

@@ -226,1 +226,5 @@ # grunt-html-build [![NPM version](https://badge.fury.io/js/grunt-html-build.png)](http://badge.fury.io/js/grunt-html-build)

* Fix issue in linefeed simplification
* 0.5.2
* Fix issue in relative path management
* Remove deprecated undercore reference and replace by lodash dependency
* Fix deep array flattening for Node.JS >= 4

@@ -31,3 +31,3 @@ /*

var // Init
_ = grunt.util._,
_ = require('lodash'),
EOL = grunt.util.linefeed,

@@ -94,3 +94,4 @@ URL = require('url'),

var local = grunt.file.expand(opt, pathes),
remote = _.map(pathes, path.normalize).filter(function (path) { //for loading from cdn
flattenPaths = _.isArray(pathes) ? _.flattenDeep(pathes) : pathes,
remote = _.map(flattenPaths, path.normalize).filter(function (path) { //for loading from cdn
return /^((http|https):)?(\\|\/\/)/.test(path); //is http, https, or //

@@ -205,5 +206,6 @@ });

else {
var destDir = options.relative && isFileRegex.test(options.dest) ? path.dirname(options.dest) : options.dest;
return options.files.map(function (f) {
var url = options.relative ? path.relative(options.dest, f) : f;
var url = options.relative ? path.relative(destDir, f) : f;
url = url.replace(/\\/g, '/');

@@ -210,0 +212,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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