mobx-devtools
Advanced tools
Comparing version 0.9.21 to 0.9.23
const path = require('path'); | ||
// eslint-disable-next-line import/no-unresolved | ||
const { app, BrowserWindow } = require('electron'); | ||
@@ -9,4 +10,7 @@ | ||
app.on('ready', () => { | ||
new BrowserWindow({ width: 800, height: 600, icon: path.join(__dirname, 'icons/icon128.png') }) | ||
.loadURL(`file://${__dirname}/index.html`); // eslint-disable-line no-path-concat | ||
new BrowserWindow({ | ||
width: 800, | ||
height: 600, | ||
icon: path.join(__dirname, 'icons/icon128.png'), | ||
}).loadURL(`file://${__dirname}/index.html`); // eslint-disable-line no-path-concat | ||
}); |
/* eslint-disable global-require */ | ||
// eslint-disable-next-line import/no-unresolved | ||
const ws = require('ws'); | ||
@@ -16,12 +17,9 @@ const fs = require('fs'); | ||
let connected = false; | ||
server.on('connection', (socket) => { | ||
server.on('connection', socket => { | ||
if (connected) { | ||
connected.close(); | ||
log.warn( | ||
'Only one connection allowed at a time.', | ||
'Closing the previous connection' | ||
); | ||
log.warn('Only one connection allowed at a time.', 'Closing the previous connection'); | ||
} | ||
connected = socket; | ||
socket.onerror = (err) => { | ||
socket.onerror = err => { | ||
connected = false; | ||
@@ -39,3 +37,3 @@ onDisconnect(); | ||
server.on('error', (e) => { | ||
server.on('error', e => { | ||
onError(e); | ||
@@ -51,3 +49,3 @@ log.error('Failed to start the DevTools server', e); | ||
httpServer.on('error', (e) => { | ||
httpServer.on('error', e => { | ||
onError(e); | ||
@@ -54,0 +52,0 @@ restartTimeout = setTimeout(() => startServer(port), 1000); |
@@ -0,1 +1,3 @@ | ||
const ip = require('ip'); | ||
const startServer = require('./startServer'); | ||
@@ -5,3 +7,2 @@ | ||
const initFrontend = require('../lib/frontend').default; // eslint-disable-line | ||
const ip = require('ip'); | ||
@@ -18,7 +19,4 @@ const node = document.getElementById('container'); | ||
[ | ||
document.getElementById('localhost'), | ||
document.getElementById('byip'), | ||
].forEach((el) => { | ||
el.onclick = function () { | ||
[document.getElementById('localhost'), document.getElementById('byip')].forEach(el => { | ||
el.onclick = function onClick() { | ||
this.selectionStart = 0; | ||
@@ -29,3 +27,2 @@ this.selectionEnd = this.value.length; | ||
startServer({ | ||
@@ -38,3 +35,3 @@ port, | ||
const listeners = []; | ||
socket.onmessage = (evt) => { | ||
socket.onmessage = evt => { | ||
const data = JSON.parse(evt.data); | ||
@@ -56,3 +53,3 @@ listeners.forEach(fn => fn(data)); | ||
node, | ||
reloadSubscribe: (reloadFn) => { | ||
reloadSubscribe: reloadFn => { | ||
onDisconnect = () => reloadFn(); | ||
@@ -85,2 +82,1 @@ return () => { | ||
}); | ||
#!/usr/bin/env node | ||
// eslint-disable-next-line import/no-unresolved | ||
const electron = require('electron'); | ||
@@ -7,7 +8,3 @@ const { spawnSync } = require('child_process'); | ||
const result = spawnSync( | ||
electron, | ||
[require.resolve('./app')].concat(argv), | ||
{ stdio: 'ignore' } | ||
); | ||
const result = spawnSync(electron, [require.resolve('./app')].concat(argv), { stdio: 'ignore' }); | ||
process.exit(result.status); |
{ | ||
"name": "mobx-devtools", | ||
"version": "0.9.21", | ||
"version": "0.9.23", | ||
"repository": { | ||
@@ -21,6 +21,6 @@ "type": "git", | ||
"dependencies": { | ||
"electron": "^1.7.9", | ||
"electron": "10.1.3", | ||
"ip": "^1.1.5", | ||
"ws": "^3.2.0" | ||
"ws": "^7.3.1" | ||
} | ||
} |
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
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
2669891
48574
26
+ Added@electron/get@1.14.1(transitive)
+ Added@sindresorhus/is@0.14.0(transitive)
+ Added@szmarczak/http-timer@1.1.2(transitive)
+ Added@types/node@12.20.55(transitive)
+ Addedboolean@3.2.0(transitive)
+ Addedcacheable-request@6.1.0(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddefer-to-connect@1.1.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddetect-node@2.1.0(transitive)
+ Addedduplexer3@0.1.5(transitive)
+ Addedelectron@10.1.3(transitive)
+ Addedencodeurl@1.0.2(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes6-error@4.1.1(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedget-stream@4.1.05.2.0(transitive)
+ Addedglobal-agent@3.0.0(transitive)
+ Addedglobal-tunnel-ng@2.7.1(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgot@9.6.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedkeyv@3.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlowercase-keys@1.0.12.0.0(transitive)
+ Addedmatcher@3.0.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednormalize-url@4.5.1(transitive)
+ Addednpm-conf@1.1.3(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedp-cancelable@1.1.0(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedprogress@2.0.3(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedroarr@2.15.4(transitive)
+ Addedsemver@6.3.17.6.3(transitive)
+ Addedsemver-compare@1.0.0(transitive)
+ Addedserialize-error@7.0.1(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedsumchecker@3.0.1(transitive)
+ Addedto-readable-stream@1.0.0(transitive)
+ Addedtunnel@0.0.6(transitive)
+ Addedtype-fest@0.13.1(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedws@7.5.10(transitive)
- Removed@types/node@8.10.66(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedelectron@1.8.8(transitive)
- Removedelectron-download@3.3.0(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs-extra@0.30.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob@7.2.3(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhome-path@1.0.7(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedklaw@1.3.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednugget@2.2.0(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedpretty-bytes@4.0.2(transitive)
- Removedprogress-stream@1.2.0(transitive)
- Removedpsl@1.13.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrc@1.2.8(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsingle-line-log@1.1.2(transitive)
- Removedspeedometer@0.1.4(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsumchecker@1.3.1(transitive)
- Removedthrottleit@0.0.2(transitive)
- Removedthrough2@0.2.3(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedultron@1.1.1(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedws@3.3.3(transitive)
- Removedxtend@2.1.2(transitive)
Updatedelectron@10.1.3
Updatedws@^7.3.1