@marinade.finance/cli-common
Advanced tools
Comparing version 2.0.9 to 2.0.10
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28238
493