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

mobx-devtools

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-devtools - npm Package Compare versions

Comparing version 0.9.21 to 0.9.23

8

app/index.js
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

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