circle-assign
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -7,2 +7,7 @@ # Changelog | ||
## [1.0.10] - 23/10/2018 | ||
### Changed | ||
- Refactored the build process. Now uses babel directly and produces both normal and minified files. | ||
## [1.0.4] - 18/06/2018 | ||
@@ -9,0 +14,0 @@ |
@@ -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,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){"object"===(void 0===e?"undefined":r(e))&&void 0!==e&&null!==e||(e={});for(var t=function e(t,n){for(var o=Object.keys(t),u=Object.keys(n),f={},i=0;i<o.length;i++){var l=o[i];-1!==u.indexOf(l)?null===t[l]?f[l]=n[l]:"object"!==r(t[l])||t[l]instanceof Array?f[l]=n[l]:"object"!==r(n[l])||n[l]instanceof Array?f[l]=n[l]:f[l]=e(t[l],n[l]):f[l]=t[l]}for(var c=0;c<u.length;c++){var a=u[c];-1===o.indexOf(a)&&(f[a]=n[a])}return f},n=arguments.length,o=Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];for(var f=0;f<o.length;f++){var i=o[f];void 0!==i&&null!==i&&"object"===(void 0===i?"undefined":r(i))&&(e=t(e,i))}return e}}]); | ||
"use strict";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function circleAssign(target){if(_typeof(target)!=="object"||target===undefined||target===null){target={}}var assign=function assign(target,source){var targetKeys=Object.keys(target),sourceKeys=Object.keys(source),result={};for(var i=0;i<targetKeys.length;i++){var key=targetKeys[i];if(sourceKeys.indexOf(key)!==-1){if(target[key]===null){result[key]=source[key]}else if(_typeof(target[key])==="object"&&!(target[key]instanceof Array)){if(_typeof(source[key])==="object"&&!(source[key]instanceof Array)){result[key]=assign(target[key],source[key])}else{result[key]=source[key]}}else{result[key]=source[key]}}else{result[key]=target[key]}}for(var _i=0;_i<sourceKeys.length;_i++){var _key=sourceKeys[_i];if(targetKeys.indexOf(_key)===-1){result[_key]=source[_key]}}return result};for(var i=0;i<(arguments.length<=1?0:arguments.length-1);i++){var source=i+1<1||arguments.length<=i+1?undefined:arguments[i+1];if(source!==undefined&&source!==null&&_typeof(source)==="object"){target=assign(target,source)}}return target}module.exports=circleAssign; |
{ | ||
"name": "circle-assign", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Simple deep object assign function", | ||
"main": "src/index.js", | ||
"module": "dist/circle-assign.min.js", | ||
"module": "dist/circle-assign.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/jest --coverage --verbose", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", | ||
"build": "npx webpack" | ||
"build:clean": "rm -rf dist/", | ||
"build:babel": "mkdir dist && npx babel src/index.js --out-file dist/circle-assign.js", | ||
"build:uglify": "npx uglifyjs dist/circle-assign.js -o dist/circle-assign.min.js", | ||
"build": "npm-run-all build:clean build:babel build:uglify" | ||
}, | ||
@@ -31,10 +34,10 @@ "repository": { | ||
"devDependencies": { | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.5", | ||
"babel-preset-env": "1.7.0", | ||
"coveralls": "^3.0.1", | ||
"jest": "^23.1.0", | ||
"webpack": "^4.12.0", | ||
"webpack-cli": "^3.0.3" | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/preset-env": "^7.1.0", | ||
"coveralls": "^3.0.2", | ||
"jest": "^23.6.0", | ||
"npm-run-all": "^4.1.3", | ||
"uglify-js": "^3.4.9" | ||
} | ||
} |
24251
11
329