@serwist/navigation-preload 9.0.0-preview.12 → 9.0.0-preview.13

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.js CHANGED
@@ -9,13 +9,13 @@ const disable = ()=>{
9
9
  self.addEventListener("activate", (event)=>{
10
10
  event.waitUntil(self.registration.navigationPreload.disable().then(()=>{
11
11
  if (process.env.NODE_ENV !== "production") {
12
- logger.log("Navigation preload is disabled.");
12
+ logger.log("Navigation preloading is disabled.");
13
13
  }
14
14
  }));
15
15
  });
16
16
  } else {
17
17
  if (process.env.NODE_ENV !== "production") {
18
- logger.log("Navigation preload is not supported in this browser.");
18
+ logger.log("Navigation preloading is not supported in this browser.");
19
19
  }
20
20
  }
21
21
  };
@@ -28,13 +28,13 @@ const enable = (headerValue)=>{
28
28
  void self.registration.navigationPreload.setHeaderValue(headerValue);
29
29
  }
30
30
  if (process.env.NODE_ENV !== "production") {
31
- logger.log("Navigation preload is enabled.");
31
+ logger.log("Navigation preloading is enabled.");
32
32
  }
33
33
  }));
34
34
  });
35
35
  } else {
36
36
  if (process.env.NODE_ENV !== "production") {
37
- logger.log("Navigation preload is not supported in this browser.");
37
+ logger.log("Navigation preloading is not supported in this browser.");
38
38
  }
39
39
  }
40
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/navigation-preload",
3
- "version": "9.0.0-preview.12",
3
+ "version": "9.0.0-preview.13",
4
4
  "type": "module",
5
5
  "description": "A module that allows developers to enable navigation preloading in their service worker.",
6
6
  "files": [
@@ -29,12 +29,12 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@serwist/core": "9.0.0-preview.12"
32
+ "@serwist/core": "9.0.0-preview.13"
33
33
  },
34
34
  "devDependencies": {
35
- "rollup": "4.9.6",
36
- "typescript": "5.4.0-dev.20240206",
37
- "@serwist/constants": "9.0.0-preview.12"
35
+ "rollup": "4.12.0",
36
+ "typescript": "5.5.0-dev.20240304",
37
+ "@serwist/constants": "9.0.0-preview.13"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": ">=5.0.0"
package/src/disable.ts CHANGED
@@ -22,14 +22,14 @@ export const disable = (): void => {
22
22
  event.waitUntil(
23
23
  self.registration.navigationPreload.disable().then(() => {
24
24
  if (process.env.NODE_ENV !== "production") {
25
- logger.log("Navigation preload is disabled.");
25
+ logger.log("Navigation preloading is disabled.");
26
26
  }
27
27
  }),
28
28
  );
29
29
  });
30
30
  } else {
31
31
  if (process.env.NODE_ENV !== "production") {
32
- logger.log("Navigation preload is not supported in this browser.");
32
+ logger.log("Navigation preloading is not supported in this browser.");
33
33
  }
34
34
  }
35
35
  };
package/src/enable.ts CHANGED
@@ -31,14 +31,14 @@ export const enable = (headerValue?: string): void => {
31
31
  }
32
32
 
33
33
  if (process.env.NODE_ENV !== "production") {
34
- logger.log("Navigation preload is enabled.");
34
+ logger.log("Navigation preloading is enabled.");
35
35
  }
36
36
  }),
37
37
  );
38
38
  });
39
39
  } else {
40
40
  if (process.env.NODE_ENV !== "production") {
41
- logger.log("Navigation preload is not supported in this browser.");
41
+ logger.log("Navigation preloading is not supported in this browser.");
42
42
  }
43
43
  }
44
44
  };