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

assign.js

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assign.js - npm Package Compare versions

Comparing version 2.8.13 to 2.8.14

index.d.ts

4

lib/assign.js

@@ -102,3 +102,5 @@ const _ = require('isa.js')

let ref = this.options.forceful ? source[key] : object[key]
if (_.isPlainObject( ref ) && this.options.recursive && (!this.options.primitives || this.options.primitives.indexOf(key) === -1) ) {
if ( this.options.primitives && this.options.primitives.indexOf(key) !== -1 )
object[key] = this.cloneObject( source[key] )
else if (_.isPlainObject( ref ) && this.options.recursive ) {
if (this.options.forceful && !object[key]) object[key] = {}

@@ -105,0 +107,0 @@ this.copyObject( source[key], object[key] )

{
"name": "assign.js",
"version": "2.8.13",
"version": "2.8.14",
"description": "Tiny libary to assign objects",

@@ -24,7 +24,8 @@ "keywords": [

"main": "./lib/assign.js",
"types": "./index.d.ts",
"dependencies": {
"isa.js": "^2.2.15"
"isa.js": "^2.2.17"
},
"devDependencies": {
"chai": "^4.2.0"
"chai": "^4.3.6"
},

@@ -31,0 +32,0 @@ "browser": {

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