rollbar 3.0.0-alpha.4 → 3.0.0-alpha.5

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 (129) hide show
  1. package/.eslintrc +4 -6
  2. package/Gruntfile.cjs +0 -78
  3. package/dist/rollbar.js +139 -56
  4. package/dist/rollbar.js.map +1 -1
  5. package/dist/rollbar.min.js +1 -1
  6. package/dist/rollbar.min.js.map +1 -1
  7. package/dist/rollbar.named-amd.js +139 -56
  8. package/dist/rollbar.named-amd.js.map +1 -1
  9. package/dist/rollbar.named-amd.min.js +1 -1
  10. package/dist/rollbar.named-amd.min.js.map +1 -1
  11. package/dist/rollbar.noconflict.umd.js +139 -56
  12. package/dist/rollbar.noconflict.umd.js.map +1 -1
  13. package/dist/rollbar.noconflict.umd.min.js +1 -1
  14. package/dist/rollbar.noconflict.umd.min.js.map +1 -1
  15. package/dist/rollbar.snippet.js +1 -1
  16. package/dist/rollbar.umd.js +139 -56
  17. package/dist/rollbar.umd.js.map +1 -1
  18. package/dist/rollbar.umd.min.js +1 -1
  19. package/dist/rollbar.umd.min.js.map +1 -1
  20. package/index.d.ts +1 -1
  21. package/package.json +12 -14
  22. package/src/browser/core.d.ts +2 -2
  23. package/src/browser/replay/defaults.js +1 -0
  24. package/src/browser/replay/recorder.d.ts +3 -3
  25. package/src/browser/replay/replayPredicates.js +96 -0
  26. package/src/browser/telemetry.d.ts +3 -3
  27. package/src/browser/wrapGlobals.d.ts +3 -3
  28. package/src/defaults.js +1 -1
  29. package/src/rollbar.js +9 -13
  30. package/src/scrub.d.ts +3 -3
  31. package/src/telemetry.d.ts +3 -3
  32. package/src/tracing/tracing.d.ts +3 -3
  33. package/src/truncation.d.ts +3 -3
  34. package/src/utility.js +0 -14
  35. package/webpack.config.cjs +0 -3
  36. package/.claude/settings.local.json +0 -11
  37. package/.cursor/rules/guidelines.mdc +0 -154
  38. package/.github/pull_request_template.md +0 -34
  39. package/.github/workflows/ci.yml +0 -57
  40. package/.github/workflows/workflow.yml +0 -21
  41. package/.vscode/settings.json +0 -39
  42. package/CLAUDE.examples.md +0 -291
  43. package/CLAUDE.examples.validate.md +0 -97
  44. package/CLAUDE.grunt.md +0 -320
  45. package/CLAUDE.local.md +0 -301
  46. package/CLAUDE.md +0 -201
  47. package/CLAUDE.testrunner.md +0 -470
  48. package/CLAUDE.tooling.bugsnag.md +0 -208
  49. package/CLAUDE.tooling.datadog.md +0 -397
  50. package/CLAUDE.tooling.newrelic.md +0 -345
  51. package/CLAUDE.tooling.sentry.md +0 -337
  52. package/codex.md +0 -148
  53. package/docs/extension-exceptions.md +0 -82
  54. package/docs/migration_v0_to_v1.md +0 -195
  55. package/test/api.test.js +0 -173
  56. package/test/apiUtility.test.js +0 -194
  57. package/test/browser.core.test.js +0 -646
  58. package/test/browser.domUtility.test.js +0 -209
  59. package/test/browser.predicates.test.js +0 -53
  60. package/test/browser.replay.recorder.test.js +0 -441
  61. package/test/browser.rollbar.test.js +0 -2146
  62. package/test/browser.telemetry.test.js +0 -76
  63. package/test/browser.transforms.test.js +0 -569
  64. package/test/browser.transport.test.js +0 -195
  65. package/test/browser.url.test.js +0 -121
  66. package/test/fixtures/html/csp-errors.html +0 -9
  67. package/test/fixtures/html/error.html +0 -61
  68. package/test/fixtures/locals.fixtures.js +0 -541
  69. package/test/fixtures/replay/index.js +0 -20
  70. package/test/fixtures/replay/payloads.fixtures.js +0 -229
  71. package/test/fixtures/replay/rrwebEvents.fixtures.js +0 -251
  72. package/test/fixtures/replay/rrwebSyntheticEvents.fixtures.js +0 -328
  73. package/test/fixtures/sourcemaps/node-dist/index.cjs +0 -13
  74. package/test/fixtures/sourcemaps/node-dist/index.cjs.map +0 -1
  75. package/test/fixtures/sourcemaps/node-typescript/dist/index.cjs +0 -13
  76. package/test/fixtures/sourcemaps/node-typescript/dist/index.cjs.map +0 -1
  77. package/test/fixtures/sourcemaps/node-typescript/package-lock.json +0 -19
  78. package/test/fixtures/sourcemaps/node-typescript/package.json +0 -20
  79. package/test/fixtures/sourcemaps/node-typescript/src/index.ts +0 -12
  80. package/test/fixtures/sourcemaps/node-typescript/tsconfig.json +0 -10
  81. package/test/notifier.test.js +0 -247
  82. package/test/predicates.test.js +0 -541
  83. package/test/queue.test.js +0 -633
  84. package/test/rateLimiter.test.js +0 -167
  85. package/test/react-native.rollbar.test.js +0 -650
  86. package/test/react-native.transforms.test.js +0 -71
  87. package/test/react-native.transport.test.js +0 -71
  88. package/test/replay/index.js +0 -2
  89. package/test/replay/integration/api.spans.test.js +0 -136
  90. package/test/replay/integration/e2e.test.js +0 -228
  91. package/test/replay/integration/index.js +0 -9
  92. package/test/replay/integration/queue.replayMap.test.js +0 -350
  93. package/test/replay/integration/replayMap.test.js +0 -163
  94. package/test/replay/integration/sessionRecording.test.js +0 -390
  95. package/test/replay/unit/api.postSpans.test.js +0 -149
  96. package/test/replay/unit/index.js +0 -7
  97. package/test/replay/unit/queue.replayMap.test.js +0 -223
  98. package/test/replay/unit/replayMap.test.js +0 -348
  99. package/test/replay/util/mockRecordFn.js +0 -80
  100. package/test/server.lambda.test.js +0 -172
  101. package/test/server.locals.constructor.test.js +0 -80
  102. package/test/server.locals.error-handling.test.js +0 -387
  103. package/test/server.locals.merge.test.js +0 -267
  104. package/test/server.locals.test-utils.mjs +0 -114
  105. package/test/server.parser.test.js +0 -87
  106. package/test/server.predicates.test.js +0 -63
  107. package/test/server.rollbar.constructor.test.js +0 -199
  108. package/test/server.rollbar.handlers.test.js +0 -253
  109. package/test/server.rollbar.logging.test.js +0 -326
  110. package/test/server.rollbar.misc.test.js +0 -44
  111. package/test/server.rollbar.test-utils.mjs +0 -57
  112. package/test/server.telemetry.test.js +0 -377
  113. package/test/server.transforms.data.test.js +0 -163
  114. package/test/server.transforms.error.test.js +0 -199
  115. package/test/server.transforms.request.test.js +0 -208
  116. package/test/server.transforms.scrub.test.js +0 -140
  117. package/test/server.transforms.sourcemaps.test.js +0 -122
  118. package/test/server.transforms.test-utils.mjs +0 -62
  119. package/test/server.transport.test.js +0 -269
  120. package/test/telemetry.test.js +0 -301
  121. package/test/tracing/contextManager.test.js +0 -28
  122. package/test/tracing/exporter.toPayload.test.js +0 -400
  123. package/test/tracing/id.test.js +0 -24
  124. package/test/tracing/span.test.js +0 -183
  125. package/test/tracing/spanProcessor.test.js +0 -73
  126. package/test/tracing/tracing.test.js +0 -112
  127. package/test/transforms.test.js +0 -265
  128. package/test/truncation.test.js +0 -208
  129. package/test/utility.test.js +0 -738
