@posthog/nuxt 1.7.80 → 1.7.82
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/LICENSE +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -1
- package/dist/runtime/nitro-plugin.d.ts +1 -1
- package/package.json +7 -7
package/LICENSE
CHANGED
|
@@ -327,12 +327,12 @@ SOFTWARE.
|
|
|
327
327
|
|
|
328
328
|
---
|
|
329
329
|
|
|
330
|
-
Some files in this codebase contain code from MCPCat/mcpcat-typescript-sdk.
|
|
330
|
+
Some files in this codebase contain code from agentcathq/agentcat-typescript-sdk (formerly MCPCat/mcpcat-typescript-sdk).
|
|
331
331
|
In such cases it is explicitly stated in the file header. This license only applies to the relevant code in such cases.
|
|
332
332
|
|
|
333
333
|
MIT License
|
|
334
334
|
|
|
335
|
-
Copyright (c) 2025 MCPcat
|
|
335
|
+
Copyright (c) 2025 AgentCat, Inc. (formerly MCPcat)
|
|
336
336
|
|
|
337
337
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
338
338
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -77,6 +77,7 @@ const module$1 = defineNuxtModule({
|
|
|
77
77
|
};
|
|
78
78
|
});
|
|
79
79
|
let isBuildProcess = false;
|
|
80
|
+
let publicSourcemapsDeleted = false;
|
|
80
81
|
const posthogCliRunner = () => {
|
|
81
82
|
const cliBinaryPath = options.cliBinaryPath || resolveBinaryPath("posthog-cli", {
|
|
82
83
|
path: process.env.PATH ?? "",
|
|
@@ -105,6 +106,10 @@ const module$1 = defineNuxtModule({
|
|
|
105
106
|
if (!publicDir) return;
|
|
106
107
|
try {
|
|
107
108
|
await cliRunner(getInjectArgs(publicDir, sourcemapsConfig));
|
|
109
|
+
if (sourcemapsConfig.deleteAfterUpload ?? true) {
|
|
110
|
+
await cliRunner(getUploadArgs(publicDir, sourcemapsConfig));
|
|
111
|
+
publicSourcemapsDeleted = true;
|
|
112
|
+
}
|
|
108
113
|
} catch (error) {
|
|
109
114
|
console.error("Failed to process public sourcemaps:", error);
|
|
110
115
|
}
|
|
@@ -115,7 +120,8 @@ const module$1 = defineNuxtModule({
|
|
|
115
120
|
if (nuxt.options.ssr !== false) {
|
|
116
121
|
await cliRunner(getInjectArgs(serverDir, sourcemapsConfig));
|
|
117
122
|
}
|
|
118
|
-
|
|
123
|
+
const outputSourcemapsConfig = (sourcemapsConfig.deleteAfterUpload ?? true) && !publicSourcemapsDeleted ? { ...sourcemapsConfig, deleteAfterUpload: false } : sourcemapsConfig;
|
|
124
|
+
await cliRunner(getUploadArgs(outputDir, outputSourcemapsConfig));
|
|
119
125
|
} catch (error) {
|
|
120
126
|
console.error("Failed to process or upload sourcemaps:", error);
|
|
121
127
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/nuxt",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.82",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/PostHog/posthog-js/issues"
|
|
6
6
|
},
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@posthog/cli": "~0.
|
|
29
|
+
"@posthog/cli": "~0.11.1",
|
|
30
30
|
"@nuxt/kit": ">=3.7.0",
|
|
31
|
-
"posthog-node": "^5.
|
|
32
|
-
"@posthog/core": "^1.
|
|
31
|
+
"posthog-node": "^5.49.0",
|
|
32
|
+
"@posthog/core": "^1.48.0",
|
|
33
33
|
"@posthog/plugin-utils": "^1.1.2",
|
|
34
|
-
"posthog-js": "^1.
|
|
34
|
+
"posthog-js": "^1.416.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.0.0",
|
|
38
|
-
"nuxt": "^4.1
|
|
39
|
-
"@nuxt/devtools": "^
|
|
38
|
+
"nuxt": "^4.5.1",
|
|
39
|
+
"@nuxt/devtools": "^3.3.1",
|
|
40
40
|
"@nuxt/module-builder": "^1.0.2",
|
|
41
41
|
"@nuxt/schema": "^4.1.2",
|
|
42
42
|
"@nuxt/eslint-config": "^1.9.0",
|