gulp-inject
Advanced tools
Comparing version 5.0.4 to 5.0.5
{ | ||
"name": "gulp-inject", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html", | ||
@@ -43,12 +43,12 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-angular": "^8.1.0", | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-angular": "^8.2.0", | ||
"event-stream": "4.0.1", | ||
"husky": "^3.0.1", | ||
"mocha": "^6.2.0", | ||
"semantic-release": "^15.13.18", | ||
"husky": "^3.1.0", | ||
"mocha": "^6.2.2", | ||
"semantic-release": "^15.14.0", | ||
"should": "^13.2.3", | ||
"strip-color": "^0.1.0", | ||
"vinyl": "^2.2.0", | ||
"xo": "^0.24.0" | ||
"xo": "^0.25.3" | ||
}, | ||
@@ -55,0 +55,0 @@ "engines": { |
@@ -92,4 +92,4 @@ 'use strict'; | ||
}.bind(this)) | ||
.catch(function (error) { | ||
cb(error); | ||
.catch(function (error_) { | ||
cb(error_); | ||
}); | ||
@@ -159,3 +159,3 @@ }); | ||
shouldAbort: function (match) { | ||
return matches.indexOf(match[0]) !== -1; | ||
return matches.includes(match[0]); | ||
} | ||
@@ -224,3 +224,3 @@ }); | ||
} | ||
var previousInnerContent = content.substring(startTag.lastIndex, endMatch.index); | ||
var previousInnerContent = content.slice(startTag.lastIndex, endMatch.index); | ||
var indent = getLeadingWhitespace(previousInnerContent); | ||
@@ -227,0 +227,0 @@ // <new inner content>: |
@@ -233,3 +233,3 @@ /* eslint max-params:[1, 5] */ | ||
function isImage(ext) { | ||
return IMAGES.indexOf(ext) > -1; | ||
return IMAGES.includes(ext); | ||
} | ||
@@ -241,3 +241,3 @@ | ||
} | ||
return TARGET_TYPES.indexOf(type) > -1; | ||
return TARGET_TYPES.includes(type); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53820