package/.eslintrc CHANGED
@@ -3,21 +3,19 @@
3
3
  "extends": "eslint:recommended",
4
4
  "parserOptions": {
5
5
  "ecmafeatures": {
6
- "modules": true
7
- }
6
+ "modules": true,
7
+ },
8
8
  },
9
9
  "env": {
10
10
  // I write for browser
11
11
  "browser": true,
12
12
  // in CommonJS
13
- "node": true
13
+ "node": true,
14
14
  },
15
- "plugins": [
16
- ],
17
15
  "globals": { "Promise": true },
18
16
  "rules": {
19
17
  "strict": 0,
20
- "camelcase": [2, {"properties": "never"}],
18
+ "camelcase": [2, { "properties": "never" }],
21
19
  "quotes": [2, "single", "avoid-escape"],
22
20
  "no-underscore-dangle": 0,
23
21
  "no-useless-escape": 0,
package/Gruntfile.cjs CHANGED
@@ -7,9 +7,6 @@
7
7
  var glob = require('glob');
8
8
  var path = require('path');
9
9
  var pkg = require('./package.json');
10
- var fs = require('fs');
11
-
12
- var webpackConfig = require('./webpack.config.cjs');
13
10
 
14
11
  function findTests(context) {
15
12
  if (context !== 'browser') {
@@ -117,70 +114,12 @@ module.exports = function (grunt) {
117
114
  }
118
115
 
119
116
  grunt.loadNpmTasks('grunt-karma');
120
- grunt.loadNpmTasks('grunt-webpack');
121
- grunt.loadNpmTasks('grunt-text-replace');
122
-
123
- var rollbarJsSnippet = fs.readFileSync('dist/rollbar.snippet.js');
124
- var rollbarjQuerySnippet = fs.readFileSync('dist/plugins/jquery.min.js');
125
117
 
126
118
  grunt.initConfig({
127
119
  pkg: pkg,
128
- webpack: webpackConfig,
129
-
130
120
  karma: buildGruntKarmaConfig(singleRun, browserTests, reporters),
131
-
132
- replace: {
133
- snippets: {
134
- src: [
135
- '*.md',
136
- 'src/**/*.js',
137
- 'examples/*.+(html|js)',
138
- 'examples/*/*.+(html|js)',
139
- 'docs/**/*.md',
140
- ],
141
- overwrite: true,
142
- replacements: [
143
- // Main rollbar snippet
144
- {
145
- from: new RegExp(
146
- '^(.*// Rollbar Snippet)[\n\r]+(.*[\n\r])*(.*// End Rollbar Snippet)',
147
- 'm',
148
- ),
149
- to: function (match, index, fullText, captures) {
150
- captures[1] = rollbarJsSnippet;
151
- return captures.join('\n');
152
- },
153
- },
154
- // jQuery rollbar plugin snippet
155
- {
156
- from: new RegExp(
157
- '^(.*// Rollbar jQuery Snippet)[\n\r]+(.*[\n\r])*(.*// End Rollbar jQuery Snippet)',
158
- 'm',
159
- ),
160
- to: function (match, index, fullText, captures) {
161
- captures[1] = rollbarjQuerySnippet;
162
- return captures.join('\n');
163
- },
164
- },
165
- // README CI link
166
- {
167
- from: new RegExp(
168
- '(https://github\\.com/rollbar/rollbar\\.js/workflows/Rollbar\\.js%20CI/badge\\.svg\\?branch=v)([0-9a-zA-Z.-]+)',
169
- ),
170
- to: function (match, index, fullText, captures) {
171
- captures[1] = pkg.version;
172
- return captures.join('');
173
- },
174
- },
175
- ],
176
- },
177
- },
178
121
  });
179
-
180
- grunt.registerTask('build', ['webpack', 'replace:snippets']);
181
- grunt.registerTask('default', ['build']);
182
122
  grunt.registerTask('test', ['test-browser']);
183
- grunt.registerTask('release', ['build', 'copyrelease']);
184
123
 
185
124
  grunt.registerTask('test-browser', function (target) {
186
125
  var karmaTask = 'karma' + (target ? ':' + target : '');
@@ -243,21 +182,4 @@ module.exports = function (grunt) {
243
182
  grunt.task.run('karma:' + testName);
244
183
  });
245
184
  });
246
-
247
- grunt.registerTask('copyrelease', function createRelease() {
248
- var version = pkg.version;
249
- var builds = ['', '.umd'];
250
-
251
- builds.forEach(function (buildName) {
252
- var js = 'dist/rollbar' + buildName + '.js';
253
- var minJs = 'dist/rollbar' + buildName + '.min.js';
254
-
255
- var releaseJs = 'release/rollbar' + buildName + '-' + version + '.js';
256
- var releaseMinJs =
257
- 'release/rollbar' + buildName + '-' + version + '.min.js';
258
-
259
- grunt.file.copy(js, releaseJs);
260
- grunt.file.copy(minJs, releaseMinJs);
261
- });
262
- });
263
185
  };
package/dist/rollbar.js CHANGED
@@ -1059,25 +1059,6 @@ function getItemAttribute(itemData, key) {
1059
1059
  }
1060
1060
  return undefined;
1061
1061
  }
