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

babel-codemod

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-codemod - npm Package Compare versions

Comparing version 1.9.7 to 1.9.8

8

package.json
{
"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

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