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

react-devtools

Package Overview
Dependencies
Maintainers
5
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-devtools - npm Package Compare versions

Comparing version 2.0.12 to 2.1.0

icons/icon128.png

3

app.js

@@ -13,2 +13,3 @@ /**

var BrowserWindow = require('electron').BrowserWindow; // Module to create native browser window.
var path = require('path');

@@ -23,3 +24,3 @@ var mainWindow = null;

// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600});
mainWindow = new BrowserWindow({width: 800, height: 600, icon: path.join(__dirname, 'icons/icon128.png')});

@@ -26,0 +27,0 @@ // and load the index.html of the app.

{
"name": "react-devtools",
"version": "2.0.12",
"version": "2.1.0",
"description": "Use react-devtools outside of the browser",

@@ -16,6 +16,7 @@ "repository": {

"app.js",
"index.js"
"index.js",
"icons"
],
"scripts": {
"start": "./bin.js"
"start": "node bin.js"
},

@@ -28,4 +29,4 @@ "author": "Jared Forsyth",

"ip": "^1.1.4",
"react-devtools-core": "^2.0.12"
"react-devtools-core": "^2.1.0"
}
}
# `react-devtools`
## Why use this?
If you need to debug a React page somewhere other than Chrome on desktop (a mobile browser, an embedded webview, safari, etc), the `react-devtools` package is for you! It is also useful if your app is inside an iframe.

@@ -9,2 +7,4 @@

<img src="http://i.imgur.com/OZxWlyw.png" width="500" alt="Screenshot of React DevTools running with React Native">
## Usage

@@ -57,1 +57,8 @@

* Refresh the app after it has recompiled on change
### React Native
React Native uses `react-devtools-core` as a dependency.
Unfortunately, due to RN Packager aggressive caching of `node_modules`, it is very inconvenient to develop against it.
The way I do it is by changing [this require](https://github.com/facebook/react-native/blob/167ac4993ab86d15eabc2094f2749818b7659ebc/Libraries/Core/Devtools/setupDevtools.js#L18) to be relative, and then running [`watch-and-rsync`](https://www.npmjs.com/package/watch-and-rsync)` -o=start -s=../react-devtools-core -t=~/<YOUR PATH TO PROJECT DIR>/react-native/Libraries/Core/Devtools/react-devtools-core`. This circumvents RN Packager caching, and if you are also runing `npm run backend:watch` in `../react-devtools-core`, rebuilds on each change.

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