usetraceforge 0.1.18 → 0.1.19

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -128,7 +128,7 @@ const TraceForge = {
128
128
  const previousEndpoint = config?.endpoint ?? defaultEndpoint;
129
129
  config = {
130
130
  endpoint: defaultEndpoint,
131
- autoCapture: false,
131
+ autoCapture: typeof window !== "undefined",
132
132
  ...options
133
133
  };
134
134
  const currentEndpoint = config.endpoint || defaultEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usetraceforge",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "description": "TraceForge JavaScript SDK for sending errors to a TraceForge ingest endpoint.",
6
6
  "type": "module",