@vueuse/nuxt 8.0.0-beta.2 → 8.0.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/README.md CHANGED
@@ -12,11 +12,10 @@ npm i <b>@vueuse/nuxt</b>
12
12
 
13
13
  ```ts
14
14
  // nuxt.config
15
-
16
- export function defineNuxtConfig({
17
- buildModules: [
18
- '@vueuse/nuxt'
19
- ]
15
+ export default defineNuxtConfig({
16
+ modules: [
17
+ '@vueuse/nuxt',
18
+ ],
20
19
  })
21
20
  ```
22
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueuse/nuxt",
3
- "version": "8.0.0-beta.2",
3
+ "version": "8.0.1",
4
4
  "description": "VueUse Nuxt Module",
5
5
  "keywords": [
6
6
  "vue",
@@ -14,14 +14,16 @@
14
14
  "url": "https://github.com/vueuse/vueuse/issues"
15
15
  },
16
16
  "license": "MIT",
17
+ "author": "Anthony Fu <https://github.com/antfu>",
17
18
  "repository": {
18
19
  "type": "git",
19
20
  "url": "git+https://github.com/vueuse/vueuse.git",
20
21
  "directory": "packages/nuxt"
21
22
  },
22
23
  "funding": "https://github.com/sponsors/antfu",
23
- "author": "Anthony Fu <https://github.com/antfu>",
24
- "sideEffects": false,
24
+ "main": "./index.cjs",
25
+ "module": "./index.mjs",
26
+ "types": "./index.d.ts",
25
27
  "exports": {
26
28
  ".": {
27
29
  "import": "./index.mjs",
@@ -30,13 +32,11 @@
30
32
  },
31
33
  "./*": "./*"
32
34
  },
33
- "main": "./index.cjs",
34
- "module": "./index.mjs",
35
- "types": "./index.d.ts",
35
+ "sideEffects": false,
36
36
  "dependencies": {
37
37
  "@nuxt/kit": "npm:@nuxt/kit-edge@latest",
38
- "@vueuse/core": "8.0.0-beta.2",
39
- "@vueuse/metadata": "8.0.0-beta.2",
38
+ "@vueuse/core": "8.0.1",
39
+ "@vueuse/metadata": "8.0.1",
40
40
  "local-pkg": "^0.4.1",
41
41
  "vue-demi": "*"
42
42
  },
package/ssr-plugin.mjs CHANGED
@@ -10,9 +10,9 @@ setSSRHandler('getDefaultStorage', () => {
10
10
  return cookieMap.get(key)
11
11
  }
12
12
  return {
13
- getItem: (key) => get(key).value,
13
+ getItem: key => get(key).value,
14
14
  setItem: (key, value) => get(key).value = value,
15
- removeItem: (key) => get(key).value = undefined
15
+ removeItem: key => get(key).value = undefined,
16
16
  }
17
17
  })
18
18