@vuepress/plugin-pwa 2.0.0-beta.24 → 2.0.0-beta.28
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { defineClientAppSetup, withBase } from '@vuepress/client';
|
|
1
2
|
import mitt from 'mitt';
|
|
2
3
|
import { onMounted, provide } from 'vue';
|
|
3
|
-
import { defineClientAppSetup, withBase } from '@vuepress/client';
|
|
4
4
|
import { pwaEventSymbol } from './composables';
|
|
5
5
|
const swFilename = __PWA_SW_FILENAME__;
|
|
6
6
|
export default defineClientAppSetup(() => {
|
|
7
|
-
if (
|
|
7
|
+
if (__VUEPRESS_SSR__ || !swFilename)
|
|
8
8
|
return;
|
|
9
9
|
const log = (...args) => console.log('[@vuepress/plugin-pwa]', ...args);
|
|
10
10
|
// create event emitter and provide it
|
package/lib/node/pwaPlugin.js
CHANGED
|
@@ -16,7 +16,7 @@ const pwaPlugin = ({ serviceWorkerFilename = 'service-worker.js', ...generateSWC
|
|
|
16
16
|
define: {
|
|
17
17
|
__PWA_SW_FILENAME__: serviceWorkerFilename,
|
|
18
18
|
},
|
|
19
|
-
onGenerated: (app) => utils_1.withSpinner('Generating service worker')(() => generateServiceWorker_1.generateServiceWorker(app, serviceWorkerFilename, generateSWConfig)),
|
|
19
|
+
onGenerated: (app) => (0, utils_1.withSpinner)('Generating service worker')(() => (0, generateServiceWorker_1.generateServiceWorker)(app, serviceWorkerFilename, generateSWConfig)),
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
exports.pwaPlugin = pwaPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-pwa",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.28",
|
|
4
4
|
"description": "VuePress plugin - progressive web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"clean": "rimraf lib *.tsbuildinfo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vuepress/client": "2.0.0-beta.
|
|
32
|
-
"@vuepress/core": "2.0.0-beta.
|
|
33
|
-
"@vuepress/utils": "2.0.0-beta.
|
|
31
|
+
"@vuepress/client": "2.0.0-beta.28",
|
|
32
|
+
"@vuepress/core": "2.0.0-beta.28",
|
|
33
|
+
"@vuepress/utils": "2.0.0-beta.28",
|
|
34
34
|
"mitt": "^3.0.0",
|
|
35
35
|
"register-service-worker": "^1.7.2",
|
|
36
|
-
"vue": "^3.2.
|
|
37
|
-
"workbox-build": "^6.2
|
|
36
|
+
"vue": "^3.2.24",
|
|
37
|
+
"workbox-build": "^6.4.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "71c34816a79263c7dcba3ff0c103e264abdbf0d2"
|
|
43
43
|
}
|