chore: use structuredClone instead of ember-copy addon (#1634)
This commit is contained in:
1 parent
76147af357
commit
7db1edda1c
11 files changed
+25
-41
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user