1062
- function getReplayTriggersForType(triggers, triggerType) {
1063
- if (!triggers) return [];
1064
- var filteredTriggers = [];
1065
- var _iterator2 = _createForOfIteratorHelper(triggers),
1066
- _step2;
1067
- try {
1068
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1069
- var t = _step2.value;
1070
- if (t.type === triggerType) {
1071
- filteredTriggers.push(t);
1072
- }
1073
- }
1074
- } catch (err) {
1075
- _iterator2.e(err);
1076
- } finally {
1077
- _iterator2.f();
1078
- }
1079
- return filteredTriggers;
1080
- }
1081
1062
 
1082
1063
  /*
1083
1064
  * get - given an obj/array and a keypath, return the value at that keypath or
@@ -1831,10 +1812,126 @@ Notifier.prototype._applyTransforms = function (item, callback) {
1831
1812
  _cb(null, item);
1832
1813
  };
1833
1814
  /* harmony default export */ var notifier = (Notifier);
1815
+ ;// ./src/browser/replay/replayPredicates.js
1816
+ function replayPredicates_typeof(o) { "@babel/helpers - typeof"; return replayPredicates_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, replayPredicates_typeof(o); }
1817
+ function replayPredicates_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = replayPredicates_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
1818
+ function replayPredicates_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return replayPredicates_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? replayPredicates_arrayLikeToArray(r, a) : void 0; } }
1819
+ function replayPredicates_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1820
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
1821
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
1822
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
1823
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
1824
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == replayPredicates_typeof(i) ? i : i + ""; }
1825
+ function _toPrimitive(t, r) { if ("object" != replayPredicates_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != replayPredicates_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1826
+ /**
1827
+ * ReplayPredicates - Determine if replay is enabled for a given trigger type.
1828
+ *
1829
+ */
1830
+ var ReplayPredicates = /*#__PURE__*/function () {
1831
+ /*
1832
+ * Constructor for ReplayPredicates.
1833
+ *
1834
+ * @param {Object} config - Configuration object containing replay settings.
1835
+ * @param {Object} context - Context object containing state used by predicates.
1836
+ */
1837
+ function ReplayPredicates(config, context) {
1838
+ _classCallCheck(this, ReplayPredicates);
1839
+ _defineProperty(this, "maxAdjustedCount", Math.pow(2, 56));
1840
+ this.config = config || {};
1841
+ this.triggers = (config === null || config === void 0 ? void 0 : config.triggers) || [];
1842
+ this.context = context || {};
1843
+ this.predicates = {
1844
+ occurrence: [this.isLevelMatching.bind(this), this.isSampled.bind(this)]
1845
+ };
1846
+ }
1847
+
1848
+ /**
1849
+ * isEnabledForTriggerType - Checks if replay is enabled for a given trigger type.
1850
+ * Applies all predicates for that trigger type and returns true if all predicates pass
1851
+ * for any matching trigger.
1852
+ *
1853
+ * @param {string} triggerType - The type of the trigger to check.
1854
+ * @returns {boolean} - True if replay is enabled for the trigger type, false otherwise.
1855
+ */
1856
+ return _createClass(ReplayPredicates, [{
1857
+ key: "isEnabledForTriggerType",
1858
+ value: function isEnabledForTriggerType(triggerType) {
1859
+ var predicates = this.predicates[triggerType];
1860
+ var _iterator = replayPredicates_createForOfIteratorHelper(this.triggers),
1861
+ _step;
1862
+ try {
1863
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1864
+ var t = _step.value;
1865
+ if (t.type === triggerType && this.isEnabledForTrigger(t, predicates)) {
1866
+ return true;
1867
+ }
1868
+ }
1869
+ } catch (err) {
1870
+ _iterator.e(err);
1871
+ } finally {
1872
+ _iterator.f();
1873
+ }
1874
+ return false;
1875
+ }
1876
+ }, {
1877
+ key: "isEnabledForTrigger",
1878
+ value: function isEnabledForTrigger(trigger, predicates) {
1879
+ if (predicates.find(function (p) {
1880
+ return !p(trigger);
1881
+ })) {
1882
+ return false;
1883
+ }
1884
+ return true;
1885
+ }
1886
+
1887
+ /**
1888
+ * isLevelMatching - Checks if the trigger's level matches the context item's level.
1889
+ * If no level is specified in the trigger, it defaults to matching all levels.
1890
+ * @param {Object} trigger - The trigger object containing the level.
1891
+ * @return {boolean} - True if the trigger's level matches the context item's level, false otherwise.
1892
+ */
1893
+ }, {
1894
+ key: "isLevelMatching",
1895
+ value: function isLevelMatching(trigger) {
1896
+ var _trigger$level, _this$context;
1897
+ if (!trigger.level || (_trigger$level = trigger.level) !== null && _trigger$level !== void 0 && _trigger$level.includes((_this$context = this.context) === null || _this$context === void 0 || (_this$context = _this$context.item) === null || _this$context === void 0 ? void 0 : _this$context.level)) {
1898
+ return true;
1899
+ }
1900
+ return false;
1901
+ }
1902
+
1903
+ /**
1904
+ * isSampled - Determines if the trigger should be sampled based on its sampling ratio.
1905
+ * If no ratio is specified, defaults to 1 (always sampled).
1906
+ *
1907
+ * Sampling algorithm is based on OTel probability sampling as described in
1908
+ * * https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling/
1909
+ * * https://opentelemetry.io/docs/specs/otel/trace/tracestate-handling/
1910
+ *
1911
+ * Note: String compare is more performant than conversion to float,
1912
+ * assuming the `th` calculation will be moved to the trigger configuration.
1913
+ * This allows `toString` to be called once, rather than `parseInt` to be called on
1914
+ * each replay.
1915
+ *
1916
+ * @param {Object} trigger - The trigger object containing the sampling ratio.
1917
+ * @returns {boolean} - True if the trigger is sampled, false otherwise.
1918
+ */
1919
+ }, {
1920
+ key: "isSampled",
1921
+ value: function isSampled(trigger) {
1922
+ var ratio = trigger.samplingRatio || this.config.baseSamplingRatio || 1;
1923
+ if (ratio == 1) {
1924
+ return true;
1925
+ }
1926
+ var rv = this.context.replayId.slice(-14);
1927
+ var th = (this.maxAdjustedCount * (1 - ratio)).toString(16).padStart(14, '0');
1928
+ return rv >= th;
1929
+ }
1930
+ }]);
1931
+ }();
1932
+
1834
1933
  ;// ./src/rollbar.js
1835
- function rollbar_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = rollbar_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
1836
- function rollbar_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return rollbar_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? rollbar_arrayLikeToArray(r, a) : void 0; } }
1837
- function rollbar_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1934
+
1838
1935
 
