string-pad-start-x
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-22T12:59:50.712Z", | ||
"date": "2019-07-24T00:40:37.974Z", | ||
"describe": "", | ||
"description": "Pads a string with another string (repeated, if needed).", | ||
"file": "string-pad-start-x.js", | ||
"hash": "8405a93b8ca5a115e9e7", | ||
"hash": "39484db8789582788a96", | ||
"license": "MIT", | ||
"version": "2.0.10" | ||
"version": "2.0.11" | ||
} | ||
@@ -839,7 +839,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). | ||
* | ||
@@ -851,18 +850,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); | ||
@@ -875,7 +863,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). | ||
* | ||
@@ -887,18 +874,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); | ||
@@ -910,4 +886,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). | ||
* | ||
@@ -919,19 +895,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); | ||
@@ -944,3 +908,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'); | ||
@@ -951,26 +914,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); | ||
@@ -1276,3 +1226,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). | ||
* | ||
@@ -1293,25 +1243,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)); | ||
@@ -1326,3 +1254,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); | ||
@@ -1360,8 +1288,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'); | ||
@@ -1379,3 +1301,3 @@ | ||
/** | ||
* This method converts argument to a value of type Number. (ES2016). | ||
* This method converts argument to a value of type Number. (ES2018). | ||
* | ||
@@ -1388,40 +1310,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); | ||
@@ -1435,7 +1320,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)); | ||
} | ||
@@ -1450,3 +1335,3 @@ | ||
if (trimmed !== value) { | ||
return toNumber2018(trimmed); | ||
return toNumber(trimmed); | ||
} | ||
@@ -1458,3 +1343,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); | ||
@@ -1612,3 +1458,3 @@ | ||
* Converts `value` to an integer suitable for use as the length of an | ||
* array-like object. (ES2016). | ||
* array-like object. (ES2019). | ||
* | ||
@@ -1619,24 +1465,3 @@ * @param {*} value - The value to convert. | ||
function toLength2016(value) { | ||
var len = toInteger2016(value); // includes converting -0 to +0 | ||
if (len <= 0) { | ||
return 0; | ||
} | ||
if (len > MAX_SAFE_INTEGER) { | ||
return MAX_SAFE_INTEGER; | ||
} | ||
return len; | ||
} | ||
/** | ||
* Converts `value` to an integer suitable for use as the length of an | ||
* array-like object. (ES2018). | ||
* | ||
* @param {*} value - The value to convert. | ||
* @returns {number} Returns the converted integer. | ||
*/ | ||
var to_length_x_esm_toLength2018 = function toLength2018(value) { | ||
var to_length_x_esm_toLength = function toLength(value) { | ||
var len = to_integer_x_esm(value); // includes converting -0 to +0 | ||
@@ -1655,3 +1480,3 @@ | ||
/* harmony default export */ var to_length_x_esm = (to_length_x_esm_toLength2018); | ||
/* harmony default export */ var to_length_x_esm = (to_length_x_esm_toLength); | ||
@@ -1658,0 +1483,0 @@ |
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-22T12:59:50.712Z", | ||
"date": "2019-07-24T00:40:37.974Z", | ||
"describe": "", | ||
"description": "Pads a string with another string (repeated, if needed).", | ||
"file": "string-pad-start-x.min.js", | ||
"hash": "ae29559a6f9c1784894d", | ||
"hash": "7a7fcfb8df900c00df6b", | ||
"license": "MIT", | ||
"version": "2.0.10" | ||
"version": "2.0.11" | ||
} | ||
@@ -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 null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i=r(0),s=r.n(i),c="Cannot convert a Symbol value to a string",u=c.constructor,a=function(e){if(s()(e))throw new TypeError(c);return u(e)},f=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 l=f(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)),p=!1===l.threw&&!0===l.value,d=r(1),y=r.n(d),b=r(2),g=r.n(b),v=function(e){return!!e},m={}.toString,w=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":m.call(e)},h=p&&s()(Symbol.toStringTag),S=function(e){return a(o(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="",T=j.length,P=0;P<T;P+=1)j[P].es2016&&(O+=j[P].string),j[P].es2018&&(x+=j[P].string);var E=x,F=O,M="",N=/none/.constructor,$=(new N("^[".concat(F,"]+")),new N("^[".concat(E,"]+"))),k=M.replace;var C=function(e){return k.call(S(e),$,M)},_="",D=/none/.constructor,A=(new D("[".concat(F,"]+$")),new D("[".concat(E,"]+$"))),I=_.replace;var X=function(e){return I.call(S(e),A,_)};var q=function(e){return C(X(e))},L=" ",B=/none/.constructor,G=(new B("[".concat(F,"]+"),"g"),new B("[".concat(E,"]+"),"g")),H=L.replace;var R=function(e){return H.call(q(e),G,L)},U=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,V="".replace,z=function(e,t){return V.call(S(e),U,arguments.length>1?a(t):"")};var J=f.constructor,K=(!0).constructor,Q=f.toString,W=/^class /,Y=W.test,Z=!1===f(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),J('"use strict"; return class My {};')()}.bind(void 0)).threw,ee=function(e){return Y.call(W,R(z(Q.call(e)," ")))},te=function(e){var t=f(ee,e);return!1===t.threw&&t.value},re=function(e,t){if(y()(e))return!1;if(h)return function(e,t){return!(Z&&!1===t&&te(e)||!1!==f.call(e,Q).threw)}(e,v(t));if(Z&&!1===K(t)&&te(e))return!1;var r=w(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},ne="string".constructor,oe=(0).constructor,ie=p&&Symbol.toPrimitive,se=p&&Symbol.prototype.valueOf,ce=["toString","valueOf"],ue=["valueOf","toString"],ae=function(e,t){if(o(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,i="string"===t?ce:ue,s=0;s<2;s+=1)if(r=e[i[s]],re(r)&&(n=r.call(e),y()(n)))return n;throw new TypeError("No default value")},fe=function(e,t){if(t){if(e===ne)return"string";if(e===oe)return"number"}return"default"},le=function(e){if(p){if(ie)return function(e,t){var r=e[t];if(!1===n(r)){if(!1===re(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,ie);if(s()(e))return se}},pe=function(e,t){if(y()(e))return e;var r=fe(t,arguments.length>1),n=le(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&&(g()(e)||s()(e))?"string":r;return ae(e,"default"===i?"number":i)},de=NaN,ye=parseInt,be=(0).constructor,ge="".charAt,ve=/^[-+]?0[xX]/,me=ve.test;var we=function(e,t){var r=C(a(e));return""===ge.call(r,0)?de:ye(r,be(t)||(me.call(ve,r)?16:10))},he=2,Se=8,je=2,Oe="Cannot convert a Symbol value to a number",xe=je.constructor,Te=Oe.slice,Pe=/^0b[01]+$/i,Ee=Pe.constructor,Fe=Pe.test,Me=function(e){return Fe.call(Pe,e)},Ne=/^0o[0-7]+$/i,$e=function(e){return Fe.call(Ne,e)},ke=(new Ee("[ ]","g"),new Ee("[ ]","g")),Ce=/^[-+]0x[0-9a-f]+$/i,_e=function(e){return Fe.call(Ce,e)};var De=function e(t){var r=pe(t,xe);if(s()(r))throw new TypeError(Oe);if("string"==typeof r){if(Me(r))return e(we(Te.call(r,je),he));if($e(r))return e(we(Te.call(r,je),Se));if(function(e){return Fe.call(ke,e)}(r)||_e(r))return de;var n=q(r);if(n!==r)return e(n)}return xe(r)},Ae=function(e){return e!=e},Ie=function(e){return"number"==typeof e&&!1===Ae(e)&&e!==1/0&&e!==-1/0};var Xe=function(e){var t=De(e);return 0===t||Ae(t)?t:t>0?1:-1},qe=Math.abs,Le=Math.floor;var Be=function(e){var t=De(e);return Ae(t)?0:0===t||!1===Ie(t)?t:Xe(t)*Le(qe(t))},Ge=9007199254740991;var He=function(e){var t=Be(e);return t<=0?0:t>Ge?Ge:t},Re="".slice;t.default=function(e,t){var r=a(o(e)),n=He(r.length),i=arguments.length>2?arguments[2]:void 0,s=void 0===i?"":a(i);""===s&&(s=" ");var c=He(t);if(c<=n)return r;for(var u=c-n;s.length<u;){var f=s.length,l=u-f;s+=f>l?Re.call(s,0,l):s}var p=s.length>u?Re.call(s,0,u):s;return p+r}}])}); | ||
*/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 null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i=r(0),s=r.n(i),c="Cannot convert a Symbol value to a string",u=c.constructor,a=function(e){if(s()(e))throw new TypeError(c);return u(e)},f=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 l=f(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)),p=!1===l.threw&&!0===l.value,d=r(1),y=r.n(d),b=r(2),g=r.n(b),v=function(e){return!!e},m={}.toString,h=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":m.call(e)},w=p&&s()(Symbol.toStringTag),S=function(e){return a(o(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,"]+$")),C="".replace,k=function(e){return C.call(S(e),N,"")},$=function(e){return M(k(e))},_=new(0,/none/.constructor)("[".concat(P,"]+"),"g"),D=" ".replace,A=function(e){return D.call($(e),_," ")},I=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,X="".replace,q=function(e,t){return X.call(S(e),I,arguments.length>1?a(t):"")};var L=f.constructor,B=(!0).constructor,G=f.toString,H=/^class /,R=H.test,U=!1===f(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),L('"use strict"; return class My {};')()}.bind(void 0)).threw,V=function(e){return R.call(H,A(q(G.call(e)," ")))},z=function(e){var t=f(V,e);return!1===t.threw&&t.value},J=function(e,t){if(y()(e))return!1;if(w)return function(e,t){return!(U&&!1===t&&z(e)||!1!==f.call(e,G).threw)}(e,v(t));if(U&&!1===B(t)&&z(e))return!1;var r=h(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},K="string".constructor,Q=(0).constructor,W=p&&Symbol.toPrimitive,Y=p&&Symbol.prototype.valueOf,Z=["toString","valueOf"],ee=["valueOf","toString"],te=function(e,t){if(o(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,i="string"===t?Z:ee,s=0;s<2;s+=1)if(r=e[i[s]],J(r)&&(n=r.call(e),y()(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(p){if(W)return function(e,t){var r=e[t];if(!1===n(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(s()(e))return Y}},oe=function(e,t){if(y()(e))return e;var r=re(t,arguments.length>1),n=ne(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&&(g()(e)||s()(e))?"string":r;return te(e,"default"===i?"number":i)},ie=parseInt,se=(0).constructor,ce="".charAt,ue=/^[-+]?0[xX]/,ae=ue.test,fe=function(e,t){var r=M(a(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"),ve=/^[-+]0x[0-9a-f]+$/i,me=function e(t){var r=oe(t,le);if(s()(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(ve,e)}(r))return NaN;var n=$(r);if(n!==r)return e(n)}return le(r)},he=function(e){return e!=e},we=function(e){return"number"==typeof e&&!1===he(e)&&e!==1/0&&e!==-1/0},Se=function(e){var t=me(e);return 0===t||he(t)?t:t>0?1:-1},je=Math.abs,Oe=Math.floor,xe=function(e){var t=me(e);return he(t)?0:0===t||!1===we(t)?t:Se(t)*Oe(je(t))},Te=function(e){var t=xe(e);return t<=0?0:t>9007199254740991?9007199254740991:t},Pe="".slice;t.default=function(e,t){var r=a(o(e)),n=Te(r.length),i=arguments.length>2?arguments[2]:void 0,s=void 0===i?"":a(i);""===s&&(s=" ");var c=Te(t);if(c<=n)return r;for(var u=c-n;s.length<u;){var f=s.length,l=u-f;s+=f>l?Pe.call(s,0,l):s}var p=s.length>u?Pe.call(s,0,u):s;return p+r}}])}); | ||
//# sourceMappingURL=string-pad-start-x.min.js.map |
{ | ||
"name": "string-pad-start-x", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Pads a string with another string (repeated, if needed).", | ||
@@ -52,5 +52,5 @@ "homepage": "https://github.com/Xotic750/string-pad-start-x", | ||
"dependencies": { | ||
"require-object-coercible-x": "^2.0.19", | ||
"to-length-x": "^4.0.16", | ||
"to-string-x": "^2.0.27" | ||
"require-object-coercible-x": "^2.0.20", | ||
"to-length-x": "^4.0.18", | ||
"to-string-x": "^2.0.28" | ||
}, | ||
@@ -69,3 +69,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", | ||
@@ -93,4 +93,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", | ||
@@ -118,3 +118,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", | ||
@@ -124,3 +124,3 @@ "strip-ansi": "^5.2.0", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.36.1", | ||
"webpack": "^4.37.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
@@ -127,0 +127,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
184803
1375
Updatedto-length-x@^4.0.18
Updatedto-string-x@^2.0.28