@appsignal/javascript
Advanced tools
Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97037
2
1417
- Removederror-stack-parser@^2.0.2
- Removederror-stack-parser@2.1.4(transitive)
- Removedstackframe@1.3.4(transitive)