Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ungap/structured-clone

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ungap/structured-clone - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

LICENSE

6

cjs/deserialize.js
'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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc