@ungap/structured-clone
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -58,2 +58,4 @@ 'use strict'; | ||
return as(BigInt(value)); | ||
case 'BigInt': | ||
return as(Object(BigInt(value))); | ||
} | ||
@@ -60,0 +62,0 @@ return as(new env[type](value)); |
@@ -56,2 +56,4 @@ 'use strict'; | ||
return as([type, value.valueOf()]); | ||
case 'BigInt': | ||
return as([type, value.toString()]); | ||
} | ||
@@ -58,0 +60,0 @@ |
@@ -59,2 +59,4 @@ import { | ||
return as(BigInt(value)); | ||
case 'BigInt': | ||
return as(Object(BigInt(value))); | ||
} | ||
@@ -61,0 +63,0 @@ return as(new env[type](value)); |
@@ -57,2 +57,4 @@ import { | ||
return as([type, value.valueOf()]); | ||
case 'BigInt': | ||
return as([type, value.toString()]); | ||
} | ||
@@ -59,0 +61,0 @@ |
{ | ||
"name": "@ungap/structured-clone", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A structuredClone polyfill", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14978
366