Comparing version 1.13.9 to 1.13.10
## History | ||
- v1.13.10 October 7, 2012 | ||
- `balUtilPaths` changes: | ||
- Added `shallowExtendPlainObjects` | ||
- v1.13.9 October 7, 2012 | ||
@@ -4,0 +8,0 @@ - `balUtilPaths` changes: |
@@ -65,2 +65,16 @@ // Generated by CoffeeScript 1.3.3 | ||
}, | ||
shallowExtendPlainObjects: function() { | ||
var key, obj, objs, target, value, _i, _len; | ||
target = arguments[0], objs = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
for (_i = 0, _len = objs.length; _i < _len; _i++) { | ||
obj = objs[_i]; | ||
obj || (obj = {}); | ||
for (key in obj) { | ||
if (!__hasProp.call(obj, key)) continue; | ||
value = obj[key]; | ||
target[key] = value; | ||
} | ||
} | ||
return target; | ||
}, | ||
deepExtendPlainObjects: function() { | ||
@@ -67,0 +81,0 @@ var key, obj, objs, target, value, _i, _len; |
{ | ||
"name": "bal-util", | ||
"version": "1.13.9", | ||
"version": "1.13.10", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/balupton/bal-util", |
97118
2337