posthog-node 5.8.5 → 5.8.6
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/dist/edge/index.cjs +2 -2
- package/dist/edge/index.cjs.map +1 -1
- package/dist/edge/index.mjs +2 -2
- package/dist/edge/index.mjs.map +1 -1
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.mjs
CHANGED
|
@@ -745,7 +745,7 @@ class ErrorTracking {
|
|
|
745
745
|
this.client.addPendingPromise((async () => {
|
|
746
746
|
const eventMessage = await ErrorTracking.buildEventMessage(exception, hint);
|
|
747
747
|
const exceptionProperties = eventMessage.properties;
|
|
748
|
-
const exceptionType = exceptionProperties?.$exception_list[0]
|
|
748
|
+
const exceptionType = exceptionProperties?.$exception_list[0]?.type ?? 'Exception';
|
|
749
749
|
const isRateLimited = this._rateLimiter.consumeRateLimit(exceptionType);
|
|
750
750
|
if (isRateLimited) {
|
|
751
751
|
this._logger.info('Skipping exception capture because of client rate limiting.', {
|
|
@@ -1189,7 +1189,7 @@ function snipLine(line, colno) {
|
|
|
1189
1189
|
return newLine;
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
var version = "5.8.
|
|
1192
|
+
var version = "5.8.6";
|
|
1193
1193
|
|
|
1194
1194
|
/**
|
|
1195
1195
|
* A lazy value that is only computed when needed. Inspired by C#'s Lazy<T> class.
|