@sentry/utils
Advanced tools
Comparing version 4.2.1 to 4.2.2
/// <reference types="node" /> | ||
import { SentryEvent } from '@sentry/types'; | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
export declare function bundlerSafeRequire(request: string): any; | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
@@ -5,0 +11,0 @@ * |
12
misc.js
@@ -5,2 +5,14 @@ "use strict"; | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
function bundlerSafeRequire(request) { | ||
// We need to do this check for global.module || module here because if we are calling this inside a | ||
// active domain, global.module is undefined. | ||
// tslint:disable-next-line | ||
return (getGlobalObject().module || module).require(request); | ||
} | ||
exports.bundlerSafeRequire = bundlerSafeRequire; | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
@@ -7,0 +19,0 @@ * |
{ | ||
"name": "@sentry/utils", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -16,3 +16,3 @@ "repository": "git://github.com/getsentry/raven-js.git", | ||
"dependencies": { | ||
"@sentry/types": "4.2.1" | ||
"@sentry/types": "4.2.2" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
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
135369
1893
+ Added@sentry/types@4.2.2(transitive)
- Removed@sentry/types@4.2.1(transitive)
Updated@sentry/types@4.2.2