babel-codemod
Advanced tools
Comparing version 1.9.7 to 1.9.8
{ | ||
"name": "babel-codemod", | ||
"version": "1.9.7", | ||
"version": "1.9.8", | ||
"description": "babel-codemod rewrites JavaScript using babel plugins.", | ||
@@ -40,4 +40,4 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^6.2.0", | ||
"@commitlint/config-conventional": "^6.1.3", | ||
"@commitlint/cli": "^7.0.0", | ||
"@commitlint/config-conventional": "^7.0.1", | ||
"@types/babel-traverse": "^6.25.3", | ||
@@ -58,3 +58,3 @@ "@types/babylon": "^6.16.2", | ||
"@types/tmp": "^0.0.33", | ||
"commitlint": "^6.2.0", | ||
"commitlint": "^7.0.0", | ||
"get-port": "^3.2.0", | ||
@@ -61,0 +61,0 @@ "globby": "^8.0.1", |
@@ -107,3 +107,3 @@ "use strict"; | ||
for (let originalEntry of original) { | ||
if (updated.indexOf(originalEntry) < 0) { | ||
if (!updated.includes(originalEntry)) { | ||
this.log(`restoring removed '${event.toString()}' event listener`); | ||
@@ -114,3 +114,3 @@ process.addListener(event, originalEntry); // tslint:disable-line no-any | ||
for (let updatedEntry of updated) { | ||
if (original.indexOf(updatedEntry) < 0) { | ||
if (!original.includes(updatedEntry)) { | ||
this.log(`removing added '${event.toString()}' event listener`); | ||
@@ -117,0 +117,0 @@ process.removeListener(event, updatedEntry); |
@@ -79,3 +79,7 @@ "use strict"; | ||
matchesHost(url) { | ||
return (url.protocol === this.baseURL.protocol && url.host === this.baseURL.host); | ||
if (url.host !== this.baseURL.host) { | ||
return false; | ||
} | ||
// use SSL even if the URL doesn't use it | ||
return url.protocol === this.baseURL.protocol || url.protocol === 'http:'; | ||
} | ||
@@ -82,0 +86,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
112772
1607