You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP →

@appsignal/stimulus

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/stimulus - npm Package Compare versions

Comparing version

to
1.0.0-beta.1

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function installErrorHandler(appsignal, application) {
var DEFAULT_ACTION = "Application.handleError";
var prevHandler = application.handleError;
application.handleError = function (error, message) {
var span = appsignal.createSpan(function (span) {
return span
.setAction(DEFAULT_ACTION)
.setTags({ framework: "Stimulus", message: message })
.setError(error);
return span.setTags({ framework: "Stimulus", message: message }).setError(error);
});

@@ -13,0 +9,0 @@ appsignal.send(span);

export function installErrorHandler(appsignal, application) {
var DEFAULT_ACTION = "Application.handleError";
var prevHandler = application.handleError;
application.handleError = function (error, message) {
var span = appsignal.createSpan(function (span) {
return span
.setAction(DEFAULT_ACTION)
.setTags({ framework: "Stimulus", message: message })
.setError(error);
return span.setTags({ framework: "Stimulus", message: message }).setError(error);
});

@@ -11,0 +7,0 @@ appsignal.send(span);

{
"name": "@appsignal/stimulus",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"main": "dist/cjs/index.js",

@@ -27,3 +27,3 @@ "module": "dist/esm/index.js",

},
"gitHead": "ff2457cd315cc1ebdecb01b52daf546f21aefcea"
"gitHead": "59dc875708a7e6138cfd60960e5f9036e885e64c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet