@serwist/navigation-preload
Advanced tools
Comparing version 8.4.0 to 8.4.1
@@ -14,3 +14,3 @@ import { logger } from '@serwist/core/internal'; | ||
*/ function isSupported() { | ||
return Boolean(self.registration && self.registration.navigationPreload); | ||
return Boolean(self.registration?.navigationPreload); | ||
} | ||
@@ -25,3 +25,3 @@ | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Navigation preload is disabled.`); | ||
logger.log("Navigation preload is disabled."); | ||
} | ||
@@ -32,3 +32,3 @@ })); | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Navigation preload is not supported in this browser.`); | ||
logger.log("Navigation preload is not supported in this browser."); | ||
} | ||
@@ -54,3 +54,3 @@ } | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Navigation preload is enabled.`); | ||
logger.log("Navigation preload is enabled."); | ||
} | ||
@@ -61,3 +61,3 @@ })); | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Navigation preload is not supported in this browser.`); | ||
logger.log("Navigation preload is not supported in this browser."); | ||
} | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "@serwist/navigation-preload", | ||
"version": "8.4.0", | ||
"version": "8.4.1", | ||
"type": "module", | ||
@@ -39,7 +39,7 @@ "description": "This library allows developers to opt-in to using Navigation Preload in their service worker.", | ||
"dependencies": { | ||
"@serwist/core": "8.4.0" | ||
"@serwist/core": "8.4.1" | ||
}, | ||
"devDependencies": { | ||
"rollup": "4.9.1", | ||
"@serwist/constants": "8.4.0" | ||
"@serwist/constants": "8.4.1" | ||
}, | ||
@@ -49,5 +49,5 @@ "scripts": { | ||
"dev": "rollup --config rollup.config.js --watch", | ||
"lint": "eslint src --ext ts,tsx,js,jsx,cjs,mjs", | ||
"lint": "biome lint ./src", | ||
"typecheck": "tsc" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
8202
+ Added@serwist/core@8.4.1(transitive)
- Removed@serwist/core@8.4.0(transitive)
Updated@serwist/core@8.4.1