Socket
Socket
Sign inDemoInstall

@sentry/utils

Package Overview
Dependencies
Maintainers
8
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/utils - npm Package Compare versions

Comparing version 4.2.2 to 4.2.3

2

misc.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc