@posthog/nuxt 1.6.15 → 1.7.0

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/README.md CHANGED
@@ -128,15 +128,9 @@ Q: I see stack traces but I do not see line context in the error tracking tab
128
128
  A: Double check whether you enabled sourcemaps generation in the nuxt config both for vue and nitro. It is covered in the docs.
129
129
  ```
130
130
 
131
- ## Developing this module
132
-
133
- 1. Navigate into module directory
134
- 2. Install dependencies using `pnpm i`
135
- 3. Build the module using `pnpm build`
136
- 4. Navigate into playground directory
137
- 5. Install dependencies using `npm i`
138
- 6. Build the playground using `npm run build`
139
- 7. Run the playground using `node .output/server/index.mjs`
131
+ ## Contributing
132
+
133
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for package-specific development instructions.
140
134
 
141
135
  ## Questions?
142
136
 
package/dist/module.d.mts CHANGED
@@ -15,6 +15,7 @@ interface SourcemapsConfig {
15
15
  /** @deprecated Use releaseName instead */
16
16
  project?: string;
17
17
  releaseName?: string;
18
+ build?: string | number;
18
19
  logLevel?: LogLevel;
19
20
  deleteAfterUpload?: boolean;
20
21
  batchSize?: number;
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.7.0"
6
6
  },
7
- "version": "1.6.15",
7
+ "version": "1.7.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -117,6 +117,9 @@ function getInjectArgs(directory, sourcemapsConfig) {
117
117
  if (releaseVersion) {
118
118
  processOptions.push("--release-version", releaseVersion);
119
119
  }
120
+ if (sourcemapsConfig.build !== void 0 && sourcemapsConfig.build !== "") {
121
+ processOptions.push("--build", String(sourcemapsConfig.build));
122
+ }
120
123
  return processOptions;
121
124
  }
122
125
  function getUploadArgs(directory, sourcemapsConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/nuxt",
3
- "version": "1.6.15",
3
+ "version": "1.7.0",
4
4
  "description": "Nuxt module for Posthog 🦔",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  "dependencies": {
26
26
  "@posthog/cli": "~0.7.3",
27
27
  "@nuxt/kit": ">=3.7.0",
28
- "posthog-node": "5.29.2",
29
28
  "@posthog/core": "1.25.2",
30
- "@posthog/plugin-utils": "1.0.1",
31
- "posthog-js": "1.369.2"
29
+ "@posthog/plugin-utils": "1.1.0",
30
+ "posthog-js": "1.369.3",
31
+ "posthog-node": "5.29.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.0.0",