Socket
Socket
Sign inDemoInstall

@appsignal/javascript

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/javascript - npm Package Compare versions

Comparing version 1.0.0-beta.12 to 1.0.0-beta.13

23

dist/cjs/utils/stacktrace.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var error_stack_parser_1 = tslib_1.__importDefault(require("error-stack-parser"));
function getStacktrace(error) {
if (error instanceof Error) {
try {
var frames_1 = error_stack_parser_1.default.parse(error);
return frames_1.map(function (f) { return f.source || ""; });
}
catch (e) {
return ["No stacktrace available"];
}
if (typeof error.stacktrace !== "undefined" ||
typeof error["opera#sourceloc"] !== "undefined") {
var _a = error.stacktrace, stacktrace = _a === void 0 ? "" : _a;
return stacktrace
.split("\n")
.filter(function (line) { return line !== ""; });
}
else {
var _a = error.stack, stack = _a === void 0 ? "" : _a;
else if (error.stack) {
var _b = error.stack, stack = _b === void 0 ? "" : _b;
return stack.split("\n").filter(function (line) { return line !== ""; });
}
else {
return ["No stacktrace available"];
}
}
exports.getStacktrace = getStacktrace;
//# sourceMappingURL=stacktrace.js.map

@@ -1,2 +0,2 @@

export declare const VERSION = "1.0.0-beta.12";
export declare const VERSION = "1.0.0-beta.13";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = "1.0.0-beta.12";
exports.VERSION = "1.0.0-beta.13";
//# sourceMappingURL=version.js.map

@@ -1,17 +0,17 @@

import ErrorStackParser from "error-stack-parser";
export function getStacktrace(error) {
if (error instanceof Error) {
try {
var frames_1 = ErrorStackParser.parse(error);
return frames_1.map(function (f) { return f.source || ""; });
}
catch (e) {
return ["No stacktrace available"];
}
if (typeof error.stacktrace !== "undefined" ||
typeof error["opera#sourceloc"] !== "undefined") {
var _a = error.stacktrace, stacktrace = _a === void 0 ? "" : _a;
return stacktrace
.split("\n")
.filter(function (line) { return line !== ""; });
}
else {
var _a = error.stack, stack = _a === void 0 ? "" : _a;
else if (error.stack) {
var _b = error.stack, stack = _b === void 0 ? "" : _b;
return stack.split("\n").filter(function (line) { return line !== ""; });
}
else {
return ["No stacktrace available"];
}
}
//# sourceMappingURL=stacktrace.js.map

@@ -1,2 +0,2 @@

export declare const VERSION = "1.0.0-beta.12";
export declare const VERSION = "1.0.0-beta.13";
//# sourceMappingURL=version.d.ts.map

@@ -1,2 +0,2 @@

export var VERSION = "1.0.0-beta.12";
export var VERSION = "1.0.0-beta.13";
//# sourceMappingURL=version.js.map
{
"name": "@appsignal/javascript",
"version": "1.0.0-beta.12",
"version": "1.0.0-beta.13",
"main": "dist/cjs/index.js",

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

"dependencies": {
"@appsignal/types": "^1.0.0-beta.2",
"error-stack-parser": "^2.0.2",
"@appsignal/types": "^1.0.0-beta.3",
"tslib": "^1.10.0"
},
"gitHead": "29af99063e05309cb922e347dd04c1f4e3eeba90"
"gitHead": "dd72c09b2f0cf18490e617e9b7fb6b9315ce4697"
}

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