Socket
Socket
Sign inDemoInstall

@sentry/utils

Package Overview
Dependencies
Maintainers
8
Versions
503
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.0.0 to 4.0.1

6

misc.d.ts
/// <reference types="node" />
import { SentryEvent } from '@sentry/types';
/**

@@ -40,1 +41,6 @@ * Safely get global scope object

};
/**
* Extracts either message or type+value from an event that can be used for user-facing logs
* @returns event's description
*/
export declare function getEventDescription(event: SentryEvent): string;

@@ -154,2 +154,24 @@ "use strict";

exports.parseUrl = parseUrl;
/**
* Extracts either message or type+value from an event that can be used for user-facing logs
* @returns event's description
*/
function getEventDescription(event) {
if (event.message) {
return event.message;
}
else if (event.exception && event.exception.values && event.exception.values[0]) {
var exception = event.exception.values[0];
if (exception.type && exception.value) {
return exception.type + ": " + exception.value;
}
else {
return exception.type || exception.value || event.event_id || '<unknown>';
}
}
else {
return event.event_id || '<unknown>';
}
}
exports.getEventDescription = getEventDescription;
//# sourceMappingURL=misc.js.map

2

package.json
{
"name": "@sentry/utils",
"version": "4.0.0",
"version": "4.0.1",
"description": "Utilities for all Sentry JavaScript SDKs",

@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/raven-js.git",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc