UNPKG
@reservoir0x/relay-sdk
Version:
canary (0.0.0-canary-20250814020954)
latest (2.4.0)
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.8.1
1.8.0
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0-canary-20250814020954
0.0.0-canary-20250813132716
0.0.0-canary-20240507132251
0.0.0-canary-20240506220831
0.0.0-canary-20240506211039
0.0.0-canary-20240506160753
0.0.0-canary-20240503175152
0.0.0-canary-20240501214125
0.0.0-canary-20240501202525
0.0.0-canary-20240501181834
0.0.0-canary-20240429212419
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
@reservoir0x/relay-sdk
/
_esm
/
src
/
utils
/
structuredClone.js
8 lines
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
function
safeStructuredClone
(
obj
) {
if
(
typeof
structuredClone ===
'function'
) {
return
structuredClone
(obj); }
// Fallback implementation, for Chrome < 98 (before 2022)
return
JSON
.
parse
(
JSON
.
stringify
(obj)); }
//# sourceMappingURL=structuredClone.js.map