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

calculate-from-index-x

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculate-from-index-x - npm Package Compare versions

Comparing version 3.0.17 to 3.0.18

src/.eslintrc.js

176

dist/calculate-from-index-x.js

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

"copywrite": "Copyright (c) 2017",
"date": "2019-07-27T14:48:06.535Z",
"date": "2019-07-31T22:45:40.701Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.js",
"hash": "a66cb5808177eb6e6e12",
"hash": "235333ab800ed31d0156",
"license": "MIT",
"version": "3.0.17"
"version": "3.0.18"
}

@@ -963,5 +963,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"); } }

@@ -973,6 +971,3 @@

var FunctionCtr = attempt_x_esm.constructor;
var castBoolean = true.constructor;
var is_function_x_esm_SPACE = ' ';

@@ -985,10 +980,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)));

@@ -998,3 +991,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;

@@ -1020,2 +1013,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;
};
/**

@@ -1040,8 +1038,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);
};

@@ -1068,7 +1065,3 @@

var DEFAULT = 'default';
/** @type {StringConstructor} */
var StringCtr = STRING.constructor;
/** @type {NumberConstructor} */
var NumberCtr = ZERO.constructor;

@@ -1084,2 +1077,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;
};
/**

@@ -1091,9 +1092,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;

@@ -1124,3 +1122,3 @@ var method;

var getMethod = function _getMethod(object, property) {
var to_primitive_x_esm_getMethod = function getMethod(object, property) {
var func = object[property];

@@ -1171,3 +1169,3 @@

if (symToPrimitive) {
return getMethod(value, symToPrimitive);
return to_primitive_x_esm_getMethod(value, symToPrimitive);
}

@@ -1182,2 +1180,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);
};
/**

@@ -1193,3 +1209,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.

@@ -1208,15 +1224,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
});
};

@@ -1298,3 +1306,3 @@

var isBinary = function _isBinary(value) {
var isBinary = function isBinary(value) {
return to_number_x_esm_test.call(binaryRegex, value);

@@ -1305,10 +1313,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);
};

@@ -1318,7 +1326,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).
*

@@ -1332,26 +1384,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);
}
}

@@ -1358,0 +1394,0 @@

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

"copywrite": "Copyright (c) 2017",
"date": "2019-07-27T14:48:06.535Z",
"date": "2019-07-31T22:45:40.701Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.min.js",
"hash": "ce5d1de44efde8ef6b0b",
"hash": "2dba71359a68dbff2e13",
"license": "MIT",
"version": "3.0.17"
"version": "3.0.18"
}
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.calculateFromIndexX=t():e.calculateFromIndexX=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.calculateFromIndexX=t():e.calculateFromIndexX=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=function(e){return null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,s=function(e){return i(o(e))},c=r(0),u=r.n(c),a=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 f=a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),l=!1===f.threw&&!0===f.value,p=r(1),d=r.n(p),y=r(2),b=r.n(y),g=function(e){return!!e},m={}.toString,v=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":m.call(e)},w=l&&u()(Symbol.toStringTag),h="Cannot convert a Symbol value to a string",S=h.constructor,j=function(e){if(u()(e))throw new TypeError(h);return S(e)},O=function(e){return j(o(e))},x=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],T="",E=x.length,P=0;P<E;P+=1)x[P].es2016&&x[P].string,x[P].es2018&&(T+=x[P].string);var F=T,M=new(0,/none/.constructor)("^[".concat(F,"]+")),N="".replace,C=function(e){return N.call(O(e),M,"")},k=new(0,/none/.constructor)("[".concat(F,"]+$")),$="".replace,_=function(e){return $.call(O(e),k,"")},D=function(e){return C(_(e))},I=new(0,/none/.constructor)("[".concat(F,"]+"),"g"),A=" ".replace,X=function(e){return A.call(D(e),I," ")},q=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,L="".replace,B=function(e,t){return L.call(O(e),q,arguments.length>1?j(t):"")};var G=a.constructor,H=(!0).constructor,R=a.toString,U=/^class /,V=U.test,z=!1===a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),G('"use strict"; return class My {};')()}.bind(void 0)).threw,J=function(e){return V.call(U,X(B(R.call(e)," ")))},K=function(e){var t=a(J,e);return!1===t.threw&&t.value},Q=function(e,t){if(d()(e))return!1;if(w)return function(e,t){return!(z&&!1===t&&K(e)||!1!==a.call(e,R).threw)}(e,g(t));if(z&&!1===H(t)&&K(e))return!1;var r=v(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},W="string".constructor,Y=(0).constructor,Z=l&&Symbol.toPrimitive,ee=l&&Symbol.prototype.valueOf,te=["toString","valueOf"],re=["valueOf","toString"],ne=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?te:re,s=0;s<2;s+=1)if(r=e[i[s]],Q(r)&&(n=r.call(e),d()(n)))return n;throw new TypeError("No default value")},oe=function(e,t){if(t){if(e===W)return"string";if(e===Y)return"number"}return"default"},ie=function(e){if(l){if(Z)return function(e,t){var r=e[t];if(!1===n(r)){if(!1===Q(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,Z);if(u()(e))return ee}},se=function(e,t){if(d()(e))return e;var r=oe(t,arguments.length>1),n=ie(e);if(void 0!==n){var o=n.call(e,r);if(d()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var i="default"===r&&(b()(e)||u()(e))?"string":r;return ne(e,"default"===i?"number":i)},ce=parseInt,ue=(0).constructor,ae="".charAt,fe=/^[-+]?0[xX]/,le=fe.test,pe=function(e,t){var r=C(j(e));return"᠎"===ae.call(r,0)?NaN:ce(r,ue(t)||(le.call(fe,r)?16:10))},de=2..constructor,ye="Cannot convert a Symbol value to a number".slice,be=/^0b[01]+$/i,ge=be.test,me=/^0o[0-7]+$/i,ve=new(0,be.constructor)("[…᠎​￾]","g"),we=/^[-+]0x[0-9a-f]+$/i,he=function e(t){var r=se(t,de);if(u()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return ge.call(be,e)}(r))return e(pe(ye.call(r,2),2));if(function(e){return ge.call(me,e)}(r))return e(pe(ye.call(r,2),8));if(function(e){return ge.call(ve,e)}(r)||function(e){return ge.call(we,e)}(r))return NaN;var n=D(r);if(n!==r)return e(n)}return de(r)},Se=function(e){return e!=e},je=function(e){return"number"==typeof e&&!1===Se(e)&&e!==1/0&&e!==-1/0},Oe=function(e){var t=he(e);return 0===t||Se(t)?t:t>0?1:-1},xe=Math.abs,Te=Math.floor,Ee=function(e){var t=he(e);return Se(t)?0:0===t||!1===je(t)?t:Oe(t)*Te(xe(t))},Pe=function(e){var t=Ee(e);return t<=0?0:t>9007199254740991?9007199254740991:t},Fe=function(e){return je(e)&&Ee(e)===e},Me=function(e){return Fe(e)&&e>=-9007199254740991&&e<=9007199254740991},Ne=function(e){return Me(e)&&e>=0},Ce=function(e){return!1===n(e)&&!1===Q(e,!0)&&Ne(e.length)};t.default=function(e,t){var r=s(e);if(!1===Ce(r))return 0;var n,o,i=Ee(t);return i>=0?i:(n=0,o=Pe(r.length)+i,n>=o?n:o)}}])});
*/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=function(e){return null==e},o=function(e){if(r(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,c=function(e){return i(o(e))},s=n(0),u=n.n(s),f=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 a=f(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),l=!1===a.threw&&!0===a.value,p=n(1),d=n.n(p),y=n(2),b=n.n(y),g=function(e){return!!e},m={}.toString,v=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":m.call(e)},h=l&&u()(Symbol.toStringTag),w="Cannot convert a Symbol value to a string",S=w.constructor,j=function(e){if(u()(e))throw new TypeError(w);return S(e)},O=function(e){return j(o(e))},x=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],T="",P=x.length,E=0;E<P;E+=1)x[E].es2016&&x[E].string,x[E].es2018&&(T+=x[E].string);var F=T,M=new(0,/none/.constructor)("^[".concat(F,"]+")),N="".replace,k=function(e){return N.call(O(e),M,"")},C=new(0,/none/.constructor)("[".concat(F,"]+$")),$="".replace,_=function(e){return $.call(O(e),C,"")},D=function(e){return k(_(e))},I=new(0,/none/.constructor)("[".concat(F,"]+"),"g"),A=" ".replace,X=function(e){return A.call(D(e),I," ")},q=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,L="".replace,B=function(e,t){return L.call(O(e),q,arguments.length>1?j(t):"")},G=f.constructor,H=f.toString,R=/^class /,U=R.test,V=!1===f(function(){return G('"use strict"; return class My {};')()}).threw,z=function(e){return U.call(R,X(B(H.call(e)," ")))},J=function(e){var t=f(z,e);return!1===t.threw&&t.value},K=function(e,t){return!d()(e)&&(h?function(e,t){return!(V&&!1===t&&J(e)||!1!==f.call(e,H).threw)}(e,g(t)):(!V||!1!==g(t)||!J(e))&&function(e){var t=v(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},Q="string".constructor,W=(0).constructor,Y=l&&Symbol.toPrimitive,Z=l&&Symbol.prototype.valueOf,ee=["toString","valueOf"],te=["valueOf","toString"],ne=function(e,t){o(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,i="string"===t?ee:te,c=0;c<2;c+=1)if(n=e[i[c]],K(n)&&(r=n.call(e),d()(r)))return r;throw new TypeError("No default value")},re=function(e,t){if(t){if(e===Q)return"string";if(e===W)return"number"}return"default"},oe=function(e){if(l){if(Y)return function(e,t){var n=e[t];if(!1===r(n)){if(!1===K(n))throw new TypeError("".concat(n," returned for property ").concat(t," of object ").concat(e," is not a function"));return n}}(e,Y);if(u()(e))return Z}},ie=function(e){var t=e.exoticToPrim,n=e.input,r=e.hint,o=t.call(n,r);if(d()(o))return o;throw new TypeError("unable to convert exotic object to primitive")},ce=function(e,t){var n="default"===t&&(b()(e)||u()(e))?"string":t;return ne(e,"default"===n?"number":n)},se=function(e,t){if(d()(e))return e;var n=re(t,arguments.length>1),r=oe(e);return void 0===r?ce(e,n):ie({exoticToPrim:r,input:e,hint:n})},ue=parseInt,fe=(0).constructor,ae="".charAt,le=/^[-+]?0[xX]/,pe=le.test,de=function(e,t){var n=k(j(e));return"᠎"===ae.call(n,0)?NaN:ue(n,fe(t)||(pe.call(le,n)?16:10))},ye=2..constructor,be="Cannot convert a Symbol value to a number".slice,ge=/^0b[01]+$/i,me=ge.test,ve=/^0o[0-7]+$/i,he=new(0,ge.constructor)("[…᠎​￾]","g"),we=/^[-+]0x[0-9a-f]+$/i,Se=function(e,t){return de(be.call(e,2),t)},je=function(e,t){return function(e){return me.call(ge,e)}(t)?e(Se(t,2)):function(e){return me.call(ve,e)}(t)?e(Se(t,8)):null},Oe=function(e,t){var n=je(e,t);if(null!==n)return n;if(function(e){return me.call(he,e)}(t)||function(e){return me.call(we,e)}(t))return NaN;var r=D(t);return r!==t?e(r):null},xe=function e(t){var n=function(e){if(u()(e))throw new TypeError("Cannot convert a Symbol value to a number");return e}(se(t,ye));if("string"==typeof n){var r=Oe(e,n);if(null!==r)return r}return ye(n)},Te=function(e){return e!=e},Pe=function(e){return"number"==typeof e&&!1===Te(e)&&e!==1/0&&e!==-1/0},Ee=function(e){var t=xe(e);return 0===t||Te(t)?t:t>0?1:-1},Fe=Math.abs,Me=Math.floor,Ne=function(e){var t=xe(e);return Te(t)?0:0===t||!1===Pe(t)?t:Ee(t)*Me(Fe(t))},ke=function(e){var t=Ne(e);return t<=0?0:t>9007199254740991?9007199254740991:t},Ce=function(e){return Pe(e)&&Ne(e)===e},$e=function(e){return Ce(e)&&e>=-9007199254740991&&e<=9007199254740991},_e=function(e){return $e(e)&&e>=0},De=function(e){return!1===r(e)&&!1===K(e,!0)&&_e(e.length)};t.default=function(e,t){var n=c(e);if(!1===De(n))return 0;var r,o,i=Ne(t);return i>=0?i:(r=0,o=ke(n.length)+i,r>=o?r:o)}}])});
//# sourceMappingURL=calculate-from-index-x.min.js.map
{
"name": "calculate-from-index-x",
"version": "3.0.17",
"version": "3.0.18",
"description": "Calculates a fromIndex of a given value for an array.",

@@ -53,6 +53,6 @@ "homepage": "https://github.com/Xotic750/calculate-from-index-x",

"dependencies": {
"is-array-like-x": "^2.0.17",
"to-integer-x": "^4.0.28",
"to-length-x": "^4.0.25",
"to-object-x": "^2.0.20"
"is-array-like-x": "^2.0.18",
"to-integer-x": "^4.0.29",
"to-length-x": "^4.0.26",
"to-object-x": "^2.0.21"
},

@@ -63,6 +63,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",

@@ -72,5 +68,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",

@@ -80,9 +76,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",

@@ -97,4 +89,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",

@@ -108,23 +100,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",

@@ -131,0 +117,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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc