
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
This is a fork of electron-edge-js (which is itself a fork of edge-js) patched to support BetterDiscord.
Discord runs 32-bit Electron 1.7.9 (node v7.9.0) and calls electron.app.setVersion at the start, so the version property electron-edge-js looks for isn't there.
To fix this we simply use the deprecated (but still working) process.versions['atom-shell'] property.
NB: Inspecting edge.js stuff with Chromium DevTools can sometimes crash the renderer process. Here be dragons!
Usage is the same as edge or edge-js, replace require('edge') or require('edge-js') with require('electron-edge-js'):
npm install bd-edge-js
-var edge = require('edge');
+var edge = require('bd-edge-js');
var helloWorld = edge.func(function () {/*
async (input) => {
return ".NET Welcomes " + input.ToString();
}
*/});
// Do not attempt to dump `helloWorld` in DevTools. It will crash Electron!
bd-edge-js?Discord's Electron is built using specific version of Node.js. In order to use edge in Electron project you would need to recompile it using the same Node.js version.
bd-edge-js comes precompiled with correct Node.js versions.
electron-edgeedge-js that comes with both latest code changes from edge project and additional fixes and improvements available in edge-js project.electron-edge-jsFAQs
Edge.js: run .NET and Node.js in-process on Electron
We found that bd-edge-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.