@vuepress/plugin-pwa 2.0.0-rc.0 → 2.0.0-rc.3
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/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018-present,
|
|
3
|
+
Copyright (c) 2018-present, VuePress Community
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/lib/client/config.d.ts
CHANGED
package/lib/client/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineClientConfig, withBase } from '@vuepress/client';
|
|
2
1
|
import mitt from 'mitt';
|
|
3
2
|
import { onMounted, provide } from 'vue';
|
|
3
|
+
import { defineClientConfig, withBase } from 'vuepress/client';
|
|
4
4
|
import { pwaEventSymbol } from './composables/index.js';
|
|
5
5
|
const swFilename = __PWA_SW_FILENAME__;
|
|
6
6
|
export default defineClientConfig({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { App } from '
|
|
1
|
+
import type { App } from 'vuepress/core';
|
|
2
2
|
import type { GenerateSWOptions } from 'workbox-build';
|
|
3
3
|
export type GenerateSWConfig = Omit<GenerateSWOptions, 'swDest' | 'globDirectory'>;
|
|
4
4
|
export declare const generateServiceWorker: (app: App, serviceWorkerFilename: string, generateSWConfig: GenerateSWConfig) => Promise<void>;
|
package/lib/node/pwaPlugin.d.ts
CHANGED
package/lib/node/pwaPlugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDirname, path, withSpinner } from '
|
|
1
|
+
import { getDirname, path, withSpinner } from 'vuepress/utils';
|
|
2
2
|
import { generateServiceWorker } from './generateServiceWorker.js';
|
|
3
3
|
const __dirname = getDirname(import.meta.url);
|
|
4
4
|
export const pwaPlugin = ({ serviceWorkerFilename = 'service-worker.js', ...generateSWConfig } = {}) => (app) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-pwa",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"description": "VuePress plugin - progressive web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://github.com/vuepress",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/vuepress/
|
|
13
|
+
"url": "https://github.com/vuepress/ecosystem/issues"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/vuepress/
|
|
17
|
+
"url": "git+https://github.com/vuepress/ecosystem.git",
|
|
18
|
+
"directory": "plugins/plugin-pwa"
|
|
18
19
|
},
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"author": "meteorlxy",
|
|
@@ -29,20 +30,21 @@
|
|
|
29
30
|
"files": [
|
|
30
31
|
"lib"
|
|
31
32
|
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc -b tsconfig.build.json",
|
|
35
|
+
"clean": "rimraf --glob ./lib ./*.tsbuildinfo"
|
|
36
|
+
},
|
|
32
37
|
"dependencies": {
|
|
33
38
|
"mitt": "^3.0.1",
|
|
34
39
|
"register-service-worker": "^1.7.2",
|
|
35
|
-
"vue": "^3.
|
|
36
|
-
"workbox-build": "^7.0.0"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
+
"vue": "^3.4.15",
|
|
41
|
+
"workbox-build": "^7.0.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vuepress": "2.0.0-rc.2"
|
|
40
45
|
},
|
|
41
46
|
"publishConfig": {
|
|
42
47
|
"access": "public"
|
|
43
48
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"clean": "rimraf lib *.tsbuildinfo"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
+
"gitHead": "7247c765f50c3b2d5a622e0f7cf22bfb13a463c4"
|
|
50
|
+
}
|