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

@react-native/dev-middleware

Package Overview
Dependencies
Maintainers
0
Versions
450
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native/dev-middleware - npm Package Compare versions

Comparing version 0.77.0-nightly-20241018-398512a4e to 0.77.0-nightly-20241019-f3e37e29e

5

dist/inspector-proxy/types.d.ts

@@ -21,5 +21,6 @@ /**

* In the proxy, this disables legacy page reload emulation and the
* additional '(Experimental)' target in `/json/list`.
* additional 'React Native Experimental' target in `/json/list`.
*
* In the launch flow, this allows targets to be matched directly by `appId`.
* In the launch flow, this allows targets to be matched directly by
* `logicalDeviceId`.
*/

@@ -26,0 +27,0 @@ nativePageReloads?: boolean;

4

dist/middleware/openDebuggerMiddleware.d.ts

@@ -29,4 +29,4 @@ /**

*
* Currently supports Hermes targets, opening debugger websocket URL in Chrome
* DevTools.
* Currently supports React Native DevTools (rn_fusebox.html) and legacy Hermes
* (rn_inspector.html) targets.
*

@@ -33,0 +33,0 @@ * @see https://chromedevtools.github.io/devtools-protocol/

@@ -14,2 +14,4 @@ "use strict";

}
const LEGACY_SYNTHETIC_PAGE_TITLE =
"React Native Experimental (Improved Chrome Reloads)";
function openDebuggerMiddleware({

@@ -34,4 +36,3 @@ serverBaseUrl,

(app) =>
app.title ===
"React Native Experimental (Improved Chrome Reloads)" ||
app.title === LEGACY_SYNTHETIC_PAGE_TITLE ||
app.reactNative.capabilities?.nativePageReloads === true

@@ -53,3 +54,5 @@ );

(targetId == null || _target.id === targetId) &&
(appId == null || _target.appId === appId) &&
(appId == null ||
(_target.appId === appId &&
_target.title === LEGACY_SYNTHETIC_PAGE_TITLE)) &&
(device == null || _target.reactNative.logicalDeviceId === device)

@@ -56,0 +59,0 @@ );

{
"name": "@react-native/dev-middleware",
"version": "0.77.0-nightly-20241018-398512a4e",
"version": "0.77.0-nightly-20241019-f3e37e29e",
"description": "Dev server middleware for React Native",

@@ -26,3 +26,3 @@ "keywords": [

"@isaacs/ttlcache": "^1.4.1",
"@react-native/debugger-frontend": "0.77.0-nightly-20241018-398512a4e",
"@react-native/debugger-frontend": "0.77.0-nightly-20241019-f3e37e29e",
"chrome-launcher": "^0.15.2",

@@ -29,0 +29,0 @@ "chromium-edge-launcher": "^0.2.0",

@@ -67,8 +67,12 @@ # @react-native/dev-middleware

Open the JavaScript debugger for a given CDP target (direct Hermes debugging).
Open the JavaScript debugger for a given CDP target. Must be provided with one of the following query params:
- `device`‌ — An ID unique to a combination of device and app, stable across installs. Implemented by `getInspectorDeviceId` on each native platform.
- `target` — The target page ID as returned by `/json/list` for the current dev server session.
- `appId` (deprecated, legacy only) — The application bundle identifier to match (non-unique across multiple connected devices). This param will only match legacy Hermes debugger targets.
<details>
<summary>Example</summary>
curl -X POST 'http://localhost:8081/open-debugger?appId=com.meta.RNTester'
curl -X POST 'http://localhost:8081/open-debugger?target=<targetId>'
</details>

@@ -75,0 +79,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