@sentry/utils
Advanced tools
Comparing version 5.1.0 to 5.1.2
@@ -23,17 +23,23 @@ "use strict"; | ||
if (typeof wrapped === 'function') { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry__: { | ||
enumerable: false, | ||
value: true, | ||
}, | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
__sentry_wrapped__: { | ||
enumerable: false, | ||
value: wrapped, | ||
}, | ||
}); | ||
try { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry__: { | ||
enumerable: false, | ||
value: true, | ||
}, | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
__sentry_wrapped__: { | ||
enumerable: false, | ||
value: wrapped, | ||
}, | ||
}); | ||
} | ||
catch (_Oo) { | ||
// This can throw if multiple fill happens on a global object like XMLHttpRequest | ||
// Fixes https://github.com/getsentry/sentry-javascript/issues/2043 | ||
} | ||
} | ||
@@ -40,0 +46,0 @@ source[name] = wrapped; |
@@ -21,17 +21,23 @@ import { isError, isPrimitive, isSyntheticEvent } from './is'; | ||
if (typeof wrapped === 'function') { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry__: { | ||
enumerable: false, | ||
value: true, | ||
}, | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
__sentry_wrapped__: { | ||
enumerable: false, | ||
value: wrapped, | ||
}, | ||
}); | ||
try { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry__: { | ||
enumerable: false, | ||
value: true, | ||
}, | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
__sentry_wrapped__: { | ||
enumerable: false, | ||
value: wrapped, | ||
}, | ||
}); | ||
} | ||
catch (_Oo) { | ||
// This can throw if multiple fill happens on a global object like XMLHttpRequest | ||
// Fixes https://github.com/getsentry/sentry-javascript/issues/2043 | ||
} | ||
} | ||
@@ -38,0 +44,0 @@ source[name] = wrapped; |
{ | ||
"name": "@sentry/utils", | ||
"version": "5.1.0", | ||
"version": "5.1.2", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
270734
3519