@faststats/nitro 0.2.6 → 0.2.8

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.
@@ -121,6 +121,10 @@ function buildServerReportContext(extra = {}) {
121
121
  };
122
122
  }
123
123
  //#endregion
124
+ //#region src/sdk.ts
125
+ const SDK_NAME = "@faststats/nitro";
126
+ const SDK_VERSION = "0.2.8";
127
+ //#endregion
124
128
  //#region src/error-reporter.ts
125
129
  function pruneUndefined(context) {
126
130
  const result = {};
@@ -169,6 +173,8 @@ function createPayload(snapshot, options, sessionId) {
169
173
  errors,
170
174
  sessionId,
171
175
  ...options.buildId ? { buildId: options.buildId } : {},
176
+ sdkName: SDK_NAME,
177
+ sdkVersion: SDK_VERSION,
172
178
  context: {
173
179
  ...pruneUndefined(baseContext),
174
180
  ...mergeCustomContext(snapshot)
package/dist/v2.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as resolveFaststatsNitroOptions, t as reportNitroErrorToFaststats } from "./report-error-Be0UMIs5.mjs";
1
+ import { n as resolveFaststatsNitroOptions, t as reportNitroErrorToFaststats } from "./report-error-DGbvovmG.mjs";
2
2
  import { defineNitroPlugin } from "nitropack/runtime";
3
3
  //#region src/v2.ts
4
4
  function createFaststatsNitroPluginV2(options) {
package/dist/v3.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as resolveFaststatsNitroOptions, t as reportNitroErrorToFaststats } from "./report-error-Be0UMIs5.mjs";
1
+ import { n as resolveFaststatsNitroOptions, t as reportNitroErrorToFaststats } from "./report-error-DGbvovmG.mjs";
2
2
  import { definePlugin } from "nitro";
3
3
  //#region src/v3.ts
4
4
  function createFaststatsNitroPluginV3(options) {
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@faststats/nitro",
3
3
  "repository": {
4
4
  "type": "git",
5
- "url": "https://github.com/faststats-dev/web-analytics.git"
5
+ "url": "https://github.com/faststats-dev/faststats-javascript.git"
6
6
  },
7
- "version": "0.2.6",
7
+ "version": "0.2.8",
8
8
  "type": "module",
9
9
  "main": "./dist/v2.mjs",
10
10
  "module": "./dist/v2.mjs",