@posthog/nuxt 1.7.78 → 1.7.79

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.7.0"
6
6
  },
7
- "version": "1.7.78",
7
+ "version": "1.7.79",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -112,10 +112,12 @@ const module$1 = defineNuxtModule({
112
112
  nuxt.hook("close", async () => {
113
113
  if (!isBuildProcess || !serverDir || !outputDir) return;
114
114
  try {
115
- await cliRunner(getInjectArgs(serverDir, sourcemapsConfig));
115
+ if (nuxt.options.ssr !== false) {
116
+ await cliRunner(getInjectArgs(serverDir, sourcemapsConfig));
117
+ }
116
118
  await cliRunner(getUploadArgs(outputDir, sourcemapsConfig));
117
119
  } catch (error) {
118
- console.error("Failed to process server sourcemaps:", error);
120
+ console.error("Failed to process or upload sourcemaps:", error);
119
121
  }
120
122
  });
121
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/nuxt",
3
- "version": "1.7.78",
3
+ "version": "1.7.79",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -28,10 +28,10 @@
28
28
  "dependencies": {
29
29
  "@posthog/cli": "~0.7.21",
30
30
  "@nuxt/kit": ">=3.7.0",
31
- "posthog-node": "^5.39.0",
32
- "@posthog/core": "^1.39.1",
31
+ "posthog-node": "^5.39.2",
33
32
  "@posthog/plugin-utils": "^1.1.2",
34
- "posthog-js": "^1.396.2"
33
+ "@posthog/core": "^1.39.3",
34
+ "posthog-js": "^1.396.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.0.0",
@@ -46,6 +46,6 @@
46
46
  "build": "nuxt-module-build build",
47
47
  "package": "pnpm pack --out $PACKAGE_DEST/%s.tgz",
48
48
  "lint": "eslint .",
49
- "test:unit": "node tests/vue-plugin.test.mjs"
49
+ "test:unit": "node tests/vue-plugin.test.mjs && node tests/sourcemaps-ssr.test.mjs"
50
50
  }
51
51
  }