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

metro-inspector-proxy

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-inspector-proxy - npm Package Compare versions

Comparing version 0.75.1 to 0.76.0

4

package.json
{
"name": "metro-inspector-proxy",
"version": "0.75.1",
"version": "0.76.0",
"description": "🚇 Inspector proxy for React Native and dev tools integration.",

@@ -27,4 +27,4 @@ "main": "src/index.js",

"engines": {
"node": ">=14.17.0"
"node": ">=16"
}
}

@@ -231,10 +231,3 @@ "use strict";

if (this._pages[i].title.indexOf("React") >= 0) {
var _this$_lastConnectedR;
if (
this._pages[i].id !=
((_this$_lastConnectedR = this._lastConnectedReactNativePage) ===
null || _this$_lastConnectedR === void 0
? void 0
: _this$_lastConnectedR.id)
) {
if (this._pages[i].id != this._lastConnectedReactNativePage?.id) {
this._newReactNativePage(this._pages[i]);

@@ -318,3 +311,2 @@ break;

_newReactNativePage(page) {
var _this$_lastConnectedR2;
debug(`React Native page updated to ${page.id}`);

@@ -331,7 +323,3 @@ if (

}
const oldPageId =
(_this$_lastConnectedR2 = this._lastConnectedReactNativePage) === null ||
_this$_lastConnectedR2 === void 0
? void 0
: _this$_lastConnectedR2.id;
const oldPageId = this._lastConnectedReactNativePage?.id;
this._lastConnectedReactNativePage = page;

@@ -583,3 +571,2 @@ this._isReloading = true;

_tryParseHTTPURL(url) {
var _parsedURL;
let parsedURL;

@@ -589,6 +576,3 @@ try {

} catch {}
const protocol =
(_parsedURL = parsedURL) === null || _parsedURL === void 0
? void 0
: _parsedURL.protocol;
const protocol = parsedURL?.protocol;
if (protocol !== "http:" && protocol !== "https:") {

@@ -616,8 +600,3 @@ parsedURL = undefined;

_sendErrorToDebugger(message) {
var _this$_debuggerConnec;
const debuggerSocket =
(_this$_debuggerConnec = this._debuggerConnection) === null ||
_this$_debuggerConnec === void 0
? void 0
: _this$_debuggerConnec.socket;
const debuggerSocket = this._debuggerConnection?.socket;
if (debuggerSocket && debuggerSocket.readyState === _ws.default.OPEN) {

@@ -624,0 +603,0 @@ debuggerSocket.send(

@@ -149,11 +149,4 @@ /**

} catch (e) {
var _e$toString;
console.error("error", e);
socket.close(
INTERNAL_ERROR_CODE,
(_e$toString = e === null || e === void 0 ? void 0 : e.toString()) !==
null && _e$toString !== void 0
? _e$toString
: "Unknown error"
);
socket.close(INTERNAL_ERROR_CODE, e?.toString() ?? "Unknown error");
}

@@ -189,12 +182,4 @@ });

} catch (e) {
var _e$toString2;
console.error(e);
socket.close(
INTERNAL_ERROR_CODE,
(_e$toString2 =
e === null || e === void 0 ? void 0 : e.toString()) !== null &&
_e$toString2 !== void 0
? _e$toString2
: "Unknown error"
);
socket.close(INTERNAL_ERROR_CODE, e?.toString() ?? "Unknown error");
}

@@ -201,0 +186,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