react-devtools
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -18,2 +18,3 @@ /** | ||
var mainWindow = null; | ||
var argv = process.argv.slice(2); | ||
@@ -33,2 +34,8 @@ app.on('window-all-closed', function() { | ||
mainWindow.loadURL('file://' + __dirname + '/app.html'); // eslint-disable-line no-path-concat | ||
mainWindow.webContents.executeJavaScript( | ||
// We use this so that RN can keep relative JSX __source filenames | ||
// but "click to open in editor" still works. js1 passes project roots | ||
// as the argument to DevTools. | ||
'window.devtools.setProjectRoots(' + JSON.stringify(argv) + ')' | ||
); | ||
@@ -35,0 +42,0 @@ // Emitted when the window is closed. |
#!/usr/bin/env node | ||
var electron = require('electron'); | ||
var spawn = require('cross-spawn'); | ||
var argv = process.argv.slice(2); | ||
var result = spawn.sync( | ||
electron, | ||
[require.resolve('./app')], | ||
[require.resolve('./app')].concat(argv), | ||
{stdio: 'inherit'} | ||
); | ||
process.exit(result.status); |
{ | ||
"name": "react-devtools", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "Use react-devtools outside of the browser", | ||
@@ -28,5 +28,5 @@ "repository": { | ||
"ip": "^1.1.4", | ||
"react-devtools-core": "^2.1.8", | ||
"react-devtools-core": "^2.1.9", | ||
"update-notifier": "^2.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
16020
51
Updatedreact-devtools-core@^2.1.9