Socket
Socket
Sign inDemoInstall

@appsignal/javascript

Package Overview
Dependencies
Maintainers
9
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.3.22 to 1.3.23

6

CHANGELOG.md
# 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 @@

9

dist/cjs/span.js

@@ -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

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