New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expensify-common

Package Overview
Dependencies
Maintainers
0
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expensify-common - npm Package Compare versions

Comparing version 2.0.59 to 2.0.60

8

dist/Logger.d.ts

@@ -9,3 +9,3 @@ type Parameters = string | Record<string, unknown> | Array<Record<string, unknown>> | Error;

}> | undefined;
type ClientLoggingCallBack = (message: string) => void;
type ClientLoggingCallBack = (message: string, extraData: Parameters) => void;
type LogLine = {

@@ -38,3 +38,3 @@ message: string;

*/
add(message: string, parameters: Parameters, forceFlushToServer: boolean, onlyFlushWithOthers?: boolean): void;
add(message: string, parameters: Parameters, forceFlushToServer: boolean, onlyFlushWithOthers?: boolean, extraData?: Parameters): void;
/**

@@ -49,3 +49,3 @@ * Caches an informational message locally, to be sent to the server if

*/
info(message: string, sendNow?: boolean, parameters?: Parameters, onlyFlushWithOthers?: boolean): void;
info(message: string, sendNow?: boolean, parameters?: Parameters, onlyFlushWithOthers?: boolean, extraData?: Parameters): void;
/**

@@ -78,4 +78,4 @@ * Logs an alert.

*/
client(message: string): void;
client(message: string, extraData?: Parameters): void;
}
export {};

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

*/
add(message, parameters, forceFlushToServer, onlyFlushWithOthers = false) {
add(message, parameters, forceFlushToServer, onlyFlushWithOthers = false, extraData = '') {
const length = this.logLines.push({

@@ -61,3 +61,3 @@ message,

if (this.isDebug) {
this.client(`${message} - ${JSON.stringify(parameters)}`);
this.client(`${message} - ${JSON.stringify(parameters)}`, extraData);
}

@@ -78,5 +78,5 @@ // If we're over the limit, flush the logs

*/
info(message, sendNow = false, parameters = '', onlyFlushWithOthers = false) {
info(message, sendNow = false, parameters = '', onlyFlushWithOthers = false, extraData = '') {
const msg = `[info] ${message}`;
this.add(msg, parameters, sendNow, onlyFlushWithOthers);
this.add(msg, parameters, sendNow, onlyFlushWithOthers, extraData);
}

@@ -123,9 +123,9 @@ /**

*/
client(message) {
client(message, extraData = '') {
if (!this.clientLoggingCallback) {
return;
}
this.clientLoggingCallback(message);
this.clientLoggingCallback(message, extraData);
}
}
exports.default = Logger;
{
"name": "expensify-common",
"version": "2.0.59",
"version": "2.0.60",
"author": "Expensify, Inc.",

@@ -5,0 +5,0 @@ "description": "Expensify libraries and components shared across different repos",

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