react-devtools-core
Advanced tools
Comparing version 4.7.0 to 4.8.0
{ | ||
"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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
734209
73
1252
30