@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, Yuxi (Evan) You
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
@@ -1,2 +1,3 @@
1
- declare const _default: import("@vuepress/client").ClientConfig;
1
+ import type { ClientConfig } from 'vuepress/client';
2
+ declare const _default: ClientConfig;
2
3
  export default _default;
@@ -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 '@vuepress/core';
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>;
@@ -1,4 +1,4 @@
1
- import { logger } from '@vuepress/utils';
1
+ import { logger } from 'vuepress/utils';
2
2
  const assetsExtensions = [
3
3
  // basic
4
4
  'html',
@@ -1,4 +1,4 @@
1
- import type { Plugin } from '@vuepress/core';
1
+ import type { Plugin } from 'vuepress/core';
2
2
  import type { GenerateSWConfig } from './generateServiceWorker.js';
3
3
  /**
4
4
  * Options for @vuepress/plugin-pwa
@@ -1,4 +1,4 @@
1
- import { getDirname, path, withSpinner } from '@vuepress/utils';
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.0",
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/vuepress-next/issues"
13
+ "url": "https://github.com/vuepress/ecosystem/issues"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://github.com/vuepress/vuepress-next.git"
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.3.8",
36
- "workbox-build": "^7.0.0",
37
- "@vuepress/client": "2.0.0-rc.0",
38
- "@vuepress/core": "2.0.0-rc.0",
39
- "@vuepress/utils": "2.0.0-rc.0"
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
- "scripts": {
45
- "build": "tsc -b tsconfig.build.json",
46
- "clean": "rimraf lib *.tsbuildinfo"
47
- }
48
- }
49
+ "gitHead": "7247c765f50c3b2d5a622e0f7cf22bfb13a463c4"
50
+ }