define-properties-x
Advanced tools
Comparing version 2.0.0 to 2.0.1
32
index.js
/** | ||
* @file Define multiple non-enumerable properties at once. | ||
* @see {@link https://www.npmjs.com/package/define-properties|define-properties} | ||
* @version 2.0.0 | ||
* @version 2.0.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -16,3 +16,3 @@ * @copyright Xotic750 | ||
var isUndefined = require('validate.io-undefined'); | ||
var forEach = require('for-each'); | ||
var forEach = require('array-for-each-x'); | ||
var $keys = require('object-keys-x'); | ||
@@ -26,6 +26,6 @@ var $getOwnPropertySymbols = isFunction(Object.getOwnPropertySymbols) && Object.getOwnPropertySymbols; | ||
* @private | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {string|Symbol} prop - The property name. | ||
* @param {*} value - The value of the property. | ||
* @param {boolean} [force=false] - If `true` then set property regardless. | ||
*/ | ||
@@ -50,5 +50,5 @@ // eslint-disable-next-line max-params | ||
* @private | ||
* @param {Object} object The object on which to define the property. | ||
* @param {Object} map The object of properties. | ||
* @param {Object} [predicates] The object of property predicates. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {Object} map - The object of properties. | ||
* @param {Object} [predicates] - The object of property predicates. | ||
*/ | ||
@@ -77,5 +77,5 @@ var $properties = function properties(object, map, predicates) { | ||
* @function | ||
* @param {Object} object The object on which to define the property. | ||
* @param {Object} map The object of properties. | ||
* @param {Object} [predicates] The object of property predicates. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {Object} map - The object of properties. | ||
* @param {Object} [predicates] - The object of property predicates. | ||
* @example | ||
@@ -99,6 +99,6 @@ * var define = require('define-properties-x'); | ||
* @function | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {string|Symbol} prop - The property name. | ||
* @param {*} value - The value of the property. | ||
* @param {boolean} [force=false] - If `true` then set property regardless. | ||
* @example | ||
@@ -105,0 +105,0 @@ * var define = require('define-properties-x'); |
@@ -5,3 +5,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
* @see {@link https://www.npmjs.com/package/define-properties|define-properties} | ||
* @version 2.0.0 | ||
* @version 2.0.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -18,3 +18,3 @@ * @copyright Xotic750 | ||
var isUndefined = _dereq_('validate.io-undefined'); | ||
var forEach = _dereq_('for-each'); | ||
var forEach = _dereq_('array-for-each-x'); | ||
var $keys = _dereq_('object-keys-x'); | ||
@@ -28,6 +28,6 @@ var $getOwnPropertySymbols = isFunction(Object.getOwnPropertySymbols) && Object.getOwnPropertySymbols; | ||
* @private | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {string|Symbol} prop - The property name. | ||
* @param {*} value - The value of the property. | ||
* @param {boolean} [force=false] - If `true` then set property regardless. | ||
*/ | ||
@@ -52,5 +52,5 @@ // eslint-disable-next-line max-params | ||
* @private | ||
* @param {Object} object The object on which to define the property. | ||
* @param {Object} map The object of properties. | ||
* @param {Object} [predicates] The object of property predicates. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {Object} map - The object of properties. | ||
* @param {Object} [predicates] - The object of property predicates. | ||
*/ | ||
@@ -79,5 +79,5 @@ var $properties = function properties(object, map, predicates) { | ||
* @function | ||
* @param {Object} object The object on which to define the property. | ||
* @param {Object} map The object of properties. | ||
* @param {Object} [predicates] The object of property predicates. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {Object} map - The object of properties. | ||
* @param {Object} [predicates] - The object of property predicates. | ||
* @example | ||
@@ -101,6 +101,6 @@ * var define = require('define-properties-x'); | ||
* @function | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
* @param {Object} object - The object on which to define the property. | ||
* @param {string|Symbol} prop - The property name. | ||
* @param {*} value - The value of the property. | ||
* @param {boolean} [force=false] - If `true` then set property regardless. | ||
* @example | ||
@@ -115,6 +115,59 @@ * var define = require('define-properties-x'); | ||
},{"for-each":6,"has-symbol-support-x":9,"is-function-x":15,"object-define-property-x":27,"object-keys-x":28,"validate.io-undefined":37}],2:[function(_dereq_,module,exports){ | ||
},{"array-for-each-x":2,"has-symbol-support-x":12,"is-function-x":18,"object-define-property-x":30,"object-keys-x":31,"validate.io-undefined":40}],2:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Executes a provided function once for each array element. | ||
* @version 1.0.2 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module array-for-each-x | ||
*/ | ||
'use strict'; | ||
var toObject = _dereq_('to-object-x'); | ||
var assertIsFunction = _dereq_('assert-is-function-x'); | ||
var some = _dereq_('array-some-x'); | ||
var $forEach = function forEach(array, callBack /* , thisArg */) { | ||
var object = toObject(array); | ||
// If no callback function or if callback is not a callable function | ||
assertIsFunction(callBack); | ||
var wrapped = function _wrapped(item, idx, obj) { | ||
// eslint-disable-next-line no-invalid-this | ||
callBack.call(this, item, idx, obj); | ||
}; | ||
var args = [object, wrapped]; | ||
if (arguments.length > 2) { | ||
args[2] = arguments[2]; | ||
} | ||
some.apply(void 0, args); | ||
}; | ||
/** | ||
* This method executes a provided function once for each array element. | ||
* | ||
* @param {array} array - The array to iterate over. | ||
* @param {Function} callBack - Function to execute for each element. | ||
* @param {*} [thisArg] - Value to use as this when executing callback. | ||
* @throws {TypeError} If array is null or undefined. | ||
* @throws {TypeError} If callBack is not a function. | ||
* @example | ||
* var forEach = require('array-for-each-x'); | ||
* | ||
* var items = ['item1', 'item2', 'item3']; | ||
* var copy = []; | ||
* | ||
* forEach(items, function(item){ | ||
* copy.push(item) | ||
* }); | ||
*/ | ||
module.exports = $forEach; | ||
},{"array-some-x":4,"assert-is-function-x":5,"to-object-x":38}],3:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Cross-browser array slicer. | ||
* @version 1.1.0 | ||
* @version 1.2.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -163,8 +216,8 @@ * @copyright Xotic750 | ||
* | ||
* @param {Array|Object} array The array to slice. | ||
* @param {number} [start] Zero-based index at which to begin extraction. | ||
* @param {Array|Object} array - The array to slice. | ||
* @param {number} [start] - Zero-based index at which to begin extraction. | ||
* A negative index can be used, indicating an offset from the end of the | ||
* sequence. slice(-2) extracts the last two elements in the sequence. | ||
* If begin is undefined, slice begins from index 0. | ||
* @param {number} [end] Zero-based index before which to end extraction. | ||
* @param {number} [end] - Zero-based index before which to end extraction. | ||
* Slice extracts up to but not including end. For example, slice(1,4) | ||
@@ -180,3 +233,3 @@ * extracts the second element through the fourth element (elements indexed | ||
* the end of the sequence (arr.length). | ||
* @return {Array} A new array containing the extracted elements. | ||
* @returns {Array} A new array containing the extracted elements. | ||
* @example | ||
@@ -192,5 +245,167 @@ * var slice = require('array-slice-x'); | ||
},{"to-integer-x":33,"to-length-x":34,"to-object-x":35,"validate.io-undefined":37}],3:[function(_dereq_,module,exports){ | ||
},{"to-integer-x":36,"to-length-x":37,"to-object-x":38,"validate.io-undefined":40}],4:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Tests whether some element passes the provided function. | ||
* @version 1.0.3 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module array-some-x | ||
*/ | ||
'use strict'; | ||
var tests = { | ||
// Check node 0.6.21 bug where third parameter is not boxed | ||
properlyBoxesNonStrict: true, | ||
properlyBoxesStrict: true | ||
}; | ||
var nativeSome = Array.prototype.some; | ||
if (nativeSome) { | ||
try { | ||
nativeSome.call([1], function () { | ||
// eslint-disable-next-line no-invalid-this | ||
tests.properlyBoxesStrict = typeof this === 'string'; | ||
}, 'x'); | ||
var fn = [ | ||
'return nativeSome.call("foo", function (_, __, context) {', | ||
'if (Boolean(context) === false || typeof context !== "object") {', | ||
'tests.properlyBoxesNonStrict = false;}});' | ||
].join(''); | ||
// eslint-disable-next-line no-new-func | ||
Function('nativeSome', 'tests', fn)(nativeSome, tests); | ||
} catch (e) { | ||
nativeSome = null; | ||
} | ||
} | ||
var $some; | ||
if (nativeSome && tests.properlyBoxesNonStrict && tests.properlyBoxesStrict) { | ||
$some = function some(array, callBack /* , thisArg */) { | ||
var args = [callBack]; | ||
if (arguments.length > 2) { | ||
args.push(arguments[2]); | ||
} | ||
return nativeSome.apply(array, args); | ||
}; | ||
} else { | ||
// ES5 15.4.4.17 | ||
// http://es5.github.com/#x15.4.4.17 | ||
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some | ||
var toObject = _dereq_('to-object-x'); | ||
var assertIsFunction = _dereq_('assert-is-function-x'); | ||
var isString = _dereq_('is-string'); | ||
var toLength = _dereq_('to-length-x'); | ||
var isUndefined = _dereq_('validate.io-undefined'); | ||
var splitString = _dereq_('has-boxed-string-x') === false; | ||
$some = function some(array, callBack /* , thisArg */) { | ||
var object = toObject(array); | ||
// If no callback function or if callback is not a callable function | ||
assertIsFunction(callBack); | ||
var iterable = splitString && isString(object) ? object.split('') : object; | ||
var length = toLength(iterable.length); | ||
var thisArg; | ||
if (arguments.length > 2) { | ||
thisArg = arguments[2]; | ||
} | ||
for (var i = 0; i < length; i += 1) { | ||
if (i in iterable) { | ||
var result; | ||
if (isUndefined(thisArg)) { | ||
result = callBack(iterable[i], i, object); | ||
} else { | ||
result = callBack.call(thisArg, iterable[i], i, object); | ||
} | ||
if (result) { | ||
return true; | ||
} | ||
} | ||
} | ||
return false; | ||
}; | ||
} | ||
/** | ||
* This method tests whether some element in the array passes the test | ||
* implemented by the provided function. | ||
* | ||
* @param {array} array - The array to iterate over. | ||
* @param {Function} callBack - Function to test for each element. | ||
* @param {*} [thisArg] - Value to use as this when executing callback. | ||
* @throws {TypeError} If array is null or undefined. | ||
* @throws {TypeError} If callBack is not a function. | ||
* @returns {boolean} `true` if the callback function returns a truthy value for | ||
* any array element; otherwise, `false`. | ||
* @example | ||
* var some = require('array-some-x'); | ||
* | ||
* function isBiggerThan10(element, index, array) { | ||
* return element > 10; | ||
* } | ||
* | ||
* some([2, 5, 8, 1, 4], isBiggerThan10); // false | ||
* some([12, 5, 8, 1, 4], isBiggerThan10); // true | ||
*/ | ||
module.exports = $some; | ||
},{"assert-is-function-x":5,"has-boxed-string-x":10,"is-string":25,"to-length-x":37,"to-object-x":38,"validate.io-undefined":40}],5:[function(_dereq_,module,exports){ | ||
/** | ||
* @file If isFunction(callbackfn) is false, throw a TypeError exception. | ||
* @version 1.3.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module assert-is-function-x | ||
*/ | ||
'use strict'; | ||
var isFunction = _dereq_('is-function-x'); | ||
var safeToString = _dereq_('safe-to-string-x'); | ||
var isPrimitive = _dereq_('is-primitive'); | ||
/** | ||
* Tests `callback` to see if it is a function, throws a `TypeError` if it is | ||
* not. Otherwise returns the `callback`. | ||
* | ||
* @param {*} callback - The argument to be tested. | ||
* @throws {TypeError} Throws if `callback` is not a function. | ||
* @returns {*} Returns `callback` if it is function. | ||
* @example | ||
* var assertIsFunction = require('assert-is-function-x'); | ||
* var primitive = true; | ||
* var mySymbol = Symbol('mySymbol'); | ||
* var symObj = Object(mySymbol); | ||
* var object = {}; | ||
* function fn () {} | ||
* | ||
* assertIsFunction(primitive); | ||
* // TypeError 'true is not a function'. | ||
* assertIsFunction(object); | ||
* // TypeError '#<Object> is not a function'. | ||
* assertIsFunction(mySymbol); | ||
* // TypeError 'Symbol(mySymbol) is not a function'. | ||
* assertIsFunction(symObj); | ||
* // TypeError '#<Object> is not a function'. | ||
* assertIsFunction(fn); | ||
* // Returns fn. | ||
*/ | ||
module.exports = function assertIsFunction(callback) { | ||
if (!isFunction(callback)) { | ||
var msg = isPrimitive(callback) ? safeToString(callback) : '#<Object>'; | ||
throw new TypeError(msg + ' is not a function'); | ||
} | ||
return callback; | ||
}; | ||
},{"is-function-x":18,"is-primitive":24,"safe-to-string-x":35}],6:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var keys = _dereq_('object-keys'); | ||
@@ -251,3 +466,3 @@ var foreach = _dereq_('foreach'); | ||
},{"foreach":7,"object-keys":29}],4:[function(_dereq_,module,exports){ | ||
},{"foreach":9,"object-keys":32}],7:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -328,3 +543,3 @@ | ||
},{"./helpers/isPrimitive":5,"is-callable":12,"is-date-object":13,"is-symbol":23}],5:[function(_dereq_,module,exports){ | ||
},{"./helpers/isPrimitive":8,"is-callable":15,"is-date-object":16,"is-symbol":26}],8:[function(_dereq_,module,exports){ | ||
module.exports = function isPrimitive(value) { | ||
@@ -334,52 +549,4 @@ return value === null || (typeof value !== 'function' && typeof value !== 'object'); | ||
},{}],6:[function(_dereq_,module,exports){ | ||
var isFunction = _dereq_('is-function') | ||
},{}],9:[function(_dereq_,module,exports){ | ||
module.exports = forEach | ||
var toString = Object.prototype.toString | ||
var hasOwnProperty = Object.prototype.hasOwnProperty | ||
function forEach(list, iterator, context) { | ||
if (!isFunction(iterator)) { | ||
throw new TypeError('iterator must be a function') | ||
} | ||
if (arguments.length < 3) { | ||
context = this | ||
} | ||
if (toString.call(list) === '[object Array]') | ||
forEachArray(list, iterator, context) | ||
else if (typeof list === 'string') | ||
forEachString(list, iterator, context) | ||
else | ||
forEachObject(list, iterator, context) | ||
} | ||
function forEachArray(array, iterator, context) { | ||
for (var i = 0, len = array.length; i < len; i++) { | ||
if (hasOwnProperty.call(array, i)) { | ||
iterator.call(context, array[i], i, array) | ||
} | ||
} | ||
} | ||
function forEachString(string, iterator, context) { | ||
for (var i = 0, len = string.length; i < len; i++) { | ||
// no such thing as a sparse string. | ||
iterator.call(context, string.charAt(i), i, string) | ||
} | ||
} | ||
function forEachObject(object, iterator, context) { | ||
for (var k in object) { | ||
if (hasOwnProperty.call(object, k)) { | ||
iterator.call(context, object[k], k, object) | ||
} | ||
} | ||
} | ||
},{"is-function":16}],7:[function(_dereq_,module,exports){ | ||
var hasOwn = Object.prototype.hasOwnProperty; | ||
@@ -407,4 +574,28 @@ var toString = Object.prototype.toString; | ||
},{}],8:[function(_dereq_,module,exports){ | ||
},{}],10:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Check support of by-index access of string characters. | ||
* @version 1.0.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module has-boxed-string-x | ||
*/ | ||
'use strict'; | ||
var boxedString = Object('a'); | ||
/** | ||
* Check failure of by-index access of string characters (IE < 9) | ||
* and failure of `0 in boxedString` (Rhino). | ||
* | ||
* `true` if no failure; otherwise `false`. | ||
* | ||
* @type boolean | ||
*/ | ||
module.exports = boxedString[0] === 'a' && (0 in boxedString); | ||
},{}],11:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Used to determine whether an object has an own property with the specified property key. | ||
@@ -453,3 +644,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-hasownproperty|7.3.11 HasOwnProperty (O, P)} | ||
},{"es-to-primitive/es6":4,"is-symbol":23,"safe-to-string-x":32,"to-object-x":35}],9:[function(_dereq_,module,exports){ | ||
},{"es-to-primitive/es6":7,"is-symbol":26,"safe-to-string-x":35,"to-object-x":38}],12:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -474,3 +665,3 @@ * @file Tests if ES6 Symbol is supported. | ||
},{}],10:[function(_dereq_,module,exports){ | ||
},{}],13:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -496,3 +687,3 @@ * @file Tests if ES6 @@toStringTag is supported. | ||
},{"has-symbol-support-x":9}],11:[function(_dereq_,module,exports){ | ||
},{"has-symbol-support-x":12}],14:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -526,3 +717,3 @@ | ||
},{}],12:[function(_dereq_,module,exports){ | ||
},{}],15:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -568,3 +759,3 @@ | ||
},{}],13:[function(_dereq_,module,exports){ | ||
},{}],16:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -591,3 +782,3 @@ | ||
},{}],14:[function(_dereq_,module,exports){ | ||
},{}],17:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -640,3 +831,3 @@ * @file ES6-compliant shim for Number.isFinite. | ||
},{"is-nan":18,"max-safe-integer":26}],15:[function(_dereq_,module,exports){ | ||
},{"is-nan":20,"max-safe-integer":29}],18:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -734,20 +925,3 @@ * @file Determine whether a given value is a function object. | ||
},{"has-to-string-tag-x":10,"is-primitive":22,"to-string-tag-x":36}],16:[function(_dereq_,module,exports){ | ||
module.exports = isFunction | ||
var toString = Object.prototype.toString | ||
function isFunction (fn) { | ||
var string = toString.call(fn) | ||
return string === '[object Function]' || | ||
(typeof fn === 'function' && string !== '[object RegExp]') || | ||
(typeof window !== 'undefined' && | ||
// IE8 and below | ||
(fn === window.setTimeout || | ||
fn === window.alert || | ||
fn === window.confirm || | ||
fn === window.prompt)) | ||
}; | ||
},{}],17:[function(_dereq_,module,exports){ | ||
},{"has-to-string-tag-x":13,"is-primitive":24,"to-string-tag-x":39}],19:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -761,3 +935,3 @@ | ||
},{}],18:[function(_dereq_,module,exports){ | ||
},{}],20:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -781,3 +955,3 @@ | ||
},{"./implementation":17,"./polyfill":19,"./shim":20,"define-properties":3}],19:[function(_dereq_,module,exports){ | ||
},{"./implementation":19,"./polyfill":21,"./shim":22,"define-properties":6}],21:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -794,3 +968,3 @@ | ||
},{"./implementation":17}],20:[function(_dereq_,module,exports){ | ||
},{"./implementation":19}],22:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -809,3 +983,3 @@ | ||
},{"./polyfill":19,"define-properties":3}],21:[function(_dereq_,module,exports){ | ||
},{"./polyfill":21,"define-properties":6}],23:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -841,3 +1015,3 @@ * @file Checks if `value` is `null` or `undefined`. | ||
},{"lodash.isnull":24,"validate.io-undefined":37}],22:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":27,"validate.io-undefined":40}],24:[function(_dereq_,module,exports){ | ||
/*! | ||
@@ -857,6 +1031,28 @@ * is-primitive <https://github.com/jonschlinkert/is-primitive> | ||
},{}],23:[function(_dereq_,module,exports){ | ||
},{}],25:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var strValue = String.prototype.valueOf; | ||
var tryStringObject = function tryStringObject(value) { | ||
try { | ||
strValue.call(value); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
}; | ||
var toStr = Object.prototype.toString; | ||
var strClass = '[object String]'; | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
module.exports = function isString(value) { | ||
if (typeof value === 'string') { return true; } | ||
if (typeof value !== 'object') { return false; } | ||
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass; | ||
}; | ||
},{}],26:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var toStr = Object.prototype.toString; | ||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol'; | ||
@@ -887,3 +1083,3 @@ | ||
},{}],24:[function(_dereq_,module,exports){ | ||
},{}],27:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -920,3 +1116,3 @@ * lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
},{}],25:[function(_dereq_,module,exports){ | ||
},{}],28:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -974,7 +1170,7 @@ * @file ES6-compliant shim for Math.sign. | ||
},{"is-nan":18}],26:[function(_dereq_,module,exports){ | ||
},{"is-nan":20}],29:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
module.exports = 9007199254740991; | ||
},{}],27:[function(_dereq_,module,exports){ | ||
},{}],30:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1139,3 +1335,3 @@ * @file Sham for Object.defineProperty | ||
},{"has-own-property-x":8,"is-primitive":22}],28:[function(_dereq_,module,exports){ | ||
},{"has-own-property-x":11,"is-primitive":24}],31:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1219,3 +1415,3 @@ * @file An ES6 Object.keys shim. | ||
},{"array-slice-x":2,"is-arguments":11,"object-keys":29,"to-object-x":35}],29:[function(_dereq_,module,exports){ | ||
},{"array-slice-x":3,"is-arguments":14,"object-keys":32,"to-object-x":38}],32:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -1362,3 +1558,3 @@ | ||
},{"./isArguments":30}],30:[function(_dereq_,module,exports){ | ||
},{"./isArguments":33}],33:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -1382,3 +1578,3 @@ | ||
},{}],31:[function(_dereq_,module,exports){ | ||
},{}],34:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1422,3 +1618,3 @@ * @file ES6-compliant shim for RequireObjectCoercible. | ||
},{"is-nil-x":21}],32:[function(_dereq_,module,exports){ | ||
},{"is-nil-x":23}],35:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1460,3 +1656,3 @@ * @file Like ES6 ToString but handles Symbols too. | ||
},{"has-symbol-support-x":9,"is-symbol":23}],33:[function(_dereq_,module,exports){ | ||
},{"has-symbol-support-x":12,"is-symbol":26}],36:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1504,3 +1700,3 @@ * @file ToInteger converts 'argument' to an integral numeric value. | ||
},{"is-finite-x":14,"is-nan":18,"math-sign-x":25}],34:[function(_dereq_,module,exports){ | ||
},{"is-finite-x":17,"is-nan":20,"math-sign-x":28}],37:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1548,3 +1744,3 @@ * @file ES6-compliant shim for ToLength. | ||
},{"max-safe-integer":26,"to-integer-x":33}],35:[function(_dereq_,module,exports){ | ||
},{"max-safe-integer":29,"to-integer-x":36}],38:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1584,3 +1780,3 @@ * @file ES6-compliant shim for ToObject. | ||
},{"require-object-coercible-x":31}],36:[function(_dereq_,module,exports){ | ||
},{"require-object-coercible-x":34}],39:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1626,3 +1822,3 @@ * @file Get an object's ES6 @@toStringTag. | ||
},{"lodash.isnull":24,"validate.io-undefined":37}],37:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":27,"validate.io-undefined":40}],40:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1629,0 +1825,0 @@ * |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/** | ||
* @file Define multiple non-enumerable properties at once. | ||
* @see {@link https://www.npmjs.com/package/define-properties|define-properties} | ||
* @version 2.0.0 | ||
* @version 2.0.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -10,5 +10,13 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var hasSymbols=_dereq_("has-symbol-support-x"),isFunction=_dereq_("is-function-x"),isUndefined=_dereq_("validate.io-undefined"),forEach=_dereq_("for-each"),$keys=_dereq_("object-keys-x"),$getOwnPropertySymbols=isFunction(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,$defineProperty=_dereq_("object-define-property-x"),$property=function property(object,prop,value,force){prop in object&&!1===Boolean(force)||$defineProperty(object,prop,{configurable:!0,enumerable:!1,value:value,writable:!0})};module.exports={properties:function properties(object,map,predicates){var preds=isUndefined(predicates)?{}:predicates,props=$keys(map);hasSymbols&&$getOwnPropertySymbols&&(props=props.concat($getOwnPropertySymbols(map))),forEach(props,function _for(name){var predicate=preds[name];$property(object,name,map[name],isFunction(predicate)&&predicate())})},property:$property}},{"for-each":6,"has-symbol-support-x":9,"is-function-x":15,"object-define-property-x":27,"object-keys-x":28,"validate.io-undefined":37}],2:[function(_dereq_,module,exports){/** | ||
"use strict";var hasSymbols=_dereq_("has-symbol-support-x"),isFunction=_dereq_("is-function-x"),isUndefined=_dereq_("validate.io-undefined"),forEach=_dereq_("array-for-each-x"),$keys=_dereq_("object-keys-x"),$getOwnPropertySymbols=isFunction(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,$defineProperty=_dereq_("object-define-property-x"),$property=function property(object,prop,value,force){prop in object&&!1===Boolean(force)||$defineProperty(object,prop,{configurable:!0,enumerable:!1,value:value,writable:!0})};module.exports={properties:function properties(object,map,predicates){var preds=isUndefined(predicates)?{}:predicates,props=$keys(map);hasSymbols&&$getOwnPropertySymbols&&(props=props.concat($getOwnPropertySymbols(map))),forEach(props,function _for(name){var predicate=preds[name];$property(object,name,map[name],isFunction(predicate)&&predicate())})},property:$property}},{"array-for-each-x":2,"has-symbol-support-x":12,"is-function-x":18,"object-define-property-x":30,"object-keys-x":31,"validate.io-undefined":40}],2:[function(_dereq_,module,exports){/** | ||
* @file Executes a provided function once for each array element. | ||
* @version 1.0.2 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module array-for-each-x | ||
*/ | ||
"use strict";var toObject=_dereq_("to-object-x"),assertIsFunction=_dereq_("assert-is-function-x"),some=_dereq_("array-some-x");module.exports=function forEach(array,callBack){var object=toObject(array);assertIsFunction(callBack);var args=[object,function _wrapped(item,idx,obj){callBack.call(this,item,idx,obj)}];arguments.length>2&&(args[2]=arguments[2]),some.apply(void 0,args)}},{"array-some-x":4,"assert-is-function-x":5,"to-object-x":38}],3:[function(_dereq_,module,exports){/** | ||
* @file Cross-browser array slicer. | ||
* @version 1.1.0 | ||
* @version 1.2.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -19,3 +27,27 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toObject=_dereq_("to-object-x"),toInteger=_dereq_("to-integer-x"),toLength=_dereq_("to-length-x"),isUndefined=_dereq_("validate.io-undefined"),setRelative=function _seedRelative(value,length){return value<0?Math.max(length+value,0):Math.min(value,length)};module.exports=function _slice(array,start,end){var object=toObject(array),length=toLength(object.length),k=setRelative(toInteger(start),length),relativeEnd=isUndefined(end)?length:toInteger(end),finalEnd=setRelative(relativeEnd,length),val=[];val.length=Math.max(finalEnd-k,0);for(var next=0;k<finalEnd;)k in object&&(val[next]=object[k]),next+=1,k+=1;return val}},{"to-integer-x":33,"to-length-x":34,"to-object-x":35,"validate.io-undefined":37}],3:[function(_dereq_,module,exports){"use strict";var keys=_dereq_("object-keys"),foreach=_dereq_("foreach"),hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol(),toStr=Object.prototype.toString,isFunction=function(fn){return"function"==typeof fn&&"[object Function]"===toStr.call(fn)},supportsDescriptors=Object.defineProperty&&function(){var obj={};try{Object.defineProperty(obj,"x",{enumerable:!1,value:obj});for(var _ in obj)return!1;return obj.x===obj}catch(e){return!1}}(),defineProperty=function(object,name,value,predicate){(!(name in object)||isFunction(predicate)&&predicate())&&(supportsDescriptors?Object.defineProperty(object,name,{configurable:!0,enumerable:!1,value:value,writable:!0}):object[name]=value)},defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{},props=keys(map);hasSymbols&&(props=props.concat(Object.getOwnPropertySymbols(map))),foreach(props,function(name){defineProperty(object,name,map[name],predicates[name])})};defineProperties.supportsDescriptors=!!supportsDescriptors,module.exports=defineProperties},{foreach:7,"object-keys":29}],4:[function(_dereq_,module,exports){"use strict";var hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,isPrimitive=_dereq_("./helpers/isPrimitive"),isCallable=_dereq_("is-callable"),isDate=_dereq_("is-date-object"),isSymbol=_dereq_("is-symbol"),ordinaryToPrimitive=function OrdinaryToPrimitive(O,hint){if(void 0===O||null===O)throw new TypeError("Cannot call method on "+O);if("string"!=typeof hint||"number"!==hint&&"string"!==hint)throw new TypeError('hint must be "string" or "number"');var method,result,i,methodNames="string"===hint?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<methodNames.length;++i)if(method=O[methodNames[i]],isCallable(method)&&(result=method.call(O),isPrimitive(result)))return result;throw new TypeError("No default value")},GetMethod=function GetMethod(O,P){var func=O[P];if(null!==func&&void 0!==func){if(!isCallable(func))throw new TypeError(func+" returned for property "+P+" of object "+O+" is not a function");return func}};module.exports=function ToPrimitive(input,PreferredType){if(isPrimitive(input))return input;var hint="default";arguments.length>1&&(PreferredType===String?hint="string":PreferredType===Number&&(hint="number"));var exoticToPrim;if(hasSymbols&&(Symbol.toPrimitive?exoticToPrim=GetMethod(input,Symbol.toPrimitive):isSymbol(input)&&(exoticToPrim=Symbol.prototype.valueOf)),void 0!==exoticToPrim){var result=exoticToPrim.call(input,hint);if(isPrimitive(result))return result;throw new TypeError("unable to convert exotic object to primitive")}return"default"===hint&&(isDate(input)||isSymbol(input))&&(hint="string"),ordinaryToPrimitive(input,"default"===hint?"number":hint)}},{"./helpers/isPrimitive":5,"is-callable":12,"is-date-object":13,"is-symbol":23}],5:[function(_dereq_,module,exports){module.exports=function isPrimitive(value){return null===value||"function"!=typeof value&&"object"!=typeof value}},{}],6:[function(_dereq_,module,exports){function forEachArray(array,iterator,context){for(var i=0,len=array.length;i<len;i++)hasOwnProperty.call(array,i)&&iterator.call(context,array[i],i,array)}function forEachString(string,iterator,context){for(var i=0,len=string.length;i<len;i++)iterator.call(context,string.charAt(i),i,string)}function forEachObject(object,iterator,context){for(var k in object)hasOwnProperty.call(object,k)&&iterator.call(context,object[k],k,object)}var isFunction=_dereq_("is-function");module.exports=function forEach(list,iterator,context){if(!isFunction(iterator))throw new TypeError("iterator must be a function");arguments.length<3&&(context=this),"[object Array]"===toString.call(list)?forEachArray(list,iterator,context):"string"==typeof list?forEachString(list,iterator,context):forEachObject(list,iterator,context)};var toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty},{"is-function":16}],7:[function(_dereq_,module,exports){var hasOwn=Object.prototype.hasOwnProperty,toString=Object.prototype.toString;module.exports=function forEach(obj,fn,ctx){if("[object Function]"!==toString.call(fn))throw new TypeError("iterator must be a function");var l=obj.length;if(l===+l)for(var i=0;i<l;i++)fn.call(ctx,obj[i],i,obj);else for(var k in obj)hasOwn.call(obj,k)&&fn.call(ctx,obj[k],k,obj)}},{}],8:[function(_dereq_,module,exports){/** | ||
"use strict";var toObject=_dereq_("to-object-x"),toInteger=_dereq_("to-integer-x"),toLength=_dereq_("to-length-x"),isUndefined=_dereq_("validate.io-undefined"),setRelative=function _seedRelative(value,length){return value<0?Math.max(length+value,0):Math.min(value,length)};module.exports=function _slice(array,start,end){var object=toObject(array),length=toLength(object.length),k=setRelative(toInteger(start),length),relativeEnd=isUndefined(end)?length:toInteger(end),finalEnd=setRelative(relativeEnd,length),val=[];val.length=Math.max(finalEnd-k,0);for(var next=0;k<finalEnd;)k in object&&(val[next]=object[k]),next+=1,k+=1;return val}},{"to-integer-x":36,"to-length-x":37,"to-object-x":38,"validate.io-undefined":40}],4:[function(_dereq_,module,exports){/** | ||
* @file Tests whether some element passes the provided function. | ||
* @version 1.0.3 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module array-some-x | ||
*/ | ||
"use strict";var tests={properlyBoxesNonStrict:!0,properlyBoxesStrict:!0},nativeSome=Array.prototype.some;if(nativeSome)try{nativeSome.call([1],function(){tests.properlyBoxesStrict="string"==typeof this},"x");var fn=['return nativeSome.call("foo", function (_, __, context) {','if (Boolean(context) === false || typeof context !== "object") {',"tests.properlyBoxesNonStrict = false;}});"].join("");Function("nativeSome","tests",fn)(nativeSome,tests)}catch(e){nativeSome=null}var $some;if(nativeSome&&tests.properlyBoxesNonStrict&&tests.properlyBoxesStrict)$some=function some(array,callBack){var args=[callBack];return arguments.length>2&&args.push(arguments[2]),nativeSome.apply(array,args)};else{var toObject=_dereq_("to-object-x"),assertIsFunction=_dereq_("assert-is-function-x"),isString=_dereq_("is-string"),toLength=_dereq_("to-length-x"),isUndefined=_dereq_("validate.io-undefined"),splitString=!1===_dereq_("has-boxed-string-x");$some=function some(array,callBack){var object=toObject(array);assertIsFunction(callBack);var thisArg,iterable=splitString&&isString(object)?object.split(""):object,length=toLength(iterable.length);arguments.length>2&&(thisArg=arguments[2]);for(var i=0;i<length;i+=1)if(i in iterable){if(isUndefined(thisArg)?callBack(iterable[i],i,object):callBack.call(thisArg,iterable[i],i,object))return!0}return!1}}module.exports=$some},{"assert-is-function-x":5,"has-boxed-string-x":10,"is-string":25,"to-length-x":37,"to-object-x":38,"validate.io-undefined":40}],5:[function(_dereq_,module,exports){/** | ||
* @file If isFunction(callbackfn) is false, throw a TypeError exception. | ||
* @version 1.3.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module assert-is-function-x | ||
*/ | ||
"use strict";var isFunction=_dereq_("is-function-x"),safeToString=_dereq_("safe-to-string-x"),isPrimitive=_dereq_("is-primitive");module.exports=function assertIsFunction(callback){if(!isFunction(callback)){var msg=isPrimitive(callback)?safeToString(callback):"#<Object>";throw new TypeError(msg+" is not a function")}return callback}},{"is-function-x":18,"is-primitive":24,"safe-to-string-x":35}],6:[function(_dereq_,module,exports){"use strict";var keys=_dereq_("object-keys"),foreach=_dereq_("foreach"),hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol(),toStr=Object.prototype.toString,isFunction=function(fn){return"function"==typeof fn&&"[object Function]"===toStr.call(fn)},supportsDescriptors=Object.defineProperty&&function(){var obj={};try{Object.defineProperty(obj,"x",{enumerable:!1,value:obj});for(var _ in obj)return!1;return obj.x===obj}catch(e){return!1}}(),defineProperty=function(object,name,value,predicate){(!(name in object)||isFunction(predicate)&&predicate())&&(supportsDescriptors?Object.defineProperty(object,name,{configurable:!0,enumerable:!1,value:value,writable:!0}):object[name]=value)},defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{},props=keys(map);hasSymbols&&(props=props.concat(Object.getOwnPropertySymbols(map))),foreach(props,function(name){defineProperty(object,name,map[name],predicates[name])})};defineProperties.supportsDescriptors=!!supportsDescriptors,module.exports=defineProperties},{foreach:9,"object-keys":32}],7:[function(_dereq_,module,exports){"use strict";var hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,isPrimitive=_dereq_("./helpers/isPrimitive"),isCallable=_dereq_("is-callable"),isDate=_dereq_("is-date-object"),isSymbol=_dereq_("is-symbol"),ordinaryToPrimitive=function OrdinaryToPrimitive(O,hint){if(void 0===O||null===O)throw new TypeError("Cannot call method on "+O);if("string"!=typeof hint||"number"!==hint&&"string"!==hint)throw new TypeError('hint must be "string" or "number"');var method,result,i,methodNames="string"===hint?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<methodNames.length;++i)if(method=O[methodNames[i]],isCallable(method)&&(result=method.call(O),isPrimitive(result)))return result;throw new TypeError("No default value")},GetMethod=function GetMethod(O,P){var func=O[P];if(null!==func&&void 0!==func){if(!isCallable(func))throw new TypeError(func+" returned for property "+P+" of object "+O+" is not a function");return func}};module.exports=function ToPrimitive(input,PreferredType){if(isPrimitive(input))return input;var hint="default";arguments.length>1&&(PreferredType===String?hint="string":PreferredType===Number&&(hint="number"));var exoticToPrim;if(hasSymbols&&(Symbol.toPrimitive?exoticToPrim=GetMethod(input,Symbol.toPrimitive):isSymbol(input)&&(exoticToPrim=Symbol.prototype.valueOf)),void 0!==exoticToPrim){var result=exoticToPrim.call(input,hint);if(isPrimitive(result))return result;throw new TypeError("unable to convert exotic object to primitive")}return"default"===hint&&(isDate(input)||isSymbol(input))&&(hint="string"),ordinaryToPrimitive(input,"default"===hint?"number":hint)}},{"./helpers/isPrimitive":8,"is-callable":15,"is-date-object":16,"is-symbol":26}],8:[function(_dereq_,module,exports){module.exports=function isPrimitive(value){return null===value||"function"!=typeof value&&"object"!=typeof value}},{}],9:[function(_dereq_,module,exports){var hasOwn=Object.prototype.hasOwnProperty,toString=Object.prototype.toString;module.exports=function forEach(obj,fn,ctx){if("[object Function]"!==toString.call(fn))throw new TypeError("iterator must be a function");var l=obj.length;if(l===+l)for(var i=0;i<l;i++)fn.call(ctx,obj[i],i,obj);else for(var k in obj)hasOwn.call(obj,k)&&fn.call(ctx,obj[k],k,obj)}},{}],10:[function(_dereq_,module,exports){/** | ||
* @file Check support of by-index access of string characters. | ||
* @version 1.0.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module has-boxed-string-x | ||
*/ | ||
"use strict";var boxedString=Object("a");module.exports="a"===boxedString[0]&&0 in boxedString},{}],11:[function(_dereq_,module,exports){/** | ||
* @file Used to determine whether an object has an own property with the specified property key. | ||
@@ -29,3 +61,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-hasownproperty|7.3.11 HasOwnProperty (O, P)} | ||
*/ | ||
"use strict";var toObject=_dereq_("to-object-x"),toPrimitive=_dereq_("es-to-primitive/es6"),safeToString=_dereq_("safe-to-string-x"),isSymbol=_dereq_("is-symbol"),hop=Object.prototype.hasOwnProperty;module.exports=function hasOwnProperty(object,property){var prop=isSymbol(property)?property:safeToString(toPrimitive(property,String));return hop.call(toObject(object),prop)}},{"es-to-primitive/es6":4,"is-symbol":23,"safe-to-string-x":32,"to-object-x":35}],9:[function(_dereq_,module,exports){/** | ||
"use strict";var toObject=_dereq_("to-object-x"),toPrimitive=_dereq_("es-to-primitive/es6"),safeToString=_dereq_("safe-to-string-x"),isSymbol=_dereq_("is-symbol"),hop=Object.prototype.hasOwnProperty;module.exports=function hasOwnProperty(object,property){var prop=isSymbol(property)?property:safeToString(toPrimitive(property,String));return hop.call(toObject(object),prop)}},{"es-to-primitive/es6":7,"is-symbol":26,"safe-to-string-x":35,"to-object-x":38}],12:[function(_dereq_,module,exports){/** | ||
* @file Tests if ES6 Symbol is supported. | ||
@@ -38,3 +70,3 @@ * @version 1.4.0 | ||
*/ | ||
"use strict";module.exports="function"==typeof Symbol&&"symbol"==typeof Symbol("")},{}],10:[function(_dereq_,module,exports){/** | ||
"use strict";module.exports="function"==typeof Symbol&&"symbol"==typeof Symbol("")},{}],13:[function(_dereq_,module,exports){/** | ||
* @file Tests if ES6 @@toStringTag is supported. | ||
@@ -48,3 +80,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag} | ||
*/ | ||
"use strict";module.exports=_dereq_("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag},{"has-symbol-support-x":9}],11:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString,isStandardArguments=function isArguments(value){return"[object Arguments]"===toStr.call(value)},isLegacyArguments=function isArguments(value){return!!isStandardArguments(value)||null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Array]"!==toStr.call(value)&&"[object Function]"===toStr.call(value.callee)},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments},{}],12:[function(_dereq_,module,exports){"use strict";var fnToStr=Function.prototype.toString,constructorRegex=/^\s*class /,isES6ClassFn=function isES6ClassFn(value){try{var spaceStripped=fnToStr.call(value).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return constructorRegex.test(spaceStripped)}catch(e){return!1}},tryFunctionObject=function tryFunctionObject(value){try{return!isES6ClassFn(value)&&(fnToStr.call(value),!0)}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isCallable(value){if(!value)return!1;if("function"!=typeof value&&"object"!=typeof value)return!1;if(hasToStringTag)return tryFunctionObject(value);if(isES6ClassFn(value))return!1;var strClass=toStr.call(value);return"[object Function]"===strClass||"[object GeneratorFunction]"===strClass}},{}],13:[function(_dereq_,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function tryDateObject(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isDateObject(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],14:[function(_dereq_,module,exports){/** | ||
"use strict";module.exports=_dereq_("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag},{"has-symbol-support-x":12}],14:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString,isStandardArguments=function isArguments(value){return"[object Arguments]"===toStr.call(value)},isLegacyArguments=function isArguments(value){return!!isStandardArguments(value)||null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Array]"!==toStr.call(value)&&"[object Function]"===toStr.call(value.callee)},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments},{}],15:[function(_dereq_,module,exports){"use strict";var fnToStr=Function.prototype.toString,constructorRegex=/^\s*class /,isES6ClassFn=function isES6ClassFn(value){try{var spaceStripped=fnToStr.call(value).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return constructorRegex.test(spaceStripped)}catch(e){return!1}},tryFunctionObject=function tryFunctionObject(value){try{return!isES6ClassFn(value)&&(fnToStr.call(value),!0)}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isCallable(value){if(!value)return!1;if("function"!=typeof value&&"object"!=typeof value)return!1;if(hasToStringTag)return tryFunctionObject(value);if(isES6ClassFn(value))return!1;var strClass=toStr.call(value);return"[object Function]"===strClass||"[object GeneratorFunction]"===strClass}},{}],16:[function(_dereq_,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function tryDateObject(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isDateObject(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],17:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for Number.isFinite. | ||
@@ -58,3 +90,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-number.isfinite|20.1.2.2 Number.isFinite ( number )} | ||
*/ | ||
"use strict";var $isFinite,$isNaN=_dereq_("is-nan");if("function"==typeof Number.isFinite){var MAX_SAFE_INTEGER=_dereq_("max-safe-integer");try{Number.isFinite(MAX_SAFE_INTEGER)&&!1===Number.isFinite(Infinity)&&($isFinite=Number.isFinite)}catch(ignore){}}module.exports=$isFinite||function isFinite(number){return!("number"!=typeof number||$isNaN(number)||number===Infinity||number===-Infinity)}},{"is-nan":18,"max-safe-integer":26}],15:[function(_dereq_,module,exports){/** | ||
"use strict";var $isFinite,$isNaN=_dereq_("is-nan");if("function"==typeof Number.isFinite){var MAX_SAFE_INTEGER=_dereq_("max-safe-integer");try{Number.isFinite(MAX_SAFE_INTEGER)&&!1===Number.isFinite(Infinity)&&($isFinite=Number.isFinite)}catch(ignore){}}module.exports=$isFinite||function isFinite(number){return!("number"!=typeof number||$isNaN(number)||number===Infinity||number===-Infinity)}},{"is-nan":20,"max-safe-integer":29}],18:[function(_dereq_,module,exports){/** | ||
* @file Determine whether a given value is a function object. | ||
@@ -67,3 +99,3 @@ * @version 1.4.0 | ||
*/ | ||
"use strict";var fToString=Function.prototype.toString,toStringTag=_dereq_("to-string-tag-x"),hasToStringTag=_dereq_("has-to-string-tag-x"),isPrimitive=_dereq_("is-primitive"),constructorRegex=/^\s*class /,isES6ClassFn=function isES6ClassFunc(value){try{var spaceStripped=fToString.call(value).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return constructorRegex.test(spaceStripped)}catch(ignore){}return!1},tryFuncToString=function funcToString(value){try{return!isES6ClassFn(value)&&(fToString.call(value),!0)}catch(ignore){}return!1};module.exports=function isFunction(value){if(isPrimitive(value))return!1;if(hasToStringTag)return tryFuncToString(value);if(isES6ClassFn(value))return!1;var strTag=toStringTag(value);return"[object Function]"===strTag||"[object GeneratorFunction]"===strTag||"[object AsyncFunction]"===strTag}},{"has-to-string-tag-x":10,"is-primitive":22,"to-string-tag-x":36}],16:[function(_dereq_,module,exports){module.exports=function isFunction(fn){var string=toString.call(fn);return"[object Function]"===string||"function"==typeof fn&&"[object RegExp]"!==string||"undefined"!=typeof window&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)};var toString=Object.prototype.toString},{}],17:[function(_dereq_,module,exports){"use strict";module.exports=function isNaN(value){return value!==value}},{}],18:[function(_dereq_,module,exports){"use strict";var define=_dereq_("define-properties"),implementation=_dereq_("./implementation");define(implementation,{getPolyfill:_dereq_("./polyfill"),implementation:implementation,shim:_dereq_("./shim")}),module.exports=implementation},{"./implementation":17,"./polyfill":19,"./shim":20,"define-properties":3}],19:[function(_dereq_,module,exports){"use strict";var implementation=_dereq_("./implementation");module.exports=function getPolyfill(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:implementation}},{"./implementation":17}],20:[function(_dereq_,module,exports){"use strict";var define=_dereq_("define-properties"),getPolyfill=_dereq_("./polyfill");module.exports=function shimNumberIsNaN(){var polyfill=getPolyfill();return define(Number,{isNaN:polyfill},{isNaN:function(){return Number.isNaN!==polyfill}}),polyfill}},{"./polyfill":19,"define-properties":3}],21:[function(_dereq_,module,exports){/** | ||
"use strict";var fToString=Function.prototype.toString,toStringTag=_dereq_("to-string-tag-x"),hasToStringTag=_dereq_("has-to-string-tag-x"),isPrimitive=_dereq_("is-primitive"),constructorRegex=/^\s*class /,isES6ClassFn=function isES6ClassFunc(value){try{var spaceStripped=fToString.call(value).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return constructorRegex.test(spaceStripped)}catch(ignore){}return!1},tryFuncToString=function funcToString(value){try{return!isES6ClassFn(value)&&(fToString.call(value),!0)}catch(ignore){}return!1};module.exports=function isFunction(value){if(isPrimitive(value))return!1;if(hasToStringTag)return tryFuncToString(value);if(isES6ClassFn(value))return!1;var strTag=toStringTag(value);return"[object Function]"===strTag||"[object GeneratorFunction]"===strTag||"[object AsyncFunction]"===strTag}},{"has-to-string-tag-x":13,"is-primitive":24,"to-string-tag-x":39}],19:[function(_dereq_,module,exports){"use strict";module.exports=function isNaN(value){return value!==value}},{}],20:[function(_dereq_,module,exports){"use strict";var define=_dereq_("define-properties"),implementation=_dereq_("./implementation");define(implementation,{getPolyfill:_dereq_("./polyfill"),implementation:implementation,shim:_dereq_("./shim")}),module.exports=implementation},{"./implementation":19,"./polyfill":21,"./shim":22,"define-properties":6}],21:[function(_dereq_,module,exports){"use strict";var implementation=_dereq_("./implementation");module.exports=function getPolyfill(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:implementation}},{"./implementation":19}],22:[function(_dereq_,module,exports){"use strict";var define=_dereq_("define-properties"),getPolyfill=_dereq_("./polyfill");module.exports=function shimNumberIsNaN(){var polyfill=getPolyfill();return define(Number,{isNaN:polyfill},{isNaN:function(){return Number.isNaN!==polyfill}}),polyfill}},{"./polyfill":21,"define-properties":6}],23:[function(_dereq_,module,exports){/** | ||
* @file Checks if `value` is `null` or `undefined`. | ||
@@ -76,3 +108,3 @@ * @version 1.4.0 | ||
*/ | ||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":24,"validate.io-undefined":37}],22:[function(_dereq_,module,exports){"use strict";module.exports=function isPrimitive(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},{}],23:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],24:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],25:[function(_dereq_,module,exports){/** | ||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":27,"validate.io-undefined":40}],24:[function(_dereq_,module,exports){"use strict";module.exports=function isPrimitive(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},{}],25:[function(_dereq_,module,exports){"use strict";var strValue=String.prototype.valueOf,tryStringObject=function tryStringObject(value){try{return strValue.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isString(value){return"string"==typeof value||"object"==typeof value&&(hasToStringTag?tryStringObject(value):"[object String]"===toStr.call(value))}},{}],26:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],27:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],28:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for Math.sign. | ||
@@ -86,3 +118,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-math.sign|20.2.2.29 Math.sign(x)} | ||
*/ | ||
"use strict";var $sign,$isNaN=_dereq_("is-nan");if("function"==typeof Math.sign)try{1===Math.sign(10)&&-1===Math.sign(-10)&&0===Math.sign(0)&&($sign=Math.sign)}catch(ignore){}module.exports=$sign||function sign(x){var n=Number(x);return 0===n||$isNaN(n)?n:n>0?1:-1}},{"is-nan":18}],26:[function(_dereq_,module,exports){"use strict";module.exports=9007199254740991},{}],27:[function(_dereq_,module,exports){/** | ||
"use strict";var $sign,$isNaN=_dereq_("is-nan");if("function"==typeof Math.sign)try{1===Math.sign(10)&&-1===Math.sign(-10)&&0===Math.sign(0)&&($sign=Math.sign)}catch(ignore){}module.exports=$sign||function sign(x){var n=Number(x);return 0===n||$isNaN(n)?n:n>0?1:-1}},{"is-nan":20}],29:[function(_dereq_,module,exports){"use strict";module.exports=9007199254740991},{}],30:[function(_dereq_,module,exports){/** | ||
* @file Sham for Object.defineProperty | ||
@@ -95,3 +127,3 @@ * @version 2.0.0 | ||
*/ | ||
"use strict";var definePropertyFallback,defineGetter,defineSetter,lookupGetter,lookupSetter,isPrimitive=_dereq_("is-primitive"),owns=_dereq_("has-own-property-x"),$defineProperty=Object.defineProperty,prototypeOfObject=Object.prototype,supportsAccessors=owns(prototypeOfObject,"__defineGetter__");supportsAccessors&&(defineGetter=prototypeOfObject.__defineGetter__,defineSetter=prototypeOfObject.__defineSetter__,lookupGetter=prototypeOfObject.__lookupGetter__,lookupSetter=prototypeOfObject.__lookupSetter__);var doesDefinePropertyWork=function _doesDefinePropertyWork(object){try{return $defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){return!1}};if($defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));!1!==definePropertyWorksOnObject&&!1!==definePropertyWorksOnDom||(definePropertyFallback=Object.defineProperty)}if(!1===Boolean($defineProperty)||definePropertyFallback){$defineProperty=function defineProperty(object,property,descriptor){if(isPrimitive(object))throw new TypeError("Object.defineProperty called on non-object: "+object);if(isPrimitive(descriptor))throw new TypeError("Property description must be an object: "+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if("value"in descriptor)if(supportsAccessors&&(lookupGetter.call(object,property)||lookupSetter.call(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{var hasGetter="get"in descriptor,hasSetter="set"in descriptor;if(!1===supportsAccessors&&(hasGetter||hasSetter))throw new TypeError("getters & setters can not be defined on this javascript engine");hasGetter&&defineGetter.call(object,property,descriptor.get),hasSetter&&defineSetter.call(object,property,descriptor.set)}return object}}module.exports=$defineProperty},{"has-own-property-x":8,"is-primitive":22}],28:[function(_dereq_,module,exports){/** | ||
"use strict";var definePropertyFallback,defineGetter,defineSetter,lookupGetter,lookupSetter,isPrimitive=_dereq_("is-primitive"),owns=_dereq_("has-own-property-x"),$defineProperty=Object.defineProperty,prototypeOfObject=Object.prototype,supportsAccessors=owns(prototypeOfObject,"__defineGetter__");supportsAccessors&&(defineGetter=prototypeOfObject.__defineGetter__,defineSetter=prototypeOfObject.__defineSetter__,lookupGetter=prototypeOfObject.__lookupGetter__,lookupSetter=prototypeOfObject.__lookupSetter__);var doesDefinePropertyWork=function _doesDefinePropertyWork(object){try{return $defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){return!1}};if($defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));!1!==definePropertyWorksOnObject&&!1!==definePropertyWorksOnDom||(definePropertyFallback=Object.defineProperty)}if(!1===Boolean($defineProperty)||definePropertyFallback){$defineProperty=function defineProperty(object,property,descriptor){if(isPrimitive(object))throw new TypeError("Object.defineProperty called on non-object: "+object);if(isPrimitive(descriptor))throw new TypeError("Property description must be an object: "+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if("value"in descriptor)if(supportsAccessors&&(lookupGetter.call(object,property)||lookupSetter.call(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{var hasGetter="get"in descriptor,hasSetter="set"in descriptor;if(!1===supportsAccessors&&(hasGetter||hasSetter))throw new TypeError("getters & setters can not be defined on this javascript engine");hasGetter&&defineGetter.call(object,property,descriptor.get),hasSetter&&defineSetter.call(object,property,descriptor.set)}return object}}module.exports=$defineProperty},{"has-own-property-x":11,"is-primitive":24}],31:[function(_dereq_,module,exports){/** | ||
* @file An ES6 Object.keys shim. | ||
@@ -104,3 +136,3 @@ * @version 1.1.0 | ||
*/ | ||
"use strict";var objectKeys,keysWorksWithArguments,keysHasArgumentsLengthBug,worksWithPrimitives,toObject,originalKeys=Object.keys;if(originalKeys)try{if(keysWorksWithArguments=function(){return 2===originalKeys(arguments).length}(1,2),keysHasArgumentsLengthBug=function(){var argKeys=originalKeys(arguments);return 1!==arguments.length||1!==argKeys.length||1!==argKeys[0]}(1),worksWithPrimitives=0===originalKeys(1).length,!1===keysWorksWithArguments||keysHasArgumentsLengthBug||!1===worksWithPrimitives){var slice=_dereq_("array-slice-x"),isArguments=_dereq_("is-arguments");toObject=_dereq_("to-object-x"),objectKeys=function keys(object){return originalKeys(isArguments(object)?slice(object):toObject(object))}}}catch(e){}if(!(objectKeys=objectKeys||originalKeys)){var shim=_dereq_("object-keys");toObject=_dereq_("to-object-x"),objectKeys=function keys(object){return shim(toObject(object))}}module.exports=objectKeys},{"array-slice-x":2,"is-arguments":11,"object-keys":29,"to-object-x":35}],29:[function(_dereq_,module,exports){"use strict";var has=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,slice=Array.prototype.slice,isArgs=_dereq_("./isArguments"),isEnumerable=Object.prototype.propertyIsEnumerable,hasDontEnumBug=!isEnumerable.call({toString:null},"toString"),hasProtoEnumBug=isEnumerable.call(function(){},"prototype"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(o){var ctor=o.constructor;return ctor&&ctor.prototype===o},excludedKeys={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var k in window)try{if(!excludedKeys["$"+k]&&has.call(window,k)&&null!==window[k]&&"object"==typeof window[k])try{equalsConstructorPrototype(window[k])}catch(e){return!0}}catch(e){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(o){if("undefined"==typeof window||!hasAutomationEqualityBug)return equalsConstructorPrototype(o);try{return equalsConstructorPrototype(o)}catch(e){return!1}},keysShim=function keys(object){var isObject=null!==object&&"object"==typeof object,isFunction="[object Function]"===toStr.call(object),isArguments=isArgs(object),isString=isObject&&"[object String]"===toStr.call(object),theKeys=[];if(!isObject&&!isFunction&&!isArguments)throw new TypeError("Object.keys called on a non-object");var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0))for(var i=0;i<object.length;++i)theKeys.push(String(i));if(isArguments&&object.length>0)for(var j=0;j<object.length;++j)theKeys.push(String(j));else for(var name in object)skipProto&&"prototype"===name||!has.call(object,name)||theKeys.push(String(name));if(hasDontEnumBug)for(var skipConstructor=equalsConstructorPrototypeIfNotBuggy(object),k=0;k<dontEnums.length;++k)skipConstructor&&"constructor"===dontEnums[k]||!has.call(object,dontEnums[k])||theKeys.push(dontEnums[k]);return theKeys};keysShim.shim=function shimObjectKeys(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var originalKeys=Object.keys;Object.keys=function keys(object){return originalKeys(isArgs(object)?slice.call(object):object)}}}else Object.keys=keysShim;return Object.keys||keysShim},module.exports=keysShim},{"./isArguments":30}],30:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;module.exports=function isArguments(value){var str=toStr.call(value),isArgs="[object Arguments]"===str;return isArgs||(isArgs="[object Array]"!==str&&null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Function]"===toStr.call(value.callee)),isArgs}},{}],31:[function(_dereq_,module,exports){/** | ||
"use strict";var objectKeys,keysWorksWithArguments,keysHasArgumentsLengthBug,worksWithPrimitives,toObject,originalKeys=Object.keys;if(originalKeys)try{if(keysWorksWithArguments=function(){return 2===originalKeys(arguments).length}(1,2),keysHasArgumentsLengthBug=function(){var argKeys=originalKeys(arguments);return 1!==arguments.length||1!==argKeys.length||1!==argKeys[0]}(1),worksWithPrimitives=0===originalKeys(1).length,!1===keysWorksWithArguments||keysHasArgumentsLengthBug||!1===worksWithPrimitives){var slice=_dereq_("array-slice-x"),isArguments=_dereq_("is-arguments");toObject=_dereq_("to-object-x"),objectKeys=function keys(object){return originalKeys(isArguments(object)?slice(object):toObject(object))}}}catch(e){}if(!(objectKeys=objectKeys||originalKeys)){var shim=_dereq_("object-keys");toObject=_dereq_("to-object-x"),objectKeys=function keys(object){return shim(toObject(object))}}module.exports=objectKeys},{"array-slice-x":3,"is-arguments":14,"object-keys":32,"to-object-x":38}],32:[function(_dereq_,module,exports){"use strict";var has=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,slice=Array.prototype.slice,isArgs=_dereq_("./isArguments"),isEnumerable=Object.prototype.propertyIsEnumerable,hasDontEnumBug=!isEnumerable.call({toString:null},"toString"),hasProtoEnumBug=isEnumerable.call(function(){},"prototype"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(o){var ctor=o.constructor;return ctor&&ctor.prototype===o},excludedKeys={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var k in window)try{if(!excludedKeys["$"+k]&&has.call(window,k)&&null!==window[k]&&"object"==typeof window[k])try{equalsConstructorPrototype(window[k])}catch(e){return!0}}catch(e){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(o){if("undefined"==typeof window||!hasAutomationEqualityBug)return equalsConstructorPrototype(o);try{return equalsConstructorPrototype(o)}catch(e){return!1}},keysShim=function keys(object){var isObject=null!==object&&"object"==typeof object,isFunction="[object Function]"===toStr.call(object),isArguments=isArgs(object),isString=isObject&&"[object String]"===toStr.call(object),theKeys=[];if(!isObject&&!isFunction&&!isArguments)throw new TypeError("Object.keys called on a non-object");var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0))for(var i=0;i<object.length;++i)theKeys.push(String(i));if(isArguments&&object.length>0)for(var j=0;j<object.length;++j)theKeys.push(String(j));else for(var name in object)skipProto&&"prototype"===name||!has.call(object,name)||theKeys.push(String(name));if(hasDontEnumBug)for(var skipConstructor=equalsConstructorPrototypeIfNotBuggy(object),k=0;k<dontEnums.length;++k)skipConstructor&&"constructor"===dontEnums[k]||!has.call(object,dontEnums[k])||theKeys.push(dontEnums[k]);return theKeys};keysShim.shim=function shimObjectKeys(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var originalKeys=Object.keys;Object.keys=function keys(object){return originalKeys(isArgs(object)?slice.call(object):object)}}}else Object.keys=keysShim;return Object.keys||keysShim},module.exports=keysShim},{"./isArguments":33}],33:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;module.exports=function isArguments(value){var str=toStr.call(value),isArgs="[object Arguments]"===str;return isArgs||(isArgs="[object Array]"!==str&&null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Function]"===toStr.call(value.callee)),isArgs}},{}],34:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for RequireObjectCoercible. | ||
@@ -114,3 +146,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )} | ||
*/ | ||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":21}],32:[function(_dereq_,module,exports){/** | ||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":23}],35:[function(_dereq_,module,exports){/** | ||
* @file Like ES6 ToString but handles Symbols too. | ||
@@ -124,3 +156,3 @@ * @see {@link https://github.com/Xotic750/to-string-x|to-string-x} | ||
*/ | ||
"use strict";var isSymbol=_dereq_("is-symbol"),pToString=_dereq_("has-symbol-support-x")&&Symbol.prototype.toString;module.exports=function safeToString(value){return pToString&&isSymbol(value)?pToString.call(value):String(value)}},{"has-symbol-support-x":9,"is-symbol":23}],33:[function(_dereq_,module,exports){/** | ||
"use strict";var isSymbol=_dereq_("is-symbol"),pToString=_dereq_("has-symbol-support-x")&&Symbol.prototype.toString;module.exports=function safeToString(value){return pToString&&isSymbol(value)?pToString.call(value):String(value)}},{"has-symbol-support-x":12,"is-symbol":26}],36:[function(_dereq_,module,exports){/** | ||
* @file ToInteger converts 'argument' to an integral numeric value. | ||
@@ -134,3 +166,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger|7.1.4 ToInteger ( argument )} | ||
*/ | ||
"use strict";var $isNaN=_dereq_("is-nan"),$isFinite=_dereq_("is-finite-x"),$sign=_dereq_("math-sign-x");module.exports=function ToInteger(value){var number=Number(value);return $isNaN(number)?0:0===number||!1===$isFinite(number)?number:$sign(number)*Math.floor(Math.abs(number))}},{"is-finite-x":14,"is-nan":18,"math-sign-x":25}],34:[function(_dereq_,module,exports){/** | ||
"use strict";var $isNaN=_dereq_("is-nan"),$isFinite=_dereq_("is-finite-x"),$sign=_dereq_("math-sign-x");module.exports=function ToInteger(value){var number=Number(value);return $isNaN(number)?0:0===number||!1===$isFinite(number)?number:$sign(number)*Math.floor(Math.abs(number))}},{"is-finite-x":17,"is-nan":20,"math-sign-x":28}],37:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for ToLength. | ||
@@ -144,3 +176,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tolength|7.1.15 ToLength ( argument )} | ||
*/ | ||
"use strict";var toInteger=_dereq_("to-integer-x"),MAX_SAFE_INTEGER=_dereq_("max-safe-integer");module.exports=function ToLength(value){var len=toInteger(value);return len<=0?0:len>MAX_SAFE_INTEGER?MAX_SAFE_INTEGER:len}},{"max-safe-integer":26,"to-integer-x":33}],35:[function(_dereq_,module,exports){/** | ||
"use strict";var toInteger=_dereq_("to-integer-x"),MAX_SAFE_INTEGER=_dereq_("max-safe-integer");module.exports=function ToLength(value){var len=toInteger(value);return len<=0?0:len>MAX_SAFE_INTEGER?MAX_SAFE_INTEGER:len}},{"max-safe-integer":29,"to-integer-x":36}],38:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for ToObject. | ||
@@ -154,3 +186,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-toobject|7.1.13 ToObject ( argument )} | ||
*/ | ||
"use strict";var $requireObjectCoercible=_dereq_("require-object-coercible-x");module.exports=function ToObject(value){return Object($requireObjectCoercible(value))}},{"require-object-coercible-x":31}],36:[function(_dereq_,module,exports){/** | ||
"use strict";var $requireObjectCoercible=_dereq_("require-object-coercible-x");module.exports=function ToObject(value){return Object($requireObjectCoercible(value))}},{"require-object-coercible-x":34}],39:[function(_dereq_,module,exports){/** | ||
* @file Get an object's ES6 @@toStringTag. | ||
@@ -164,2 +196,2 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )} | ||
*/ | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":24,"validate.io-undefined":37}],37:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}]},{},[1])(1)}); | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":27,"validate.io-undefined":40}],40:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}]},{},[1])(1)}); |
{ | ||
"name": "define-properties-x", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Define multiple non-enumerable properties at once.", | ||
@@ -36,3 +36,3 @@ "homepage": "https://github.com/Xotic750/define-properties-x", | ||
"dependencies": { | ||
"for-each": "^0.3.2", | ||
"array-for-each-x": "^1.0.2", | ||
"has-symbol-support-x": "^1.4.0", | ||
@@ -39,0 +39,0 @@ "is-function-x": "^1.4.0", |
@@ -27,3 +27,3 @@ <a href="https://travis-ci.org/Xotic750/define-properties-x" | ||
**See**: [define-properties](https://www.npmjs.com/package/define-properties) | ||
**Version**: 2.0.0 | ||
**Version**: 2.0.1 | ||
**Author**: Xotic750 <Xotic750@gmail.com> | ||
@@ -30,0 +30,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
define-properties |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
133904
2300
0
2
+ Addedarray-for-each-x@^1.0.2
+ Addedarray-for-each-x@1.2.0(transitive)
+ Addedarray-some-x@1.3.0(transitive)
+ Addedassert-is-function-x@1.5.0(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedhas-boxed-string-x@1.1.1(transitive)
+ Addedis-finite-x@1.3.0(transitive)
+ Addedis-nan@1.3.2(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedmath-sign-x@1.3.0(transitive)
+ Addedmax-safe-integer@1.0.1(transitive)
+ Addedsafe-to-string-x@1.5.0(transitive)
+ Addedto-integer-x@1.4.0(transitive)
+ Addedto-length-x@1.4.0(transitive)
- Removedfor-each@^0.3.2
- Removedfor-each@0.3.3(transitive)
- Removedis-callable@1.2.7(transitive)