@sentry/browser 5.29.2 → 5.30.0
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/build/bundle.es6.js +10 -9
- package/build/bundle.es6.js.map +1 -1
- package/build/bundle.es6.min.js +2 -2
- package/build/bundle.es6.min.js.map +1 -1
- package/build/bundle.js +10 -9
- package/build/bundle.js.map +1 -1
- package/build/bundle.min.js +2 -2
- package/build/bundle.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/version.js.map +1 -1
- package/package.json +5 -5
package/build/bundle.es6.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @sentry/browser 5.
|
|
1
|
+
/*! @sentry/browser 5.30.0 (6de2dd4) | https://github.com/getsentry/sentry-javascript */
|
|
2
2
|
var Sentry = (function (exports) {
|
|
3
3
|
/** Console logging verbosity for the SDK. */
|
|
4
4
|
var LogLevel;
|
|
@@ -541,7 +541,7 @@ var Sentry = (function (exports) {
|
|
|
541
541
|
* Truncates given string to the maximum characters count
|
|
542
542
|
*
|
|
543
543
|
* @param str An object that contains serializable values
|
|
544
|
-
* @param max Maximum number of characters in truncated string
|
|
544
|
+
* @param max Maximum number of characters in truncated string (0 = unlimited)
|
|
545
545
|
* @returns string Encoded
|
|
546
546
|
*/
|
|
547
547
|
function truncate(str, max = 0) {
|
|
@@ -597,15 +597,16 @@ var Sentry = (function (exports) {
|
|
|
597
597
|
*
|
|
598
598
|
* @param source An object that contains a method to be wrapped.
|
|
599
599
|
* @param name A name of method to be wrapped.
|
|
600
|
-
* @param
|
|
600
|
+
* @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which
|
|
601
|
+
* will be substituted in for `source[name]`.
|
|
601
602
|
* @returns void
|
|
602
603
|
*/
|
|
603
|
-
function fill(source, name,
|
|
604
|
+
function fill(source, name, replacementFactory) {
|
|
604
605
|
if (!(name in source)) {
|
|
605
606
|
return;
|
|
606
607
|
}
|
|
607
608
|
const original = source[name];
|
|
608
|
-
const wrapped =
|
|
609
|
+
const wrapped = replacementFactory(original);
|
|
609
610
|
// Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work
|
|
610
611
|
// otherwise it'll throw "TypeError: Object.defineProperties called on non-object"
|
|
611
612
|
if (typeof wrapped === 'function') {
|
|
@@ -637,10 +638,10 @@ var Sentry = (function (exports) {
|
|
|
637
638
|
.join('&');
|
|
638
639
|
}
|
|
639
640
|
/**
|
|
640
|
-
* Transforms any object into an object literal with all
|
|
641
|
+
* Transforms any object into an object literal with all its attributes
|
|
641
642
|
* attached to it.
|
|
642
643
|
*
|
|
643
|
-
* @param value Initial source that we have to transform in order to be usable by the serializer
|
|
644
|
+
* @param value Initial source that we have to transform in order for it to be usable by the serializer
|
|
644
645
|
*/
|
|
645
646
|
function getWalkSource(value) {
|
|
646
647
|
if (isError(value)) {
|
|
@@ -3764,7 +3765,7 @@ var Sentry = (function (exports) {
|
|
|
3764
3765
|
// 0.0 === 0% events are sent
|
|
3765
3766
|
// Sampling for transaction happens somewhere else
|
|
3766
3767
|
if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {
|
|
3767
|
-
return SyncPromise.reject(new SentryError(
|
|
3768
|
+
return SyncPromise.reject(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`));
|
|
3768
3769
|
}
|
|
3769
3770
|
return this._prepareEvent(event, scope, hint)
|
|
3770
3771
|
.then(prepared => {
|
|
@@ -5762,7 +5763,7 @@ var Sentry = (function (exports) {
|
|
|
5762
5763
|
});
|
|
5763
5764
|
|
|
5764
5765
|
const SDK_NAME = 'sentry.javascript.browser';
|
|
5765
|
-
const SDK_VERSION = '5.
|
|
5766
|
+
const SDK_VERSION = '5.30.0';
|
|
5766
5767
|
|
|
5767
5768
|
/**
|
|
5768
5769
|
* The Sentry Browser SDK Client.
|