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

react-devtools-core

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-devtools-core - npm Package Compare versions

Comparing version 4.7.0 to 4.8.0

2

package.json
{
"name": "react-devtools-core",
"version": "4.7.0",
"version": "4.8.0",
"description": "Use react-devtools outside of the browser",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -24,3 +24,4 @@ # `react-devtools-core`

* `port: number` (defaults to `8097`) - Websocket will connect to this port.
* `websocket: Websocket` - Custom websocked to use. Overrides `host` and `port` settings if provided.
* `useHttps: boolean` (defaults to `false`) - Websocked should use a secure protocol (wss).
* `websocket: Websocket` - Custom websocket to use. Overrides `host` and `port` settings if provided.
* `resolveRNStyle: (style: number) => ?Object` - Used by the React Native style plug-in.

@@ -42,2 +43,20 @@ * `isAppActive: () => boolean` - If provided, DevTools will poll this method and wait until it returns true before connecting to React.

Renders DevTools interface into a DOM node over SSL using a custom host name (Default is localhost).
```js
const host = 'dev.server.com';
const options = {
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
};
require("react-devtools-core/standalone")
.setContentDOMNode(document.getElementById("container"))
.setStatusListener(status => {
// This callback is optional...
})
.startServer(port, host, options);
```
Reference the `react-devtools` package for a complete integration example.

@@ -55,2 +74,2 @@

yarn start:standalone
```
```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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