mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
14 lines
312 B
JavaScript
14 lines
312 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
import { camelize } from '@ember/string';
|
|
|
|
export default function camelizeKeys(object) {
|
|
const newObject = {};
|
|
Object.entries(object).forEach(([key, value]) => {
|
|
newObject[camelize(key)] = value;
|
|
});
|
|
return newObject;
|
|
}
|