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

@appsignal/javascript

Package Overview
Dependencies
Maintainers
6
Versions
59
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.5 to 1.3.6

5

CHANGELOG.md
# Changelog
## 1.3.5
- Dependency bumps
- Improve the default error message if an invalid error object is passed to `span.setError` (#424)
- Test coverage improvements
## 1.3.4

@@ -4,0 +9,0 @@ - Dependency bumps

8

dist/cjs/span.js

@@ -30,8 +30,12 @@ "use strict";

Span.prototype.setError = function (error) {
var _a;
if (!error)
return this;
this._data.error = {
name: error.name || "Error",
name: error.name || "[unknown]",
message: error.message ||
"setError received \"" + (typeof error !== "string" ? JSON.stringify(error) : error) + "\", which did not provide an error message, or was not an object with a valid message property",
"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) + "\""),
backtrace: core_1.getStacktrace(error)

@@ -38,0 +42,0 @@ };

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

export declare const VERSION = "1.3.5";
export declare const VERSION = "1.3.6";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = "1.3.5";
exports.VERSION = "1.3.6";
//# sourceMappingURL=version.js.map

@@ -27,8 +27,12 @@ import { __assign, __extends } from "tslib";

Span.prototype.setError = function (error) {
var _a;
if (!error)
return this;
this._data.error = {
name: error.name || "Error",
name: error.name || "[unknown]",
message: error.message ||
"setError received \"" + (typeof error !== "string" ? JSON.stringify(error) : error) + "\", which did not provide an error message, or was not an object with a valid message property",
"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) + "\""),
backtrace: getStacktrace(error)

@@ -35,0 +39,0 @@ };

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

export declare const VERSION = "1.3.5";
export declare const VERSION = "1.3.6";
//# sourceMappingURL=version.d.ts.map

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

export var VERSION = "1.3.5";
export var VERSION = "1.3.6";
//# sourceMappingURL=version.js.map
{
"name": "@appsignal/javascript",
"version": "1.3.5",
"version": "1.3.6",
"main": "dist/cjs/index.js",

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

"dependencies": {
"@appsignal/core": "^1.1.0",
"@appsignal/core": "^1.1.1",
"@appsignal/types": "^1.0.0",

@@ -35,3 +35,3 @@ "tslib": "^2.0.1"

},
"gitHead": "56ad1ce0bf2c30c6d9d8aaad7f98e1a8eccc0ec4"
"gitHead": "f2c246685d6f01420d6d10a40a31322cdc08f293"
}

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