1839
1936
 
1840
1937
 
@@ -2018,12 +2115,14 @@ Rollbar.prototype._addTracingAttributes = function (item, replayId) {
2018
2115
  }]);
2019
2116
  };
2020
2117
  Rollbar.prototype._replayIdIfTriggered = function (item) {
2021
- var _this$options$recorde;
2022
- var triggers = getReplayTriggersForType((_this$options$recorde = this.options.recorder) === null || _this$options$recorde === void 0 ? void 0 : _this$options$recorde.triggers, 'occurrence');
2023
- var enabledTrigger = this._getEnabledTrigger(triggers, item.level);
2024
- if (enabledTrigger) {
2025
- var _this$tracing3;
2026
- return (_this$tracing3 = this.tracing) === null || _this$tracing3 === void 0 ? void 0 : _this$tracing3.idGen(8);
2118
+ var _this$tracing3;
2119
+ var replayId = (_this$tracing3 = this.tracing) === null || _this$tracing3 === void 0 ? void 0 : _this$tracing3.idGen(8);
2120
+ var enabled = new ReplayPredicates(this.options.recorder, {
2121
+ item: item,
2122
+ replayId: replayId
2123
+ }).isEnabledForTriggerType('occurrence');
2124
+ if (enabled) {
2125
+ return replayId;
2027
2126
  }
2028
2127
  };
2029
2128
  Rollbar.prototype._defaultLogLevel = function () {
@@ -2069,24 +2168,6 @@ Rollbar.prototype._addTracingInfo = function (item) {
2069
2168
  }
2070
2169
  }
2071
2170
  };
