@appsignal/javascript
Advanced tools
Comparing version 1.3.22 to 1.3.23
# AppSignal for JavaScript changelog | ||
## 1.3.23 | ||
### Changed | ||
- [5fc4962](https://github.com/appsignal/appsignal-javascript/commit/5fc4962feef894a17ab17aaf54c65c5b14f10476) patch - Thrown non-error objects are now ignored instead of being reported with a generic message. | ||
## 1.3.22 | ||
@@ -4,0 +10,0 @@ |
@@ -30,12 +30,7 @@ "use strict"; | ||
Span.prototype.setError = function (error) { | ||
var _a; | ||
if (!error) | ||
if (!error || !core_1.isError(error)) | ||
return this; | ||
this._data.error = { | ||
name: error.name || "[unknown]", | ||
message: error.message || | ||
"setError received an invalid object or type which did not provide an error message or was not an object with a valid message property.\n\nHere's some more information about what we received:\n\n" + | ||
("typeof: " + typeof error + "\n") + | ||
("constructor.name: " + ((_a = error.constructor.name) !== null && _a !== void 0 ? _a : "[no constructor]") + "\n") + | ||
("As a string: \"" + (typeof error !== "string" ? JSON.stringify(error) : error) + "\""), | ||
message: error.message, | ||
backtrace: core_1.getStacktrace(error) | ||
@@ -42,0 +37,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.21"; | ||
export declare const VERSION = "1.3.22"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "1.3.21"; | ||
exports.VERSION = "1.3.22"; | ||
//# sourceMappingURL=version.js.map |
import { __assign, __extends } from "tslib"; | ||
import { Serializable, getStacktrace, toHashMapString } from "@appsignal/core"; | ||
import { Serializable, getStacktrace, toHashMapString, isError } from "@appsignal/core"; | ||
var Span = (function (_super) { | ||
@@ -27,12 +27,7 @@ __extends(Span, _super); | ||
Span.prototype.setError = function (error) { | ||
var _a; | ||
if (!error) | ||
if (!error || !isError(error)) | ||
return this; | ||
this._data.error = { | ||
name: error.name || "[unknown]", | ||
message: error.message || | ||
"setError received an invalid object or type which did not provide an error message or was not an object with a valid message property.\n\nHere's some more information about what we received:\n\n" + | ||
("typeof: " + typeof error + "\n") + | ||
("constructor.name: " + ((_a = error.constructor.name) !== null && _a !== void 0 ? _a : "[no constructor]") + "\n") + | ||
("As a string: \"" + (typeof error !== "string" ? JSON.stringify(error) : error) + "\""), | ||
message: error.message, | ||
backtrace: getStacktrace(error) | ||
@@ -39,0 +34,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.21"; | ||
export declare const VERSION = "1.3.22"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export var VERSION = "1.3.21"; | ||
export var VERSION = "1.3.22"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@appsignal/javascript", | ||
"version": "1.3.22", | ||
"version": "1.3.23", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
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
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
153120
107
1403