Socket
Socket
Sign inDemoInstall

@marinade.finance/cli-common

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marinade.finance/cli-common - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

2

package.json
{
"name": "@marinade.finance/cli-common",
"version": "2.0.9",
"version": "2.0.10",
"description": "CLI tooling",

@@ -5,0 +5,0 @@ "repository": {

@@ -20,6 +20,2 @@ export declare const FORMAT_TYPE_DEF: readonly ["text", "yaml", "json"];

type: 'UsePassThrough';
records?: {
key: string;
value: any;
}[];
};

@@ -38,3 +34,3 @@ /**

export declare class BaseObjectFormatter implements ObjectFormatterInterface {
format(key: string, value: any): ReformatAction;
format(_key: string, _value: any): ReformatAction;
}

@@ -41,0 +37,0 @@ /**

@@ -41,5 +41,5 @@ "use strict";

class BaseObjectFormatter {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
format(key, value) {
return { type: 'UsePassThrough', records: [{ key, value }] };
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
format(_key, _value) {
return { type: 'UsePassThrough' };
}

@@ -67,3 +67,3 @@ }

}
return { type: 'UsePassThrough', records: [{ key, value }] };
return { type: 'UsePassThrough' };
}

@@ -129,14 +129,8 @@ addFormatter(formatter) {

}
case 'UsePassThrough': {
if (formatterResult.records) {
formatterResult.records.forEach(({ key: formattedKey, value: formattedValue }) => {
result[formattedKey] = reformat(formattedValue, formatter);
});
}
else {
result[key] = reformat(value, formatter);
}
case 'Remove': {
break;
}
case 'Remove': {
default: {
// UsePassThrough
result[key] = reformat(value, formatter);
break;

@@ -143,0 +137,0 @@ }

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