Socket
Socket
Sign inDemoInstall

xtend

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 3.0.0

6

index.js

@@ -1,3 +0,1 @@

var hasKeys = require("./has-keys")
module.exports = extend

@@ -11,6 +9,2 @@

if (!hasKeys(source)) {
continue
}
for (var key in source) {

@@ -17,0 +11,0 @@ if (source.hasOwnProperty(key)) {

12

mutable.js

@@ -1,15 +0,7 @@

var hasKeys = require("./has-keys")
module.exports = extend
function extend(target) {
var sources = [].slice.call(arguments, 1)
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i]
for (var i = 0; i < sources.length; i++) {
var source = sources[i]
if (!hasKeys(source)) {
continue
}
for (var key in source) {

@@ -16,0 +8,0 @@ if (source.hasOwnProperty(key)) {

2

package.json
{
"name": "xtend",
"version": "2.2.0",
"version": "3.0.0",
"description": "extend like a boss",

@@ -5,0 +5,0 @@ "keywords": [

@@ -14,2 +14,3 @@ # xtend

// extend returns a new object. Does not mutate arguments
var combination = extend({

@@ -16,0 +17,0 @@ a: "a"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc