@docusaurus/plugin-pwa 3.8.1 → 3.9.0-canary-6406
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/lib/registerSw.js +0 -2
- package/package.json +12 -12
- package/src/registerSw.ts +1 -2
package/lib/registerSw.js
CHANGED
|
@@ -7,12 +7,10 @@
|
|
|
7
7
|
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
|
8
8
|
import { createStorageSlot } from '@docusaurus/theme-common';
|
|
9
9
|
// First: read the env variables (provided by Webpack)
|
|
10
|
-
/* eslint-disable prefer-destructuring */
|
|
11
10
|
const PWA_SERVICE_WORKER_URL = process.env.PWA_SERVICE_WORKER_URL;
|
|
12
11
|
const PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES = process.env
|
|
13
12
|
.PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES;
|
|
14
13
|
const PWA_DEBUG = process.env.PWA_DEBUG;
|
|
15
|
-
/* eslint-enable prefer-destructuring */
|
|
16
14
|
const MAX_MOBILE_WIDTH = 996;
|
|
17
15
|
const AppInstalledEventFiredStorage = createStorageSlot('docusaurus.pwa.event.appInstalled.fired');
|
|
18
16
|
function debugLog(msg, obj) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0-canary-6406",
|
|
4
4
|
"description": "Docusaurus Plugin to add PWA support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-pwa.d.ts",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.25.9",
|
|
24
24
|
"@babel/preset-env": "^7.25.9",
|
|
25
|
-
"@docusaurus/bundler": "3.
|
|
26
|
-
"@docusaurus/core": "3.
|
|
27
|
-
"@docusaurus/logger": "3.
|
|
28
|
-
"@docusaurus/theme-common": "3.
|
|
29
|
-
"@docusaurus/theme-translations": "3.
|
|
30
|
-
"@docusaurus/types": "3.
|
|
31
|
-
"@docusaurus/utils": "3.
|
|
32
|
-
"@docusaurus/utils-validation": "3.
|
|
25
|
+
"@docusaurus/bundler": "3.9.0-canary-6406",
|
|
26
|
+
"@docusaurus/core": "3.9.0-canary-6406",
|
|
27
|
+
"@docusaurus/logger": "3.9.0-canary-6406",
|
|
28
|
+
"@docusaurus/theme-common": "3.9.0-canary-6406",
|
|
29
|
+
"@docusaurus/theme-translations": "3.9.0-canary-6406",
|
|
30
|
+
"@docusaurus/types": "3.9.0-canary-6406",
|
|
31
|
+
"@docusaurus/utils": "3.9.0-canary-6406",
|
|
32
|
+
"@docusaurus/utils-validation": "3.9.0-canary-6406",
|
|
33
33
|
"babel-loader": "^9.2.1",
|
|
34
34
|
"clsx": "^2.0.0",
|
|
35
35
|
"core-js": "^3.31.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"workbox-window": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@docusaurus/module-type-aliases": "3.
|
|
44
|
+
"@docusaurus/module-type-aliases": "3.9.0-canary-6406",
|
|
45
45
|
"fs-extra": "^11.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
52
|
+
"node": ">=20.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "796441f4f831278ffc57971fabcd4c730da9e9d7"
|
|
55
55
|
}
|
package/src/registerSw.ts
CHANGED
|
@@ -9,12 +9,11 @@ import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
|
|
9
9
|
import {createStorageSlot} from '@docusaurus/theme-common';
|
|
10
10
|
|
|
11
11
|
// First: read the env variables (provided by Webpack)
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
const PWA_SERVICE_WORKER_URL = process.env.PWA_SERVICE_WORKER_URL!;
|
|
14
14
|
const PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES = process.env
|
|
15
15
|
.PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES as unknown as (keyof typeof OfflineModeActivationStrategiesImplementations)[];
|
|
16
16
|
const PWA_DEBUG = process.env.PWA_DEBUG;
|
|
17
|
-
/* eslint-enable prefer-destructuring */
|
|
18
17
|
|
|
19
18
|
const MAX_MOBILE_WIDTH = 996;
|
|
20
19
|
|