Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sw-builder

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sw-builder - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/template/templates/base-template.js

@@ -82,3 +82,3 @@ const BASE_TEMPLATE=`/* ************************************************************************************************

const cachesToDelete = keyList.filter((key) => key !== CACHE_NAME);
await Promise.all(cachesToDelete.map(caches.delete));
await Promise.all(cachesToDelete.map((key) => caches.delete(key)));
};

@@ -85,0 +85,0 @@

{
"name": "sw-builder",
"version": "1.0.1",
"version": "1.0.2",
"description": "The sw-builder package automates the creation of your Application's Service Worker, which pre-caches your build. This leads to a better overall performance and enables users to access your PWA without an Internet connection.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -36,6 +36,6 @@ # Service Worker Builder

"scripts": {
"build": "sw-builder && tsc && ...",
"build": "tsc && ... && sw-builder",
// specify a custom path for the configuration file
"build": "sw-builder --config='sw-custom.config.json' && tsc && ...",
"build": " tsc && ... && sw-builder --config='sw-custom.config.json'",
}

@@ -42,0 +42,0 @@ ...

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc