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

@bugsnag/core

Package Overview
Dependencies
Maintainers
10
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bugsnag/core - npm Package Compare versions

Comparing version 7.19.0-alpha.0 to 7.19.0

lib/test/json-payload.test.ts

6

lib/json-payload.js

@@ -18,3 +18,2 @@ const jsonStringify = require('@bugsnag/safe-json-stringify')

payload = jsonStringify(event, null, null, { redactedPaths: EVENT_REDACTION_PATHS, redactedKeys })
if (payload.length > 10e5) throw new Error('payload exceeded 1MB limit')
}

@@ -24,6 +23,5 @@ return payload

module.exports.session = (event, redactedKeys) => {
const payload = jsonStringify(event, null, null)
if (payload.length > 10e5) throw new Error('payload exceeded 1MB limit')
module.exports.session = (session, redactedKeys) => {
const payload = jsonStringify(session, null, null)
return payload
}
{
"name": "@bugsnag/core",
"main": "index.js",
"version": "7.19.0-alpha.0",
"version": "7.19.0",
"types": "types/index.d.ts",

@@ -29,3 +29,3 @@ "description": "Core classes and utilities for Bugsnag notifiers",

},
"gitHead": "921c886a8870b8cacdf18decc2a628091136c9ee"
"gitHead": "95d2c3dd978e7dc5a6fda5664cfa9cf437b03b76"
}
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