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

register-service-worker

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

register-service-worker - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

index.js

@@ -23,3 +23,3 @@ // Register a service worker to serve assets from local cache.

if (hooks[hook]) {
if (hooks && hooks[hook]) {
hooks[hook].apply(hooks, args)

@@ -26,0 +26,0 @@ }

{
"name": "register-service-worker",
"version": "1.1.0",
"version": "1.1.1",
"description": "Script for registering service worker, with hooks",

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

@@ -20,3 +20,3 @@ // Register a service worker to serve assets from local cache.

const emit = (hook, ...args) => {
if (hooks[hook]) {
if (hooks && hooks[hook]) {
hooks[hook](...args)

@@ -23,0 +23,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