to-length-x
Advanced tools
Comparing version 4.0.25 to 4.0.26
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-27T14:15:59.759Z", | ||
"date": "2019-07-31T22:15:17.861Z", | ||
"describe": "", | ||
"description": "Shim for ToLength.", | ||
"file": "to-length-x.js", | ||
"hash": "33b27e64786f207f0d90", | ||
"hash": "5a298b38937c3172a871", | ||
"license": "MIT", | ||
"version": "4.0.25" | ||
"version": "4.0.26" | ||
} | ||
@@ -944,5 +944,3 @@ */ | ||
// CONCATENATED MODULE: ./node_modules/is-function-x/dist/is-function-x.esm.js | ||
var is_function_x_esm_this = undefined; | ||
function is_function_x_esm_newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } | ||
@@ -954,6 +952,3 @@ | ||
var FunctionCtr = attempt_x_esm.constructor; | ||
var castBoolean = true.constructor; | ||
var is_function_x_esm_SPACE = ' '; | ||
@@ -966,10 +961,8 @@ var fToString = attempt_x_esm.toString; | ||
var test = ctrRx.test; | ||
var hasNativeClass = attempt_x_esm(function () { | ||
is_function_x_esm_newArrowCheck(this, is_function_x_esm_this); | ||
var hasNativeClass = attempt_x_esm(function attemptee() { | ||
/* eslint-disable-next-line babel/new-cap */ | ||
return FunctionCtr('"use strict"; return class My {};')(); | ||
}.bind(undefined)).threw === false; | ||
}).threw === false; | ||
var testClassstring = function _testClassstring(value) { | ||
var is_function_x_esm_testClassString = function testClassString(value) { | ||
return test.call(ctrRx, normalize_space_x_esm(replace_comments_x_esm(fToString.call(value), is_function_x_esm_SPACE))); | ||
@@ -979,3 +972,3 @@ }; | ||
var isES6ClassFn = function isES6ClassFunc(value) { | ||
var result = attempt_x_esm(testClassstring, value); | ||
var result = attempt_x_esm(is_function_x_esm_testClassString, value); | ||
return result.threw === false && result.value; | ||
@@ -1001,2 +994,7 @@ }; | ||
}; | ||
var is_function_x_esm_compareTags = function compareTags(value) { | ||
var strTag = to_string_tag_x_esm(value); | ||
return strTag === funcTag || strTag === genTag || strTag === asyncTag; | ||
}; | ||
/** | ||
@@ -1021,8 +1019,7 @@ * Checks if `value` is classified as a `Function` object. | ||
if (hasNativeClass && castBoolean(allowClass) === false && isES6ClassFn(value)) { | ||
if (hasNativeClass && to_boolean_x_esm(allowClass) === false && isES6ClassFn(value)) { | ||
return false; | ||
} | ||
var strTag = to_string_tag_x_esm(value); | ||
return strTag === funcTag || strTag === genTag || strTag === asyncTag; | ||
return is_function_x_esm_compareTags(value); | ||
}; | ||
@@ -1049,7 +1046,3 @@ | ||
var DEFAULT = 'default'; | ||
/** @type {StringConstructor} */ | ||
var StringCtr = STRING.constructor; | ||
/** @type {NumberConstructor} */ | ||
var NumberCtr = ZERO.constructor; | ||
@@ -1065,2 +1058,10 @@ /* eslint-disable-next-line compat/compat */ | ||
var orderLength = 2; | ||
var assertHint = function assertHint(hint) { | ||
if (typeof hint !== 'string' || hint !== NUMBER && hint !== STRING) { | ||
throw new TypeError('hint must be "string" or "number"'); | ||
} | ||
return hint; | ||
}; | ||
/** | ||
@@ -1072,9 +1073,6 @@ * @param {*} ordinary - The ordinary to convert. | ||
var ordinaryToPrimitive = function _ordinaryToPrimitive(ordinary, hint) { | ||
var to_primitive_x_esm_ordinaryToPrimitive = function ordinaryToPrimitive(ordinary, hint) { | ||
require_object_coercible_x_esm(ordinary); | ||
if (typeof hint !== 'string' || hint !== NUMBER && hint !== STRING) { | ||
throw new TypeError('hint must be "string" or "number"'); | ||
} | ||
assertHint(hint); | ||
var methodNames = hint === STRING ? toStringOrder : toNumberOrder; | ||
@@ -1105,3 +1103,3 @@ var method; | ||
var getMethod = function _getMethod(object, property) { | ||
var to_primitive_x_esm_getMethod = function getMethod(object, property) { | ||
var func = object[property]; | ||
@@ -1152,3 +1150,3 @@ | ||
if (symToPrimitive) { | ||
return getMethod(value, symToPrimitive); | ||
return to_primitive_x_esm_getMethod(value, symToPrimitive); | ||
} | ||
@@ -1163,2 +1161,20 @@ | ||
}; | ||
var to_primitive_x_esm_evalExotic = function evalExotic(obj) { | ||
var exoticToPrim = obj.exoticToPrim, | ||
input = obj.input, | ||
hint = obj.hint; | ||
var result = exoticToPrim.call(input, hint); | ||
if (is_primitive_default()(result)) { | ||
return result; | ||
} | ||
throw new TypeError('unable to convert exotic object to primitive'); | ||
}; | ||
var to_primitive_x_esm_evalPrimitive = function evalPrimitive(input, hint) { | ||
var newHint = hint === DEFAULT && (is_date_object_default()(input) || is_symbol_default()(input)) ? STRING : hint; | ||
return to_primitive_x_esm_ordinaryToPrimitive(input, newHint === DEFAULT ? NUMBER : newHint); | ||
}; | ||
/** | ||
@@ -1174,3 +1190,3 @@ * This method converts a JavaScript object to a primitive value. | ||
* @param {*} input - The input to convert. | ||
* @param {NumberConstructor|StringConstructor} [preferredType] - The preferred type (String or Number). | ||
* @param {Function} [preferredType] - The preferred type (String or Number). | ||
* @throws {TypeError} If unable to convert input to a primitive. | ||
@@ -1189,15 +1205,7 @@ * @returns {string|number} The converted input as a primitive. | ||
var exoticToPrim = to_primitive_x_esm_getExoticToPrim(input); | ||
if (typeof exoticToPrim !== 'undefined') { | ||
var result = exoticToPrim.call(input, hint); | ||
if (is_primitive_default()(result)) { | ||
return result; | ||
} | ||
throw new TypeError('unable to convert exotic object to primitive'); | ||
} | ||
var newHint = hint === DEFAULT && (is_date_object_default()(input) || is_symbol_default()(input)) ? STRING : hint; | ||
return ordinaryToPrimitive(input, newHint === DEFAULT ? NUMBER : newHint); | ||
return typeof exoticToPrim === 'undefined' ? to_primitive_x_esm_evalPrimitive(input, hint) : to_primitive_x_esm_evalExotic({ | ||
exoticToPrim: exoticToPrim, | ||
input: input, | ||
hint: hint | ||
}); | ||
}; | ||
@@ -1279,3 +1287,3 @@ | ||
var isBinary = function _isBinary(value) { | ||
var isBinary = function isBinary(value) { | ||
return to_number_x_esm_test.call(binaryRegex, value); | ||
@@ -1286,10 +1294,10 @@ }; | ||
var isOctal = function _isOctal(value) { | ||
var isOctal = function isOctal(value) { | ||
return to_number_x_esm_test.call(octalRegex, value); | ||
}; | ||
var nonWSregex2018 = new RegExpConstructor("[\x85\u180E\u200B\uFFFE]", 'g'); | ||
var nonWSregex = new RegExpConstructor("[\x85\u180E\u200B\uFFFE]", 'g'); | ||
var hasNonWS2018 = function _hasNonWS(value) { | ||
return to_number_x_esm_test.call(nonWSregex2018, value); | ||
var hasNonWS = function hasNonWS(value) { | ||
return to_number_x_esm_test.call(nonWSregex, value); | ||
}; | ||
@@ -1299,7 +1307,51 @@ | ||
var isInvalidHexLiteral = function _isInvalidHexLiteral(value) { | ||
var isInvalidHexLiteral = function isInvalidHexLiteral(value) { | ||
return to_number_x_esm_test.call(invalidHexLiteral, value); | ||
}; | ||
var to_number_x_esm_assertNotSymbol = function assertNotSymbol(value) { | ||
if (is_symbol_default()(value)) { | ||
throw new TypeError(to_number_x_esm_ERROR_MESSAGE); | ||
} | ||
return value; | ||
}; | ||
var to_number_x_esm_parseBase = function parseBase(value, radix) { | ||
return parse_int_x_esm(pStrSlice.call(value, testCharsCount), radix); | ||
}; | ||
var parseString = function parseString(toNum, value) { | ||
if (isBinary(value)) { | ||
return toNum(to_number_x_esm_parseBase(value, binaryRadix)); | ||
} | ||
if (isOctal(value)) { | ||
return toNum(to_number_x_esm_parseBase(value, octalRadix)); | ||
} | ||
return null; | ||
}; | ||
var to_number_x_esm_convertString = function convertString(toNum, value) { | ||
var val = parseString(toNum, value); | ||
if (val !== null) { | ||
return val; | ||
} | ||
if (hasNonWS(value) || isInvalidHexLiteral(value)) { | ||
return nan_x_esm; | ||
} | ||
var trimmed = trim_x_esm(value); | ||
if (trimmed !== value) { | ||
return toNum(trimmed); | ||
} | ||
return null; | ||
}; | ||
/** | ||
* This method converts argument to a value of type Number. (ES2018). | ||
* This method converts argument to a value of type Number. (ES2019). | ||
* | ||
@@ -1313,26 +1365,10 @@ * @param {*} [argument] - The argument to convert to a number. | ||
var to_number_x_esm_toNumber = function toNumber(argument) { | ||
var value = to_primitive_x_esm(argument, to_number_x_esm_castNumber); | ||
var value = to_number_x_esm_assertNotSymbol(to_primitive_x_esm(argument, to_number_x_esm_castNumber)); | ||
if (is_symbol_default()(value)) { | ||
throw new TypeError(to_number_x_esm_ERROR_MESSAGE); | ||
} | ||
if (typeof value === 'string') { | ||
if (isBinary(value)) { | ||
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), binaryRadix)); | ||
} | ||
var val = to_number_x_esm_convertString(toNumber, value); | ||
if (isOctal(value)) { | ||
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), octalRadix)); | ||
if (val !== null) { | ||
return val; | ||
} | ||
if (hasNonWS2018(value) || isInvalidHexLiteral(value)) { | ||
return nan_x_esm; | ||
} | ||
var trimmed = trim_x_esm(value); | ||
if (trimmed !== value) { | ||
return toNumber(trimmed); | ||
} | ||
} | ||
@@ -1339,0 +1375,0 @@ |
@@ -5,12 +5,12 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-27T14:15:59.759Z", | ||
"date": "2019-07-31T22:15:17.861Z", | ||
"describe": "", | ||
"description": "Shim for ToLength.", | ||
"file": "to-length-x.min.js", | ||
"hash": "cb27bf14b7ae5a01ce6c", | ||
"hash": "e6c890907603d15da650", | ||
"license": "MIT", | ||
"version": "4.0.25" | ||
"version": "4.0.26" | ||
} | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.toLengthX=t():e.toLengthX=t()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){"use strict";var n=Object.prototype.toString;if(r(3)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,r){"use strict"; | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.toLengthX=t():e.toLengthX=t()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(3)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict"; | ||
/*! | ||
@@ -21,3 +21,3 @@ * is-primitive <https://github.com/jonschlinkert/is-primitive> | ||
* 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=r(0),o=r.n(n),i=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 s=i(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&o()(Symbol(""))}.bind(void 0)),c=!1===s.threw&&!0===s.value,u=r(1),a=r.n(u),f=r(2),l=r.n(f),p=function(e){return!!e},d={}.toString,y=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":d.call(e)},b=c&&o()(Symbol.toStringTag),g=function(e){return null==e},m=function(e){if(g(e))throw new TypeError("Cannot call method on ".concat(e));return e},v="Cannot convert a Symbol value to a string",w=v.constructor,h=function(e){if(o()(e))throw new TypeError(v);return w(e)},S=function(e){return h(m(e))},j=[{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"}],O="",x=j.length,T=0;T<x;T+=1)j[T].es2016&&j[T].string,j[T].es2018&&(O+=j[T].string);var E=O,P=new(0,/none/.constructor)("^[".concat(E,"]+")),F="".replace,M=function(e){return F.call(S(e),P,"")},N=new(0,/none/.constructor)("[".concat(E,"]+$")),C="".replace,k=function(e){return C.call(S(e),N,"")},$=function(e){return M(k(e))},_=new(0,/none/.constructor)("[".concat(E,"]+"),"g"),D=" ".replace,L=function(e){return D.call($(e),_," ")},A=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,I="".replace,X=function(e,t){return I.call(S(e),A,arguments.length>1?h(t):"")};var q=i.constructor,B=(!0).constructor,G=i.toString,H=/^class /,R=H.test,U=!1===i(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,V=function(e){return R.call(H,L(X(G.call(e)," ")))},z=function(e){var t=i(V,e);return!1===t.threw&&t.value},J=function(e,t){if(a()(e))return!1;if(b)return function(e,t){return!(U&&!1===t&&z(e)||!1!==i.call(e,G).threw)}(e,p(t));if(U&&!1===B(t)&&z(e))return!1;var r=y(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},K="string".constructor,Q=(0).constructor,W=c&&Symbol.toPrimitive,Y=c&&Symbol.prototype.valueOf,Z=["toString","valueOf"],ee=["valueOf","toString"],te=function(e,t){if(m(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?Z:ee,i=0;i<2;i+=1)if(r=e[o[i]],J(r)&&(n=r.call(e),a()(n)))return n;throw new TypeError("No default value")},re=function(e,t){if(t){if(e===K)return"string";if(e===Q)return"number"}return"default"},ne=function(e){if(c){if(W)return function(e,t){var r=e[t];if(!1===g(r)){if(!1===J(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,W);if(o()(e))return Y}},oe=function(e,t){if(a()(e))return e;var r=re(t,arguments.length>1),n=ne(e);if(void 0!==n){var i=n.call(e,r);if(a()(i))return i;throw new TypeError("unable to convert exotic object to primitive")}var s="default"===r&&(l()(e)||o()(e))?"string":r;return te(e,"default"===s?"number":s)},ie=parseInt,se=(0).constructor,ce="".charAt,ue=/^[-+]?0[xX]/,ae=ue.test,fe=function(e,t){var r=M(h(e));return""===ce.call(r,0)?NaN:ie(r,se(t)||(ae.call(ue,r)?16:10))},le=2..constructor,pe="Cannot convert a Symbol value to a number".slice,de=/^0b[01]+$/i,ye=de.test,be=/^0o[0-7]+$/i,ge=new(0,de.constructor)("[ ]","g"),me=/^[-+]0x[0-9a-f]+$/i,ve=function e(t){var r=oe(t,le);if(o()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return ye.call(de,e)}(r))return e(fe(pe.call(r,2),2));if(function(e){return ye.call(be,e)}(r))return e(fe(pe.call(r,2),8));if(function(e){return ye.call(ge,e)}(r)||function(e){return ye.call(me,e)}(r))return NaN;var n=$(r);if(n!==r)return e(n)}return le(r)},we=function(e){return e!=e},he=function(e){return"number"==typeof e&&!1===we(e)&&e!==1/0&&e!==-1/0},Se=function(e){var t=ve(e);return 0===t||we(t)?t:t>0?1:-1},je=Math.abs,Oe=Math.floor,xe=function(e){var t=ve(e);return we(t)?0:0===t||!1===he(t)?t:Se(t)*Oe(je(t))};t.default=function(e){var t=xe(e);return t<=0?0:t>9007199254740991?9007199254740991:t}}])}); | ||
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,n){"use strict";var r=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 r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(5);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(4))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"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"),n=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(n))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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[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,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{threw:!1,value:e.apply(this,n)}}catch(e){return{threw:!0,value:e}}};for(var s=i(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&o()(Symbol(""))}.bind(void 0)),c=!1===s.threw&&!0===s.value,u=n(1),f=n.n(u),a=n(2),l=n.n(a),p=function(e){return!!e},y={}.toString,d=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":y.call(e)},b=c&&o()(Symbol.toStringTag),g=function(e){return null==e},m=function(e){if(g(e))throw new TypeError("Cannot call method on ".concat(e));return e},v="Cannot convert a Symbol value to a string",h=v.constructor,w=function(e){if(o()(e))throw new TypeError(v);return h(e)},S=function(e){return w(m(e))},j=[{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"}],O="",x=j.length,T=0;T<x;T+=1)j[T].es2016&&j[T].string,j[T].es2018&&(O+=j[T].string);var P=O,E=new(0,/none/.constructor)("^[".concat(P,"]+")),F="".replace,M=function(e){return F.call(S(e),E,"")},N=new(0,/none/.constructor)("[".concat(P,"]+$")),k="".replace,C=function(e){return k.call(S(e),N,"")},$=function(e){return M(C(e))},_=new(0,/none/.constructor)("[".concat(P,"]+"),"g"),D=" ".replace,L=function(e){return D.call($(e),_," ")},A=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,I="".replace,X=function(e,t){return I.call(S(e),A,arguments.length>1?w(t):"")},q=i.constructor,B=i.toString,G=/^class /,H=G.test,R=!1===i(function(){return q('"use strict"; return class My {};')()}).threw,U=function(e){return H.call(G,L(X(B.call(e)," ")))},V=function(e){var t=i(U,e);return!1===t.threw&&t.value},z=function(e,t){return!f()(e)&&(b?function(e,t){return!(R&&!1===t&&V(e)||!1!==i.call(e,B).threw)}(e,p(t)):(!R||!1!==p(t)||!V(e))&&function(e){var t=d(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},J="string".constructor,K=(0).constructor,Q=c&&Symbol.toPrimitive,W=c&&Symbol.prototype.valueOf,Y=["toString","valueOf"],Z=["valueOf","toString"],ee=function(e,t){m(e),function(e){if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"')}(t);for(var n,r,o="string"===t?Y:Z,i=0;i<2;i+=1)if(n=e[o[i]],z(n)&&(r=n.call(e),f()(r)))return r;throw new TypeError("No default value")},te=function(e,t){if(t){if(e===J)return"string";if(e===K)return"number"}return"default"},ne=function(e){if(c){if(Q)return function(e,t){var n=e[t];if(!1===g(n)){if(!1===z(n))throw new TypeError("".concat(n," returned for property ").concat(t," of object ").concat(e," is not a function"));return n}}(e,Q);if(o()(e))return W}},re=function(e){var t=e.exoticToPrim,n=e.input,r=e.hint,o=t.call(n,r);if(f()(o))return o;throw new TypeError("unable to convert exotic object to primitive")},oe=function(e,t){var n="default"===t&&(l()(e)||o()(e))?"string":t;return ee(e,"default"===n?"number":n)},ie=function(e,t){if(f()(e))return e;var n=te(t,arguments.length>1),r=ne(e);return void 0===r?oe(e,n):re({exoticToPrim:r,input:e,hint:n})},se=parseInt,ce=(0).constructor,ue="".charAt,fe=/^[-+]?0[xX]/,ae=fe.test,le=function(e,t){var n=M(w(e));return""===ue.call(n,0)?NaN:se(n,ce(t)||(ae.call(fe,n)?16:10))},pe=2..constructor,ye="Cannot convert a Symbol value to a number".slice,de=/^0b[01]+$/i,be=de.test,ge=/^0o[0-7]+$/i,me=new(0,de.constructor)("[ ]","g"),ve=/^[-+]0x[0-9a-f]+$/i,he=function(e,t){return le(ye.call(e,2),t)},we=function(e,t){return function(e){return be.call(de,e)}(t)?e(he(t,2)):function(e){return be.call(ge,e)}(t)?e(he(t,8)):null},Se=function(e,t){var n=we(e,t);if(null!==n)return n;if(function(e){return be.call(me,e)}(t)||function(e){return be.call(ve,e)}(t))return NaN;var r=$(t);return r!==t?e(r):null},je=function e(t){var n=function(e){if(o()(e))throw new TypeError("Cannot convert a Symbol value to a number");return e}(ie(t,pe));if("string"==typeof n){var r=Se(e,n);if(null!==r)return r}return pe(n)},Oe=function(e){return e!=e},xe=function(e){return"number"==typeof e&&!1===Oe(e)&&e!==1/0&&e!==-1/0},Te=function(e){var t=je(e);return 0===t||Oe(t)?t:t>0?1:-1},Pe=Math.abs,Ee=Math.floor,Fe=function(e){var t=je(e);return Oe(t)?0:0===t||!1===xe(t)?t:Te(t)*Ee(Pe(t))};t.default=function(e){var t=Fe(e);return t<=0?0:t>9007199254740991?9007199254740991:t}}])}); | ||
//# sourceMappingURL=to-length-x.min.js.map |
{ | ||
"name": "to-length-x", | ||
"version": "4.0.25", | ||
"version": "4.0.26", | ||
"description": "Shim for ToLength.", | ||
@@ -52,3 +52,3 @@ "homepage": "https://github.com/Xotic750/to-length-x", | ||
"dependencies": { | ||
"to-integer-x": "^4.0.28" | ||
"to-integer-x": "^4.0.29" | ||
}, | ||
@@ -59,6 +59,2 @@ "devDependencies": { | ||
"@babel/node": "^7.5.5", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-export-default-from": "^7.2.0", | ||
"@babel/plugin-syntax-export-namespace-from": "^7.2.0", | ||
"@babel/plugin-transform-property-mutators": "^7.2.0", | ||
@@ -68,5 +64,5 @@ "@babel/plugin-transform-runtime": "^7.5.5", | ||
"@babel/runtime": "^7.5.5", | ||
"@prorenata/eslint-config-vue": "^1.13.14", | ||
"@types/jest": "^24.0.15", | ||
"@types/jest": "^24.0.16", | ||
"@types/node": "^12.6.8", | ||
"@xotic750/eslint-config-recommended": "^1.0.5", | ||
"babel-core": "^7.0.0-0", | ||
@@ -76,9 +72,5 @@ "babel-eslint": "^10.0.2", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"caniuse-lite": "^1.0.30000986", | ||
"chalk": "^2.4.2", | ||
"concurrently": "^4.1.1", | ||
"caniuse-lite": "^1.0.30000988", | ||
"cross-env": "^5.2.0", | ||
"eslint": "=5.16.0", | ||
"eslint-config-airbnb-base": "^13.2.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
@@ -93,4 +85,4 @@ "eslint-import-resolver-webpack": "^0.11.1", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.14.0", | ||
"eslint-plugin-jsdoc": "^15.7.2", | ||
"eslint-plugin-jest": "^22.14.1", | ||
"eslint-plugin-jsdoc": "^15.8.0", | ||
"eslint-plugin-json": "^1.4.0", | ||
@@ -104,23 +96,17 @@ "eslint-plugin-lodash": "^5.1.0", | ||
"eslint-plugin-switch-case": "^1.1.2", | ||
"eslint-plugin-vue": "^5.2.3", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^24.8.0", | ||
"jest-cli": "^24.8.0", | ||
"jest-file": "^1.0.0", | ||
"jsdoc-to-markdown": "^5.0.0", | ||
"lodash": "^4.17.15", | ||
"lodash-webpack-plugin": "^0.11.5", | ||
"mkdirp": "^0.5.1", | ||
"node-notifier": "^5.4.0", | ||
"nodemon": "^1.19.1", | ||
"prettier": "=1.14.3", | ||
"prettier": "^1.18.2", | ||
"rimraf": "^2.6.3", | ||
"semver": "^6.3.0", | ||
"source-map-loader": "^0.2.4", | ||
"strip-ansi": "^5.2.0", | ||
"terser-webpack-plugin": "^1.3.0", | ||
"terser-webpack-plugin": "^1.4.1", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.38.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
"webpack-bundle-analyzer": "^3.4.1", | ||
"webpack-cli": "^3.3.6", | ||
@@ -127,0 +113,0 @@ "webpack-merge": "^4.2.1" |
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
171999
53
11
1307
Updatedto-integer-x@^4.0.29