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

grunt-combohtml

Package Overview
Dependencies
Maintainers
7
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-combohtml - npm Package Compare versions

Comparing version 0.1.42 to 0.1.43

2

package.json
{
"name": "grunt-combohtml",
"description": "combine build html with ssi.",
"version": "0.1.42",
"version": "0.1.43",
"homepage": "https://github.com/jayli/grunt-combohtml",

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

@@ -82,8 +82,17 @@ // 'use strict';

var source = [];
for (var i = 0; i < arr.length; i++) {
if (!arr[i].match(baseUrl)) {
continue;
var toReplacedPrefix = 'http://' + baseUrl + '/';
arr.forEach(function(jsPath, idx){
if(jsPath.indexOf('??') != -1) {
// 如果该 js 引用中已经包含 combo,需要先解开 combo
var subComboParsed = jsPath.split('??');
var prefix = subComboParsed[0].replace(toReplacedPrefix, '');
var subComboAssets = subComboParsed[1].split(',');
subComboAssets.forEach(function(subComboAsset){
source.push(path.join(prefix, subComboAsset));
});
} else {
source.push(jsPath.replace(toReplacedPrefix, ''));
}
source.push(arr[i].replace('http://' + baseUrl + '/', ''));
}
});
return (source.length > 0) ? ('http://' + baseUrl + '/??' + source.join(',')).replace('????', '??') : '';

@@ -90,0 +99,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