Create KV V2 Ember Engine (#22426)

This commit is contained in:
Angel Garbarino
2023-08-24 09:02:53 -06:00
committed by GitHub
parent da6815e5a4
commit e2cadfc9ff
167 changed files with 9607 additions and 205 deletions

View File

@@ -0,0 +1,15 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { helper as buildHelper } from '@ember/component/helper';
export function stringify([target], { skipFormat }) {
if (skipFormat) {
return JSON.stringify(target);
}
return JSON.stringify(target, null, 2);
}
export default buildHelper(stringify);