
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@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 0 weekly downloads. As such, @dropbox/eslint-plugin-service-worker popularity was classified as not 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.