nuxt-cap 1.0.1 → 1.0.2

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.0.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -2,12 +2,12 @@ import { useNuxtApp, useRuntimeConfig } from "#app";
2
2
  export function useCap(config, el) {
3
3
  const { $cap } = useNuxtApp();
4
4
  const { cap } = useRuntimeConfig().public;
5
- if (!import.meta.client || !$cap) return;
5
+ if (!import.meta.client || !$cap) return void 0;
6
6
  if (!cap?.apiEndpoint && !config?.apiEndpoint) {
7
7
  console.error(
8
8
  '[useCap] No API endpoint provided. Please set the "cap.apiEndpoint" runtime config or provide it in the config parameter.'
9
9
  );
10
- return;
10
+ return void 0;
11
11
  }
12
12
  const capInstance = new $cap({ apiEndpoint: cap?.apiEndpoint, ...config }, el);
13
13
  return capInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-cap",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "🧢 Integrate Cap into your Nuxt websites/applications.",
5
5
  "keywords": [
6
6
  "cap",
@@ -55,19 +55,19 @@
55
55
  "release": "bun run prerelease && bun run build && bumpp && sudo npm publish"
56
56
  },
57
57
  "dependencies": {
58
- "@cap.js/widget": "^0.1.34",
59
- "@nuxt/kit": "^4.3.1"
58
+ "@cap.js/widget": "^0.1.46",
59
+ "@nuxt/kit": "^4.4.4"
60
60
  },
61
61
  "devDependencies": {
62
- "@dethdkn/ox-config": "^1.0.12",
62
+ "@dethdkn/ox-config": "^1.0.20",
63
63
  "@nuxt/module-builder": "^1.0.2",
64
- "@nuxt/schema": "^4.3.1",
65
- "@types/bun": "^1.3.9",
66
- "bumpp": "^10.4.1",
67
- "nuxt": "^4.3.1",
68
- "typescript": "5.9.3",
64
+ "@nuxt/schema": "^4.4.4",
65
+ "@types/bun": "^1.3.13",
66
+ "bumpp": "^11.0.1",
67
+ "nuxt": "^4.4.4",
68
+ "typescript": "6.0.3",
69
69
  "vitepress": "^1.6.4",
70
- "vue-tsc": "^3.2.4"
70
+ "vue-tsc": "^3.2.7"
71
71
  },
72
- "packageManager": "bun@1.3.9"
72
+ "packageManager": "bun@1.3.13"
73
73
  }