@vite-pwa/nuxt 0.2.0 → 0.2.1

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "pwa",
3
3
  "configKey": "pwa",
4
- "version": "0.2.0"
4
+ "version": "0.2.1"
5
5
  }
@@ -1,2 +1,7 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { UnwrapNestedRefs } from 'vue';
2
+ import type { PwaInjection } from './pwa';
3
+ import type { Plugin } from '#app/nuxt';
4
+ declare const plugin: Plugin<{
5
+ pwa?: UnwrapNestedRefs<PwaInjection>;
6
+ }>;
7
+ export default plugin;
@@ -2,7 +2,7 @@ import { nextTick, reactive, ref } from "vue";
2
2
  import { useRegisterSW } from "virtual:pwa-register/vue";
3
3
  import { installPrompt, periodicSyncForUpdates } from "virtual:nuxt-pwa-configuration";
4
4
  import { defineNuxtPlugin } from "#imports";
5
- export default defineNuxtPlugin(() => {
5
+ const plugin = defineNuxtPlugin(() => {
6
6
  const registrationError = ref(false);
7
7
  const swActivated = ref(false);
8
8
  const showInstallPrompt = ref(false);
@@ -110,3 +110,4 @@ export default defineNuxtPlugin(() => {
110
110
  }
111
111
  };
112
112
  });
113
+ export default plugin;
@@ -1,2 +1,7 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { UnwrapNestedRefs } from 'vue';
2
+ import type { PwaInjection } from './pwa';
3
+ import type { Plugin } from '#app/nuxt';
4
+ declare const plugin: Plugin<{
5
+ pwa?: UnwrapNestedRefs<PwaInjection>;
6
+ }>;
7
+ export default plugin;
@@ -1,8 +1,9 @@
1
1
  import { defineNuxtPlugin } from "#imports";
2
- export default defineNuxtPlugin(() => {
2
+ const plugin = defineNuxtPlugin(() => {
3
3
  return {
4
4
  provide: {
5
5
  pwa: void 0
6
6
  }
7
7
  };
8
8
  });
9
+ export default plugin;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vite-pwa/nuxt",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "packageManager": "pnpm@8.10.2",
6
6
  "description": "Zero-config PWA for Nuxt 3",
7
7
  "author": "antfu <anthonyfu117@hotmail.com>",
@@ -95,4 +95,4 @@
95
95
  "vite-plugin-pwa"
96
96
  ]
97
97
  }
98
- }
98
+ }
File without changes
File without changes