@posthog/nuxt 1.7.78 → 1.7.80
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 +1 -1
- package/dist/module.mjs +4 -2
- package/package.json +5 -5
package/dist/module.json
CHANGED
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
|
-
|
|
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
|
|
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.
|
|
3
|
+
"version": "1.7.80",
|
|
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.
|
|
32
|
-
"@posthog/core": "^1.39.
|
|
31
|
+
"posthog-node": "^5.39.3",
|
|
32
|
+
"@posthog/core": "^1.39.4",
|
|
33
33
|
"@posthog/plugin-utils": "^1.1.2",
|
|
34
|
-
"posthog-js": "^1.396.
|
|
34
|
+
"posthog-js": "^1.396.4"
|
|
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
|
}
|