register-service-worker
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11727