vigour-util
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -22,5 +22,14 @@ 'use strict' | ||
definition = { value: definition } | ||
} else { | ||
if ('val' in definition) { | ||
definition.value = definition.val | ||
delete definition.val | ||
} | ||
} | ||
definition.configurable = true | ||
Object.defineProperty(this, key, definition) | ||
if (definition.writable && 'value' in definition) { | ||
this[key] = definition.value | ||
} else { | ||
definition.configurable = true | ||
Object.defineProperty(this, key, definition) | ||
} | ||
} | ||
@@ -32,2 +41,3 @@ } | ||
function extend (target, val) { | ||
// support deep | ||
for (let key in val) { | ||
@@ -46,2 +56,4 @@ if (typeof val[key] !== 'function') { | ||
const args = new Array(len + 1) | ||
// optimize by checking arguments.length, make an option with variable arguments | ||
// default just ignores those (so its fast) | ||
args[0] = target | ||
@@ -48,0 +60,0 @@ for (let i = 0; i < len; i++) { |
{ | ||
"name": "vigour-util", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "Vigour.io <dev@vigour.io>", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
82981
1972