We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e657c1b commit 4cc5ac6Copy full SHA for 4cc5ac6
packages/plugin-js-lambda-microlib/src/MicroserviceType.ts
@@ -673,6 +673,16 @@ export default class MicroserviceType {
673
case true:
674
return 'true';
675
default:
676
+ if ('object' === typeof x) {
677
+ return `{${Object.entries(x).reduce((acc, [k, v]) => {
678
+ if (Array.isArray(v)) {
679
+ v = this.mapToStringifyValueForHook(v, options);
680
+ } else {
681
+ v = this.stringifyValueForHook(`'${v}'`, options);
682
+ }
683
+ return `${acc}${acc ? ', ' : ''}${k}: ${v}`;
684
+ }, '')}}`;
685
686
return this.stringifyValueForHook(`'${x}'`, options);
687
}
688
})
0 commit comments