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

circle-assign

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circle-assign - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

tests/index.test.js

2

dist/circle-assign.min.js

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

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){e.exports=function(e,...t){let n=function(e,t){let r=Object.keys(e),o=Object.keys(t),u={};for(let f=0;f<r.length;f++){let l=r[f];-1!==o.indexOf(l)?"object"!=typeof e[l]||e[l]instanceof Array?u[l]=t[l]:"object"!=typeof t[l]||t[l]instanceof Array?u[l]=t[l]:u[l]=n(e[l],t[l]):u[l]=e[l]}for(let e=0;e<o.length;e++){let n=o[e];-1===r.indexOf(n)&&(u[n]=t[n])}return u};for(let r=0;r<t.length;r++){let o=t[r];e=n(e,o)}return e}}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){e.exports=function(e,...t){"object"==typeof e&&void 0!==e&&null!==e||(e={});let n=function(e,t){let r=Object.keys(e),o=Object.keys(t),u={};for(let f=0;f<r.length;f++){let l=r[f];-1!==o.indexOf(l)?"object"!=typeof e[l]||e[l]instanceof Array?u[l]=t[l]:"object"!=typeof t[l]||t[l]instanceof Array?u[l]=t[l]:u[l]=n(e[l],t[l]):u[l]=e[l]}for(let e=0;e<o.length;e++){let n=o[e];-1===r.indexOf(n)&&(u[n]=t[n])}return u};for(let r=0;r<t.length;r++){let o=t[r];void 0!==o&&null!==o&&"object"==typeof o&&(e=n(e,o))}return e}}]);

@@ -8,2 +8,10 @@ /**

function circleAssign(target, ...sources) {
if(typeof target !== 'object' ||
target === undefined ||
target === null) {
target = {};
}

@@ -107,12 +115,18 @@ let

// run assign with the source and current target
// this will return the deep assigned version of
// source with target merged into it
// it will then set source to that and if any more
// targets are specified it will loop over and repeat
// leading to each target overriding the previous
// source resulting in the original source overridden
// by the array of targets specified
target = assign(target, source);
if(source !== undefined &&
source !== null &&
typeof source === 'object') {
// run assign with the source and current target
// this will return the deep assigned version of
// source with target merged into it
// it will then set source to that and if any more
// targets are specified it will loop over and repeat
// leading to each target overriding the previous
// source resulting in the original source overridden
// by the array of targets specified
target = assign(target, source);
}
}

@@ -119,0 +133,0 @@

{
"name": "circle-assign",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple deep object assign function",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/jest --coverage",
"test": "./node_modules/.bin/jest --coverage --verbose",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",

@@ -34,6 +34,3 @@ "build": "npx webpack"

"webpack-cli": "^3.0.3"
},
"jest-junit": {
"output": "./test-results/jest/results.xml"
}
}
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