Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
zastro-service-worker
Advanced tools
An Astro integration that adds service worker functionality to your Astro project, powered by Workbox.
An Astro integration that adds service worker functionality to your Astro project, powered by Workbox.
npm install zastro-service-worker
In theory, you can run
npx astro add zastro-service-worker
Add the integration to your astro.config.mjs
file:
import { defineConfig } from 'astro/config';
import astroServiceWorker from 'zastro-service-worker';
export default defineConfig({
integrations: [astroServiceWorker()],
});
You can customize the service worker behavior by passing options to the integration:
astroServiceWorker({
userOptions: {
enableInDevelopment: true, // Enable service worker in development mode
},
workboxOptions: {
// Add custom Workbox options here
}
})
enableInDevelopment
: Boolean (default: false) - Enables the service worker in development mode.customServiceWorker
: String (not implemented yet) - Path to a custom service worker file.You can pass any valid Workbox options to customize the service worker generation. See the Workbox documentation for available options.
By default, a noop service worker is used in development to prevent caching issues. You can enable the full service worker in development by setting enableInDevelopment: true
in the user options.
MIT
FAQs
An Astro integration that adds service worker functionality to your Astro project, powered by Workbox.
The npm package zastro-service-worker receives a total of 7 weekly downloads. As such, zastro-service-worker popularity was classified as not popular.
We found that zastro-service-worker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.