@ungap/structured-clone
Advanced tools
Comparing version 0.0.2 to 0.1.0
'use strict'; | ||
const env = typeof self === 'object' ? self : globalThis; | ||
const _deserialize = (index, $, _) => { | ||
@@ -48,3 +50,3 @@ if ($.has(index)) | ||
const {name, message} = value; | ||
return as(new globalThis[name](message)); | ||
return as(new env[name](message)); | ||
} | ||
@@ -60,3 +62,3 @@ case 'Boolean': | ||
} | ||
return as(new globalThis[type](value)); | ||
return as(new env[type](value)); | ||
}; | ||
@@ -63,0 +65,0 @@ |
@@ -0,1 +1,3 @@ | ||
const env = typeof self === 'object' ? self : globalThis; | ||
const _deserialize = (index, $, _) => { | ||
@@ -47,3 +49,3 @@ if ($.has(index)) | ||
const {name, message} = value; | ||
return as(new globalThis[name](message)); | ||
return as(new env[name](message)); | ||
} | ||
@@ -59,3 +61,3 @@ case 'Boolean': | ||
} | ||
return as(new globalThis[type](value)); | ||
return as(new env[type](value)); | ||
}; | ||
@@ -62,0 +64,0 @@ |
{ | ||
"name": "@ungap/structured-clone", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "A structuredClone polyfill", | ||
@@ -12,3 +12,8 @@ "main": "./cjs/index.js", | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"recursion", | ||
"structured", | ||
"clone", | ||
"algorithm" | ||
], | ||
"author": "Andrea Giammarchi", | ||
@@ -29,3 +34,14 @@ "license": "ISC", | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ungap/structured-clone.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ungap/structured-clone/issues" | ||
}, | ||
"homepage": "https://github.com/ungap/structured-clone#readme" | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12122
10
324
0
1
0
17
0