2072
- Rollbar.prototype._getEnabledTrigger = function (triggers, level) {
2073
- var _iterator = rollbar_createForOfIteratorHelper(triggers),
2074
- _step;
2075
- try {
2076
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2077
- var _t$level;
2078
- var t = _step.value;
2079
- if ((_t$level = t.level) !== null && _t$level !== void 0 && _t$level.includes(level)) {
2080
- return t;
2081
- }
2082
- }
2083
- } catch (err) {
2084
- _iterator.e(err);
2085
- } finally {
2086
- _iterator.f();
2087
- }
2088
- return null;
2089
- };
2090
2171
  function generateItemHash(item) {
2091
2172
  var message = item.message || '';
2092
2173
  var stack = (item.err || {}).stack || String(item.err);
@@ -2229,10 +2310,10 @@ function appendPathToPath(base, path) {
2229
2310
  ;// ./src/api.js
2230
2311
  function api_typeof(o) { "@babel/helpers - typeof"; return api_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, api_typeof(o); }
2231
2312
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2232
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2233
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2234
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == api_typeof(i) ? i : i + ""; }
2235
- function _toPrimitive(t, r) { if ("object" != api_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != api_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2313
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { api_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2314
+ function api_defineProperty(e, r, t) { return (r = api_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2315
+ function api_toPropertyKey(t) { var i = api_toPrimitive(t, "string"); return "symbol" == api_typeof(i) ? i : i + ""; }
2316
+ function api_toPrimitive(t, r) { if ("object" != api_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != api_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2236
2317
  function api_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ api_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == api_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(api_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
2237
2318
  function api_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
2238
2319
  function api_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { api_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { api_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
@@ -3644,6 +3725,8 @@ function messagesFromItem(item) {
3644
3725
  maxSeconds: 300,
3645
3726
  // Maximum recording duration in seconds
3646
3727
 
3728
+ baseSamplingRatio: 1.0,
3729
+ // Used by triggers that don't specify a sampling ratio
3647
3730
  triggers: [{
3648
3731
  type: 'occurrence',
3649
3732
  level: ['error', 'critical']
@@ -3758,9 +3841,9 @@ function replayMap_typeof(o) { "@babel/helpers - typeof"; return replayMap_typeo
3758
3841
  function replayMap_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ replayMap_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == replayMap_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(replayMap_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3759
3842
  function replayMap_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
3760
3843
  function replayMap_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { replayMap_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { replayMap_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
3761
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3762
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, replayMap_toPropertyKey(o.key), o); } }
3763
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
3844
+ function replayMap_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3845
+ function replayMap_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, replayMap_toPropertyKey(o.key), o); } }
3846
+ function replayMap_createClass(e, r, t) { return r && replayMap_defineProperties(e.prototype, r), t && replayMap_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
3764
3847
  function replayMap_toPropertyKey(t) { var i = replayMap_toPrimitive(t, "string"); return "symbol" == replayMap_typeof(i) ? i : i + ""; }
3765
3848
  function replayMap_toPrimitive(t, r) { if ("object" != replayMap_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != replayMap_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3766
3849
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
@@ -3793,7 +3876,7 @@ var ReplayMap = /*#__PURE__*/function () {
3793
3876
  var recorder = _ref.recorder,
3794
3877
  api = _ref.api,
3795
3878
  tracing = _ref.tracing;
3796
- _classCallCheck(this, ReplayMap);
3879
+ replayMap_classCallCheck(this, ReplayMap);
3797
3880
  _classPrivateFieldInitSpec(this, _map, void 0);
3798
3881
  _classPrivateFieldInitSpec(this, _recorder, void 0);
3799
3882
  _classPrivateFieldInitSpec(this, _api, void 0);
@@ -3823,7 +3906,7 @@ var ReplayMap = /*#__PURE__*/function () {
3823
3906
  * @returns {Promise<string>} A promise resolving to the processed replayId
3824
3907
  * @private
3825
3908
  */
3826
- return _createClass(ReplayMap, [{
3909
+ return replayMap_createClass(ReplayMap, [{
3827
3910
  key: "_processReplay",
3828
3911
  value: (function () {
3829
3912
  var _processReplay2 = replayMap_asyncToGenerator(/*#__PURE__*/replayMap_regeneratorRuntime().mark(function _callee(replayId, occurrenceUuid) {
@@ -4010,7 +4093,7 @@ var ReplayMap = /*#__PURE__*/function () {
4010
4093
  /**
4011
4094
  * Default options shared across platforms
4012
4095
  */
4013
- var version = '3.0.0-alpha.4';
4096
+ var version = '3.0.0-alpha.5';
4014
4097
  var endpoint = 'api.rollbar.com/api/1/item/';
4015
4098
  var logLevel = 'debug';
4016
4099
  var reportLevel = 'debug';