Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-length-x

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-length-x - npm Package Compare versions

Comparing version 3.0.16 to 3.0.17

216

dist/is-length-x.js

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T12:29:43.669Z",
"date": "2019-07-24T00:03:57.441Z",
"describe": "",
"description": "Checks if `value` is a valid array-like length.",
"file": "is-length-x.js",
"hash": "e908edd1e77811c7365a",
"hash": "46a9f89140762f9d124b",
"license": "MIT",
"version": "3.0.16"
"version": "3.0.17"
}

@@ -882,7 +882,6 @@ */

var RegExpCtr = /none/.constructor;
var reLeft2016 = new RegExpCtr("^[".concat(string2016, "]+"));
var reLeft = new RegExpCtr("^[".concat(white_space_x_esm, "]+"));
var replace = EMPTY_STRING.replace;
/**
* This method removes whitespace from the left end of a string. (ES2016).
* This method removes whitespace from the start of a string. (ES2019).
*

@@ -894,18 +893,7 @@ * @param {string} [string] - The string to trim the left end whitespace from.

function trimLeft2016(string) {
return replace.call(require_coercible_to_string_x_esm(string), reLeft2016, EMPTY_STRING);
}
/**
* This method removes whitespace from the left end of a string. (ES2018).
*
* @param {string} [string] - The string to trim the left end whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The left trimmed string.
*/
var trim_left_x_esm_trimLeft2018 = function trimLeft2018(string) {
var trim_left_x_esm_trimStart = function trimStart(string) {
return replace.call(require_coercible_to_string_x_esm(string), reLeft, EMPTY_STRING);
};
/* harmony default export */ var trim_left_x_esm = (trim_left_x_esm_trimLeft2018);
/* harmony default export */ var trim_left_x_esm = (trim_left_x_esm_trimStart);

@@ -918,7 +906,6 @@

var trim_right_x_esm_RegExpCtr = /none/.constructor;
var reRight2016 = new trim_right_x_esm_RegExpCtr("[".concat(string2016, "]+$"));
var reRight2018 = new trim_right_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+$"));
var trim_right_x_esm_replace = trim_right_x_esm_EMPTY_STRING.replace;
/**
* This method removes whitespace from the right end of a string. (ES2016).
* This method removes whitespace from the end of a string. (ES2019).
*

@@ -930,18 +917,7 @@ * @param {string} [string] - The string to trim the right end whitespace from.

function trimRight2016(string) {
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2016, trim_right_x_esm_EMPTY_STRING);
}
/**
* This method removes whitespace from the right end of a string. (ES2018).
*
* @param {string} [string] - The string to trim the right end whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The right trimmed string.
*/
var trim_right_x_esm_trimRight2018 = function trimRight2018(string) {
var trim_right_x_esm_trimEnd = function trimEnd(string) {
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2018, trim_right_x_esm_EMPTY_STRING);
};
/* harmony default export */ var trim_right_x_esm = (trim_right_x_esm_trimRight2018);
/* harmony default export */ var trim_right_x_esm = (trim_right_x_esm_trimEnd);

@@ -953,4 +929,4 @@

/**
* This method removes whitespace from the left and right end of a string.
* (ES2016).
* This method removes whitespace from the start and end of a string.
* (ES2019).
*

@@ -962,19 +938,7 @@ * @param {string} [string] - The string to trim the whitespace from.

function trim2016(string) {
return trimLeft2016(trimRight2016(string));
}
/**
* This method removes whitespace from the left and right end of a string.
* (ES2018).
*
* @param {string} [string] - The string to trim the whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The trimmed string.
*/
var trim_x_esm_trim2018 = function trim2018(string) {
var trim_x_esm_trim = function trim(string) {
return trim_left_x_esm(trim_right_x_esm(string));
};
/* harmony default export */ var trim_x_esm = (trim_x_esm_trim2018);
/* harmony default export */ var trim_x_esm = (trim_x_esm_trim);

@@ -987,3 +951,2 @@

var normalize_space_x_esm_RegExpCtr = /none/.constructor;
var reNormalize2016 = new normalize_space_x_esm_RegExpCtr("[".concat(string2016, "]+"), 'g');
var reNormalize2018 = new normalize_space_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+"), 'g');

@@ -994,26 +957,13 @@ var normalize_space_x_esm_replace = SPACE.replace;

* replaces sequences of whitespace characters by a single space,
* and returns the resulting string. (ES2016).
* and returns the resulting string. (ES2019).
*
* @param {string} [string] - The string to be normalized.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The normalized string.
*/
function normalizeSpace2016(string) {
return normalize_space_x_esm_replace.call(trim2016(string), reNormalize2016, SPACE);
}
/**
* This method strips leading and trailing white-space from a string,
* replaces sequences of whitespace characters by a single space,
* and returns the resulting string. (ES2018).
*
* @param {string} [string] - The string to be normalized.
* @throws {TypeError} If string is null or undefined or not coercible.
*/
var normalize_space_x_esm_normalizeSpace2018 = function normalizeSpace2018(string) {
var normalize_space_x_esm_normalizeSpace = function normalizeSpace(string) {
return normalize_space_x_esm_replace.call(trim_x_esm(string), reNormalize2018, SPACE);
};
/* harmony default export */ var normalize_space_x_esm = (normalize_space_x_esm_normalizeSpace2018);
/* harmony default export */ var normalize_space_x_esm = (normalize_space_x_esm_normalizeSpace);

@@ -1319,3 +1269,3 @@

* This method parses a string argument and returns an integer of the specified
* radix (the base in mathematical numeral systems). (ES2016).
* radix (the base in mathematical numeral systems). (ES2019).
*

@@ -1336,25 +1286,3 @@ * @param {string} [string] - The value to parse. If the string argument is not a

function parseInt2016(string, radix) {
var str = trimLeft2016(to_string_x_esm(string));
return nativeParseInt(str, castNumber(radix) || (parse_int_x_esm_test.call(hexRegex, str) ? 16 : 10));
}
/**
* This method parses a string argument and returns an integer of the specified
* radix (the base in mathematical numeral systems). (ES2018).
*
* @param {string} [string] - The value to parse. If the string argument is not a
* string, then it is converted to a string (using the ToString abstract
* operation). Leading whitespace in the string argument is ignored.
* @param {number} [radix] - An integer between 2 and 36 that represents the radix
* (the base in mathematical numeral systems) of the above mentioned string.
* Specify 10 for the decimal numeral system commonly used by humans. Always
* specify this parameter to eliminate reader confusion and to guarantee
* predictable behavior. Different implementations produce different results
* when a radix is not specified, usually defaulting the value to 10.
* @throws {TypeError} If target is a Symbol or is not coercible.
* @returns {number} An integer number parsed from the given string. If the first
* character cannot be converted to a number, NaN is returned.
*/
var parse_int_x_esm_parseInt2018 = function parseInt2018(string, radix) {
var parse_int_x_esm_$parseInt = function $parseInt(string, radix) {
var str = trim_left_x_esm(to_string_x_esm(string));

@@ -1369,3 +1297,3 @@

/* harmony default export */ var parse_int_x_esm = (parse_int_x_esm_parseInt2018);
/* harmony default export */ var parse_int_x_esm = (parse_int_x_esm_$parseInt);

@@ -1403,8 +1331,2 @@

var nonWSregex2016 = new RegExpConstructor("[\x85\u200B\uFFFE]", 'g');
var hasNonWS2016 = function _hasNonWS(value) {
return to_number_x_esm_test.call(nonWSregex2016, value);
};
var nonWSregex2018 = new RegExpConstructor("[\x85\u180E\u200B\uFFFE]", 'g');

@@ -1422,3 +1344,3 @@

/**
* This method converts argument to a value of type Number. (ES2016).
* This method converts argument to a value of type Number. (ES2018).
*

@@ -1431,40 +1353,3 @@ * @param {*} [argument] - The argument to convert to a number.

function toNumber2016(argument) {
var value = to_primitive_x_esm(argument, Number);
if (is_symbol_default()(value)) {
throw new TypeError(to_number_x_esm_ERROR_MESSAGE);
}
if (typeof value === 'string') {
if (isBinary(value)) {
return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), binaryRadix));
}
if (isOctal(value)) {
return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), octalRadix));
}
if (hasNonWS2016(value) || isInvalidHexLiteral(value)) {
return nan_x_esm;
}
var trimmed = trim2016(value);
if (trimmed !== value) {
return toNumber2016(trimmed);
}
}
return to_number_x_esm_castNumber(value);
}
/**
* This method converts argument to a value of type Number. (ES2018).
*
* @param {*} [argument] - The argument to convert to a number.
* @throws {TypeError} - If argument is a Symbol or not coercible.
* @returns {*} The argument converted to a number.
*/
var to_number_x_esm_toNumber2018 = function toNumber2018(argument) {
var to_number_x_esm_toNumber = function toNumber(argument) {
var value = to_primitive_x_esm(argument, to_number_x_esm_castNumber);

@@ -1478,7 +1363,7 @@

if (isBinary(value)) {
return toNumber2018(parse_int_x_esm(pStrSlice.call(value, testCharsCount), binaryRadix));
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), binaryRadix));
}
if (isOctal(value)) {
return toNumber2018(parse_int_x_esm(pStrSlice.call(value, testCharsCount), octalRadix));
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), octalRadix));
}

@@ -1493,3 +1378,3 @@

if (trimmed !== value) {
return toNumber2018(trimmed);
return toNumber(trimmed);
}

@@ -1501,3 +1386,3 @@ }

