@absolutejs/beacon 0.6.10 → 0.6.11

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/index.js CHANGED
@@ -941,7 +941,7 @@ var createBeacon = (options) => {
941
941
  event.extra = context.extra;
942
942
  push(event);
943
943
  };
944
- const emitSignal = (message, signalTags, traceId, extra, stackBoundary, fallbackFramesToDrop = 1) => {
944
+ const emitSignal = (message, signalTags, traceId, extra, stackBoundary, fallbackFramesToDrop = 1, useDefaultFingerprint = false) => {
945
945
  const error = new Error(message);
946
946
  const captureStackTrace = Error.captureStackTrace;
947
947
  if (captureStackTrace !== undefined) {
@@ -959,7 +959,7 @@ var createBeacon = (options) => {
959
959
  `);
960
960
  }
961
961
  captureException(error, {
962
- groupingKey: signalGroupingKey(signalTags),
962
+ ...useDefaultFingerprint ? {} : { groupingKey: signalGroupingKey(signalTags) },
963
963
  level: "warning",
964
964
  tags: signalTags,
965
965
  ...traceId !== undefined ? { traceId } : {},
@@ -1543,7 +1543,7 @@ var createBeacon = (options) => {
1543
1543
  inSignalConsole = true;
1544
1544
  const text = args.map(String).join(" ").trim().slice(0, SIGNAL_TEXT_MAX);
1545
1545
  if (text !== "")
1546
- emitSignal(text, { signal: BEACON_SIGNAL.CONSOLE_ERROR }, undefined, undefined, wrappedConsole, 2);
1546
+ emitSignal(text, { signal: BEACON_SIGNAL.CONSOLE_ERROR }, undefined, undefined, wrappedConsole, 2, true);
1547
1547
  if (text !== "")
1548
1548
  reportErrorClick?.("ConsoleError");
1549
1549
  inSignalConsole = false;
@@ -3701,5 +3701,5 @@ export {
3701
3701
  BEACON_ATTRIBUTE
3702
3702
  };
3703
3703
 
3704
- //# debugId=FB8AF5475A58E78864756E2164756E21
3704
+ //# debugId=4A2076E84A38E88A64756E2164756E21
3705
3705
  //# sourceMappingURL=index.js.map