@vueuse/nuxt 12.4.0 → 12.6.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.
Files changed (2) hide show
  1. package/index.mjs +5 -2
  2. package/package.json +7 -7
package/index.mjs CHANGED
@@ -14,7 +14,6 @@ const disabledFunctions = [
14
14
  "useFetch",
15
15
  "useCookie",
16
16
  "useHead",
17
- "useTitle",
18
17
  "useStorage",
19
18
  "useImage"
20
19
  ];
@@ -79,8 +78,12 @@ var index = defineNuxtModule({
79
78
  for (const pkg of packages) {
80
79
  if (pkg === "shared")
81
80
  continue;
82
- if (!isPackageExists(`@vueuse/${pkg}`))
81
+ if (!isPackageExists(
82
+ `@vueuse/${pkg}`,
83
+ { paths: nuxt.options._layers.map((layer) => layer.config.rootDir) }
84
+ )) {
83
85
  continue;
86
+ }
84
87
  const imports = metadata.functions.filter((i) => i.package === pkg && !i.internal).flatMap((i) => {
85
88
  const names = [i.name, ...i.alias || []];
86
89
  return names.map((n) => ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vueuse/nuxt",
3
3
  "type": "module",
4
- "version": "12.4.0",
4
+ "version": "12.6.1",
5
5
  "description": "VueUse Nuxt Module",
6
6
  "author": "Anthony Fu <https://github.com/antfu>",
7
7
  "license": "MIT",
@@ -45,16 +45,16 @@
45
45
  "nuxt": "^3.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@nuxt/kit": "^3.15.1",
48
+ "@nuxt/kit": "^3.15.4",
49
49
  "local-pkg": "^1.0.0",
50
50
  "vue": "^3.5.13",
51
- "@vueuse/core": "12.4.0",
52
- "@vueuse/metadata": "12.4.0"
51
+ "@vueuse/core": "12.6.1",
52
+ "@vueuse/metadata": "12.6.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@nuxt/schema": "^3.15.1",
56
- "nuxt": "^3.15.1",
57
- "unimport": "^3.14.5"
55
+ "@nuxt/schema": "^3.15.4",
56
+ "nuxt": "^3.15.4",
57
+ "unimport": "^4.1.1"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild"