is-array-buffer-x
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-22T13:18:34.322Z", | ||
"date": "2019-07-24T01:04:29.501Z", | ||
"describe": "", | ||
"description": "Detect whether or not an object is an ArrayBuffer.", | ||
"file": "is-array-buffer-x.js", | ||
"hash": "34b5742bd49fd07cb81d", | ||
"hash": "1e86157b96d0a43aa19d", | ||
"license": "MIT", | ||
"version": "2.0.6" | ||
"version": "2.0.7" | ||
} | ||
@@ -862,7 +862,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). | ||
* | ||
@@ -874,18 +873,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); | ||
@@ -898,7 +886,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). | ||
* | ||
@@ -910,18 +897,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); | ||
@@ -933,4 +909,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). | ||
* | ||
@@ -942,19 +918,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); | ||
@@ -967,3 +931,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'); | ||
@@ -974,26 +937,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); | ||
@@ -1415,3 +1365,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). | ||
* | ||
@@ -1432,25 +1382,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)); | ||
@@ -1465,3 +1393,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); | ||
@@ -1499,8 +1427,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'); | ||
@@ -1518,3 +1440,3 @@ | ||
/** | ||
* This method converts argument to a value of type Number. (ES2016). | ||
* This method converts argument to a value of type Number. (ES2018). | ||
* | ||
@@ -1527,40 +1449,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); | ||
@@ -1574,7 +1459,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)); | ||
} | ||
@@ -1589,3 +1474,3 @@ | ||
if (trimmed !== value) { | ||
return toNumber2018(trimmed); | ||
return toNumber(trimmed); | ||
} | ||
@@ -1597,3 +1482,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); | ||
@@ -1649,3 +1534,3 @@ | ||
* This method returns the sign of a number, indicating whether the number is positive, | ||
* negative or zero. (ES2016). | ||
* negative or zero. (ES2019). | ||
* | ||
@@ -1658,22 +1543,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); | ||
@@ -1688,3 +1554,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); | ||
@@ -1700,3 +1566,3 @@ | ||
/** | ||
* Converts `value` to an integer. (ES2016). | ||
* Converts `value` to an integer. (ES2019). | ||
* | ||
@@ -1707,23 +1573,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); | ||
@@ -1742,3 +1588,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); | ||
@@ -1745,0 +1591,0 @@ |
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-22T13:18:34.322Z", | ||
"date": "2019-07-24T01:04:29.501Z", | ||
"describe": "", | ||
"description": "Detect whether or not an object is an ArrayBuffer.", | ||
"file": "is-array-buffer-x.min.js", | ||
"hash": "1b72075b2c347162fcb9", | ||
"hash": "44b2c41acea697afcda2", | ||
"license": "MIT", | ||
"version": "2.0.6" | ||
"version": "2.0.7" | ||
} | ||
@@ -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";var n=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(6);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(5))},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){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}}},o=function(e){return!!e},i={}.toString,c=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":i.call(e)},u=r(0),s=r.n(u);for(var a=n(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===a.threw&&!0===a.value,l=f&&s()(Symbol.toStringTag),p=r(1),y=r.n(p),b=function(e){return null==e},d=function(e){if(b(e))throw new TypeError("Cannot call method on ".concat(e));return e},v="Cannot convert a Symbol value to a string",g=v.constructor,m=function(e){if(s()(e))throw new TypeError(v);return g(e)},w=function(e){return m(d(e))},h=[{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"}],S="",j="",O=h.length,_=0;_<O;_+=1)h[_].es2016&&(S+=h[_].string),h[_].es2018&&(j+=h[_].string);var x=j,T=S,E="",P=/none/.constructor,A=(new P("^[".concat(T,"]+")),new P("^[".concat(x,"]+"))),F=E.replace;var M=function(e){return F.call(w(e),A,E)},k="",N=/none/.constructor,$=(new N("[".concat(T,"]+$")),new N("[".concat(x,"]+$"))),B=k.replace;var C=function(e){return B.call(w(e),$,k)};var D=function(e){return M(C(e))},I=" ",G=/none/.constructor,L=(new G("[".concat(T,"]+"),"g"),new G("[".concat(x,"]+"),"g")),X=I.replace;var q=function(e){return X.call(D(e),L,I)},R=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,H="".replace,U=function(e,t){return H.call(w(e),R,arguments.length>1?m(t):"")};var V=n.constructor,z=(!0).constructor,J=n.toString,K=/^class /,Q=K.test,W=!1===n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),V('"use strict"; return class My {};')()}.bind(void 0)).threw,Y=function(e){return Q.call(K,q(U(J.call(e)," ")))},Z=function(e){var t=n(Y,e);return!1===t.threw&&t.value},ee=function(e,t){if(y()(e))return!1;if(l)return function(e,t){return!(W&&!1===t&&Z(e)||!1!==n.call(e,J).threw)}(e,o(t));if(W&&!1===z(t)&&Z(e))return!1;var r=c(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},te=function(e){return!1===y()(e)&&!1===ee(e,!0)},re={}.constructor,ne=function(e){return re(d(e))},oe=r(2),ie=r.n(oe),ce="string".constructor,ue=(0).constructor,se=f&&Symbol.toPrimitive,ae=f&&Symbol.prototype.valueOf,fe=["toString","valueOf"],le=["valueOf","toString"],pe=function(e,t){if(d(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?fe:le,i=0;i<2;i+=1)if(r=e[o[i]],ee(r)&&(n=r.call(e),y()(n)))return n;throw new TypeError("No default value")},ye=function(e,t){if(t){if(e===ce)return"string";if(e===ue)return"number"}return"default"},be=function(e){if(f){if(se)return function(e,t){var r=e[t];if(!1===b(r)){if(!1===ee(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,se);if(s()(e))return ae}},de=function(e,t){if(y()(e))return e;var r=ye(t,arguments.length>1),n=be(e);if(void 0!==n){var o=n.call(e,r);if(y()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var i="default"===r&&(ie()(e)||s()(e))?"string":r;return pe(e,"default"===i?"number":i)};function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ge=function(e){var t=de(e,String);return f&&"symbol"===ve(t)?t:m(t)},me={}.hasOwnProperty,we=function(e,t){return me.call(ne(e),ge(t))},he=r(3),Se=r.n(he),je=f&&Symbol.prototype.toString,Oe="function"==typeof je&&s.a,_e="".constructor,xe=function(e){return Oe&&Oe(e)?je.call(e):_e(e)},Te=NaN,Ee=parseInt,Pe=(0).constructor,Ae="".charAt,Fe=/^[-+]?0[xX]/,Me=Fe.test;var ke=function(e,t){var r=M(m(e));return""===Ae.call(r,0)?Te:Ee(r,Pe(t)||(Me.call(Fe,r)?16:10))},Ne=2,$e=8,Be=2,Ce="Cannot convert a Symbol value to a number",De=Be.constructor,Ie=Ce.slice,Ge=/^0b[01]+$/i,Le=Ge.constructor,Xe=Ge.test,qe=function(e){return Xe.call(Ge,e)},Re=/^0o[0-7]+$/i,He=function(e){return Xe.call(Re,e)},Ue=(new Le("[ ]","g"),new Le("[ ]","g")),Ve=/^[-+]0x[0-9a-f]+$/i,ze=function(e){return Xe.call(Ve,e)};var Je=function e(t){var r=de(t,De);if(s()(r))throw new TypeError(Ce);if("string"==typeof r){if(qe(r))return e(ke(Ie.call(r,Be),Ne));if(He(r))return e(ke(Ie.call(r,Be),$e));if(function(e){return Xe.call(Ue,e)}(r)||ze(r))return Te;var n=D(r);if(n!==r)return e(n)}return De(r)},Ke=function(e){return e!=e},Qe=function(e){return"number"==typeof e&&!1===Ke(e)&&e!==1/0&&e!==-1/0};var We=function(e){var t=Je(e);return 0===t||Ke(t)?t:t>0?1:-1},Ye=Math.abs,Ze=Math.floor;var et,tt,rt,nt=function(e){var t=Je(e);return Ke(t)?0:0===t||!1===Qe(t)?t:We(t)*Ze(Ye(t))},ot=function(e){var t=Je(e),r=arguments.length;if(r<2)return t;var n,o=Je(arguments[1]);if(r<3?(n=o,o=0):n=Je(arguments[2]),o>n)throw new RangeError('"min" must be less than "max"');return t<o?o:t>n?n:t},it=/^(?:0|[1-9]\d*)$/,ct=it.test,ut=function(e,t){var r=xe(e);if(!1===ct.call(it,r))return!1;var n=Je(r);return arguments.length>1?n<ot(nt(t),9007199254740991):n<9007199254740991},st={}.propertyIsEnumerable,at=function(e,t){return st.call(ne(e),ge(t))},ft={}.constructor,lt=(!0).constructor,pt="function"==typeof ft.getOwnPropertyDescriptor&&ft.getOwnPropertyDescriptor,yt=function(e,t){e[ge(t)]=0;var r=n(pt,e,t);return!1===r.threw&&0===r.value.value};if(pt){var bt="undefined"!=typeof document&&document;if(!bt||yt(bt.createElement("div"),"sentinel")){var dt=n(pt,ft("abc"),1);if(!1===dt.threw&&dt.value&&"b"===dt.value.value)if(yt({},"sentinel")){var vt=!1===n(pt,42,"name").threw;rt=f&&yt({},ft(Symbol("")))?vt?pt:function(e,t){return pt(ne(e),t)}:vt?function(e,t){return pt(e,ge(t))}:function(e,t){return pt(ne(e),ge(t))}}else et=pt;else tt=pt}}if(!1===lt(rt)||et||tt){var gt,mt,wt=ft.prototype,ht=we(wt,"__defineGetter__");if(ht){var St=wt.__lookupGetter__,jt=wt.__lookupSetter__;gt=function(e,t){return St.call(e,t)},mt=function(e,t){return jt.call(e,t)}}rt=function(e,t){var r,o=ne(e),i=ge(t);if(et&&!1===(r=n.call(ft,et,o,i)).threw)return r.value;var c=Se()(o)&&ut(i,o.length);if(tt&&!1===c&&!1===(r=n.call(ft,tt,o,i)).threw)return r.value;var u=void 0;if(!1===c&&!1===we(o,i))return u;if(u={configurable:!1===y()(e)&&!1===c,enumerable:at(o,i)},ht){var s=o.__proto__,a=o!==wt;a&&(o.__proto__=wt);var f=gt(o,i),l=mt(o,i);if(a&&(o.__proto__=s),f||l)return f&&(u.get=f),l&&(u.set=l),u}return c?(u.value=o.charAt(i),u.writable=!1):(u.value=o[i],u.writable=!0),u}}var Ot="function"==typeof ArrayBuffer,_t=!1;if(Ot&&l){var xt=rt(ArrayBuffer.prototype,"byteLength");if(xt&&"function"==typeof xt.get){var Tt=n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),new ArrayBuffer(4)}.bind(void 0));!1===Tt.threw&&te(Tt.value)&&(Tt=n.call(Tt.value,xt.get),_t=!1===Tt.threw&&"number"==typeof Tt.value&&xt.get)}}t.default=function(e){if(!1===Ot||!1===te(e))return!1;if(!1===_t)return"[object ArrayBuffer]"===c(e);var t=n.call(e,_t);return!1===t.threw&&"number"==typeof t.value}}])}); | ||
*/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";var n=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(6);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(5))},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){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}}},o=function(e){return!!e},i={}.toString,c=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":i.call(e)},u=r(0),s=r.n(u);for(var f=n(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===f.threw&&!0===f.value,l=a&&s()(Symbol.toStringTag),p=r(1),y=r.n(p),b=function(e){return null==e},d=function(e){if(b(e))throw new TypeError("Cannot call method on ".concat(e));return e},g="Cannot convert a Symbol value to a string",v=g.constructor,m=function(e){if(s()(e))throw new TypeError(g);return v(e)},w=function(e){return m(d(e))},h=[{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"}],S="",j=h.length,O=0;O<j;O+=1)h[O].es2016&&h[O].string,h[O].es2018&&(S+=h[O].string);var _=S,x=new(0,/none/.constructor)("^[".concat(_,"]+")),T="".replace,E=function(e){return T.call(w(e),x,"")},P=new(0,/none/.constructor)("[".concat(_,"]+$")),A="".replace,F=function(e){return A.call(w(e),P,"")},M=function(e){return E(F(e))},N=new(0,/none/.constructor)("[".concat(_,"]+"),"g"),k=" ".replace,C=function(e){return k.call(M(e),N," ")},B=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,D="".replace,$=function(e,t){return D.call(w(e),B,arguments.length>1?m(t):"")};var I=n.constructor,G=(!0).constructor,L=n.toString,X=/^class /,q=X.test,R=!1===n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),I('"use strict"; return class My {};')()}.bind(void 0)).threw,H=function(e){return q.call(X,C($(L.call(e)," ")))},U=function(e){var t=n(H,e);return!1===t.threw&&t.value},V=function(e,t){if(y()(e))return!1;if(l)return function(e,t){return!(R&&!1===t&&U(e)||!1!==n.call(e,L).threw)}(e,o(t));if(R&&!1===G(t)&&U(e))return!1;var r=c(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},z=function(e){return!1===y()(e)&&!1===V(e,!0)},J={}.constructor,K=function(e){return J(d(e))},Q=r(2),W=r.n(Q),Y="string".constructor,Z=(0).constructor,ee=a&&Symbol.toPrimitive,te=a&&Symbol.prototype.valueOf,re=["toString","valueOf"],ne=["valueOf","toString"],oe=function(e,t){if(d(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?re:ne,i=0;i<2;i+=1)if(r=e[o[i]],V(r)&&(n=r.call(e),y()(n)))return n;throw new TypeError("No default value")},ie=function(e,t){if(t){if(e===Y)return"string";if(e===Z)return"number"}return"default"},ce=function(e){if(a){if(ee)return function(e,t){var r=e[t];if(!1===b(r)){if(!1===V(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,ee);if(s()(e))return te}},ue=function(e,t){if(y()(e))return e;var r=ie(t,arguments.length>1),n=ce(e);if(void 0!==n){var o=n.call(e,r);if(y()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var i="default"===r&&(W()(e)||s()(e))?"string":r;return oe(e,"default"===i?"number":i)};function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var fe,ae,le,pe=function(e){var t=ue(e,String);return a&&"symbol"===se(t)?t:m(t)},ye={}.hasOwnProperty,be=function(e,t){return ye.call(K(e),pe(t))},de=r(3),ge=r.n(de),ve=a&&Symbol.prototype.toString,me="function"==typeof ve&&s.a,we="".constructor,he=function(e){return me&&me(e)?ve.call(e):we(e)},Se=parseInt,je=(0).constructor,Oe="".charAt,_e=/^[-+]?0[xX]/,xe=_e.test,Te=function(e,t){var r=E(m(e));return""===Oe.call(r,0)?NaN:Se(r,je(t)||(xe.call(_e,r)?16:10))},Ee=2..constructor,Pe="Cannot convert a Symbol value to a number".slice,Ae=/^0b[01]+$/i,Fe=Ae.test,Me=/^0o[0-7]+$/i,Ne=new(0,Ae.constructor)("[ ]","g"),ke=/^[-+]0x[0-9a-f]+$/i,Ce=function e(t){var r=ue(t,Ee);if(s()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return Fe.call(Ae,e)}(r))return e(Te(Pe.call(r,2),2));if(function(e){return Fe.call(Me,e)}(r))return e(Te(Pe.call(r,2),8));if(function(e){return Fe.call(Ne,e)}(r)||function(e){return Fe.call(ke,e)}(r))return NaN;var n=M(r);if(n!==r)return e(n)}return Ee(r)},Be=function(e){return e!=e},De=function(e){return"number"==typeof e&&!1===Be(e)&&e!==1/0&&e!==-1/0},$e=function(e){var t=Ce(e);return 0===t||Be(t)?t:t>0?1:-1},Ie=Math.abs,Ge=Math.floor,Le=function(e){var t=Ce(e);return Be(t)?0:0===t||!1===De(t)?t:$e(t)*Ge(Ie(t))},Xe=function(e){var t=Ce(e),r=arguments.length;if(r<2)return t;var n,o=Ce(arguments[1]);if(r<3?(n=o,o=0):n=Ce(arguments[2]),o>n)throw new RangeError('"min" must be less than "max"');return t<o?o:t>n?n:t},qe=/^(?:0|[1-9]\d*)$/,Re=qe.test,He=function(e,t){var r=he(e);if(!1===Re.call(qe,r))return!1;var n=Ce(r);return arguments.length>1?n<Xe(Le(t),9007199254740991):n<9007199254740991},Ue={}.propertyIsEnumerable,Ve=function(e,t){return Ue.call(K(e),pe(t))},ze={}.constructor,Je=(!0).constructor,Ke="function"==typeof ze.getOwnPropertyDescriptor&&ze.getOwnPropertyDescriptor,Qe=function(e,t){e[pe(t)]=0;var r=n(Ke,e,t);return!1===r.threw&&0===r.value.value};if(Ke){var We="undefined"!=typeof document&&document;if(!We||Qe(We.createElement("div"),"sentinel")){var Ye=n(Ke,ze("abc"),1);if(!1===Ye.threw&&Ye.value&&"b"===Ye.value.value)if(Qe({},"sentinel")){var Ze=!1===n(Ke,42,"name").threw;le=a&&Qe({},ze(Symbol("")))?Ze?Ke:function(e,t){return Ke(K(e),t)}:Ze?function(e,t){return Ke(e,pe(t))}:function(e,t){return Ke(K(e),pe(t))}}else fe=Ke;else ae=Ke}}if(!1===Je(le)||fe||ae){var et,tt,rt=ze.prototype,nt=be(rt,"__defineGetter__");if(nt){var ot=rt.__lookupGetter__,it=rt.__lookupSetter__;et=function(e,t){return ot.call(e,t)},tt=function(e,t){return it.call(e,t)}}le=function(e,t){var r,o=K(e),i=pe(t);if(fe&&!1===(r=n.call(ze,fe,o,i)).threw)return r.value;var c=ge()(o)&&He(i,o.length);if(ae&&!1===c&&!1===(r=n.call(ze,ae,o,i)).threw)return r.value;var u=void 0;if(!1===c&&!1===be(o,i))return u;if(u={configurable:!1===y()(e)&&!1===c,enumerable:Ve(o,i)},nt){var s=o.__proto__,f=o!==rt;f&&(o.__proto__=rt);var a=et(o,i),l=tt(o,i);if(f&&(o.__proto__=s),a||l)return a&&(u.get=a),l&&(u.set=l),u}return c?(u.value=o.charAt(i),u.writable=!1):(u.value=o[i],u.writable=!0),u}}var ct="function"==typeof ArrayBuffer,ut=!1;if(ct&&l){var st=le(ArrayBuffer.prototype,"byteLength");if(st&&"function"==typeof st.get){var ft=n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),new ArrayBuffer(4)}.bind(void 0));!1===ft.threw&&z(ft.value)&&(ft=n.call(ft.value,st.get),ut=!1===ft.threw&&"number"==typeof ft.value&&st.get)}}t.default=function(e){if(!1===ct||!1===z(e))return!1;if(!1===ut)return"[object ArrayBuffer]"===c(e);var t=n.call(e,ut);return!1===t.threw&&"number"==typeof t.value}}])}); | ||
//# sourceMappingURL=is-array-buffer-x.min.js.map |
{ | ||
"name": "is-array-buffer-x", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Detect whether or not an object is an ArrayBuffer.", | ||
@@ -51,7 +51,7 @@ "homepage": "https://github.com/Xotic750/is-array-buffer-x", | ||
"dependencies": { | ||
"attempt-x": "^2.0.15", | ||
"has-to-string-tag-x": "^2.0.15", | ||
"is-object-like-x": "^2.0.18", | ||
"object-get-own-property-descriptor-x": "^4.0.11", | ||
"to-string-tag-x": "^2.0.19" | ||
"attempt-x": "^2.0.16", | ||
"has-to-string-tag-x": "^2.0.16", | ||
"is-object-like-x": "^2.0.19", | ||
"object-get-own-property-descriptor-x": "^4.0.12", | ||
"to-string-tag-x": "^2.0.20" | ||
}, | ||
@@ -70,3 +70,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", | ||
@@ -94,4 +94,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", | ||
@@ -119,3 +119,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", | ||
@@ -125,3 +125,3 @@ "strip-ansi": "^5.2.0", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.36.1", | ||
"webpack": "^4.37.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
@@ -128,0 +128,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238448
1688
Updatedattempt-x@^2.0.16
Updatedhas-to-string-tag-x@^2.0.16
Updatedis-object-like-x@^2.0.19
Updatedto-string-tag-x@^2.0.20