
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
browserify-window-context
Advanced tools
#browserify-window-context
By default in a shimed module this
points to empty Object
that makes a lot of non-CommonJS modules fail. This browserify transformation replaces this
with Window
and script runs as expected.
{
"main": "./js/entry.js",
"browser": {
"old_good_script": "./js/vendor/old_good_script.js"
},
"browserify-shim": {
},
"browserify-window-context": [
"old_good_script"
],
"browserify": {
"transform": [ "browserify-window-context", "browserify-shim" ]
},
"dependencies": {
"browserify-shim": "~3.2.0",
"browserify-window-context": "~0.1.1"
}
}
npm install browserify-window-context
It simply wraps your script with another function and applies new window
context like so:
(function () {' + data + '}).apply(window);
Add alias of your script to browser
:
"browser": {
"old_good_script": "./js/vendor/old_good_script.js"
},
Then add alias of your script to browserify-window-context
:
"browserify-window-context": [
"old_good_script"
],
FAQs
Replaces default module context with Window
The npm package browserify-window-context receives a total of 0 weekly downloads. As such, browserify-window-context popularity was classified as not popular.
We found that browserify-window-context 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.