@serwist/sw
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -13,3 +13,3 @@ import type { RuntimeCaching } from "@serwist/build"; | ||
runtimeCaching?: RuntimeCaching[]; | ||
offlineAnalyticsConfig?: GoogleAnalyticsInitializeOptions; | ||
offlineAnalyticsConfig?: GoogleAnalyticsInitializeOptions | boolean; | ||
disableDevLogs?: boolean; | ||
@@ -16,0 +16,0 @@ }; |
@@ -100,3 +100,9 @@ import { setCacheNameDetails, clientsClaim } from '@serwist/core'; | ||
if (runtimeCaching !== undefined) registerRuntimeCaching(...runtimeCaching); | ||
if (offlineAnalyticsConfig !== undefined) initialize(offlineAnalyticsConfig); | ||
if (offlineAnalyticsConfig !== undefined) { | ||
if (typeof offlineAnalyticsConfig === "boolean") { | ||
offlineAnalyticsConfig && initialize(); | ||
} else { | ||
initialize(offlineAnalyticsConfig); | ||
} | ||
} | ||
if (shouldDisableDevLogs) disableDevLogs(); | ||
@@ -103,0 +109,0 @@ }; |
{ | ||
"name": "@serwist/sw", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"license": "MIT", | ||
@@ -33,18 +33,18 @@ "type": "module", | ||
"dependencies": { | ||
"@serwist/background-sync": "8.0.1", | ||
"@serwist/broadcast-update": "8.0.1", | ||
"@serwist/cacheable-response": "8.0.1", | ||
"@serwist/core": "8.0.1", | ||
"@serwist/expiration": "8.0.1", | ||
"@serwist/google-analytics": "8.0.1", | ||
"@serwist/navigation-preload": "8.0.1", | ||
"@serwist/precaching": "8.0.1", | ||
"@serwist/range-requests": "8.0.1", | ||
"@serwist/routing": "8.0.1", | ||
"@serwist/strategies": "8.0.1" | ||
"@serwist/background-sync": "8.0.2", | ||
"@serwist/broadcast-update": "8.0.2", | ||
"@serwist/cacheable-response": "8.0.2", | ||
"@serwist/core": "8.0.2", | ||
"@serwist/expiration": "8.0.2", | ||
"@serwist/google-analytics": "8.0.2", | ||
"@serwist/navigation-preload": "8.0.2", | ||
"@serwist/precaching": "8.0.2", | ||
"@serwist/range-requests": "8.0.2", | ||
"@serwist/routing": "8.0.2", | ||
"@serwist/strategies": "8.0.2" | ||
}, | ||
"devDependencies": { | ||
"rollup": "3.28.1", | ||
"@serwist/build": "8.0.1", | ||
"@serwist/constants": "8.0.1" | ||
"@serwist/build": "8.0.2", | ||
"@serwist/constants": "8.0.2" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
15440
250
+ Added@serwist/background-sync@8.0.2(transitive)
+ Added@serwist/broadcast-update@8.0.2(transitive)
+ Added@serwist/cacheable-response@8.0.2(transitive)
+ Added@serwist/core@8.0.2(transitive)
+ Added@serwist/expiration@8.0.2(transitive)
+ Added@serwist/google-analytics@8.0.2(transitive)
+ Added@serwist/navigation-preload@8.0.2(transitive)
+ Added@serwist/precaching@8.0.2(transitive)
+ Added@serwist/range-requests@8.0.2(transitive)
+ Added@serwist/routing@8.0.2(transitive)
+ Added@serwist/strategies@8.0.2(transitive)
- Removed@serwist/background-sync@8.0.1(transitive)
- Removed@serwist/broadcast-update@8.0.1(transitive)
- Removed@serwist/cacheable-response@8.0.1(transitive)
- Removed@serwist/core@8.0.1(transitive)
- Removed@serwist/expiration@8.0.1(transitive)
- Removed@serwist/google-analytics@8.0.1(transitive)
- Removed@serwist/navigation-preload@8.0.1(transitive)
- Removed@serwist/precaching@8.0.1(transitive)
- Removed@serwist/range-requests@8.0.1(transitive)
- Removed@serwist/routing@8.0.1(transitive)
- Removed@serwist/strategies@8.0.1(transitive)
Updated@serwist/core@8.0.2
Updated@serwist/expiration@8.0.2
Updated@serwist/precaching@8.0.2
Updated@serwist/routing@8.0.2
Updated@serwist/strategies@8.0.2