Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@dropbox/eslint-plugin-service-worker
Advanced tools
ESLint rules to report disallowed APIs in service worker environment.
ESLint plugin for service worker environment.
npm install eslint @dropbox/eslint-plugin-service-worker -D
// .eslintrc.js
module.exports = {
...
plugin: [
"@dropbox/service-worker",
],
rules: {
"@dropbox/service-worker/no-restricted-web-api": "error",
"@dropbox/service-worker/no-deprecated-extension-api": "error",
"@dropbox/service-worker/no-dynamic-import": "error",
},
...
}
In web extension service worker, certain web APIs will be restricted in use, such as XMLHttpRequest
and window
API. The rule catch the use of restricted Web APIs in service worker.
As part of Manifest V3 upgrade, certain extension APIs, such as browser.browserAction
and browser.pageAction
were deprecated. The rule will catch the usage of the deprecated extension APIS in service worker.
Service worker does not allow dynamic import, import()
. This rule will catch the usage of dynamic import in service worker.
Apache 2.0
FAQs
ESLint rules to report disallowed APIs in service worker environment.
The npm package @dropbox/eslint-plugin-service-worker receives a total of 1,001 weekly downloads. As such, @dropbox/eslint-plugin-service-worker popularity was classified as popular.
We found that @dropbox/eslint-plugin-service-worker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.