Comparing version 4.0.15 to 4.0.16
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-18T18:26:41.883Z", | ||
"date": "2019-07-19T21:35:07.846Z", | ||
"describe": "", | ||
"description": "This method removes whitespace from the left and right end of a string.", | ||
"file": "trim-x.js", | ||
"hash": "cce4c971c2d67af2e10d", | ||
"hash": "bd59cffc133edb64a0d7", | ||
"license": "MIT", | ||
"version": "4.0.15" | ||
"version": "4.0.16" | ||
} | ||
@@ -701,393 +701,2 @@ */ | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/node_modules/is-nil-x/dist/is-nil-x.esm.js | ||
/** | ||
* Checks if `value` is `null` or `undefined`. | ||
* | ||
* @param {*} [value] - The value to check. | ||
* @returns {boolean} Returns `true` if `value` is nullish, else `false`. | ||
*/ | ||
var is_nil_x_esm_isNil = function isNil(value) { | ||
/* eslint-disable-next-line lodash/prefer-is-nil */ | ||
return value === null || typeof value === 'undefined'; | ||
}; | ||
/* harmony default export */ var dist_is_nil_x_esm = (is_nil_x_esm_isNil); | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/node_modules/require-object-coercible-x/dist/require-object-coercible-x.esm.js | ||
/** | ||
* The abstract operation RequireObjectCoercible throws an error if argument | ||
* is a value that cannot be converted to an Object using ToObject. | ||
* | ||
* @param {*} [value] - The `value` to check. | ||
* @throws {TypeError} If `value` is a `null` or `undefined`. | ||
* @returns {string} The `value`. | ||
*/ | ||
var dist_require_object_coercible_x_esm_requireObjectCoercible = function requireObjectCoercible(value) { | ||
if (dist_is_nil_x_esm(value)) { | ||
throw new TypeError("Cannot call method on ".concat(value)); | ||
} | ||
return value; | ||
}; | ||
/* harmony default export */ var dist_require_object_coercible_x_esm = (dist_require_object_coercible_x_esm_requireObjectCoercible); | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/node_modules/to-string-x/dist/to-string-x.esm.js | ||
var to_string_x_esm_ERROR_MESSAGE = 'Cannot convert a Symbol value to a string'; | ||
var to_string_x_esm_castString = to_string_x_esm_ERROR_MESSAGE.constructor; | ||
/** | ||
* The abstract operation ToString converts argument to a value of type String. | ||
* | ||
* @param {*} [value] - The value to convert to a string. | ||
* @throws {TypeError} If `value` is a Symbol. | ||
* @returns {string} The converted value. | ||
*/ | ||
var dist_to_string_x_esm_ToString = function ToString(value) { | ||
if (is_symbol_default()(value)) { | ||
throw new TypeError(to_string_x_esm_ERROR_MESSAGE); | ||
} | ||
return to_string_x_esm_castString(value); | ||
}; | ||
/* harmony default export */ var dist_to_string_x_esm = (dist_to_string_x_esm_ToString); | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/node_modules/require-coercible-to-string-x/dist/require-coercible-to-string-x.esm.js | ||
/** | ||
* This method requires an argument is corecible then converts using ToString. | ||
* | ||
* @param {*} [value] - The value to converted to a string. | ||
* @throws {TypeError} If value is null or undefined. | ||
* @returns {string} The value as a string. | ||
*/ | ||
var dist_require_coercible_to_string_x_esm_requireCoercibleToString = function requireCoercibleToString(value) { | ||
return dist_to_string_x_esm(dist_require_object_coercible_x_esm(value)); | ||
}; | ||
/* harmony default export */ var dist_require_coercible_to_string_x_esm = (dist_require_coercible_to_string_x_esm_requireCoercibleToString); | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/node_modules/white-space-x/dist/white-space-x.esm.js | ||
/** | ||
* A record of a white space character. | ||
* | ||
* @typedef {object} CharRecord | ||
* @property {number} code - The character code. | ||
* @property {string} description - A description of the character. | ||
* @property {boolean} es5 - Whether the spec lists this as a white space. | ||
* @property {boolean} es2015 - Whether the spec lists this as a white space. | ||
* @property {boolean} es2016 - Whether the spec lists this as a white space. | ||
* @property {boolean} es2017 - Whether the spec lists this as a white space. | ||
* @property {boolean} es2018 - Whether the spec lists this as a white space. | ||
* @property {string} string - The character string. | ||
*/ | ||
/** | ||
* An array of the whitespace char codes, string, descriptions and language | ||
* presence in the specifications. | ||
* | ||
* @type Array.<CharRecord> | ||
*/ | ||
var white_space_x_esm_list = [{ | ||
code: 0x0009, | ||
description: 'Tab', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\t" | ||
}, { | ||
code: 0x000a, | ||
description: 'Line Feed', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\n" | ||
}, { | ||
code: 0x000b, | ||
description: 'Vertical Tab', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\x0B" | ||
}, { | ||
code: 0x000c, | ||
description: 'Form Feed', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\f" | ||
}, { | ||
code: 0x000d, | ||
description: 'Carriage Return', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\r" | ||
}, { | ||
code: 0x0020, | ||
description: 'Space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: " " | ||
}, | ||
/* | ||
{ | ||
code: 0x0085, | ||
description: 'Next line', | ||
es5: false, | ||
es2015: false, | ||
es2016: false, | ||
es2017: false, | ||
es2018: false, | ||
string: '\u0085' | ||
} | ||
*/ | ||
{ | ||
code: 0x00a0, | ||
description: 'No-break space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\xA0" | ||
}, { | ||
code: 0x1680, | ||
description: 'Ogham space mark', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u1680" | ||
}, { | ||
code: 0x180e, | ||
description: 'Mongolian vowel separator', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: false, | ||
es2018: false, | ||
string: "\u180E" | ||
}, { | ||
code: 0x2000, | ||
description: 'En quad', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2000" | ||
}, { | ||
code: 0x2001, | ||
description: 'Em quad', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2001" | ||
}, { | ||
code: 0x2002, | ||
description: 'En space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2002" | ||
}, { | ||
code: 0x2003, | ||
description: 'Em space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2003" | ||
}, { | ||
code: 0x2004, | ||
description: 'Three-per-em space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2004" | ||
}, { | ||
code: 0x2005, | ||
description: 'Four-per-em space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2005" | ||
}, { | ||
code: 0x2006, | ||
description: 'Six-per-em space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2006" | ||
}, { | ||
code: 0x2007, | ||
description: 'Figure space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2007" | ||
}, { | ||
code: 0x2008, | ||
description: 'Punctuation space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2008" | ||
}, { | ||
code: 0x2009, | ||
description: 'Thin space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2009" | ||
}, { | ||
code: 0x200a, | ||
description: 'Hair space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u200A" | ||
}, | ||
/* | ||
{ | ||
code: 0x200b, | ||
description: 'Zero width space', | ||
es5: false, | ||
es2015: false, | ||
es2016: false, | ||
es2017: false, | ||
es2018: false, | ||
string: '\u200b' | ||
}, | ||
*/ | ||
{ | ||
code: 0x2028, | ||
description: 'Line separator', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2028" | ||
}, { | ||
code: 0x2029, | ||
description: 'Paragraph separator', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u2029" | ||
}, { | ||
code: 0x202f, | ||
description: 'Narrow no-break space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u202F" | ||
}, { | ||
code: 0x205f, | ||
description: 'Medium mathematical space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u205F" | ||
}, { | ||
code: 0x3000, | ||
description: 'Ideographic space', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\u3000" | ||
}, { | ||
code: 0xfeff, | ||
description: 'Byte Order Mark', | ||
es5: true, | ||
es2015: true, | ||
es2016: true, | ||
es2017: true, | ||
es2018: true, | ||
string: "\uFEFF" | ||
}]; | ||
/** | ||
* A string of the ES5 to ES2016 whitespace characters. | ||
* | ||
* @type string | ||
*/ | ||
var white_space_x_esm_stringES2016 = ''; | ||
/** | ||
* A string of the ES2017 to ES2018 whitespace characters. | ||
* | ||
* @type string | ||
*/ | ||
var white_space_x_esm_stringES2018 = ''; | ||
var dist_white_space_x_esm_length = white_space_x_esm_list.length; | ||
for (var white_space_x_esm_i = 0; white_space_x_esm_i < dist_white_space_x_esm_length; white_space_x_esm_i += 1) { | ||
if (white_space_x_esm_list[white_space_x_esm_i].es2016) { | ||
white_space_x_esm_stringES2016 += white_space_x_esm_list[white_space_x_esm_i].string; | ||
} | ||
if (white_space_x_esm_list[white_space_x_esm_i].es2018) { | ||
white_space_x_esm_stringES2018 += white_space_x_esm_list[white_space_x_esm_i].string; | ||
} | ||
} | ||
var white_space_x_esm_string2018 = white_space_x_esm_stringES2018; | ||
/* harmony default export */ var dist_white_space_x_esm = (white_space_x_esm_string2018); | ||
var white_space_x_esm_string2016 = white_space_x_esm_stringES2016; | ||
// CONCATENATED MODULE: ./node_modules/trim-right-x/dist/trim-right-x.esm.js | ||
@@ -1098,4 +707,4 @@ | ||
var trim_right_x_esm_RegExpCtr = /none/.constructor; | ||
var reRight2016 = new trim_right_x_esm_RegExpCtr("[".concat(white_space_x_esm_string2016, "]+$")); | ||
var reRight2018 = new trim_right_x_esm_RegExpCtr("[".concat(dist_white_space_x_esm, "]+$")); | ||
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; | ||
@@ -1111,3 +720,3 @@ /** | ||
function trimRight2016(string) { | ||
return trim_right_x_esm_replace.call(dist_require_coercible_to_string_x_esm(string), reRight2016, trim_right_x_esm_EMPTY_STRING); | ||
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2016, trim_right_x_esm_EMPTY_STRING); | ||
} | ||
@@ -1123,3 +732,3 @@ /** | ||
var trim_right_x_esm_trimRight2018 = function trimRight2018(string) { | ||
return trim_right_x_esm_replace.call(dist_require_coercible_to_string_x_esm(string), reRight2018, trim_right_x_esm_EMPTY_STRING); | ||
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2018, trim_right_x_esm_EMPTY_STRING); | ||
}; | ||
@@ -1126,0 +735,0 @@ |
@@ -5,12 +5,12 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-18T18:26:41.883Z", | ||
"date": "2019-07-19T21:35:07.846Z", | ||
"describe": "", | ||
"description": "This method removes whitespace from the left and right end of a string.", | ||
"file": "trim-x.min.js", | ||
"hash": "a3ee501c855164ccdb7a", | ||
"hash": "ed5417f7f1a8b9f32be8", | ||
"license": "MIT", | ||
"version": "4.0.15" | ||
"version": "4.0.16" | ||
} | ||
*/ | ||
!function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.trimX=s():e.trimX=s()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var s={};function t(r){if(s[r])return s[r].exports;var n=s[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=s,t.d=function(e,s,r){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var n in e)t.d(r,n,function(s){return e[s]}.bind(null,n));return r},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p="",t(t.s=4)}([function(e,s,t){"use strict";var r=Object.prototype.toString;if(t(1)()){var n=Symbol.prototype.toString,o=/^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()&&o.test(n.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,s,t){"use strict";(function(s){var r=s.Symbol,n=t(3);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}).call(this,t(2))},function(e,s){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,s,t){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},s=Symbol("test"),t=Object(s);if("string"==typeof s)return!1;if("[object Symbol]"!==Object.prototype.toString.call(s))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(s in e[s]=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]!==s)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,s);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(e,s,t){"use strict";t.r(s);for(var r=function(e){return null==e},n=function(e){if(r(e))throw new TypeError("Cannot call method on ".concat(e));return e},o=t(0),i=t.n(o),c="Cannot convert a Symbol value to a string",p=c.constructor,a=function(e){if(i()(e))throw new TypeError(c);return p(e)},u=function(e){return a(n(e))},d=[{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"}],f="",l="",g=d.length,y=0;y<g;y+=1)d[y].es2016&&(f+=d[y].string),d[y].es2018&&(l+=d[y].string);var b=l,m="",v=/none/.constructor,w=new v("^[".concat(f,"]+")),O=new v("^[".concat(b,"]+")),h=m.replace;for(var S=function(e){return h.call(u(e),O,m)},j=function(e){return null==e},x=function(e){if(j(e))throw new TypeError("Cannot call method on ".concat(e));return e},P="Cannot convert a Symbol value to a string".constructor,T=function(e){if(i()(e))throw new TypeError("Cannot convert a Symbol value to a string");return P(e)},E=function(e){return T(x(e))},F=[{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"}],k="",M="",C=F.length,N=0;N<C;N+=1)F[N].es2016&&(k+=F[N].string),F[N].es2018&&(M+=F[N].string);var _=M,q="",L=/none/.constructor,I=new L("[".concat(k,"]+$")),$=new L("[".concat(_,"]+$")),B=q.replace;var D=function(e){return B.call(E(e),$,q)};function H(e){return function(e){return h.call(u(e),w,m)}(function(e){return B.call(E(e),I,q)}(e))}t.d(s,"trim2016",function(){return H});s.default=function(e){return S(D(e))}}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.trimX=t():e.trimX=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 s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.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 s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));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=4)}([function(e,t,r){"use strict";var n=Object.prototype.toString;if(r(1)()){var s=Symbol.prototype.toString,o=/^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()&&o.test(s.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,s=r(3);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}}).call(this,r(2))},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 s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},function(e,t,r){"use strict";r.r(t);for(var n=function(e){return null==e},s=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},o=r(0),i=r.n(o),c="Cannot convert a Symbol value to a string",u=c.constructor,p=function(e){if(i()(e))throw new TypeError(c);return u(e)},f=function(e){return p(s(e))},a=[{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"}],d="",l="",y=a.length,b=0;b<y;b+=1)a[b].es2016&&(d+=a[b].string),a[b].es2018&&(l+=a[b].string);var g=l,m=d,O="",j=/none/.constructor,w=new j("^[".concat(m,"]+")),v=new j("^[".concat(g,"]+")),S=O.replace;var h=function(e){return S.call(f(e),v,O)},x="",P=/none/.constructor,T=new P("[".concat(m,"]+$")),E=new P("[".concat(g,"]+$")),F=x.replace;var M=function(e){return F.call(f(e),E,x)};function k(e){return function(e){return S.call(f(e),w,O)}(function(e){return F.call(f(e),T,x)}(e))}r.d(t,"trim2016",function(){return k});t.default=function(e){return h(M(e))}}])}); | ||
//# sourceMappingURL=trim-x.min.js.map |
{ | ||
"name": "trim-x", | ||
"version": "4.0.15", | ||
"version": "4.0.16", | ||
"description": "This method removes whitespace from the left and right end of a string.", | ||
@@ -52,4 +52,4 @@ "homepage": "https://github.com/Xotic750/trim-x", | ||
"dependencies": { | ||
"trim-left-x": "^4.0.14", | ||
"trim-right-x": "^4.0.14" | ||
"trim-left-x": "^4.0.17", | ||
"trim-right-x": "^4.0.15" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
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
93971
763
Updatedtrim-left-x@^4.0.17
Updatedtrim-right-x@^4.0.15