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.1 to 4.2.2

6

misc.d.ts
/// <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 @@ *

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

4

package.json
{
"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

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