@serwist/google-analytics
Advanced tools
Comparing version 8.4.0 to 8.4.1
@@ -36,3 +36,3 @@ import { BackgroundSyncPlugin } from '@serwist/background-sync'; | ||
return async ({ queue })=>{ | ||
let entry; | ||
let entry = undefined; | ||
while(entry = await queue.shiftRequest()){ | ||
@@ -74,3 +74,3 @@ const { request, timestamp } = entry; | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' ` + `has been replayed`); | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' has been replayed`); | ||
} | ||
@@ -80,3 +80,3 @@ } catch (err) { | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' ` + `failed to replay, putting it back in the queue.`); | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' failed to replay, putting it back in the queue.`); | ||
} | ||
@@ -87,3 +87,3 @@ throw err; | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`All Google Analytics request successfully replayed; ` + `the queue is now empty!`); | ||
logger.log("All Google Analytics request successfully replayed; " + "the queue is now empty!"); | ||
} | ||
@@ -90,0 +90,0 @@ }; |
@@ -36,3 +36,3 @@ import { BackgroundSyncPlugin } from '@serwist/background-sync'; | ||
return async ({ queue })=>{ | ||
let entry; | ||
let entry = undefined; | ||
while(entry = await queue.shiftRequest()){ | ||
@@ -74,3 +74,3 @@ const { request, timestamp } = entry; | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' ` + `has been replayed`); | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' has been replayed`); | ||
} | ||
@@ -80,3 +80,3 @@ } catch (err) { | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' ` + `failed to replay, putting it back in the queue.`); | ||
logger.log(`Request for '${getFriendlyURL(url.href)}' failed to replay, putting it back in the queue.`); | ||
} | ||
@@ -87,3 +87,3 @@ throw err; | ||
if (process.env.NODE_ENV !== "production") { | ||
logger.log(`All Google Analytics request successfully replayed; ` + `the queue is now empty!`); | ||
logger.log("All Google Analytics request successfully replayed; " + "the queue is now empty!"); | ||
} | ||
@@ -90,0 +90,0 @@ }; |
{ | ||
"name": "@serwist/google-analytics", | ||
"version": "8.4.0", | ||
"version": "8.4.1", | ||
"type": "module", | ||
@@ -51,10 +51,10 @@ "description": "Queues failed requests and uses the Background Sync API to replay them when the network is available", | ||
"dependencies": { | ||
"@serwist/background-sync": "8.4.0", | ||
"@serwist/core": "8.4.0", | ||
"@serwist/routing": "8.4.0", | ||
"@serwist/strategies": "8.4.0" | ||
"@serwist/background-sync": "8.4.1", | ||
"@serwist/core": "8.4.1", | ||
"@serwist/routing": "8.4.1", | ||
"@serwist/strategies": "8.4.1" | ||
}, | ||
"devDependencies": { | ||
"rollup": "4.9.1", | ||
"@serwist/constants": "8.4.0" | ||
"@serwist/constants": "8.4.1" | ||
}, | ||
@@ -64,5 +64,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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
32151
+ Added@serwist/background-sync@8.4.1(transitive)
+ Added@serwist/core@8.4.1(transitive)
+ Added@serwist/routing@8.4.1(transitive)
+ Added@serwist/strategies@8.4.1(transitive)
- Removed@serwist/background-sync@8.4.0(transitive)
- Removed@serwist/core@8.4.0(transitive)
- Removed@serwist/routing@8.4.0(transitive)
- Removed@serwist/strategies@8.4.0(transitive)
Updated@serwist/core@8.4.1
Updated@serwist/routing@8.4.1
Updated@serwist/strategies@8.4.1