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

object-config-for-smart-setter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-config-for-smart-setter - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

5

lib/objectConfig.js

@@ -30,4 +30,5 @@ 'use strict';

},
clone: function clone(obj) {
return Object.assign({}, obj);
clone: function clone(item) {
var x = Array.isArray(item) ? [] : {};
return Object.assign(x, item);
},

@@ -34,0 +35,0 @@ emptyObjectOrMap: function emptyObjectOrMap() {

2

package.json
{
"name": "object-config-for-smart-setter",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

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

@@ -22,4 +22,7 @@ const objectConfig = {

},
clone: obj => {
return Object.assign({}, obj)
clone: item => {
const x = Array.isArray(item)
? []
: {}
return Object.assign(x, item)
},

@@ -26,0 +29,0 @@ emptyObjectOrMap: () => {

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