New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ekidpro/bridge

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ekidpro/bridge - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

31

build/src/web/qrcode/qrcode.js

@@ -28,2 +28,3 @@ "use strict";

const qrcode_react_1 = __importDefault(require("qrcode.react"));
const socket_io_client_1 = __importDefault(require("socket.io-client"));
const get_local_ip_1 = require("./get-local-ip");

@@ -45,2 +46,29 @@ exports.QrGenerator = () => {

}, []);
react_1.useEffect(() => {
if (localIp === '') {
return () => { };
}
const socket = socket_io_client_1.default(`http://${localIp}:8899`, {
reconnection: true,
reconnectionDelay: 5000,
reconnectionDelayMax: 15000,
});
socket.on('connect', () => {
console.log = (...rest) => {
socket.emit('debug-web', { log: rest });
};
console.debug = (...rest) => {
socket.emit('debug-web', { debug: rest });
};
console.error = (...rest) => {
socket.emit('debug-web', { error: rest });
};
});
socket.on('disconnect', () => {
console.log('Socket disconnect');
});
return () => {
socket.close();
};
}, [localIp]);
if (localIp === '') {

@@ -56,3 +84,4 @@ return react_1.default.createElement("div", null, "Loading ...");

const localPath = `${protocol}//${localIp}:${port}${pathname}${hash}`;
const qrUrl = `ekpapp://debug?url=${localPath}`;
const qrUrl = `ekpapp://debug?url=${localPath}&debugger=${localIp}:8899`;
console.log(64, qrUrl);
return (react_1.default.createElement("div", null,

@@ -59,0 +88,0 @@ react_1.default.createElement(qrcode_react_1.default, { value: qrUrl, style: { backgroundColor: 'white', padding: 12 } }),

4

package.json
{
"name": "@ekidpro/bridge",
"version": "1.0.8",
"version": "1.0.9",
"description": "Bridge between ekidpro app with website",

@@ -35,2 +35,3 @@ "homepage": "https://github.com/ekidpro-vn/bridge",

"@types/react-router-dom": "^5.1.5",
"@types/socket.io-client": "^1.4.33",
"@types/uuid": "^8.0.0",

@@ -46,4 +47,5 @@ "gts": "^2.0.2",

"qrcode.react": "^1.0.0",
"socket.io-client": "^2.3.0",
"uuid": "^8.1.0"
}
}

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