chore: use structuredClone instead of ember-copy addon (#1634)

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-02-16 14:06:37 -08:00
1 parent 76147af357
commit 7db1edda1c
11 files changed
+25 -41

No files matched your search

+1 -3
View File
@@ -1,6 +1,4 @@
import ApplicationSerializer from './application';
import { copy } from 'ember-copy';
export default class AuthMethodSerializer extends ApplicationSerializer {
// =methods
@@ -86,7 +84,7 @@ export default class AuthMethodSerializer extends ApplicationSerializer {
* @return {Object}
*/
normalize(typeClass, hash, ...rest) {
let normalizedHash = copy(hash, true);
let normalizedHash = structuredClone(hash);
// switch (normalizedHash.type) {
// case 'oidc':
// normalizedHash = this.normalizeOIDC(normalizedHash);