@sentry/utils
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -8,3 +8,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function bundlerSafeRequire(request: string): any; | ||
export declare function dynamicRequire(mod: NodeModule, request: string): any; | ||
/** | ||
@@ -11,0 +11,0 @@ * Checks whether we're in the Node.js or Browser environment |
@@ -9,9 +9,6 @@ "use strict"; | ||
*/ | ||
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); | ||
function dynamicRequire(mod, request) { | ||
return mod.require(request); | ||
} | ||
exports.bundlerSafeRequire = bundlerSafeRequire; | ||
exports.dynamicRequire = dynamicRequire; | ||
/** | ||
@@ -18,0 +15,0 @@ * Checks whether we're in the Node.js or Browser environment |
{ | ||
"name": "@sentry/utils", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -16,3 +16,3 @@ "repository": "git://github.com/getsentry/raven-js.git", | ||
"dependencies": { | ||
"@sentry/types": "4.2.2" | ||
"@sentry/types": "4.2.3" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -22,2 +22,4 @@ <p align="center"> | ||
Common utilities used by the Sentry JavaScript SDKs. **Warning, only submodule imports are allowed here.** | ||
Common utilities used by the Sentry JavaScript SDKs. **Warning, only submodule imports are allowed here.** Also note, | ||
this function shouldn't be used externally, we will break them from time to time. This package is not part of our public | ||
API contract, we use them only internally. |
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
25
135051
1890
+ Added@sentry/types@4.2.3(transitive)
- Removed@sentry/types@4.2.2(transitive)
Updated@sentry/types@4.2.3