New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-fetcher

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-fetcher - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

16

jsonFetcher.class.js
import { qs } from 'qs';
const copy = (obj) => {
let newObj;
if(obj.prototype) {
newObj = Object.create(obj.prototype)
} else {
newObj = {};
}
Object.keys(obj).forEach(key => {
if(obj instanceof Object) {
newObj[key] = copy(obj[key]);
} else {
newObj[key] = obj[key];
}
});
return newObj;
return JSON.parse(JSON.stringify(obj));
}

@@ -19,0 +5,0 @@

2

package.json
{
"name": "json-fetcher",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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