@bugsnag/core
Advanced tools
Comparing version
@@ -124,2 +124,7 @@ const config = require('./config') | ||
// sendPayloadChecksums is false by default unless custom endpoints are not specified | ||
if (!opts.endpoints) { | ||
opts.sendPayloadChecksums = 'sendPayloadChecksums' in opts ? opts.sendPayloadChecksums : true | ||
} | ||
// accumulate configuration and error messages | ||
@@ -126,0 +131,0 @@ const { errors, config } = reduce(keys(schema), (accum, key) => { |
@@ -176,3 +176,8 @@ const filter = require('./lib/es-utils/filter') | ||
validate: value => value === true || value === false | ||
}, | ||
sendPayloadChecksums: { | ||
defaultValue: () => false, | ||
message: 'should be true|false', | ||
validate: value => value === true || value === false | ||
} | ||
} |
{ | ||
"name": "@bugsnag/core", | ||
"main": "index.js", | ||
"version": "8.1.1", | ||
"version": "8.2.0", | ||
"types": "types/index.d.ts", | ||
@@ -29,3 +29,3 @@ "description": "Core classes and utilities for Bugsnag notifiers", | ||
}, | ||
"gitHead": "356951be414dad92f72e170f7c5e0b603c9dfd0e" | ||
"gitHead": "3f43b058ebf90c87b71e76b771950a0214130d64" | ||
} |
@@ -55,3 +55,3 @@ import Breadcrumb from './breadcrumb' | ||
public getUser(): User; | ||
public setUser(id?: string, email?: string, name?: string): void; | ||
public setUser(id?: string | null, email?: string | null, name?: string | null): void; | ||
@@ -58,0 +58,0 @@ // sessions |
@@ -32,2 +32,3 @@ import Client from './client' | ||
reportUnhandledPromiseRejectionsAsHandled?: boolean | ||
sendPayloadChecksums?: boolean | ||
} | ||
@@ -34,0 +35,0 @@ |
88156
0.49%2343
0.43%