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

@appsignal/plugin-breadcrumbs-console

Package Overview
Dependencies
Maintainers
8
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/plugin-breadcrumbs-console - npm Package Compare versions

Comparing version 1.1.19 to 1.1.20

4

CHANGELOG.md
# AppSignal for plugin-breadcrumbs-console changelog
## 1.1.20
- [7d138c6](https://github.com/appsignal/appsignal-javascript/commit/7d138c67783edc3fa4b2b8b481659c4b8936a57e) patch - Fix the error that was thrown when a circular structure console argument was logged. It will no longer throw the error and instead send a replacement value of the value that could not be send as a JSON value.
## 1.1.19

@@ -4,0 +8,0 @@

@@ -28,3 +28,3 @@ "use strict";

return (breadcrumb.metadata["argument" + i] =
typeof arg === "string" ? arg : JSON.stringify(arg));
serializeValue(arg, method));
});

@@ -39,3 +39,17 @@ self.addBreadcrumb(breadcrumb);

}
function serializeValue(value, method) {
if (typeof value === "string") {
return value;
}
else {
try {
return JSON.stringify(value);
}
catch (error) {
console.error("Could not serialize \"console." + method + "\" to String.", error);
return "[Value could not be serialized]";
}
}
}
exports.plugin = consoleBreadcrumbsPlugin;
//# sourceMappingURL=index.js.map

@@ -25,3 +25,3 @@ var SUPPORTED_CONSOLE_METHODS = ["log", "debug", "info", "warn", "error"];

return (breadcrumb.metadata["argument" + i] =
typeof arg === "string" ? arg : JSON.stringify(arg));
serializeValue(arg, method));
});

@@ -36,3 +36,17 @@ self.addBreadcrumb(breadcrumb);

}
function serializeValue(value, method) {
if (typeof value === "string") {
return value;
}
else {
try {
return JSON.stringify(value);
}
catch (error) {
console.error("Could not serialize \"console." + method + "\" to String.", error);
return "[Value could not be serialized]";
}
}
}
export var plugin = consoleBreadcrumbsPlugin;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@appsignal/plugin-breadcrumbs-console",
"version": "1.1.19",
"version": "1.1.20",
"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

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