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

gulp-pre-combo

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-pre-combo - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

25

lib/index.js

@@ -42,5 +42,5 @@ /**

}
var commentMarker = 'unUseComboMaker';
var regStart = new RegExp('<!--\\s*' + commentMarker + '\\s*-->');
var regEnd = new RegExp('(?:<!--\\s*)*\\/' + commentMarker + '\\s*-->');
// var commentMarker = 'unUseComboMaker';
// var regStart = new RegExp('<!--\\s*' + commentMarker + '\\s*-->');
// var regEnd = new RegExp('(?:<!--\\s*)*\\/' + commentMarker + '\\s*-->');
var lines = chunk.replace(/\r\n/g, '\n').split(/\n/);

@@ -50,11 +50,12 @@ var inside = false;

lines.forEach(function (line) {
var build = regStart.test(line);
var endbuild = regEnd.test(line);
if (build) {
inside = true;
}
if (endbuild) {
inside = false;
}
if (!inside) {
// var build = regStart.test(line);
// var endbuild = regEnd.test(line);
// if (build) {
// inside = true;
// }
// if (endbuild) {
// inside = false;
// }
if (!(line.match('data-ignore="true"') || line.match('data-ignore=\'true\''))) {
line = line.replace(/<script[^>]+?src="([^"]+)"[^>]*><\/script>/igm, function ($, $1) {

@@ -61,0 +62,0 @@ if ($1.indexOf('http://') > -1) {

{
"name": "gulp-pre-combo",
"version": "1.0.10",
"version": "1.0.11",
"description": "A gulp plugin to handle relative-path in html file.",

@@ -5,0 +5,0 @@ "main": "./lib/index",

@@ -42,6 +42,4 @@ # gulp-pre-combo

<link rel="stylesheet" type="text/css" href="./index2.css">
<!-- unUseComboMaker -->
<link rel="stylesheet" type="text/css" href="./index3.css">
<link rel="stylesheet" type="text/css" href="./index4.css">
<!-- /unUseComboMaker -->
<link rel="stylesheet" type="text/css" href="./index3.css" data-ignore="true">
<link rel="stylesheet" type="text/css" href="./index4.css" data-ignore="true">
<link rel="stylesheet" type="text/css" href="./index5.css">

@@ -68,6 +66,4 @@ <link rel="stylesheet" type="text/css" href="./index6.css">

<link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index2.min.css">
<!-- unUseComboMaker -->
<link rel="stylesheet" type="text/css" href="./index3.css">
<link rel="stylesheet" type="text/css" href="./index4.css">
<!-- /unUseComboMaker -->
<link rel="stylesheet" type="text/css" href="./index3.css" data-ignore="true">
<link rel="stylesheet" type="text/css" href="./index4.css" data-ignore="true">
<link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index5.min.css">

@@ -74,0 +70,0 @@ <link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index6.min.css">

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