@logbrew/next 0.1.17 → 0.1.18
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 +2 -2
- package/client.cjs +1 -1
- package/client.js +1 -1
- package/edge.cjs +1 -1
- package/examples/client-route-spans.mjs +1 -1
- package/examples/readme-example.mjs +1 -1
- package/examples/real-user-smoke.mjs +1 -1
- package/index.cjs +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -270,7 +270,7 @@ import {
|
|
|
270
270
|
const client = createLogBrewNextBrowserClient({
|
|
271
271
|
clientKey: "LOGBREW_CLIENT_KEY",
|
|
272
272
|
sdkName: "my-next-app",
|
|
273
|
-
sdkVersion: "0.1.
|
|
273
|
+
sdkVersion: "0.1.18"
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
const routePatterns = [
|
|
@@ -356,7 +356,7 @@ import { createLogBrewNextClient } from "@logbrew/next";
|
|
|
356
356
|
const client = createLogBrewNextClient({
|
|
357
357
|
serverApiKey: "LOGBREW_SERVER_API_KEY",
|
|
358
358
|
sdkName: "my-next-app",
|
|
359
|
-
sdkVersion: "0.1.
|
|
359
|
+
sdkVersion: "0.1.18"
|
|
360
360
|
});
|
|
361
361
|
```
|
|
362
362
|
|
package/client.cjs
CHANGED
package/client.js
CHANGED
package/edge.cjs
CHANGED
|
@@ -25,7 +25,7 @@ function createLogBrewNextEdgeRequestErrorHandler(options = {}) {
|
|
|
25
25
|
apiKey: authKey,
|
|
26
26
|
context: deploymentContext,
|
|
27
27
|
sdkName: options.sdkName ?? "logbrew-next",
|
|
28
|
-
sdkVersion: options.sdkVersion ?? "0.1.
|
|
28
|
+
sdkVersion: options.sdkVersion ?? "0.1.18",
|
|
29
29
|
maxRetries: options.maxRetries ?? 2
|
|
30
30
|
});
|
|
31
31
|
const event = typeof options.errorEvent === "function"
|
|
@@ -24,7 +24,7 @@ const event = captureNextNavigation(client, {
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
const payload = JSON.parse(client.previewJson());
|
|
27
|
-
if (!event || event.attributes.metadata.routeTemplate !== "/projects/[projectId]/settings" || event.attributes.metadata.operation !== "browser.navigation" || payload.sdk.version !== "0.1.
|
|
27
|
+
if (!event || event.attributes.metadata.routeTemplate !== "/projects/[projectId]/settings" || event.attributes.metadata.operation !== "browser.navigation" || payload.sdk.version !== "0.1.18") {
|
|
28
28
|
throw new Error(`unexpected Next client route span: ${JSON.stringify(event)}`);
|
|
29
29
|
}
|
|
30
30
|
|
package/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ function createLogBrewNextClient({
|
|
|
23
23
|
serverApiKey,
|
|
24
24
|
context,
|
|
25
25
|
sdkName = "logbrew-next",
|
|
26
|
-
sdkVersion = "0.1.
|
|
26
|
+
sdkVersion = "0.1.18",
|
|
27
27
|
maxRetries = 2
|
|
28
28
|
} = {}) {
|
|
29
29
|
const authKey = serverApiKey ?? apiKey ?? readEnvServerApiKey() ?? readEnvApiKey();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logbrew/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Next.js App Router helpers for the public LogBrew JavaScript SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"node": ">=18"
|
|
89
89
|
},
|
|
90
90
|
"license": "MIT",
|
|
91
|
+
"homepage": "https://logbrew.co",
|
|
91
92
|
"repository": {
|
|
92
93
|
"type": "git",
|
|
93
94
|
"url": "git+https://github.com/LogBrewCo/sdk.git"
|