Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@drieam/appsignal-plugin-window-events

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drieam/appsignal-plugin-window-events - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

dist/cjs/index.d.ts
import type { JSClient } from "@appsignal/types";
type WindowEventOptions = {
declare type WindowEventOptions = {
onerror: boolean;

@@ -4,0 +4,0 @@ onunhandledrejection: boolean;

@@ -36,3 +36,3 @@ "use strict";

if (error) {
if ((0, shouldBeIgnored_1.default)(error, opts.ignoreErrors)) {
if (shouldBeIgnored_1.default(error, opts.ignoreErrors)) {
return;

@@ -50,3 +50,3 @@ }

message: typeof event === "string" ? event : 'An HTML onerror="" handler failed to execute',
stack: "at ".concat(source, ":").concat(lineno).concat(colno ? ":".concat(colno) : ""),
stack: "at " + source + ":" + lineno + (colno ? ":" + colno : ""),
});

@@ -90,3 +90,3 @@ }

if (i !== -1) {
return "[cyclic value: ".concat(seenKey[i] || "root object", "]");
return "[cyclic value: " + (seenKey[i] || "root object") + "]";
}

@@ -93,0 +93,0 @@ seenValue.push(value);

@@ -6,6 +6,6 @@ "use strict";

if (ignoreErrors === void 0) { ignoreErrors = []; }
var stacktrace = (0, error_1.getStacktrace)(error);
var stacktrace = error_1.getStacktrace(error);
if (ignoreErrors.length !== 0 && stacktrace) {
if (error instanceof Error && ignoreErrors.some(function (el) { return el.test(stacktrace); })) {
console.warn("[APPSIGNAL]: Ignored an error: ".concat(stacktrace));
console.warn("[APPSIGNAL]: Ignored an error: " + stacktrace);
return true;

@@ -12,0 +12,0 @@ }

import type { JSClient } from "@appsignal/types";
type WindowEventOptions = {
declare type WindowEventOptions = {
onerror: boolean;

@@ -4,0 +4,0 @@ onunhandledrejection: boolean;

@@ -43,3 +43,3 @@ var __assign = (this && this.__assign) || function () {

message: typeof event === "string" ? event : 'An HTML onerror="" handler failed to execute',
stack: "at ".concat(source, ":").concat(lineno).concat(colno ? ":".concat(colno) : ""),
stack: "at " + source + ":" + lineno + (colno ? ":" + colno : ""),
});

@@ -83,3 +83,3 @@ }

if (i !== -1) {
return "[cyclic value: ".concat(seenKey[i] || "root object", "]");
return "[cyclic value: " + (seenKey[i] || "root object") + "]";
}

@@ -86,0 +86,0 @@ seenValue.push(value);

@@ -7,3 +7,3 @@ import { getStacktrace } from "./error";

if (error instanceof Error && ignoreErrors.some(function (el) { return el.test(stacktrace); })) {
console.warn("[APPSIGNAL]: Ignored an error: ".concat(stacktrace));
console.warn("[APPSIGNAL]: Ignored an error: " + stacktrace);
return true;

@@ -10,0 +10,0 @@ }

{
"name": "@drieam/appsignal-plugin-window-events",
"version": "2.0.0",
"version": "2.0.1",
"main": "dist/cjs/index.js",

@@ -18,4 +18,4 @@ "module": "dist/esm/index.js",

"link:pnpm": "pnpm link",
"test": "jest",
"test:watch": "jest --watch"
"test": "TZ=Europe/Amsterdam vitest --run",
"test:dev": "TZ=Europe/Amsterdam vitest"
},

@@ -29,3 +29,7 @@ "dependencies": {

},
"gitHead": "bea7a598b677d734be3a9e960c3f10e4183742dc"
"devDependencies": {
"@types/node": "^18",
"vitest": "^1.0.2"
},
"gitHead": "3a4c294b8824b62e04894a4946ceff760132c65a"
}

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

Sorry, the diff of this file is not supported yet

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