is-array-like-x
Advanced tools
Comparing version 1.0.7 to 1.0.8
18
index.js
@@ -42,3 +42,3 @@ /** | ||
* | ||
* @version 1.0.7 | ||
* @version 1.0.8 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -56,3 +56,3 @@ * @copyright Xotic750 | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:2, maxcomplexity:1 */ | ||
maxstatements:4, maxcomplexity:1 */ | ||
@@ -64,5 +64,5 @@ /*global module */ | ||
var ES = require('es-abstract'), | ||
isLength = require('is-length-x'), | ||
isNil = require('is-nil-x'); | ||
var isNil = require('is-nil-x'); | ||
var isFunction = require('is-function-x'); | ||
var isLength = require('lodash.islength'); | ||
@@ -74,3 +74,3 @@ /** | ||
* | ||
* @param {*} subject The object to be tested. | ||
* @param {*} value The object to be tested. | ||
* @return {boolean} Returns `true` if subject is array-like, else `false`. | ||
@@ -85,7 +85,5 @@ * @example | ||
*/ | ||
module.exports = function isArrayLike(subject) { | ||
return !isNil(subject) && | ||
!ES.IsCallable(subject) && | ||
isLength(subject.length); | ||
module.exports = function isArrayLike(value) { | ||
return !isNil(value) && !isFunction(value) && isLength(value.length); | ||
}; | ||
}()); |
@@ -43,3 +43,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){ | ||
* | ||
* @version 1.0.7 | ||
* @version 1.0.8 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -57,3 +57,3 @@ * @copyright Xotic750 | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:2, maxcomplexity:1 */ | ||
maxstatements:4, maxcomplexity:1 */ | ||
@@ -65,5 +65,5 @@ /*global module */ | ||
var ES = _dereq_('es-abstract'), | ||
isLength = _dereq_('is-length-x'), | ||
isNil = _dereq_('is-nil-x'); | ||
var isNil = _dereq_('is-nil-x'); | ||
var isFunction = _dereq_('is-function-x'); | ||
var isLength = _dereq_('lodash.islength'); | ||
@@ -75,3 +75,3 @@ /** | ||
* | ||
* @param {*} subject The object to be tested. | ||
* @param {*} value The object to be tested. | ||
* @return {boolean} Returns `true` if subject is array-like, else `false`. | ||
@@ -86,627 +86,181 @@ * @example | ||
*/ | ||
module.exports = function isArrayLike(subject) { | ||
return !isNil(subject) && | ||
!ES.IsCallable(subject) && | ||
isLength(subject.length); | ||
module.exports = function isArrayLike(value) { | ||
return !isNil(value) && !isFunction(value) && isLength(value.length); | ||
}; | ||
}()); | ||
},{"es-abstract":10,"is-length-x":17,"is-nil-x":18}],2:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
},{"is-function-x":4,"is-nil-x":5,"lodash.islength":7}],2:[function(_dereq_,module,exports){ | ||
/** | ||
* @file | ||
* <a href="https://travis-ci.org/Xotic750/has-symbol-support-x" | ||
* title="Travis status"> | ||
* <img | ||
* src="https://travis-ci.org/Xotic750/has-symbol-support-x.svg?branch=master" | ||
* alt="Travis status" height="18"> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/has-symbol-support-x" | ||
* title="Dependency status"> | ||
* <img src="https://david-dm.org/Xotic750/has-symbol-support-x.svg" | ||
* alt="Dependency status" height="18"/> | ||
* </a> | ||
* <a | ||
* href="https://david-dm.org/Xotic750/has-symbol-support-x#info=devDependencies" | ||
* title="devDependency status"> | ||
* <img src="https://david-dm.org/Xotic750/has-symbol-support-x/dev-status.svg" | ||
* alt="devDependency status" height="18"/> | ||
* </a> | ||
* <a href="https://badge.fury.io/js/has-symbol-support-x" title="npm version"> | ||
* <img src="https://badge.fury.io/js/has-symbol-support-x.svg" | ||
* alt="npm version" height="18"> | ||
* </a> | ||
* | ||
* hasSymbolSupport module. Tests if `Symbol` exists and creates the correct | ||
* type. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.0.6 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module has-symbol-support-x | ||
*/ | ||
var $isNaN = Number.isNaN || function (a) { return a !== a; }; | ||
var $isFinite = _dereq_('./helpers/isFinite'); | ||
/*jslint maxlen:80, es6:true, white:true */ | ||
var sign = _dereq_('./helpers/sign'); | ||
var mod = _dereq_('./helpers/mod'); | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:1, maxcomplexity:1 */ | ||
var IsCallable = _dereq_('is-callable'); | ||
var toPrimitive = _dereq_('es-to-primitive/es5'); | ||
/*global module */ | ||
// https://es5.github.io/#x9 | ||
var ES5 = { | ||
ToPrimitive: toPrimitive, | ||
;(function () { | ||
'use strict'; | ||
ToBoolean: function ToBoolean(value) { | ||
return Boolean(value); | ||
}, | ||
ToNumber: function ToNumber(value) { | ||
return Number(value); | ||
}, | ||
ToInteger: function ToInteger(value) { | ||
var number = this.ToNumber(value); | ||
if ($isNaN(number)) { return 0; } | ||
if (number === 0 || !$isFinite(number)) { return number; } | ||
return sign(number) * Math.floor(Math.abs(number)); | ||
}, | ||
ToInt32: function ToInt32(x) { | ||
return this.ToNumber(x) >> 0; | ||
}, | ||
ToUint32: function ToUint32(x) { | ||
return this.ToNumber(x) >>> 0; | ||
}, | ||
ToUint16: function ToUint16(value) { | ||
var number = this.ToNumber(value); | ||
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; } | ||
var posInt = sign(number) * Math.floor(Math.abs(number)); | ||
return mod(posInt, 0x10000); | ||
}, | ||
ToString: function ToString(value) { | ||
return String(value); | ||
}, | ||
ToObject: function ToObject(value) { | ||
this.CheckObjectCoercible(value); | ||
return Object(value); | ||
}, | ||
CheckObjectCoercible: function CheckObjectCoercible(value, optMessage) { | ||
/* jshint eqnull:true */ | ||
if (value == null) { | ||
throw new TypeError(optMessage || 'Cannot call method on ' + value); | ||
} | ||
return value; | ||
}, | ||
IsCallable: IsCallable, | ||
SameValue: function SameValue(x, y) { | ||
if (x === y) { // 0 === -0, but they are not identical. | ||
if (x === 0) { return 1 / x === 1 / y; } | ||
return true; | ||
} | ||
return $isNaN(x) && $isNaN(y); | ||
} | ||
}; | ||
/** | ||
* Indicates if `Symbol`exists and creates the correct type. | ||
* `true`, if it exists and creates the correct type, otherwise `false`. | ||
* | ||
* @type boolean | ||
*/ | ||
module.exports = typeof Symbol === 'function' && typeof Symbol() === 'symbol'; | ||
}()); | ||
module.exports = ES5; | ||
},{}],3:[function(_dereq_,module,exports){ | ||
/** | ||
* @file | ||
* <a href="https://travis-ci.org/Xotic750/has-to-string-tag-x" | ||
* title="Travis status"> | ||
* <img | ||
* src="https://travis-ci.org/Xotic750/has-to-string-tag-x.svg?branch=master" | ||
* alt="Travis status" height="18"> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/has-to-string-tag-x" | ||
* title="Dependency status"> | ||
* <img src="https://david-dm.org/Xotic750/has-to-string-tag-x.svg" | ||
* alt="Dependency status" height="18"/> | ||
* </a> | ||
* <a | ||
* href="https://david-dm.org/Xotic750/has-to-string-tag-x#info=devDependencies" | ||
* title="devDependency status"> | ||
* <img src="https://david-dm.org/Xotic750/has-to-string-tag-x/dev-status.svg" | ||
* alt="devDependency status" height="18"/> | ||
* </a> | ||
* <a href="https://badge.fury.io/js/has-to-string-tag-x" title="npm version"> | ||
* <img src="https://badge.fury.io/js/has-to-string-tag-x.svg" | ||
* alt="npm version" height="18"> | ||
* </a> | ||
* | ||
* hasToStringTag tests if @@toStringTag is supported. `true` if supported. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.0.5 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module has-to-string-tag-x | ||
*/ | ||
},{"./helpers/isFinite":6,"./helpers/mod":8,"./helpers/sign":9,"es-to-primitive/es5":11,"is-callable":15}],3:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
/*jslint maxlen:80, es6:true, white:true */ | ||
var toStr = Object.prototype.toString; | ||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; | ||
var symbolToStr = hasSymbols ? Symbol.prototype.toString : toStr; | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:1, maxcomplexity:1 */ | ||
var $isNaN = Number.isNaN || function (a) { return a !== a; }; | ||
var $isFinite = _dereq_('./helpers/isFinite'); | ||
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; | ||
/*global module */ | ||
var assign = _dereq_('./helpers/assign'); | ||
var sign = _dereq_('./helpers/sign'); | ||
var mod = _dereq_('./helpers/mod'); | ||
var isPrimitive = _dereq_('./helpers/isPrimitive'); | ||
var toPrimitive = _dereq_('es-to-primitive/es6'); | ||
var parseInteger = parseInt; | ||
var bind = _dereq_('function-bind'); | ||
var strSlice = bind.call(Function.call, String.prototype.slice); | ||
var isBinary = bind.call(Function.call, RegExp.prototype.test, /^0b[01]+$/i); | ||
var isOctal = bind.call(Function.call, RegExp.prototype.test, /^0o[0-7]+$/i); | ||
var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); | ||
var nonWSregex = new RegExp('[' + nonWS + ']', 'g'); | ||
var hasNonWS = bind.call(Function.call, RegExp.prototype.test, nonWSregex); | ||
var invalidHexLiteral = /^[\-\+]0x[0-9a-f]+$/i; | ||
var isInvalidHexLiteral = bind.call(Function.call, RegExp.prototype.test, invalidHexLiteral); | ||
;(function () { | ||
'use strict'; | ||
// whitespace from: http://es5.github.io/#x15.5.4.20 | ||
// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 | ||
var ws = [ | ||
'\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', | ||
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', | ||
'\u2029\uFEFF' | ||
].join(''); | ||
var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); | ||
var replace = bind.call(Function.call, String.prototype.replace); | ||
var trim = function (value) { | ||
return replace(value, trimRegex, ''); | ||
}; | ||
/** | ||
* Indicates if `Symbol.toStringTag`exists and is the correct type. | ||
* `true`, if it exists and is the correct type, otherwise `false`. | ||
* | ||
* @type boolean | ||
*/ | ||
module.exports = _dereq_('has-symbol-support-x') && | ||
typeof Symbol.toStringTag === 'symbol'; | ||
}()); | ||
var ES5 = _dereq_('./es5'); | ||
var hasRegExpMatcher = _dereq_('is-regex'); | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations | ||
var ES6 = assign(assign({}, ES5), { | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-call-f-v-args | ||
Call: function Call(F, V) { | ||
var args = arguments.length > 2 ? arguments[2] : []; | ||
if (!this.IsCallable(F)) { | ||
throw new TypeError(F + ' is not a function'); | ||
} | ||
return F.apply(V, args); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toprimitive | ||
ToPrimitive: toPrimitive, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toboolean | ||
// ToBoolean: ES5.ToBoolean, | ||
// http://www.ecma-international.org/ecma-262/6.0/#sec-tonumber | ||
ToNumber: function ToNumber(argument) { | ||
var value = isPrimitive(argument) ? argument : toPrimitive(argument, 'number'); | ||
if (typeof value === 'symbol') { | ||
throw new TypeError('Cannot convert a Symbol value to a number'); | ||
} | ||
if (typeof value === 'string') { | ||
if (isBinary(value)) { | ||
return this.ToNumber(parseInteger(strSlice(value, 2), 2)); | ||
} else if (isOctal(value)) { | ||
return this.ToNumber(parseInteger(strSlice(value, 2), 8)); | ||
} else if (hasNonWS(value) || isInvalidHexLiteral(value)) { | ||
return NaN; | ||
} else { | ||
var trimmed = trim(value); | ||
if (trimmed !== value) { | ||
return this.ToNumber(trimmed); | ||
} | ||
} | ||
} | ||
return Number(value); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tointeger | ||
// ToInteger: ES5.ToNumber, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint32 | ||
// ToInt32: ES5.ToInt32, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint32 | ||
// ToUint32: ES5.ToUint32, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint16 | ||
ToInt16: function ToInt16(argument) { | ||
var int16bit = this.ToUint16(argument); | ||
return int16bit >= 0x8000 ? int16bit - 0x10000 : int16bit; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint16 | ||
// ToUint16: ES5.ToUint16, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint8 | ||
ToInt8: function ToInt8(argument) { | ||
var int8bit = this.ToUint8(argument); | ||
return int8bit >= 0x80 ? int8bit - 0x100 : int8bit; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8 | ||
ToUint8: function ToUint8(argument) { | ||
var number = this.ToNumber(argument); | ||
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; } | ||
var posInt = sign(number) * Math.floor(Math.abs(number)); | ||
return mod(posInt, 0x100); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8clamp | ||
ToUint8Clamp: function ToUint8Clamp(argument) { | ||
var number = this.ToNumber(argument); | ||
if ($isNaN(number) || number <= 0) { return 0; } | ||
if (number >= 0xFF) { return 0xFF; } | ||
var f = Math.floor(argument); | ||
if (f + 0.5 < number) { return f + 1; } | ||
if (number < f + 0.5) { return f; } | ||
if (f % 2 !== 0) { return f + 1; } | ||
return f; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tostring | ||
ToString: function ToString(argument) { | ||
if (typeof argument === 'symbol') { | ||
throw new TypeError('Cannot convert a Symbol value to a string'); | ||
} | ||
return String(argument); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject | ||
ToObject: function ToObject(value) { | ||
this.RequireObjectCoercible(value); | ||
return Object(value); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey | ||
ToPropertyKey: function ToPropertyKey(argument) { | ||
var key = this.ToPrimitive(argument, String); | ||
return typeof key === 'symbol' ? symbolToStr.call(key) : this.ToString(key); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength | ||
ToLength: function ToLength(argument) { | ||
var len = this.ToInteger(argument); | ||
if (len <= 0) { return 0; } // includes converting -0 to +0 | ||
if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; } | ||
return len; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-canonicalnumericindexstring | ||
CanonicalNumericIndexString: function CanonicalNumericIndexString(argument) { | ||
if (toStr.call(argument) !== '[object String]') { | ||
throw new TypeError('must be a string'); | ||
} | ||
if (argument === '-0') { return -0; } | ||
var n = this.ToNumber(argument); | ||
if (this.SameValue(this.ToString(n), argument)) { return n; } | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-requireobjectcoercible | ||
RequireObjectCoercible: ES5.CheckObjectCoercible, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray | ||
IsArray: Array.isArray || function IsArray(argument) { | ||
return toStr.call(argument) === '[object Array]'; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-iscallable | ||
// IsCallable: ES5.IsCallable, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor | ||
IsConstructor: function IsConstructor(argument) { | ||
return this.IsCallable(argument); // unfortunately there's no way to truly check this without try/catch `new argument` | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isextensible-o | ||
IsExtensible: function IsExtensible(obj) { | ||
if (!Object.preventExtensions) { return true; } | ||
if (isPrimitive(obj)) { | ||
return false; | ||
} | ||
return Object.isExtensible(obj); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isinteger | ||
IsInteger: function IsInteger(argument) { | ||
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { | ||
return false; | ||
} | ||
var abs = Math.abs(argument); | ||
return Math.floor(abs) === abs; | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ispropertykey | ||
IsPropertyKey: function IsPropertyKey(argument) { | ||
return typeof argument === 'string' || typeof argument === 'symbol'; | ||
}, | ||
// http://www.ecma-international.org/ecma-262/6.0/#sec-isregexp | ||
IsRegExp: function IsRegExp(argument) { | ||
if (!argument || typeof argument !== 'object') { | ||
return false; | ||
} | ||
if (hasSymbols) { | ||
var isRegExp = RegExp[Symbol.match]; | ||
if (typeof isRegExp !== 'undefined') { | ||
return ES5.ToBoolean(isRegExp); | ||
} | ||
} | ||
return hasRegExpMatcher(argument); | ||
}, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevalue | ||
// SameValue: ES5.SameValue, | ||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero | ||
SameValueZero: function SameValueZero(x, y) { | ||
return (x === y) || ($isNaN(x) && $isNaN(y)); | ||
} | ||
}); | ||
delete ES6.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible | ||
module.exports = ES6; | ||
},{"./es5":2,"./helpers/assign":5,"./helpers/isFinite":6,"./helpers/isPrimitive":7,"./helpers/mod":8,"./helpers/sign":9,"es-to-primitive/es6":12,"function-bind":14,"is-regex":19}],4:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var ES6 = _dereq_('./es6'); | ||
var assign = _dereq_('./helpers/assign'); | ||
var ES7 = assign(ES6, { | ||
// https://github.com/tc39/ecma262/pull/60 | ||
SameValueNonNumber: function SameValueNonNumber(x, y) { | ||
if (typeof x === 'number' || typeof x !== typeof y) { | ||
throw new TypeError('SameValueNonNumber requires two non-number values of the same type.'); | ||
} | ||
return this.SameValue(x, y); | ||
} | ||
}); | ||
module.exports = ES7; | ||
},{"./es6":3,"./helpers/assign":5}],5:[function(_dereq_,module,exports){ | ||
var has = Object.prototype.hasOwnProperty; | ||
module.exports = Object.assign || function assign(target, source) { | ||
for (var key in source) { | ||
if (has.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
}; | ||
},{}],6:[function(_dereq_,module,exports){ | ||
var $isNaN = Number.isNaN || function (a) { return a !== a; }; | ||
module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; | ||
},{}],7:[function(_dereq_,module,exports){ | ||
module.exports = function isPrimitive(value) { | ||
return value === null || (typeof value !== 'function' && typeof value !== 'object'); | ||
}; | ||
},{}],8:[function(_dereq_,module,exports){ | ||
module.exports = function mod(number, modulo) { | ||
var remain = number % modulo; | ||
return Math.floor(remain >= 0 ? remain : remain + modulo); | ||
}; | ||
},{}],9:[function(_dereq_,module,exports){ | ||
module.exports = function sign(number) { | ||
return number >= 0 ? 1 : -1; | ||
}; | ||
},{}],10:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var assign = _dereq_('./helpers/assign'); | ||
var ES5 = _dereq_('./es5'); | ||
var ES6 = _dereq_('./es6'); | ||
var ES7 = _dereq_('./es7'); | ||
var ES = { | ||
ES5: ES5, | ||
ES6: ES6, | ||
ES7: ES7 | ||
}; | ||
assign(ES, ES5); | ||
delete ES.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible | ||
assign(ES, ES6); | ||
module.exports = ES; | ||
},{"./es5":2,"./es6":3,"./es7":4,"./helpers/assign":5}],11:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var toStr = Object.prototype.toString; | ||
var isPrimitive = _dereq_('./helpers/isPrimitive'); | ||
var isCallable = _dereq_('is-callable'); | ||
// https://es5.github.io/#x8.12 | ||
var ES5internalSlots = { | ||
'[[DefaultValue]]': function (O, hint) { | ||
var actualHint = hint || (toStr.call(O) === '[object Date]' ? String : Number); | ||
if (actualHint === String || actualHint === Number) { | ||
var methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString']; | ||
var value, i; | ||
for (i = 0; i < methods.length; ++i) { | ||
if (isCallable(O[methods[i]])) { | ||
value = O[methods[i]](); | ||
if (isPrimitive(value)) { | ||
return value; | ||
} | ||
} | ||
} | ||
throw new TypeError('No default value'); | ||
} | ||
throw new TypeError('invalid [[DefaultValue]] hint supplied'); | ||
} | ||
}; | ||
// https://es5.github.io/#x9 | ||
module.exports = function ToPrimitive(input, PreferredType) { | ||
if (isPrimitive(input)) { | ||
return input; | ||
} | ||
return ES5internalSlots['[[DefaultValue]]'](input, PreferredType); | ||
}; | ||
},{"./helpers/isPrimitive":13,"is-callable":15}],12:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; | ||
var isPrimitive = _dereq_('./helpers/isPrimitive'); | ||
var isCallable = _dereq_('is-callable'); | ||
var isDate = _dereq_('is-date-object'); | ||
var isSymbol = _dereq_('is-symbol'); | ||
var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { | ||
if (typeof O === 'undefined' || O === null) { | ||
throw new TypeError('Cannot call method on ' + O); | ||
} | ||
if (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) { | ||
throw new TypeError('hint must be "string" or "number"'); | ||
} | ||
var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString']; | ||
var method, result, i; | ||
for (i = 0; i < methodNames.length; ++i) { | ||
method = O[methodNames[i]]; | ||
if (isCallable(method)) { | ||
result = method.call(O); | ||
if (isPrimitive(result)) { | ||
return result; | ||
} | ||
} | ||
} | ||
throw new TypeError('No default value'); | ||
}; | ||
var GetMethod = function GetMethod(O, P) { | ||
var func = O[P]; | ||
if (func !== null && typeof func !== 'undefined') { | ||
if (!isCallable(func)) { | ||
throw new TypeError(func + ' returned for property ' + P + ' of object ' + O + ' is not a function'); | ||
} | ||
return func; | ||
} | ||
}; | ||
// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive | ||
module.exports = function ToPrimitive(input, PreferredType) { | ||
if (isPrimitive(input)) { | ||
return input; | ||
} | ||
var hint = 'default'; | ||
if (arguments.length > 1) { | ||
if (PreferredType === String) { | ||
hint = 'string'; | ||
} else if (PreferredType === Number) { | ||
hint = 'number'; | ||
} | ||
} | ||
var exoticToPrim; | ||
if (hasSymbols) { | ||
if (Symbol.toPrimitive) { | ||
exoticToPrim = GetMethod(input, Symbol.toPrimitive); | ||
} else if (isSymbol(input)) { | ||
exoticToPrim = Symbol.prototype.valueOf; | ||
} | ||
} | ||
if (typeof exoticToPrim !== 'undefined') { | ||
var result = exoticToPrim.call(input, hint); | ||
if (isPrimitive(result)) { | ||
return result; | ||
} | ||
throw new TypeError('unable to convert exotic object to primitive'); | ||
} | ||
if (hint === 'default' && (isDate(input) || isSymbol(input))) { | ||
hint = 'string'; | ||
} | ||
return ordinaryToPrimitive(input, hint === 'default' ? 'number' : hint); | ||
}; | ||
},{"./helpers/isPrimitive":13,"is-callable":15,"is-date-object":16,"is-symbol":20}],13:[function(_dereq_,module,exports){ | ||
arguments[4][7][0].apply(exports,arguments) | ||
},{"dup":7}],14:[function(_dereq_,module,exports){ | ||
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; | ||
var slice = Array.prototype.slice; | ||
var toStr = Object.prototype.toString; | ||
var funcType = '[object Function]'; | ||
module.exports = function bind(that) { | ||
var target = this; | ||
if (typeof target !== 'function' || toStr.call(target) !== funcType) { | ||
throw new TypeError(ERROR_MESSAGE + target); | ||
} | ||
var args = slice.call(arguments, 1); | ||
var binder = function () { | ||
if (this instanceof bound) { | ||
var result = target.apply( | ||
this, | ||
args.concat(slice.call(arguments)) | ||
); | ||
if (Object(result) === result) { | ||
return result; | ||
} | ||
return this; | ||
} else { | ||
return target.apply( | ||
that, | ||
args.concat(slice.call(arguments)) | ||
); | ||
} | ||
}; | ||
var boundLength = Math.max(0, target.length - args.length); | ||
var boundArgs = []; | ||
for (var i = 0; i < boundLength; i++) { | ||
boundArgs.push('$' + i); | ||
} | ||
var bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); | ||
if (target.prototype) { | ||
var Empty = function Empty() {}; | ||
Empty.prototype = target.prototype; | ||
bound.prototype = new Empty(); | ||
Empty.prototype = null; | ||
} | ||
return bound; | ||
}; | ||
},{}],15:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var constructorRegex = /\s*class /; | ||
var isNonES6ClassFn = function isNonES6ClassFn(value) { | ||
try { | ||
return !constructorRegex.test(value); | ||
} catch (e) { | ||
return false; // not a function | ||
} | ||
}; | ||
var fnToStr = Function.prototype.toString; | ||
var tryFunctionObject = function tryFunctionObject(value) { | ||
try { | ||
if (constructorRegex.test(value)) { return false; } | ||
fnToStr.call(value); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
}; | ||
var toStr = Object.prototype.toString; | ||
var fnClass = '[object Function]'; | ||
var genClass = '[object GeneratorFunction]'; | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
module.exports = function isCallable(value) { | ||
if (!value) { return false; } | ||
if (typeof value !== 'function' && typeof value !== 'object') { return false; } | ||
if (hasToStringTag) { return tryFunctionObject(value); } | ||
if (!isNonES6ClassFn(value)) { return false; } | ||
var strClass = toStr.call(value); | ||
return strClass === fnClass || strClass === genClass; | ||
}; | ||
},{}],16:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var getDay = Date.prototype.getDay; | ||
var tryDateObject = function tryDateObject(value) { | ||
try { | ||
getDay.call(value); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
}; | ||
var toStr = Object.prototype.toString; | ||
var dateClass = '[object Date]'; | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
module.exports = function isDateObject(value) { | ||
if (typeof value !== 'object' || value === null) { return false; } | ||
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass; | ||
}; | ||
},{}],17:[function(_dereq_,module,exports){ | ||
},{"has-symbol-support-x":2}],4:[function(_dereq_,module,exports){ | ||
/** | ||
* @file | ||
* <a href="https://travis-ci.org/Xotic750/is-length-x" | ||
* <a href="https://travis-ci.org/Xotic750/is-function-x" | ||
* title="Travis status"> | ||
* <img src="https://travis-ci.org/Xotic750/is-length-x.svg?branch=master" | ||
* <img | ||
* src="https://travis-ci.org/Xotic750/is-function-x.svg?branch=master" | ||
* alt="Travis status" height="18"> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/is-length-x" | ||
* <a href="https://david-dm.org/Xotic750/is-function-x" | ||
* title="Dependency status"> | ||
* <img src="https://david-dm.org/Xotic750/is-length-x.svg" | ||
* <img src="https://david-dm.org/Xotic750/is-function-x.svg" | ||
* alt="Dependency status" height="18"/> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/is-length-x#info=devDependencies" | ||
* <a | ||
* href="https://david-dm.org/Xotic750/is-function-x#info=devDependencies" | ||
* title="devDependency status"> | ||
* <img src="https://david-dm.org/Xotic750/is-length-x/dev-status.svg" | ||
* <img src="https://david-dm.org/Xotic750/is-function-x/dev-status.svg" | ||
* alt="devDependency status" height="18"/> | ||
* </a> | ||
* <a href="https://badge.fury.io/js/is-length-x" title="npm version"> | ||
* <img src="https://badge.fury.io/js/is-length-x.svg" | ||
* <a href="https://badge.fury.io/js/is-function-x" title="npm version"> | ||
* <img src="https://badge.fury.io/js/is-function-x.svg" | ||
* alt="npm version" height="18"> | ||
* </a> | ||
* | ||
* ES6 isLength module. | ||
* isFunction module. | ||
* | ||
@@ -730,10 +284,10 @@ * <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* | ||
* @version 1.0.7 | ||
* @version 1.0.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-length-x | ||
* @module is-function-x | ||
*/ | ||
/*jslint maxlen:80, es6:true, this:false, white:true */ | ||
/*jslint maxlen:80, es6:false, white:true */ | ||
@@ -743,4 +297,4 @@ /*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:2, maxcomplexity:1 */ | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:8, maxcomplexity:4 */ | ||
@@ -752,26 +306,59 @@ /*global module */ | ||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; | ||
var fToString = Function.prototype.toString; | ||
var toStringTag = _dereq_('to-string-tag-x'); | ||
var hasToStringTag = _dereq_('has-to-string-tag-x'); | ||
var isPrimitive = _dereq_('is-primitive'); | ||
var funcTag = '[object Function]'; | ||
var genTag = '[object GeneratorFunction]'; | ||
/** | ||
* Checks if value is a valid ES6 array-like length. | ||
* Checks if `value` is classified as a `Function` object. | ||
* | ||
* @param {*} subject The `value` to check. | ||
* @return {boolean} Returns `true` if value is a valid length, else `false`. | ||
* @private | ||
* @param {*} value The value to check. | ||
* @return {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
*/ | ||
function tryFunctionObject(value) { | ||
try { | ||
fToString.call(value); | ||
return true; | ||
} catch (ignore) {} | ||
return false; | ||
} | ||
/** | ||
* Checks if `value` is classified as a `Function` object. | ||
* | ||
* @param {*} value The value to check. | ||
* @return {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
* var isLength = require('is-length-x'); | ||
* var isFunction = require('is-function-x'); | ||
* | ||
* isLength(3); // true | ||
* isLength(Number.MIN_VALUE); // false | ||
* isLength(Infinity); // false | ||
* isLength('3'); //false | ||
* isFunction(); // false | ||
* isFunction(Number.MIN_VALUE); // false | ||
* isFunction('abc'); // false | ||
* isFunction(true); // false | ||
* isFunction({ name: 'abc' }); // false | ||
* isFunction(function () {}); // true | ||
* isFunction(new Function ()); // true | ||
* isFunction(function* test1() {}); // true | ||
* isFunction(function test2(a, b) {}); // true | ||
* isFunction(class Test {}); // true | ||
* isFunction((x, y) => {return this;}); // true | ||
*/ | ||
module.exports = function isLength(subject) { | ||
return typeof subject === 'number' && | ||
subject > -1 && | ||
subject % 1 === 0 && | ||
subject <= MAX_SAFE_INTEGER; | ||
module.exports = function isFunction(value) { | ||
if (isPrimitive(value)) { | ||
return false; | ||
} | ||
if (hasToStringTag) { | ||
return tryFunctionObject(value); | ||
} | ||
var strTag = toStringTag(value); | ||
return strTag === funcTag || strTag === genTag; | ||
}; | ||
}()); | ||
},{}],18:[function(_dereq_,module,exports){ | ||
},{"has-to-string-tag-x":3,"is-primitive":6,"to-string-tag-x":9}],5:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -818,3 +405,3 @@ * @file | ||
* | ||
* @version 1.0.4 | ||
* @version 1.0.5 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -832,3 +419,3 @@ * @copyright Xotic750 | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:2, maxcomplexity:2 */ | ||
maxstatements:3, maxcomplexity:2 */ | ||
@@ -840,4 +427,4 @@ /*global module */ | ||
var isUndefined = _dereq_('validate.io-undefined'), | ||
isNull = _dereq_('lodash.isnull'); | ||
var isUndefined = _dereq_('validate.io-undefined'); | ||
var isNull = _dereq_('lodash.isnull'); | ||
@@ -865,53 +452,61 @@ /** | ||
},{"lodash.isnull":21,"validate.io-undefined":22}],19:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":8,"validate.io-undefined":10}],6:[function(_dereq_,module,exports){ | ||
/*! | ||
* is-primitive <https://github.com/jonschlinkert/is-primitive> | ||
* | ||
* Copyright (c) 2014-2015, Jon Schlinkert. | ||
* Licensed under the MIT License. | ||
*/ | ||
'use strict'; | ||
var regexExec = RegExp.prototype.exec; | ||
var tryRegexExec = function tryRegexExec(value) { | ||
try { | ||
regexExec.call(value); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
// see http://jsperf.com/testing-value-is-primitive/7 | ||
module.exports = function isPrimitive(value) { | ||
return value == null || (typeof value !== 'function' && typeof value !== 'object'); | ||
}; | ||
var toStr = Object.prototype.toString; | ||
var regexClass = '[object RegExp]'; | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
module.exports = function isRegex(value) { | ||
if (typeof value !== 'object') { return false; } | ||
return hasToStringTag ? tryRegexExec(value) : toStr.call(value) === regexClass; | ||
}; | ||
},{}],7:[function(_dereq_,module,exports){ | ||
/** | ||
* lodash 4.0.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
*/ | ||
},{}],20:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
/** Used as references for various `Number` constants. */ | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
var toStr = Object.prototype.toString; | ||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol'; | ||
if (hasSymbols) { | ||
var symToStr = Symbol.prototype.toString; | ||
var symStringRegex = /^Symbol\(.*\)$/; | ||
var isSymbolObject = function isSymbolObject(value) { | ||
if (typeof value.valueOf() !== 'symbol') { return false; } | ||
return symStringRegex.test(symToStr.call(value)); | ||
}; | ||
module.exports = function isSymbol(value) { | ||
if (typeof value === 'symbol') { return true; } | ||
if (toStr.call(value) !== '[object Symbol]') { return false; } | ||
try { | ||
return isSymbolObject(value); | ||
} catch (e) { | ||
return false; | ||
} | ||
}; | ||
} else { | ||
module.exports = function isSymbol(value) { | ||
// this environment does not support Symbols. | ||
return false; | ||
}; | ||
/** | ||
* Checks if `value` is a valid array-like length. | ||
* | ||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @example | ||
* | ||
* _.isLength(3); | ||
* // => true | ||
* | ||
* _.isLength(Number.MIN_VALUE); | ||
* // => false | ||
* | ||
* _.isLength(Infinity); | ||
* // => false | ||
* | ||
* _.isLength('3'); | ||
* // => false | ||
*/ | ||
function isLength(value) { | ||
return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; | ||
} | ||
},{}],21:[function(_dereq_,module,exports){ | ||
module.exports = isLength; | ||
},{}],8:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -948,4 +543,105 @@ * lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
},{}],22:[function(_dereq_,module,exports){ | ||
},{}],9:[function(_dereq_,module,exports){ | ||
/** | ||
* @file | ||
* <a href="https://travis-ci.org/Xotic750/to-string-tag-x" | ||
* title="Travis status"> | ||
* <img src="https://travis-ci.org/Xotic750/to-string-tag-x.svg?branch=master" | ||
* alt="Travis status" height="18"> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/to-string-tag-x" | ||
* title="Dependency status"> | ||
* <img src="https://david-dm.org/Xotic750/to-string-tag-x.svg" | ||
* alt="Dependency status" height="18"/> | ||
* </a> | ||
* <a href="https://david-dm.org/Xotic750/to-string-tag-x#info=devDependencies" | ||
* title="devDependency status"> | ||
* <img src="https://david-dm.org/Xotic750/to-string-tag-x/dev-status.svg" | ||
* alt="devDependency status" height="18"/> | ||
* </a> | ||
* <a href="https://badge.fury.io/js/to-string-tag-x" title="npm version"> | ||
* <img src="https://badge.fury.io/js/to-string-tag-x.svg" | ||
* alt="npm version" height="18"> | ||
* </a> | ||
* | ||
* Get an object's @@toStringTag. Includes fixes to correct ES3 differences | ||
* for the following. | ||
* - undefined => '[object Undefined]' | ||
* - null => '[object Null]' | ||
* | ||
* No other fixes are included, so legacy `arguments` will | ||
* give `[object Object]`, and many older native objects | ||
* give `[object Object]`. There are also other environmental bugs | ||
* for example `RegExp` gives `[object Function]` and `Uint8Array` | ||
* gives `[object Object]` on certain engines. While these and more could | ||
* be fixed, it was decided that this should be a very raw version and it | ||
* is left to the coder to use other `is` implimentations for detection. | ||
* It is also worth noting that as of ES6 `Symbol.toStringTag` can be set on | ||
* an object and therefore can report any string that it wishes. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.0.5 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module to-string-tag-x | ||
*/ | ||
/*jslint maxlen:80, es6:false, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:5, maxcomplexity:3 */ | ||
/*global module */ | ||
;(function () { | ||
'use strict'; | ||
var pToString = Object.prototype.toString; | ||
var nullTag = '[object Null]'; | ||
var undefTag = '[object Undefined]'; | ||
/** | ||
* The `toStringTag` method returns "[object type]", where type is the | ||
* object type. | ||
* | ||
* @param {*} value The object of which to get the object type string. | ||
* @return {string} The object type string. | ||
* @example | ||
* var o = new Object(); | ||
* | ||
* toStringTag(o); // returns '[object Object]' | ||
*/ | ||
module.exports = function toStringTag(value) { | ||
if (value === null) { | ||
return nullTag; | ||
} | ||
if (typeof value === 'undefined') { | ||
return undefTag; | ||
} | ||
return pToString.call(value); | ||
}; | ||
}()); | ||
},{}],10:[function(_dereq_,module,exports){ | ||
/** | ||
* | ||
@@ -952,0 +648,0 @@ * VALIDATE: undefined |
@@ -1,2 +0,2 @@ | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.returnExports=t()}}(function(){return function e(t,r,n){function s(i,u){if(!r[i]){if(!t[i]){var l="function"==typeof require&&require;if(!u&&l)return l(i,!0);if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var a=r[i]={exports:{}};t[i][0].call(a.exports,function(e){var r=t[i][1][e];return s(r?r:e)},a,a.exports,e,t,r,n)}return r[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(t,e,r){!function(){"use strict";var r=t("es-abstract"),n=t("is-length-x"),o=t("is-nil-x");e.exports=function isArrayLike(t){return!o(t)&&!r.IsCallable(t)&&n(t.length)}}()},{"es-abstract":10,"is-length-x":17,"is-nil-x":18}],2:[function(t,e,r){"use strict";var n=Number.isNaN||function(t){return t!==t},o=t("./helpers/isFinite"),i=t("./helpers/sign"),u=t("./helpers/mod"),s=t("is-callable"),l=t("es-to-primitive/es5"),c={ToPrimitive:l,ToBoolean:function ToBoolean(t){return Boolean(t)},ToNumber:function ToNumber(t){return Number(t)},ToInteger:function ToInteger(t){var e=this.ToNumber(t);return n(e)?0:0!==e&&o(e)?i(e)*Math.floor(Math.abs(e)):e},ToInt32:function ToInt32(t){return this.ToNumber(t)>>0},ToUint32:function ToUint32(t){return this.ToNumber(t)>>>0},ToUint16:function ToUint16(t){var e=this.ToNumber(t);if(n(e)||0===e||!o(e))return 0;var r=i(e)*Math.floor(Math.abs(e));return u(r,65536)},ToString:function ToString(t){return String(t)},ToObject:function ToObject(t){return this.CheckObjectCoercible(t),Object(t)},CheckObjectCoercible:function CheckObjectCoercible(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},IsCallable:s,SameValue:function SameValue(t,e){return t===e?0===t?1/t===1/e:!0:n(t)&&n(e)}};e.exports=c},{"./helpers/isFinite":6,"./helpers/mod":8,"./helpers/sign":9,"es-to-primitive/es5":11,"is-callable":15}],3:[function(t,e,r){"use strict";var n=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=o?Symbol.prototype.toString:n,u=Number.isNaN||function(t){return t!==t},s=t("./helpers/isFinite"),l=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,c=t("./helpers/assign"),a=t("./helpers/sign"),f=t("./helpers/mod"),p=t("./helpers/isPrimitive"),b=t("es-to-primitive/es6"),y=parseInt,m=t("function-bind"),h=m.call(Function.call,String.prototype.slice),g=m.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),v=m.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),T=["\x85","\u200b","\ufffe"].join(""),S=new RegExp("["+T+"]","g"),d=m.call(Function.call,RegExp.prototype.test,S),x=/^[\-\+]0x[0-9a-f]+$/i,j=m.call(Function.call,RegExp.prototype.test,x),N=[" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join(""),w=new RegExp("(^["+N+"]+)|(["+N+"]+$)","g"),E=m.call(Function.call,String.prototype.replace),O=function(t){return E(t,w,"")},C=t("./es5"),I=t("is-regex"),F=c(c({},C),{Call:function Call(t,e){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(t))throw new TypeError(t+" is not a function");return t.apply(e,r)},ToPrimitive:b,ToNumber:function ToNumber(t){var e=p(t)?t:b(t,"number");if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof e){if(g(e))return this.ToNumber(y(h(e,2),2));if(v(e))return this.ToNumber(y(h(e,2),8));if(d(e)||j(e))return NaN;var r=O(e);if(r!==e)return this.ToNumber(r)}return Number(e)},ToInt16:function ToInt16(t){var e=this.ToUint16(t);return e>=32768?e-65536:e},ToInt8:function ToInt8(t){var e=this.ToUint8(t);return e>=128?e-256:e},ToUint8:function ToUint8(t){var e=this.ToNumber(t);if(u(e)||0===e||!s(e))return 0;var r=a(e)*Math.floor(Math.abs(e));return f(r,256)},ToUint8Clamp:function ToUint8Clamp(t){var e=this.ToNumber(t);if(u(e)||0>=e)return 0;if(e>=255)return 255;var r=Math.floor(t);return e>r+.5?r+1:r+.5>e?r:r%2!==0?r+1:r},ToString:function ToString(t){if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a string");return String(t)},ToObject:function ToObject(t){return this.RequireObjectCoercible(t),Object(t)},ToPropertyKey:function ToPropertyKey(t){var e=this.ToPrimitive(t,String);return"symbol"==typeof e?i.call(e):this.ToString(e)},ToLength:function ToLength(t){var e=this.ToInteger(t);return 0>=e?0:e>l?l:e},CanonicalNumericIndexString:function CanonicalNumericIndexString(t){if("[object String]"!==n.call(t))throw new TypeError("must be a string");if("-0"===t)return-0;var e=this.ToNumber(t);return this.SameValue(this.ToString(e),t)?e:void 0},RequireObjectCoercible:C.CheckObjectCoercible,IsArray:Array.isArray||function IsArray(t){return"[object Array]"===n.call(t)},IsConstructor:function IsConstructor(t){return this.IsCallable(t)},IsExtensible:function IsExtensible(t){return Object.preventExtensions?p(t)?!1:Object.isExtensible(t):!0},IsInteger:function IsInteger(t){if("number"!=typeof t||u(t)||!s(t))return!1;var e=Math.abs(t);return Math.floor(e)===e},IsPropertyKey:function IsPropertyKey(t){return"string"==typeof t||"symbol"==typeof t},IsRegExp:function IsRegExp(t){if(!t||"object"!=typeof t)return!1;if(o){var e=RegExp[Symbol.match];if("undefined"!=typeof e)return C.ToBoolean(e)}return I(t)},SameValueZero:function SameValueZero(t,e){return t===e||u(t)&&u(e)}});delete F.CheckObjectCoercible,e.exports=F},{"./es5":2,"./helpers/assign":5,"./helpers/isFinite":6,"./helpers/isPrimitive":7,"./helpers/mod":8,"./helpers/sign":9,"es-to-primitive/es6":12,"function-bind":14,"is-regex":19}],4:[function(t,e,r){"use strict";var n=t("./es6"),o=t("./helpers/assign"),i=o(n,{SameValueNonNumber:function SameValueNonNumber(t,e){if("number"==typeof t||typeof t!=typeof e)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(t,e)}});e.exports=i},{"./es6":3,"./helpers/assign":5}],5:[function(t,e,r){var n=Object.prototype.hasOwnProperty;e.exports=Object.assign||function assign(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);return t}},{}],6:[function(t,e,r){var n=Number.isNaN||function(t){return t!==t};e.exports=Number.isFinite||function(t){return"number"==typeof t&&!n(t)&&t!==1/0&&t!==-(1/0)}},{}],7:[function(t,e,r){e.exports=function isPrimitive(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},{}],8:[function(t,e,r){e.exports=function mod(t,e){var r=t%e;return Math.floor(r>=0?r:r+e)}},{}],9:[function(t,e,r){e.exports=function sign(t){return t>=0?1:-1}},{}],10:[function(t,e,r){"use strict";var n=t("./helpers/assign"),o=t("./es5"),i=t("./es6"),u=t("./es7"),s={ES5:o,ES6:i,ES7:u};n(s,o),delete s.CheckObjectCoercible,n(s,i),e.exports=s},{"./es5":2,"./es6":3,"./es7":4,"./helpers/assign":5}],11:[function(t,e,r){"use strict";var n=Object.prototype.toString,o=t("./helpers/isPrimitive"),i=t("is-callable"),u={"[[DefaultValue]]":function(t,e){var r=e||("[object Date]"===n.call(t)?String:Number);if(r===String||r===Number){var u,s,l=r===String?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<l.length;++s)if(i(t[l[s]])&&(u=t[l[s]](),o(u)))return u;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}};e.exports=function ToPrimitive(t,e){return o(t)?t:u["[[DefaultValue]]"](t,e)}},{"./helpers/isPrimitive":13,"is-callable":15}],12:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=t("./helpers/isPrimitive"),i=t("is-callable"),u=t("is-date-object"),s=t("is-symbol"),l=function OrdinaryToPrimitive(t,e){if("undefined"==typeof t||null===t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"');var r,n,u,s="string"===e?["toString","valueOf"]:["valueOf","toString"];for(u=0;u<s.length;++u)if(r=t[s[u]],i(r)&&(n=r.call(t),o(n)))return n;throw new TypeError("No default value")},c=function GetMethod(t,e){var r=t[e];if(null!==r&&"undefined"!=typeof r){if(!i(r))throw new TypeError(r+" returned for property "+e+" of object "+t+" is not a function");return r}};e.exports=function ToPrimitive(t,e){if(o(t))return t;var r="default";arguments.length>1&&(e===String?r="string":e===Number&&(r="number"));var i;if(n&&(Symbol.toPrimitive?i=c(t,Symbol.toPrimitive):s(t)&&(i=Symbol.prototype.valueOf)),"undefined"!=typeof i){var a=i.call(t,r);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(u(t)||s(t))&&(r="string"),l(t,"default"===r?"number":r)}},{"./helpers/isPrimitive":13,"is-callable":15,"is-date-object":16,"is-symbol":20}],13:[function(t,e,r){arguments[4][7][0].apply(r,arguments)},{dup:7}],14:[function(t,e,r){var n="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,u="[object Function]";e.exports=function bind(t){var e=this;if("function"!=typeof e||i.call(e)!==u)throw new TypeError(n+e);for(var r=o.call(arguments,1),s=function(){if(this instanceof f){var n=e.apply(this,r.concat(o.call(arguments)));return Object(n)===n?n:this}return e.apply(t,r.concat(o.call(arguments)))},l=Math.max(0,e.length-r.length),c=[],a=0;l>a;a++)c.push("$"+a);var f=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var p=function Empty(){};p.prototype=e.prototype,f.prototype=new p,p.prototype=null}return f}},{}],15:[function(t,e,r){"use strict";var n=/\s*class /,o=function isNonES6ClassFn(t){try{return!n.test(t)}catch(e){return!1}},i=Function.prototype.toString,u=function tryFunctionObject(t){try{return n.test(t)?!1:(i.call(t),!0)}catch(e){return!1}},s=Object.prototype.toString,l="[object Function]",c="[object GeneratorFunction]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function isCallable(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(a)return u(t);if(!o(t))return!1;var e=s.call(t);return e===l||e===c}},{}],16:[function(t,e,r){"use strict";var n=Date.prototype.getDay,o=function tryDateObject(t){try{return n.call(t),!0}catch(e){return!1}},i=Object.prototype.toString,u="[object Date]",s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function isDateObject(t){return"object"!=typeof t||null===t?!1:s?o(t):i.call(t)===u}},{}],17:[function(t,e,r){!function(){"use strict";var t=Math.pow(2,53)-1;e.exports=function isLength(e){return"number"==typeof e&&e>-1&&e%1===0&&t>=e}}()},{}],18:[function(t,e,r){!function(){"use strict";var r=t("validate.io-undefined"),n=t("lodash.isnull");e.exports=function isNil(t){return n(t)||r(t)}}()},{"lodash.isnull":21,"validate.io-undefined":22}],19:[function(t,e,r){"use strict";var n=RegExp.prototype.exec,o=function tryRegexExec(t){try{return n.call(t),!0}catch(e){return!1}},i=Object.prototype.toString,u="[object RegExp]",s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function isRegex(t){return"object"!=typeof t?!1:s?o(t):i.call(t)===u}},{}],20:[function(t,e,r){"use strict";var n=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol();if(o){var i=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,s=function isSymbolObject(t){return"symbol"!=typeof t.valueOf()?!1:u.test(i.call(t))};e.exports=function isSymbol(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return s(t)}catch(e){return!1}}}else e.exports=function isSymbol(t){return!1}},{}],21:[function(t,e,r){function isNull(t){return null===t}e.exports=isNull},{}],22:[function(t,e,r){"use strict";function isUndefined(t){return void 0===t}e.exports=isUndefined},{}]},{},[1])(1)}); | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.returnExports=t()}}(function(){return function e(t,n,i){function s(r,u){if(!n[r]){if(!t[r]){var f="function"==typeof require&&require;if(!u&&f)return f(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[r]={exports:{}};t[r][0].call(l.exports,function(n){var e=t[r][1][n];return s(e?e:n)},l,l.exports,e,t,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)s(i[r]);return s}({1:[function(t,n,e){!function(){"use strict";var e=t("is-nil-x"),i=t("is-function-x"),o=t("lodash.islength");n.exports=function isArrayLike(t){return!e(t)&&!i(t)&&o(t.length)}}()},{"is-function-x":4,"is-nil-x":5,"lodash.islength":7}],2:[function(t,n,e){!function(){"use strict";n.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],3:[function(t,n,e){!function(){"use strict";n.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":2}],4:[function(t,n,e){!function(){"use strict";function tryFunctionObject(t){try{return e.call(t),!0}catch(n){}return!1}var e=Function.prototype.toString,i=t("to-string-tag-x"),o=t("has-to-string-tag-x"),r=t("is-primitive"),u="[object Function]",s="[object GeneratorFunction]";n.exports=function isFunction(t){if(r(t))return!1;if(o)return tryFunctionObject(t);var n=i(t);return n===u||n===s}}()},{"has-to-string-tag-x":3,"is-primitive":6,"to-string-tag-x":9}],5:[function(t,n,e){!function(){"use strict";var e=t("validate.io-undefined"),i=t("lodash.isnull");n.exports=function isNil(t){return i(t)||e(t)}}()},{"lodash.isnull":8,"validate.io-undefined":10}],6:[function(t,n,e){"use strict";n.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,n,e){function isLength(t){return"number"==typeof t&&t>-1&&t%1==0&&i>=t}var i=9007199254740991;n.exports=isLength},{}],8:[function(t,n,e){function isNull(t){return null===t}n.exports=isNull},{}],9:[function(t,n,e){!function(){"use strict";var t=Object.prototype.toString,e="[object Null]",i="[object Undefined]";n.exports=function toStringTag(n){return null===n?e:"undefined"==typeof n?i:t.call(n)}}()},{}],10:[function(t,n,e){"use strict";function isUndefined(t){return void 0===t}n.exports=isUndefined},{}]},{},[1])(1)}); | ||
//# sourceMappingURL=lib/is-array-like-x.map |
{ | ||
"name": "is-array-like-x", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "ES6 isArrayLike module.", | ||
@@ -10,3 +10,3 @@ "homepage": "https://github.com/Xotic750/is-array-like-x", | ||
}, | ||
"copyright": "Copyright (c) 2015", | ||
"copyright": "Copyright (c) 2015-2016", | ||
"keywords": [ | ||
@@ -33,5 +33,5 @@ "es6", | ||
"dependencies": { | ||
"es-abstract": "^1.5.0", | ||
"is-length-x": "^1.0.7", | ||
"is-nil-x": "^1.0.4" | ||
"is-nil-x": "^1.0.5", | ||
"is-function-x": "^1.0.0", | ||
"lodash.islength": "^4.0.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -42,3 +42,3 @@ <a name="module_is-array-like-x"></a> | ||
**Version**: 1.0.7 | ||
**Version**: 1.0.8 | ||
**Author:** Xotic750 <Xotic750@gmail.com> | ||
@@ -48,3 +48,3 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) | ||
<a name="exp_module_is-array-like-x--module.exports"></a> | ||
### `module.exports(subject)` ⇒ <code>boolean</code> ⏏ | ||
### `module.exports(value)` ⇒ <code>boolean</code> ⏏ | ||
Checks if value is array-like. A value is considered array-like if it's | ||
@@ -59,3 +59,3 @@ not a function and has a `length` that's an integer greater than or | ||
| --- | --- | --- | | ||
| subject | <code>\*</code> | The object to be tested. | | ||
| value | <code>\*</code> | The object to be tested. | | ||
@@ -62,0 +62,0 @@ **Example** |
@@ -7,3 +7,3 @@ /*jslint maxlen:80, es6:false, white:true */ | ||
es3:true, esnext:false, plusplus:true, maxparams:2, maxdepth:2, | ||
maxstatements:11, maxcomplexity:3 */ | ||
maxstatements:23, maxcomplexity:4 */ | ||
@@ -36,6 +36,7 @@ /*global JSON:true, expect, module, require, describe, it, returnExports */ | ||
}), | ||
actual = values.map(isArrayLike); | ||
actual = values.map(isArrayLike); | ||
expect(actual).toEqual(expected); | ||
}(1, 2, 3)); | ||
}); | ||
it('should return `false` for non-arrays', function () { | ||
@@ -66,4 +67,25 @@ /*jshint elision:true */ | ||
expect(isArrayLike(/x/)).toBe(false); | ||
var fat; | ||
try { | ||
/*jshint evil:true */ | ||
fat = new Function('return () => {return this;}'); | ||
expect(isArrayLike(fat)).toBe(false); | ||
} catch (ignore) {} | ||
var gen; | ||
try { | ||
/*jshint evil:true */ | ||
gen = new Function('return function* idMaker(){}'); | ||
expect(isArrayLike(gen)).toBe(false); | ||
} catch (ignore) {} | ||
var classes; | ||
try { | ||
/*jshint evil:true */ | ||
classes = new Function('"use strict"; return class MyClass {}'); | ||
expect(isArrayLike(classes)).toBe(false); | ||
} catch (ignore) {} | ||
}); | ||
}); | ||
}()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
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
45417
792
5
+ Addedis-function-x@^1.0.0
+ Addedlodash.islength@^4.0.0
+ Addedhas-symbol-support-x@1.4.2(transitive)
+ Addedhas-to-string-tag-x@1.4.1(transitive)
+ Addedis-function-x@1.4.0(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedlodash.islength@4.0.1(transitive)
+ Addedto-string-tag-x@1.4.3(transitive)
- Removedes-abstract@^1.5.0
- Removedis-length-x@^1.0.7
- Removedarray-buffer-byte-length@1.0.1(transitive)
- Removedarraybuffer.prototype.slice@1.0.3(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddata-view-buffer@1.0.1(transitive)
- Removeddata-view-byte-length@1.0.1(transitive)
- Removeddata-view-byte-offset@1.0.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-abstract@1.23.5(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedes-set-tostringtag@2.0.3(transitive)
- Removedes-to-primitive@1.2.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunction.prototype.name@1.1.6(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedget-symbol-description@1.0.2(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-bigints@1.0.2(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinternal-slot@1.0.7(transitive)
- Removedis-array-buffer@3.0.4(transitive)
- Removedis-bigint@1.0.4(transitive)
- Removedis-boolean-object@1.1.2(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-data-view@1.0.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-negative-zero@2.0.3(transitive)
- Removedis-number-object@1.0.7(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-shared-array-buffer@1.0.3(transitive)
- Removedis-string@1.0.7(transitive)
- Removedis-symbol@1.0.4(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedis-weakref@1.0.2(transitive)
- Removedisarray@2.0.5(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedsafe-array-concat@1.1.2(transitive)
- Removedsafe-regex-test@1.0.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstring.prototype.trim@1.2.9(transitive)
- Removedstring.prototype.trimend@1.0.8(transitive)
- Removedstring.prototype.trimstart@1.0.8(transitive)
- Removedtyped-array-buffer@1.0.2(transitive)
- Removedtyped-array-byte-length@1.0.1(transitive)
- Removedtyped-array-byte-offset@1.0.2(transitive)
- Removedtyped-array-length@1.0.6(transitive)
- Removedunbox-primitive@1.0.2(transitive)
- Removedwhich-boxed-primitive@1.0.2(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
Updatedis-nil-x@^1.0.5