@serwist/broadcast-update 8.3.0 → 8.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -21,8 +21,8 @@ var internal = require('@serwist/core/internal');
21
21
  });
22
22
  if (!atLeastOneHeaderAvailable) {
23
23
  if (process.env.NODE_ENV !== "production") {
24
- internal.logger.warn(`Unable to determine where the response has been updated ` + `because none of the headers that would be checked are present.`);
25
- internal.logger.debug(`Attempting to compare the following: `, firstResponse, secondResponse, headersToCheck);
24
+ internal.logger.warn("Unable to determine where the response has been updated " + "because none of the headers that would be checked are present.");
25
+ internal.logger.debug("Attempting to compare the following: ", firstResponse, secondResponse, headersToCheck);
26
26
  }
27
27
  // Just return true, indicating the that responses are the same, since we
28
28
  // can't determine otherwise.
@@ -136,7 +136,7 @@ const isSafari = typeof navigator !== "undefined" && /^((?!chrome|android).)*saf
136
136
  }
137
137
  if (!responsesAreSame(options.oldResponse, options.newResponse, this._headersToCheck)) {
138
138
  if (process.env.NODE_ENV !== "production") {
139
- internal.logger.log(`Newer response found (and cached) for:`, options.request.url);
139
+ internal.logger.log("Newer response found (and cached) for:", options.request.url);
140
140
  }
141
141
  const messageData = {
142
142
  type: CACHE_UPDATED_MESSAGE_TYPE,
package/dist/index.js CHANGED
@@ -19,8 +19,8 @@ import { SerwistError, logger, assert, resultingClientExists, timeout, dontWaitF
19
19
  });
20
20
  if (!atLeastOneHeaderAvailable) {
21
21
  if (process.env.NODE_ENV !== "production") {
22
- logger.warn(`Unable to determine where the response has been updated ` + `because none of the headers that would be checked are present.`);
23
- logger.debug(`Attempting to compare the following: `, firstResponse, secondResponse, headersToCheck);
22
+ logger.warn("Unable to determine where the response has been updated " + "because none of the headers that would be checked are present.");
23
+ logger.debug("Attempting to compare the following: ", firstResponse, secondResponse, headersToCheck);
24
24
  }
25
25
  // Just return true, indicating the that responses are the same, since we
26
26
  // can't determine otherwise.
@@ -134,7 +134,7 @@ const isSafari = typeof navigator !== "undefined" && /^((?!chrome|android).)*saf
134
134
  }
135
135
  if (!responsesAreSame(options.oldResponse, options.newResponse, this._headersToCheck)) {
136
136
  if (process.env.NODE_ENV !== "production") {
137
- logger.log(`Newer response found (and cached) for:`, options.request.url);
137
+ logger.log("Newer response found (and cached) for:", options.request.url);
138
138
  }
139
139
  const messageData = {
140
140
  type: CACHE_UPDATED_MESSAGE_TYPE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/broadcast-update",
3
- "version": "8.3.0",
3
+ "version": "8.4.1",
4
4
  "type": "module",
5
5
  "description": "A service worker helper library that uses the Broadcast Channel API to announce when a cached response has updated",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  "license": "MIT",
19
19
  "repository": "serwist/serwist",
20
20
  "bugs": "https://github.com/serwist/serwist/issues",
21
- "homepage": "https://serwist.vercel.app",
21
+ "homepage": "https://serwist.pages.dev",
22
22
  "module": "./dist/index.js",
23
23
  "main": "./dist/index.cjs",
24
24
  "types": "./dist/index.d.ts",
@@ -35,15 +35,15 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@serwist/core": "8.3.0"
38
+ "@serwist/core": "8.4.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "rollup": "4.9.1",
42
- "@serwist/constants": "8.3.0"
42
+ "@serwist/constants": "8.4.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
46
- "lint": "eslint src --ext ts,tsx,js,jsx,cjs,mjs",
46
+ "lint": "biome lint ./src",
47
47
  "typecheck": "tsc"
48
48
  }
49
49
  }