Comparing version 0.0.9 to 0.0.10
@@ -155,5 +155,9 @@ /* | ||
Object.keys(o).forEach(function (attr) { | ||
if (!o.__lookupGetter__(attr)) { | ||
var getter = o.__lookupGetter__(attr); | ||
if (!getter) { | ||
target[attr] = o[attr]; | ||
} | ||
else { | ||
target.__defineGetter__(attr, getter); | ||
} | ||
}); | ||
@@ -274,2 +278,2 @@ }); | ||
}, {}); | ||
}; | ||
}; |
{ | ||
"name": "utile", | ||
"description": "A drop-in replacement for `util` with some additional advantageous functions", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "Nodejitsu Inc <info@nodejitsu.com>", | ||
@@ -22,3 +22,3 @@ "contributors": [ | ||
"devDependencies": { | ||
"vows": "0.5.x" | ||
"vows": "0.6.x" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
@@ -27,2 +27,5 @@ /* | ||
}; | ||
obj2.__defineGetter__('bazz', function () { | ||
return 'bazz'; | ||
}); | ||
@@ -51,2 +54,4 @@ vows.describe('utile').addBatch({ | ||
assert.isString(mixed.buzz); | ||
assert.isTrue(!!mixed.__lookupGetter__('bazz')); | ||
assert.isString(mixed.bazz); | ||
}, | ||
@@ -53,0 +58,0 @@ "the clone() method": function () { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19408
508