/* harmony default export */ var to_number_x_esm = (to_number_x_esm_toNumber2018);
/* harmony default export */ var to_number_x_esm = (to_number_x_esm_toNumber);

@@ -1510,3 +1395,3 @@

* This method returns the sign of a number, indicating whether the number is positive,
* negative or zero. (ES2016).
* negative or zero. (ES2019).
*

@@ -1519,22 +1404,3 @@ * @param {*} x - A number.

function sign2016(x) {
var n = toNumber2016(x);
if (n === 0 || is_nan_x_esm(n)) {
return n;
}
return n > 0 ? 1 : -1;
}
/**
* This method returns the sign of a number, indicating whether the number is positive,
* negative or zero. (ES2018).
*
* @param {*} x - A number.
* @returns {number} A number representing the sign of the given argument. If the argument
* is a positive number, negative number, positive zero or negative zero, the function will
* return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.
*/
var math_sign_x_esm_sign2018 = function sign2018(x) {
var math_sign_x_esm_sign = function sign(x) {
var n = to_number_x_esm(x);

@@ -1549,3 +1415,3 @@

/* harmony default export */ var math_sign_x_esm = (math_sign_x_esm_sign2018);
/* harmony default export */ var math_sign_x_esm = (math_sign_x_esm_sign);

@@ -1561,3 +1427,3 @@

/**
* Converts `value` to an integer. (ES2016).
* Converts `value` to an integer. (ES2019).
*

@@ -1568,23 +1434,3 @@ * @param {*} value - The value to convert.

function toInteger2016(value) {
var number = toNumber2016(value);
if (is_nan_x_esm(number)) {
return 0;
}
if (number === 0 || is_finite_x_esm(number) === false) {
return number;
}
return sign2016(number) * floor(abs(number));
}
/**
* Converts `value` to an integer. (ES2018).
*
* @param {*} value - The value to convert.
* @returns {number} Returns the converted integer.
*/
var to_integer_x_esm_toInteger2018 = function toInteger2018(value) {
var to_integer_x_esm_toInteger = function toInteger(value) {
var number = to_number_x_esm(value);

@@ -1603,3 +1449,3 @@

/* harmony default export */ var to_integer_x_esm = (to_integer_x_esm_toInteger2018);
/* harmony default export */ var to_integer_x_esm = (to_integer_x_esm_toInteger);

@@ -1606,0 +1452,0 @@

8

dist/is-length-x.min.js

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T12:29:43.669Z",
"date": "2019-07-24T00:03:57.441Z",
"describe": "",
"description": "Checks if `value` is a valid array-like length.",
"file": "is-length-x.min.js",
"hash": "8f79b4f0578fbcc9b8fc",
"hash": "dae1b6ae3612b64cd8ad",
"license": "MIT",
"version": "3.0.16"
"version": "3.0.17"
}

@@ -21,3 +21,3 @@ */

* Released under the MIT License.
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(5);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(4))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,r){"use strict";r.r(t);var n=function(e){return e!=e},o=function(e){return"number"==typeof e&&!1===n(e)&&e!==1/0&&e!==-1/0},i=r(0),s=r.n(i),c=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{threw:!1,value:e.apply(this,r)}}catch(e){return{threw:!0,value:e}}};for(var u=c(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&s()(Symbol(""))}.bind(void 0)),a=!1===u.threw&&!0===u.value,f=r(1),l=r.n(f),p=r(2),d=r.n(p),y=function(e){return!!e},b={}.toString,g=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":b.call(e)},v=a&&s()(Symbol.toStringTag),m=function(e){return null==e},w=function(e){if(m(e))throw new TypeError("Cannot call method on ".concat(e));return e},h="Cannot convert a Symbol value to a string",S=h.constructor,j=function(e){if(s()(e))throw new TypeError(h);return S(e)},O=function(e){return j(w(e))},x=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],T="",E="",P=x.length,F=0;F<P;F+=1)x[F].es2016&&(T+=x[F].string),x[F].es2018&&(E+=x[F].string);var M=E,N=T,$="",k=/none/.constructor,C=(new k("^[".concat(N,"]+")),new k("^[".concat(M,"]+"))),_=$.replace;var D=function(e){return _.call(O(e),C,$)},L="",A=/none/.constructor,I=(new A("[".concat(N,"]+$")),new A("[".concat(M,"]+$"))),X=L.replace;var q=function(e){return X.call(O(e),I,L)};var B=function(e){return D(q(e))},G=" ",H=/none/.constructor,R=(new H("[".concat(N,"]+"),"g"),new H("[".concat(M,"]+"),"g")),U=G.replace;var V=function(e){return U.call(B(e),R,G)},z=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,J="".replace,K=function(e,t){return J.call(O(e),z,arguments.length>1?j(t):"")};var Q=c.constructor,W=(!0).constructor,Y=c.toString,Z=/^class /,ee=Z.test,te=!1===c(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),Q('"use strict"; return class My {};')()}.bind(void 0)).threw,re=function(e){return ee.call(Z,V(K(Y.call(e)," ")))},ne=function(e){var t=c(re,e);return!1===t.threw&&t.value},oe=function(e,t){if(l()(e))return!1;if(v)return function(e,t){return!(te&&!1===t&&ne(e)||!1!==c.call(e,Y).threw)}(e,y(t));if(te&&!1===W(t)&&ne(e))return!1;var r=g(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},ie="string".constructor,se=(0).constructor,ce=a&&Symbol.toPrimitive,ue=a&&Symbol.prototype.valueOf,ae=["toString","valueOf"],fe=["valueOf","toString"],le=function(e,t){if(w(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?ae:fe,i=0;i<2;i+=1)if(r=e[o[i]],oe(r)&&(n=r.call(e),l()(n)))return n;throw new TypeError("No default value")},pe=function(e,t){if(t){if(e===ie)return"string";if(e===se)return"number"}return"default"},de=function(e){if(a){if(ce)return function(e,t){var r=e[t];if(!1===m(r)){if(!1===oe(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,ce);if(s()(e))return ue}},ye=function(e,t){if(l()(e))return e;var r=pe(t,arguments.length>1),n=de(e);if(void 0!==n){var o=n.call(e,r);if(l()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var i="default"===r&&(d()(e)||s()(e))?"string":r;return le(e,"default"===i?"number":i)},be=NaN,ge=parseInt,ve=(0).constructor,me="".charAt,we=/^[-+]?0[xX]/,he=we.test;var Se=function(e,t){var r=D(j(e));return"᠎"===me.call(r,0)?be:ge(r,ve(t)||(he.call(we,r)?16:10))},je=2,Oe=8,xe=2,Te="Cannot convert a Symbol value to a number",Ee=xe.constructor,Pe=Te.slice,Fe=/^0b[01]+$/i,Me=Fe.constructor,Ne=Fe.test,$e=function(e){return Ne.call(Fe,e)},ke=/^0o[0-7]+$/i,Ce=function(e){return Ne.call(ke,e)},_e=(new Me("[…​￾]","g"),new Me("[…᠎​￾]","g")),De=/^[-+]0x[0-9a-f]+$/i,Le=function(e){return Ne.call(De,e)};var Ae=function e(t){var r=ye(t,Ee);if(s()(r))throw new TypeError(Te);if("string"==typeof r){if($e(r))return e(Se(Pe.call(r,xe),je));if(Ce(r))return e(Se(Pe.call(r,xe),Oe));if(function(e){return Ne.call(_e,e)}(r)||Le(r))return be;var n=B(r);if(n!==r)return e(n)}return Ee(r)};var Ie=function(e){var t=Ae(e);return 0===t||n(t)?t:t>0?1:-1},Xe=Math.abs,qe=Math.floor;var Be=function(e){var t=Ae(e);return n(t)?0:0===t||!1===o(t)?t:Ie(t)*qe(Xe(t))},Ge=function(e){return o(e)&&Be(e)===e},He=function(e){return Ge(e)&&e>=-9007199254740991&&e<=9007199254740991};t.default=function(e){return He(e)&&e>=0}}])});
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(5);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(4))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,r){"use strict";r.r(t);var n=function(e){return e!=e},o=function(e){return"number"==typeof e&&!1===n(e)&&e!==1/0&&e!==-1/0},i=r(0),s=r.n(i),c=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{threw:!1,value:e.apply(this,r)}}catch(e){return{threw:!0,value:e}}};for(var u=c(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&s()(Symbol(""))}.bind(void 0)),f=!1===u.threw&&!0===u.value,a=r(1),l=r.n(a),p=r(2),d=r.n(p),y=function(e){return!!e},b={}.toString,g=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":b.call(e)},m=f&&s()(Symbol.toStringTag),v=function(e){return null==e},w=function(e){if(v(e))throw new TypeError("Cannot call method on ".concat(e));return e},h="Cannot convert a Symbol value to a string",S=h.constructor,j=function(e){if(s()(e))throw new TypeError(h);return S(e)},O=function(e){return j(w(e))},x=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],T="",E=x.length,P=0;P<E;P+=1)x[P].es2016&&x[P].string,x[P].es2018&&(T+=x[P].string);var F=T,M=new(0,/none/.constructor)("^[".concat(F,"]+")),N="".replace,C=function(e){return N.call(O(e),M,"")},k=new(0,/none/.constructor)("[".concat(F,"]+$")),$="".replace,_=function(e){return $.call(O(e),k,"")},D=function(e){return C(_(e))},L=new(0,/none/.constructor)("[".concat(F,"]+"),"g"),A=" ".replace,I=function(e){return A.call(D(e),L," ")},X=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,q="".replace,B=function(e,t){return q.call(O(e),X,arguments.length>1?j(t):"")};var G=c.constructor,H=(!0).constructor,R=c.toString,U=/^class /,V=U.test,z=!1===c(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),G('"use strict"; return class My {};')()}.bind(void 0)).threw,J=function(e){return V.call(U,I(B(R.call(e)," ")))},K=function(e){var t=c(J,e);return!1===t.threw&&t.value},Q=function(e,t){if(l()(e))return!1;if(m)return function(e,t){return!(z&&!1===t&&K(e)||!1!==c.call(e,R).threw)}(e,y(t));if(z&&!1===H(t)&&K(e))return!1;var r=g(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},W="string".constructor,Y=(0).constructor,Z=f&&Symbol.toPrimitive,ee=f&&Symbol.prototype.valueOf,te=["toString","valueOf"],re=["valueOf","toString"],ne=function(e,t){if(w(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?te:re,i=0;i<2;i+=1)if(r=e[o[i]],Q(r)&&(n=r.call(e),l()(n)))return n;throw new TypeError("No default value")},oe=function(e,t){if(t){if(e===W)return"string";if(e===Y)return"number"}return"default"},ie=function(e){if(f){if(Z)return function(e,t){var r=e[t];if(!1===v(r)){if(!1===Q(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,Z);if(s()(e))return ee}},se=function(e,t){if(l()(e))return e;var r=oe(t,arguments.length>1),n=ie(e);if(void 0!==n){var o=n.call(e,r);if(l()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var i="default"===r&&(d()(e)||s()(e))?"string":r;return ne(e,"default"===i?"number":i)},ce=parseInt,ue=(0).constructor,fe="".charAt,ae=/^[-+]?0[xX]/,le=ae.test,pe=function(e,t){var r=C(j(e));return"᠎"===fe.call(r,0)?NaN:ce(r,ue(t)||(le.call(ae,r)?16:10))},de=2..constructor,ye="Cannot convert a Symbol value to a number".slice,be=/^0b[01]+$/i,ge=be.test,me=/^0o[0-7]+$/i,ve=new(0,be.constructor)("[…᠎​￾]","g"),we=/^[-+]0x[0-9a-f]+$/i,he=function e(t){var r=se(t,de);if(s()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return ge.call(be,e)}(r))return e(pe(ye.call(r,2),2));if(function(e){return ge.call(me,e)}(r))return e(pe(ye.call(r,2),8));if(function(e){return ge.call(ve,e)}(r)||function(e){return ge.call(we,e)}(r))return NaN;var n=D(r);if(n!==r)return e(n)}return de(r)},Se=function(e){var t=he(e);return 0===t||n(t)?t:t>0?1:-1},je=Math.abs,Oe=Math.floor,xe=function(e){var t=he(e);return n(t)?0:0===t||!1===o(t)?t:Se(t)*Oe(je(t))},Te=function(e){return o(e)&&xe(e)===e},Ee=function(e){return Te(e)&&e>=-9007199254740991&&e<=9007199254740991};t.default=function(e){return Ee(e)&&e>=0}}])});
//# sourceMappingURL=is-length-x.min.js.map
{
"name": "is-length-x",
"version": "3.0.16",
"version": "3.0.17",
"description": "Checks if `value` is a valid array-like length.",

@@ -52,3 +52,3 @@ "homepage": "https://github.com/Xotic750/is-length-x",

"dependencies": {
"is-safe-integer-x": "^2.0.16"
"is-safe-integer-x": "^2.0.17"
},

@@ -67,3 +67,3 @@ "devDependencies": {

"@babel/runtime": "^7.5.5",
"@prorenata/eslint-config-vue": "^1.13.10",
"@prorenata/eslint-config-vue": "^1.13.11",
"@types/jest": "^24.0.15",

@@ -91,4 +91,4 @@ "@types/node": "^12.6.8",

"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.13.0",
"eslint-plugin-jsdoc": "^15.6.1",
"eslint-plugin-jest": "^22.13.6",
"eslint-plugin-jsdoc": "^15.7.1",
"eslint-plugin-json": "^1.4.0",

@@ -116,3 +116,3 @@ "eslint-plugin-lodash": "^5.1.0",

"rimraf": "^2.6.3",
"semver": "^6.2.0",
"semver": "^6.3.0",
"source-map-loader": "^0.2.4",

@@ -122,3 +122,3 @@ "strip-ansi": "^5.2.0",

"typescript": "^3.5.3",
"webpack": "^4.36.1",
"webpack": "^4.37.0",
"webpack-bundle-analyzer": "^3.3.2",

@@ -125,0 +125,0 @@ "webpack-cli": "^3.3.6",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc