diff options
Diffstat (limited to 'packages/idb-bridge/src/util')
-rw-r--r-- | packages/idb-bridge/src/util/structuredClone.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/idb-bridge/src/util/structuredClone.ts b/packages/idb-bridge/src/util/structuredClone.ts index 181e9ca0e..b6b537433 100644 --- a/packages/idb-bridge/src/util/structuredClone.ts +++ b/packages/idb-bridge/src/util/structuredClone.ts @@ -14,6 +14,8 @@ permissions and limitations under the License. */ +import cloneDeep from "lodash/cloneDeep"; + const { toString: toStr } = {}; const hasOwn = {}.hasOwnProperty; const getProto = Object.getPrototypeOf; @@ -260,5 +262,5 @@ export function structuredRevive(val: any): any { * Structured clone for IndexedDB. */ export function structuredClone(val: any): any { - return structuredRevive(structuredEncapsulate(val)); + return cloneDeep(val); } |