diff --git a/dist/attempt-x.js b/dist/attempt-x.js index 8362da4..df97b4c 100644 --- a/dist/attempt-x.js +++ b/dist/attempt-x.js @@ -2,13 +2,13 @@ { "author": "Graham Fairweather", "copywrite": "Copyright (c) 2017-present", - "date": "2019-08-20T12:41:59.021Z", + "date": "2019-08-20T19:02:42.078Z", "describe": "", "description": "Invokes function, returning an object of the results.", "file": "attempt-x.js", - "hash": "1ae4ee9e364b1dda75a4", + "hash": "d573dd2b5a0ab3475391", "license": "MIT", - "version": "2.1.0" + "version": "2.1.1" } */ (function webpackUniversalModuleDefinition(root, factory) { @@ -206,16 +206,114 @@ var isPrimitive = function isPrimitive(val) { var is_string = __webpack_require__(0); var is_string_default = /*#__PURE__*/__webpack_require__.n(is_string); +// CONCATENATED MODULE: ./node_modules/has-boxed-string-x/dist/has-boxed-string-x.esm.js +var string = 'a'; +var boxedString = {}.constructor(string); +/** + * Check failure of by-index access of string characters (IE < 9) + * and failure of `0 in boxedString` (Rhino). + * + * `true` if no failure; otherwise `false`. + * + * @type boolean + */ + +var hasBoxed = boxedString[0] === string && 0 in boxedString; +/* harmony default export */ var has_boxed_string_x_esm = (hasBoxed); + + +// CONCATENATED MODULE: ./node_modules/noop-x/dist/noop-x.esm.js +/** + * This method returns undefined. + * + * @returns {undefined} Always undefined. + */ +var noop = function noop() {}; +/* eslint-disable-line lodash/prefer-noop */ + + +/* harmony default export */ var noop_x_esm = (noop); + + +// CONCATENATED MODULE: ./node_modules/has-working-bind-x/dist/has-working-bind-x.esm.js + +var has_working_bind_x_esm_bind = noop_x_esm.bind; + +var test1 = function test1() { + var a1 = null; + var a2 = null; + var context = null; + var testThis = []; + + var test1Fn = function test1Fn(arg1, arg2) { + /* eslint-disable-next-line babel/no-invalid-this */ + context = this; + a1 = arg1; + a2 = arg2; + /* eslint-disable-next-line prefer-rest-params */ + + return arguments; + }; + + try { + var boundFn = has_working_bind_x_esm_bind.apply(test1Fn, [testThis, 1]); + var args = boundFn(2); + return boundFn.length === 1 && args.length === 2 && a1 === 1 && a2 === 2 && context === testThis; + } catch (e) { + return false; + } +}; + +var test2 = function test2() { + var a1 = null; + var a2 = null; + var context = null; + var oracle = [1, 2, 3]; + + var Ctr = function Ctr(arg1, arg2) { + a1 = arg1; + a2 = arg2; + context = this; + return oracle; + }; + + try { + var BoundFn = has_working_bind_x_esm_bind.apply(Ctr, [null]); + var returned = new BoundFn(1, 2); + return BoundFn.length === Ctr.length && returned === oracle && a1 === 1 && a2 === 2 && context !== oracle; + } catch (e) { + return false; + } +}; +/** + * Indicates if the engine has a working bind function. + * + * @type {boolean} + */ + + +var isWorking = typeof has_working_bind_x_esm_bind === 'function' && test1() && test2(); +/* harmony default export */ var has_working_bind_x_esm = (isWorking); + + // CONCATENATED MODULE: ./node_modules/util-pusher-x/dist/util-pusher-x.esm.js + + var EMPTY_STRING = ''; var split = EMPTY_STRING.split; -var splitter = [EMPTY_STRING]; - +var max = Math.max; +var util_pusher_x_esm_bind = is_primitive_x_esm.bind, + util_pusher_x_esm_call = is_primitive_x_esm.call; +var stringSplit = function stringSplit(string, pattern) { + // noinspection JSUnresolvedFunction + return split.call(string, pattern); +}; +var $split = has_working_bind_x_esm ? util_pusher_x_esm_bind.call(util_pusher_x_esm_call, split) : stringSplit; var util_pusher_x_esm_getIterable = function getIterable(arrayLike) { // noinspection JSUnresolvedFunction - return is_string_default()(arrayLike) ? split.apply(arrayLike, splitter) : arrayLike; + return is_string_default()(arrayLike) ? $split(arrayLike, EMPTY_STRING) : arrayLike; }; // eslint-disable jsdoc/no-undefined-types // noinspection JSCommentMatchesSignature @@ -229,7 +327,6 @@ var util_pusher_x_esm_getIterable = function getIterable(arrayLike) { */ // eslint-enable jsdoc/no-undefined-types - var util_pusher_x_esm_pusher = function pusher(arrayLike, from) { /* eslint-disable-next-line prefer-rest-params */ var target = arguments.length > 2 ? arguments[2] : []; @@ -238,10 +335,10 @@ var util_pusher_x_esm_pusher = function pusher(arrayLike, from) { return target; } - var iterable = util_pusher_x_esm_getIterable(arrayLike); + var iterable = has_boxed_string_x_esm ? arrayLike : util_pusher_x_esm_getIterable(arrayLike); var length = iterable.length; - for (var i = from || 0; i < length; i += 1) { + for (var i = max(0, from) || 0; i < length; i += 1) { target[target.length] = arrayLike[i]; } @@ -261,6 +358,9 @@ function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + +var nativeBind = util_pusher_x_esm.bind, + simple_bind_x_esm_call = util_pusher_x_esm.call; var ERROR_MESSAGE = 'bind called on incompatible '; var object = {}; var ObjectCtr = object.constructor; @@ -360,27 +460,9 @@ var getResult = function getResult(target, boundArgs) { /* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */ return ObjectCtr(result) === result ? result : this; -}; // eslint-disable jsdoc/check-param-names -// noinspection JSCommentMatchesSignature - -/** - * The bind() method creates a new function that, when called, has its this - * keyword set to the provided value, with a given sequence of arguments - * preceding any provided when the new function is called. - * - * @param {Function} target - The target function. - * @param {*} [thisArg] - The value to be passed as the this parameter to the target - * function when the bound function is called. The value is ignored if the - * bound function is constructed using the new operator. - * @param {...*} [args] - Arguments to prepend to arguments provided to the bound - * function when invoking the target function. - * @throws {TypeError} If target is not a function. - * @returns {Function} The bound function. - */ -// eslint-enable jsdoc/check-param-names - +}; -var simple_bind_x_esm_bind = function bind(target, thisArg) { +var implementation = function bind(target, thisArg) { assertIsFunction(target); /* eslint-disable-next-line prefer-rest-params */ @@ -398,8 +480,24 @@ var simple_bind_x_esm_bind = function bind(target, thisArg) { bound = getBoundFn([binder, target, bindArgs]); return bound; }; +/** + * The bind() method creates a new function that, when called, has its this + * keyword set to the provided value, with a given sequence of arguments + * preceding any provided when the new function is called. + * + * @function bind + * @param {Function} target - The target function. + * @param {*} [thisArg] - The value to be passed as the this parameter to the target + * function when the bound function is called. The value is ignored if the + * bound function is constructed using the new operator. + * @param {...*} [args] - Arguments to prepend to arguments provided to the bound + * function when invoking the target function. + * @throws {TypeError} If target is not a function. + * @returns {Function} The bound function. + */ -/* harmony default export */ var simple_bind_x_esm = (simple_bind_x_esm_bind); +var $bind = has_working_bind_x_esm ? simple_bind_x_esm_call.bind(nativeBind) : implementation; +/* harmony default export */ var simple_bind_x_esm = ($bind); // CONCATENATED MODULE: ./node_modules/simple-call-x/dist/simple-call-x.esm.js diff --git a/dist/attempt-x.js.map b/dist/attempt-x.js.map index c6216ec..81942c6 100644 --- a/dist/attempt-x.js.map +++ b/dist/attempt-x.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://attemptX/webpack/universalModuleDefinition","webpack://attemptX/webpack/bootstrap","webpack://attemptX/./node_modules/is-string/index.js","webpack://attemptX/../src/is-primitive-x.js","webpack://attemptX/../src/util-pusher-x.js","webpack://attemptX/../src/simple-bind-x.js","webpack://attemptX/../src/simple-call-x.js","webpack://attemptX/../src/attempt-x.js"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD,O;QCvDA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;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AAM,CAAC,kCAAgB,CAAC,CAAD,CAAjB,EAAsB,CAAtB,EAAyB,iBAAM,CAAC,SAAS,CAAC,CAAD,CAAV,CAA/B,CAAb;AACD,CAHD;;AAKe,4EAAf;;;;ACrCA;CAGA;AACA;;AACA;;;;;;;;;;AAUA;;AACA,IAAM,qBAAO,GAAG,SAAS,OAAT,CAAiB,EAAjB,EAAqB;AACnC,MAAI;AACF,WAAO;AACL,WAAK,EAAE,KADF;;AAEL;AACA,WAAK,EAAE,iBAAI,CAAC,EAAD,EAAK,IAAL,EAAW,iBAAM,CAAC,SAAD,EAAY,CAAZ,CAAjB;AAHN,KAAP;AAKD,GAND,CAME,OAAO,CAAP,EAAU;AACV,WAAO;AACL,WAAK,EAAE,IADF;AAEL,WAAK,EAAE;AAFF,KAAP;AAID;AACF,CAbD;;AAee,wGAAf","file":"attempt-x.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"attemptX\"] = factory();\n\telse\n\t\troot[\"attemptX\"] = factory();\n})((function () {\n 'use strict';\n\n var ObjectCtr = {}.constructor;\n var objectPrototype = ObjectCtr.prototype;\n var defineProperty = ObjectCtr.defineProperty;\n var $globalThis;\n var getGlobalFallback = function() {\n if (typeof self !== 'undefined') {\n return self;\n }\n\n if (typeof window !== 'undefined') {\n return window;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n return void 0;\n };\n\n var returnThis = function() {\n return this;\n };\n\n try {\n if (defineProperty) {\n defineProperty(objectPrototype, '$$globalThis$$', {\n get: returnThis,\n configurable: true\n });\n } else {\n objectPrototype.__defineGetter__('$$globalThis$$', returnThis);\n }\n\n $globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$;\n\n delete objectPrototype.$$globalThis$$;\n\n return $globalThis;\n } catch (error) {\n return getGlobalFallback();\n }\n}()), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","'use strict';\n\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') { return true; }\n\tif (typeof value !== 'object') { return false; }\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n","/**\n * Returns true if the value is a primitive.\n *\n * @param {*} [val] - The value to test.\n * @returns {boolean} True if a primitive, otherwise false..\n */\nconst isPrimitive = function isPrimitive(val) {\n return typeof val === 'object' ? val === null : typeof val !== 'function';\n};\n\nexport default isPrimitive;\n","import isPrimitive from 'is-primitive-x';\nimport isString from 'is-string';\n\nconst EMPTY_STRING = '';\nconst {split} = EMPTY_STRING;\nconst splitter = [EMPTY_STRING];\n\nconst getIterable = function getIterable(arrayLike) {\n // noinspection JSUnresolvedFunction\n return isString(arrayLike) ? split.apply(arrayLike, splitter) : arrayLike;\n};\n\n// eslint-disable jsdoc/no-undefined-types\n// noinspection JSCommentMatchesSignature\n/**\n * This pushes or concatenates into a new or existing array.\n *\n * @param {Array} arrayLike - The source.\n * @param {number} [from=0] - The from source index.\n * @param {Array} [target=[]] - The target array.\n * @returns {*} The target array.\n */\n// eslint-enable jsdoc/no-undefined-types\nconst pusher = function pusher(arrayLike, from) {\n /* eslint-disable-next-line prefer-rest-params */\n const target = arguments.length > 2 ? arguments[2] : [];\n\n if (typeof arrayLike !== 'string' && isPrimitive(arrayLike)) {\n return target;\n }\n\n const iterable = getIterable(arrayLike);\n const {length} = iterable;\n for (let i = from || 0; i < length; i += 1) {\n target[target.length] = arrayLike[i];\n }\n\n return target;\n};\n\nexport default pusher;\n","import pusher from 'util-pusher-x';\n\nconst ERROR_MESSAGE = 'bind called on incompatible ';\nconst object = {};\nconst ObjectCtr = object.constructor;\nconst toStringTag = object.toString;\nconst funcType = '[object Function]';\nconst ZERO = 0;\nconst argsOffset = 2;\n\nconst getMax = function getMax(a, b) {\n return a >= b ? a : b;\n};\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + value);\n }\n};\n\nconst boundFns = [\n function zero(binder) {\n return function boundFn() {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments));\n };\n },\n function one(binder, boundLength) {\n return function boundFn(a) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a]));\n };\n },\n function two(binder, boundLength) {\n return function boundFn(a, b) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b]));\n };\n },\n function three(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c]));\n };\n },\n function four(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d]));\n };\n },\n function five(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e]));\n };\n },\n function six(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f]));\n };\n },\n function seven(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g]));\n };\n },\n function eight(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g, h) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g, h]));\n };\n },\n];\n\nconst getBoundFn = function getBoundFn(args) {\n const [binder, target, bindArgs] = args;\n const boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));\n const fn = boundFns[boundLength];\n const boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);\n\n if (target.prototype) {\n /* eslint-disable-next-line lodash/prefer-noop */\n const Empty = function Empty() {};\n\n Empty.prototype = target.prototype;\n boundFn.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return boundFn;\n};\n\nconst getResult = function getResult(target, boundArgs) {\n /* eslint-disable-next-line babel/no-invalid-this */\n const result = target.apply(this, boundArgs);\n\n /* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */\n return ObjectCtr(result) === result ? result : this;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The bind() method creates a new function that, when called, has its this\n * keyword set to the provided value, with a given sequence of arguments\n * preceding any provided when the new function is called.\n *\n * @param {Function} target - The target function.\n * @param {*} [thisArg] - The value to be passed as the this parameter to the target\n * function when the bound function is called. The value is ignored if the\n * bound function is constructed using the new operator.\n * @param {...*} [args] - Arguments to prepend to arguments provided to the bound\n * function when invoking the target function.\n * @throws {TypeError} If target is not a function.\n * @returns {Function} The bound function.\n */\n// eslint-enable jsdoc/check-param-names\nconst bind = function bind(target, thisArg) {\n assertIsFunction(target);\n /* eslint-disable-next-line prefer-rest-params */\n const bindArgs = arguments;\n\n let bound;\n const binder = function binder() {\n /* eslint-disable-next-line prefer-rest-params */\n const boundArgs = pusher(arguments, ZERO, pusher(bindArgs, argsOffset));\n\n /* eslint-disable-next-line babel/no-invalid-this */\n return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);\n };\n\n bound = getBoundFn([binder, target, bindArgs]);\n\n return bound;\n};\n\nexport default bind;\n","import pusher from 'util-pusher-x';\nimport bind from 'simple-bind-x';\n\nconst $TypeError = TypeError;\nconst {apply: nativeApply, call: nativeCall} = bind;\nconst $apply = bind(nativeCall, nativeApply);\nconst toStringTag = bind(nativeApply, {}.toString);\nconst ERROR_MESSAGE = ' is not a function';\nconst funcType = '[object Function]';\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag(value) !== funcType) {\n throw new $TypeError(value + ERROR_MESSAGE);\n }\n\n return value;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The abstract operation Call is used to call the [[Call]] internal method of a function object.\n *\n * @function call\n * @param {Function} F - The target function.\n * @param {*} [V] - The context.\n * @param {Array} [args] - Argument to call the function with.\n * @throws {TypeError} If target is not a function.\n * @returns {*} The the result of invoking the function.\n * @see https://www.ecma-international.org/ecma-262/6.0/#sec-call\n */\n// eslint-enable jsdoc/check-param-names\nconst call = function call(F, V) {\n /* eslint-disable-next-line prefer-rest-params */\n return $apply(assertIsFunction(F), V, pusher(arguments[2]));\n};\n\nexport default call;\n","import pusher from 'util-pusher-x';\nimport call from 'simple-call-x';\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method attempts to invoke the function, returning either the result or\n * the caught error object. Any additional arguments are provided to the\n * function when it's invoked.\n *\n * @function attempt\n * @param {Function} [fn] - The function to attempt.\n * @param {...*} [args] - The arguments to invoke the function with.\n * @returns {object} Returns an object of the result.\n */\n// eslint-disable jsdoc/check-param-names\nconst attempt = function attempt(fn) {\n try {\n return {\n threw: false,\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n value: call(fn, this, pusher(arguments, 1)),\n };\n } catch (e) {\n return {\n threw: true,\n value: e,\n };\n }\n};\n\nexport default attempt;\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://attemptX/webpack/universalModuleDefinition","webpack://attemptX/webpack/bootstrap","webpack://attemptX/./node_modules/is-string/index.js","webpack://attemptX/../src/is-primitive-x.js","webpack://attemptX/../src/has-boxed-string-x.js","webpack://attemptX/../src/noop-x.js","webpack://attemptX/../src/has-working-bind-x.js","webpack://attemptX/../src/util-pusher-x.js","webpack://attemptX/../src/simple-bind-x.js","webpack://attemptX/../src/simple-call-x.js","webpack://attemptX/../src/attempt-x.js"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD,O;QCvDA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA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A1D,EAAoE;AAClE,UAAM,IAAI,UAAJ,CAAe,KAAK,GAAG,+BAAvB,CAAN;AACD;;AAED,SAAO,KAAP;AACD,CAND,C,CAQA;AACA;;AACA;;;;;;;;;;;AAWA;;;AACA,IAAM,sBAAI,GAAG,SAAS,IAAT,CAAc,CAAd,EAAiB,CAAjB,EAAoB;AAC/B;AACA,SAAO,MAAM,CAAC,kCAAgB,CAAC,CAAD,CAAjB,EAAsB,CAAtB,EAAyB,iBAAM,CAAC,SAAS,CAAC,CAAD,CAAV,CAA/B,CAAb;AACD,CAHD;;AAKe,4EAAf;;;;ACrCA;CAGA;AACA;;AACA;;;;;;;;;;AAUA;;AACA,IAAM,qBAAO,GAAG,SAAS,OAAT,CAAiB,EAAjB,EAAqB;AACnC,MAAI;AACF,WAAO;AACL,WAAK,EAAE,KADF;;AAEL;AACA,WAAK,EAAE,iBAAI,CAAC,EAAD,EAAK,IAAL,EAAW,iBAAM,CAAC,SAAD,EAAY,CAAZ,CAAjB;AAHN,KAAP;AAKD,GAND,CAME,OAAO,CAAP,EAAU;AACV,WAAO;AACL,WAAK,EAAE,IADF;AAEL,WAAK,EAAE;AAFF,KAAP;AAID;AACF,CAbD;;AAee,wGAAf","file":"attempt-x.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"attemptX\"] = factory();\n\telse\n\t\troot[\"attemptX\"] = factory();\n})((function () {\n 'use strict';\n\n var ObjectCtr = {}.constructor;\n var objectPrototype = ObjectCtr.prototype;\n var defineProperty = ObjectCtr.defineProperty;\n var $globalThis;\n var getGlobalFallback = function() {\n if (typeof self !== 'undefined') {\n return self;\n }\n\n if (typeof window !== 'undefined') {\n return window;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n return void 0;\n };\n\n var returnThis = function() {\n return this;\n };\n\n try {\n if (defineProperty) {\n defineProperty(objectPrototype, '$$globalThis$$', {\n get: returnThis,\n configurable: true\n });\n } else {\n objectPrototype.__defineGetter__('$$globalThis$$', returnThis);\n }\n\n $globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$;\n\n delete objectPrototype.$$globalThis$$;\n\n return $globalThis;\n } catch (error) {\n return getGlobalFallback();\n }\n}()), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","'use strict';\n\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') { return true; }\n\tif (typeof value !== 'object') { return false; }\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n","/**\n * Returns true if the value is a primitive.\n *\n * @param {*} [val] - The value to test.\n * @returns {boolean} True if a primitive, otherwise false..\n */\nconst isPrimitive = function isPrimitive(val) {\n return typeof val === 'object' ? val === null : typeof val !== 'function';\n};\n\nexport default isPrimitive;\n","const string = 'a';\nconst boxedString = {}.constructor(string);\n\n/**\n * Check failure of by-index access of string characters (IE < 9)\n * and failure of `0 in boxedString` (Rhino).\n *\n * `true` if no failure; otherwise `false`.\n *\n * @type boolean\n */\nconst hasBoxed = boxedString[0] === string && 0 in boxedString;\n\nexport default hasBoxed;\n","/**\n * This method returns undefined.\n *\n * @returns {undefined} Always undefined.\n */\nconst noop = function noop() {}; /* eslint-disable-line lodash/prefer-noop */\n\nexport default noop;\n","import noop from 'noop-x';\n\nconst {bind} = noop;\n\nconst test1 = function test1() {\n let a1 = null;\n let a2 = null;\n let context = null;\n const testThis = [];\n\n const test1Fn = function test1Fn(arg1, arg2) {\n /* eslint-disable-next-line babel/no-invalid-this */\n context = this;\n a1 = arg1;\n a2 = arg2;\n\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n };\n\n try {\n const boundFn = bind.apply(test1Fn, [testThis, 1]);\n const args = boundFn(2);\n\n return boundFn.length === 1 && args.length === 2 && a1 === 1 && a2 === 2 && context === testThis;\n } catch (e) {\n return false;\n }\n};\n\nconst test2 = function test2() {\n let a1 = null;\n let a2 = null;\n let context = null;\n const oracle = [1, 2, 3];\n\n const Ctr = function Ctr(arg1, arg2) {\n a1 = arg1;\n a2 = arg2;\n context = this;\n\n return oracle;\n };\n\n try {\n const BoundFn = bind.apply(Ctr, [null]);\n const returned = new BoundFn(1, 2);\n\n return BoundFn.length === Ctr.length && returned === oracle && a1 === 1 && a2 === 2 && context !== oracle;\n } catch (e) {\n return false;\n }\n};\n\n/**\n * Indicates if the engine has a working bind function.\n *\n * @type {boolean}\n */\nconst isWorking = typeof bind === 'function' && test1() && test2();\n\nexport default isWorking;\n","import isPrimitive from 'is-primitive-x';\nimport isString from 'is-string';\nimport hasBoxed from 'has-boxed-string-x';\nimport hasWorkingBind from 'has-working-bind-x';\n\nconst EMPTY_STRING = '';\nconst {split} = EMPTY_STRING;\nconst {max} = Math;\nconst {bind, call} = isPrimitive;\nexport const stringSplit = function stringSplit(string, pattern) {\n // noinspection JSUnresolvedFunction\n return split.call(string, pattern);\n};\n\nexport const $split = hasWorkingBind ? bind.call(call, split) : stringSplit;\n\nexport const getIterable = function getIterable(arrayLike) {\n // noinspection JSUnresolvedFunction\n return isString(arrayLike) ? $split(arrayLike, EMPTY_STRING) : arrayLike;\n};\n\n// eslint-disable jsdoc/no-undefined-types\n// noinspection JSCommentMatchesSignature\n/**\n * This pushes or concatenates into a new or existing array.\n *\n * @param {Array} arrayLike - The source.\n * @param {number} [from=0] - The from source index.\n * @param {Array} [target=[]] - The target array.\n * @returns {*} The target array.\n */\n// eslint-enable jsdoc/no-undefined-types\nconst pusher = function pusher(arrayLike, from) {\n /* eslint-disable-next-line prefer-rest-params */\n const target = arguments.length > 2 ? arguments[2] : [];\n\n if (typeof arrayLike !== 'string' && isPrimitive(arrayLike)) {\n return target;\n }\n\n const iterable = hasBoxed ? arrayLike : getIterable(arrayLike);\n const {length} = iterable;\n for (let i = max(0, from) || 0; i < length; i += 1) {\n target[target.length] = arrayLike[i];\n }\n\n return target;\n};\n\nexport default pusher;\n","import hasWorkingBind from 'has-working-bind-x';\nimport pusher from 'util-pusher-x';\n\nconst {bind: nativeBind, call} = pusher;\nconst ERROR_MESSAGE = 'bind called on incompatible ';\nconst object = {};\nconst ObjectCtr = object.constructor;\nconst toStringTag = object.toString;\nconst funcType = '[object Function]';\nconst ZERO = 0;\nconst argsOffset = 2;\n\nconst getMax = function getMax(a, b) {\n return a >= b ? a : b;\n};\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + value);\n }\n};\n\nconst boundFns = [\n function zero(binder) {\n return function boundFn() {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments));\n };\n },\n function one(binder, boundLength) {\n return function boundFn(a) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a]));\n };\n },\n function two(binder, boundLength) {\n return function boundFn(a, b) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b]));\n };\n },\n function three(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c]));\n };\n },\n function four(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d]));\n };\n },\n function five(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e]));\n };\n },\n function six(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f]));\n };\n },\n function seven(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g]));\n };\n },\n function eight(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g, h) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g, h]));\n };\n },\n];\n\nconst getBoundFn = function getBoundFn(args) {\n const [binder, target, bindArgs] = args;\n const boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));\n const fn = boundFns[boundLength];\n const boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);\n\n if (target.prototype) {\n /* eslint-disable-next-line lodash/prefer-noop */\n const Empty = function Empty() {};\n\n Empty.prototype = target.prototype;\n boundFn.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return boundFn;\n};\n\nconst getResult = function getResult(target, boundArgs) {\n /* eslint-disable-next-line babel/no-invalid-this */\n const result = target.apply(this, boundArgs);\n\n /* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */\n return ObjectCtr(result) === result ? result : this;\n};\n\nexport const implementation = function bind(target, thisArg) {\n assertIsFunction(target);\n /* eslint-disable-next-line prefer-rest-params */\n const bindArgs = arguments;\n\n let bound;\n const binder = function binder() {\n /* eslint-disable-next-line prefer-rest-params */\n const boundArgs = pusher(arguments, ZERO, pusher(bindArgs, argsOffset));\n\n /* eslint-disable-next-line babel/no-invalid-this */\n return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);\n };\n\n bound = getBoundFn([binder, target, bindArgs]);\n\n return bound;\n};\n\n/**\n * The bind() method creates a new function that, when called, has its this\n * keyword set to the provided value, with a given sequence of arguments\n * preceding any provided when the new function is called.\n *\n * @function bind\n * @param {Function} target - The target function.\n * @param {*} [thisArg] - The value to be passed as the this parameter to the target\n * function when the bound function is called. The value is ignored if the\n * bound function is constructed using the new operator.\n * @param {...*} [args] - Arguments to prepend to arguments provided to the bound\n * function when invoking the target function.\n * @throws {TypeError} If target is not a function.\n * @returns {Function} The bound function.\n */\nconst $bind = hasWorkingBind ? call.bind(nativeBind) : implementation;\n\nexport default $bind;\n","import pusher from 'util-pusher-x';\nimport bind from 'simple-bind-x';\n\nconst $TypeError = TypeError;\nconst {apply: nativeApply, call: nativeCall} = bind;\nconst $apply = bind(nativeCall, nativeApply);\nconst toStringTag = bind(nativeApply, {}.toString);\nconst ERROR_MESSAGE = ' is not a function';\nconst funcType = '[object Function]';\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag(value) !== funcType) {\n throw new $TypeError(value + ERROR_MESSAGE);\n }\n\n return value;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The abstract operation Call is used to call the [[Call]] internal method of a function object.\n *\n * @function call\n * @param {Function} F - The target function.\n * @param {*} [V] - The context.\n * @param {Array} [args] - Argument to call the function with.\n * @throws {TypeError} If target is not a function.\n * @returns {*} The the result of invoking the function.\n * @see https://www.ecma-international.org/ecma-262/6.0/#sec-call\n */\n// eslint-enable jsdoc/check-param-names\nconst call = function call(F, V) {\n /* eslint-disable-next-line prefer-rest-params */\n return $apply(assertIsFunction(F), V, pusher(arguments[2]));\n};\n\nexport default call;\n","import pusher from 'util-pusher-x';\nimport call from 'simple-call-x';\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method attempts to invoke the function, returning either the result or\n * the caught error object. Any additional arguments are provided to the\n * function when it's invoked.\n *\n * @function attempt\n * @param {Function} [fn] - The function to attempt.\n * @param {...*} [args] - The arguments to invoke the function with.\n * @returns {object} Returns an object of the result.\n */\n// eslint-disable jsdoc/check-param-names\nconst attempt = function attempt(fn) {\n try {\n return {\n threw: false,\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n value: call(fn, this, pusher(arguments, 1)),\n };\n } catch (e) {\n return {\n threw: true,\n value: e,\n };\n }\n};\n\nexport default attempt;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/attempt-x.min.js b/dist/attempt-x.min.js index d5d7feb..97118f3 100644 --- a/dist/attempt-x.min.js +++ b/dist/attempt-x.min.js @@ -2,14 +2,14 @@ { "author": "Graham Fairweather", "copywrite": "Copyright (c) 2017-present", - "date": "2019-08-20T12:41:59.021Z", + "date": "2019-08-20T19:02:42.078Z", "describe": "", "description": "Invokes function, returning an object of the results.", "file": "attempt-x.min.js", - "hash": "25d42ed1955e17349d96", + "hash": "d720b8b7a9d660be6db7", "license": "MIT", - "version": "2.1.0" + "version": "2.1.1" } */ -!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.attemptX=n():t.attemptX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=1)}([function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(n);var o=function(t){return"object"===e(t)?null===t:"function"!=typeof t},u=r(0),i=r.n(u),f="".split,c=[""],l=function(t){return i()(t)?f.apply(t,c):t},p=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return r;for(var e=l(t),u=e.length,i=n||0;i=n?t:n},h=function(t){if("function"!=typeof t&&"[object Function]"!==b.apply(t))throw new TypeError("bind called on incompatible "+t)},g=[function(t){return function(){return t.apply(this,p(arguments))}},function(t,n){return function(r){return t.apply(this,p(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,p(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,p(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,p(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,p(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,f){return t.apply(this,p(arguments,n,[r,e,o,u,i,f]))}},function(t,n){return function(r,e,o,u,i,f,c){return t.apply(this,p(arguments,n,[r,e,o,u,i,f,c]))}},function(t,n){return function(r,e,o,u,i,f,c,l){return t.apply(this,p(arguments,n,[r,e,o,u,i,f,c,l]))}}],v=function(t){var n=a(t,3),r=n[0],e=n[1],o=n[2],u=d(0,e.length-d(0,o.length-2)),i=g[u],f=i?i(r,u):g[0](r);if(e.prototype){var c=function(){};c.prototype=e.prototype,f.prototype=new c,c.prototype=null}return f},m=function(t,n){var r=t.apply(this,n);return s(r)===r?r:this},$=function(t,n){h(t);var r,e=arguments,o=function(){var o=p(arguments,0,p(e,2));return this instanceof r?m.apply(this,[t,o]):t.apply(n,o)};return r=v([o,t,e])},S=TypeError,j=$.apply,w=$($.call,j),x=$(j,{}.toString),T=function(t){if("function"!=typeof t&&"[object Function]"!==x(t))throw new S(t+" is not a function");return t},_=function(t,n){return w(T(t),n,p(arguments[2]))};n.default=function(t){try{return{threw:!1,value:_(t,this,p(arguments,1))}}catch(t){return{threw:!0,value:t}}}}])}); +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.attemptX=n():t.attemptX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=1)}([function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(n);var o=function(t){return"object"===e(t)?null===t:"function"!=typeof t},u=r(0),i=r.n(u),f={}.constructor("a"),c="a"===f[0]&&0 in f,l=function(){}.bind,p="function"==typeof l&&function(){var t=null,n=null,r=null,e=[];try{var o=l.apply(function(e,o){return r=this,t=e,n=o,arguments},[e,1]),u=o(2);return 1===o.length&&2===u.length&&1===t&&2===n&&r===e}catch(t){return!1}}()&&function(){var t=null,n=null,r=null,e=[1,2,3],o=function(o,u){return t=o,n=u,r=this,e};try{var u=l.apply(o,[null]),i=new u(1,2);return u.length===o.length&&i===e&&1===t&&2===n&&r!==e}catch(t){return!1}}(),a="".split,y=Math.max,s=o.bind,b=o.call,d=p?s.call(b,a):function(t,n){return a.call(t,n)},h=function(t){return i()(t)?d(t,""):t},g=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return r;for(var e=c?t:h(t),u=e.length,i=y(0,n)||0;i=n?t:n},T=function(t){if("function"!=typeof t&&"[object Function]"!==w.apply(t))throw new TypeError("bind called on incompatible "+t)},_=[function(t){return function(){return t.apply(this,g(arguments))}},function(t,n){return function(r){return t.apply(this,g(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,g(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,g(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,g(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,g(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,f){return t.apply(this,g(arguments,n,[r,e,o,u,i,f]))}},function(t,n){return function(r,e,o,u,i,f,c){return t.apply(this,g(arguments,n,[r,e,o,u,i,f,c]))}},function(t,n){return function(r,e,o,u,i,f,c,l){return t.apply(this,g(arguments,n,[r,e,o,u,i,f,c,l]))}}],O=function(t){var n=v(t,3),r=n[0],e=n[1],o=n[2],u=x(0,e.length-x(0,o.length-2)),i=_[u],f=i?i(r,u):_[0](r);if(e.prototype){var c=function(){};c.prototype=e.prototype,f.prototype=new c,c.prototype=null}return f},P=function(t,n){var r=t.apply(this,n);return j(r)===r?r:this},M=p?$.bind(m):function(t,n){T(t);var r,e=arguments,o=function(){var o=g(arguments,0,g(e,2));return this instanceof r?P.apply(this,[t,o]):t.apply(n,o)};return r=O([o,t,e])},E=TypeError,A=M.apply,F=M(M.call,A),X=M(A,{}.toString),G=function(t){if("function"!=typeof t&&"[object Function]"!==X(t))throw new E(t+" is not a function");return t},I=function(t,n){return F(G(t),n,g(arguments[2]))};n.default=function(t){try{return{threw:!1,value:I(t,this,g(arguments,1))}}catch(t){return{threw:!0,value:t}}}}])}); //# sourceMappingURL=attempt-x.min.js.map \ No newline at end of file diff --git a/dist/attempt-x.min.js.map b/dist/attempt-x.min.js.map index f63dfb4..c5cc6a5 100644 --- a/dist/attempt-x.min.js.map +++ b/dist/attempt-x.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://attemptX/webpack/universalModuleDefinition","webpack://attemptX/webpack/bootstrap","webpack://attemptX/./node_modules/is-string/index.js","webpack://attemptX/../src/is-primitive-x.js","webpack://attemptX/../src/util-pusher-x.js","webpack://attemptX/../src/simple-bind-x.js","webpack://attemptX/../src/simple-call-x.js","webpack://attemptX/../src/attempt-x.js"],"names":["root","factory","exports","module","define","amd","$globalThis","ObjectCtr","constructor","objectPrototype","prototype","defineProperty","getGlobalFallback","self","window","global","returnThis","this","get","configurable","__defineGetter__","$$globalThis$$","error","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","enumerable","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","hasOwnProperty","p","s","strValue","String","valueOf","toStr","toString","hasToStringTag","e","tryStringObject","is_primitive_x_esm","val","_typeof","split","splitter","util_pusher_x_esm_getIterable","arrayLike","is_string_default","apply","util_pusher_x_esm","from","target","arguments","length","iterable","getMax","a","b","assertIsFunction","TypeError","boundFns","binder","boundLength","f","g","h","getBoundFn","args","_args","_slicedToArray","bindArgs","fn","boundFn","Empty","getResult","boundArgs","result","simple_bind_x_esm","thisArg","bound","$TypeError","nativeApply","$apply","simple_call_x_esm_toStringTag","simple_call_x_esm_assertIsFunction","simple_call_x_esm","F","V","__webpack_exports__","threw"],"mappings":";;;;;;;;;;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,IARrB,CASI,WACF,aAEA,IAGIK,EAHAC,EAAY,GAAGC,YACfC,EAAkBF,EAAUG,UAC5BC,EAAiBJ,EAAUI,eAE3BC,EAAoB,WACtB,MAAoB,oBAATC,KACFA,KAGa,oBAAXC,OACFA,OAGa,oBAAXC,OACFA,YADT,GAOEC,EAAa,WACf,OAAOC,MAGT,IAcE,OAbIN,EACFA,EAAeF,EAAiB,iBAAkB,CAChDS,IAAKF,EACLG,cAAc,IAGhBV,EAAgBW,iBAAiB,iBAAkBJ,GAGrDV,EAAwC,oBAAnBe,eAAiCT,IAAsBS,sBAErEZ,EAAgBY,eAEhBf,EACP,MAAOgB,GACP,OAAOV,KA3CR,GA6CG,WACN,O,YCtDE,IAAIW,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUvB,QAGnC,IAAIC,EAASoB,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHzB,QAAS,IAUV,OANA0B,EAAQH,GAAUI,KAAK1B,EAAOD,QAASC,EAAQA,EAAOD,QAASsB,GAG/DrB,EAAOwB,GAAI,EAGJxB,EAAOD,QA0Df,OArDAsB,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAAS9B,EAAS+B,EAAMC,GAC3CV,EAAoBW,EAAEjC,EAAS+B,IAClCG,OAAOzB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GACdU,EAAUD,EAAKA,EAAGV,EAAQC,GAAeF,EAhFpC,GAgFmDC,GAE9D,GAAIV,EAAOhE,UAAW,CAEpB,IAAMsF,EAAQ,aAEdA,EAAMtF,UAAYgE,EAAOhE,UACzBqF,EAAQrF,UAAY,IAAIsF,EACxBA,EAAMtF,UAAY,KAGpB,OAAOqF,GAGHE,EAAY,SAAmBvB,EAAQwB,GAE3C,IAAMC,EAASzB,EAAOH,MAAMtD,KAAMiF,GAGlC,OAAO3F,EAAU4F,KAAYA,EAASA,EAASlF,MAuClCmF,EAnBF,SAAc1B,EAAQ2B,GACjCpB,EAAiBP,GAEjB,IAEI4B,EAFET,EAAWlB,UAGXS,EAAS,WAEb,IAAMc,EAAY1B,EAAOG,UA/HhB,EA+HiCH,EAAOqB,EA9HlC,IAiIf,OAAO5E,gBAAgBqF,EAAQL,EAAU1B,MAAMtD,KAAM,CAACyD,EAAQwB,IAAcxB,EAAOH,MAAM8B,EAASH,IAKpG,OAFAI,EAAQb,EAAW,CAACL,EAAQV,EAAQmB,KCzIhCU,EAAarB,UACLsB,EAAiCJ,EAAxC7B,MACDkC,EAASL,EADgCA,EAApBvE,KACK2E,GAC1BE,EAAcN,EAAKI,EAAa,GAAG7C,UAInCgD,EAAmB,SAA0BlE,GACjD,GAAqB,mBAAVA,GAHI,sBAGoBiE,EAAYjE,GAC7C,MAAM,IAAI8D,EAAW9D,EALH,sBAQpB,OAAOA,GAsBMmE,EALF,SAAcC,EAAGC,GAE5B,OAAOL,EAAOE,EAAiBE,GAAIC,EAAGtC,EAAOG,UAAU,MCH1CoC,EAAA,QAfC,SAAiBjB,GAC/B,IACE,MAAO,CACLkB,OAAO,EAEPvE,MAAOmE,EAAKd,EAAI7E,KAAMuD,EAAOG,UAAW,KAE1C,MAAOd,GACP,MAAO,CACLmD,OAAO,EACPvE,MAAOoB","file":"attempt-x.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"attemptX\"] = factory();\n\telse\n\t\troot[\"attemptX\"] = factory();\n})((function () {\n 'use strict';\n\n var ObjectCtr = {}.constructor;\n var objectPrototype = ObjectCtr.prototype;\n var defineProperty = ObjectCtr.defineProperty;\n var $globalThis;\n var getGlobalFallback = function() {\n if (typeof self !== 'undefined') {\n return self;\n }\n\n if (typeof window !== 'undefined') {\n return window;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n return void 0;\n };\n\n var returnThis = function() {\n return this;\n };\n\n try {\n if (defineProperty) {\n defineProperty(objectPrototype, '$$globalThis$$', {\n get: returnThis,\n configurable: true\n });\n } else {\n objectPrototype.__defineGetter__('$$globalThis$$', returnThis);\n }\n\n $globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$;\n\n delete objectPrototype.$$globalThis$$;\n\n return $globalThis;\n } catch (error) {\n return getGlobalFallback();\n }\n}()), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","'use strict';\n\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') { return true; }\n\tif (typeof value !== 'object') { return false; }\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n","/**\n * Returns true if the value is a primitive.\n *\n * @param {*} [val] - The value to test.\n * @returns {boolean} True if a primitive, otherwise false..\n */\nconst isPrimitive = function isPrimitive(val) {\n return typeof val === 'object' ? val === null : typeof val !== 'function';\n};\n\nexport default isPrimitive;\n","import isPrimitive from 'is-primitive-x';\nimport isString from 'is-string';\n\nconst EMPTY_STRING = '';\nconst {split} = EMPTY_STRING;\nconst splitter = [EMPTY_STRING];\n\nconst getIterable = function getIterable(arrayLike) {\n // noinspection JSUnresolvedFunction\n return isString(arrayLike) ? split.apply(arrayLike, splitter) : arrayLike;\n};\n\n// eslint-disable jsdoc/no-undefined-types\n// noinspection JSCommentMatchesSignature\n/**\n * This pushes or concatenates into a new or existing array.\n *\n * @param {Array} arrayLike - The source.\n * @param {number} [from=0] - The from source index.\n * @param {Array} [target=[]] - The target array.\n * @returns {*} The target array.\n */\n// eslint-enable jsdoc/no-undefined-types\nconst pusher = function pusher(arrayLike, from) {\n /* eslint-disable-next-line prefer-rest-params */\n const target = arguments.length > 2 ? arguments[2] : [];\n\n if (typeof arrayLike !== 'string' && isPrimitive(arrayLike)) {\n return target;\n }\n\n const iterable = getIterable(arrayLike);\n const {length} = iterable;\n for (let i = from || 0; i < length; i += 1) {\n target[target.length] = arrayLike[i];\n }\n\n return target;\n};\n\nexport default pusher;\n","import pusher from 'util-pusher-x';\n\nconst ERROR_MESSAGE = 'bind called on incompatible ';\nconst object = {};\nconst ObjectCtr = object.constructor;\nconst toStringTag = object.toString;\nconst funcType = '[object Function]';\nconst ZERO = 0;\nconst argsOffset = 2;\n\nconst getMax = function getMax(a, b) {\n return a >= b ? a : b;\n};\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + value);\n }\n};\n\nconst boundFns = [\n function zero(binder) {\n return function boundFn() {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments));\n };\n },\n function one(binder, boundLength) {\n return function boundFn(a) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a]));\n };\n },\n function two(binder, boundLength) {\n return function boundFn(a, b) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b]));\n };\n },\n function three(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c]));\n };\n },\n function four(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d]));\n };\n },\n function five(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e]));\n };\n },\n function six(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f]));\n };\n },\n function seven(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g]));\n };\n },\n function eight(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g, h) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g, h]));\n };\n },\n];\n\nconst getBoundFn = function getBoundFn(args) {\n const [binder, target, bindArgs] = args;\n const boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));\n const fn = boundFns[boundLength];\n const boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);\n\n if (target.prototype) {\n /* eslint-disable-next-line lodash/prefer-noop */\n const Empty = function Empty() {};\n\n Empty.prototype = target.prototype;\n boundFn.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return boundFn;\n};\n\nconst getResult = function getResult(target, boundArgs) {\n /* eslint-disable-next-line babel/no-invalid-this */\n const result = target.apply(this, boundArgs);\n\n /* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */\n return ObjectCtr(result) === result ? result : this;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The bind() method creates a new function that, when called, has its this\n * keyword set to the provided value, with a given sequence of arguments\n * preceding any provided when the new function is called.\n *\n * @param {Function} target - The target function.\n * @param {*} [thisArg] - The value to be passed as the this parameter to the target\n * function when the bound function is called. The value is ignored if the\n * bound function is constructed using the new operator.\n * @param {...*} [args] - Arguments to prepend to arguments provided to the bound\n * function when invoking the target function.\n * @throws {TypeError} If target is not a function.\n * @returns {Function} The bound function.\n */\n// eslint-enable jsdoc/check-param-names\nconst bind = function bind(target, thisArg) {\n assertIsFunction(target);\n /* eslint-disable-next-line prefer-rest-params */\n const bindArgs = arguments;\n\n let bound;\n const binder = function binder() {\n /* eslint-disable-next-line prefer-rest-params */\n const boundArgs = pusher(arguments, ZERO, pusher(bindArgs, argsOffset));\n\n /* eslint-disable-next-line babel/no-invalid-this */\n return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);\n };\n\n bound = getBoundFn([binder, target, bindArgs]);\n\n return bound;\n};\n\nexport default bind;\n","import pusher from 'util-pusher-x';\nimport bind from 'simple-bind-x';\n\nconst $TypeError = TypeError;\nconst {apply: nativeApply, call: nativeCall} = bind;\nconst $apply = bind(nativeCall, nativeApply);\nconst toStringTag = bind(nativeApply, {}.toString);\nconst ERROR_MESSAGE = ' is not a function';\nconst funcType = '[object Function]';\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag(value) !== funcType) {\n throw new $TypeError(value + ERROR_MESSAGE);\n }\n\n return value;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The abstract operation Call is used to call the [[Call]] internal method of a function object.\n *\n * @function call\n * @param {Function} F - The target function.\n * @param {*} [V] - The context.\n * @param {Array} [args] - Argument to call the function with.\n * @throws {TypeError} If target is not a function.\n * @returns {*} The the result of invoking the function.\n * @see https://www.ecma-international.org/ecma-262/6.0/#sec-call\n */\n// eslint-enable jsdoc/check-param-names\nconst call = function call(F, V) {\n /* eslint-disable-next-line prefer-rest-params */\n return $apply(assertIsFunction(F), V, pusher(arguments[2]));\n};\n\nexport default call;\n","import pusher from 'util-pusher-x';\nimport call from 'simple-call-x';\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method attempts to invoke the function, returning either the result or\n * the caught error object. Any additional arguments are provided to the\n * function when it's invoked.\n *\n * @function attempt\n * @param {Function} [fn] - The function to attempt.\n * @param {...*} [args] - The arguments to invoke the function with.\n * @returns {object} Returns an object of the result.\n */\n// eslint-disable jsdoc/check-param-names\nconst attempt = function attempt(fn) {\n try {\n return {\n threw: false,\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n value: call(fn, this, pusher(arguments, 1)),\n };\n } catch (e) {\n return {\n threw: true,\n value: e,\n };\n }\n};\n\nexport default attempt;\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://attemptX/webpack/universalModuleDefinition","webpack://attemptX/webpack/bootstrap","webpack://attemptX/./node_modules/is-string/index.js","webpack://attemptX/../src/is-primitive-x.js","webpack://attemptX/../src/has-boxed-string-x.js","webpack://attemptX/../src/has-working-bind-x.js","webpack://attemptX/../src/noop-x.js","webpack://attemptX/../src/util-pusher-x.js","webpack://attemptX/../src/simple-bind-x.js","webpack://attemptX/../src/simple-call-x.js","webpack://attemptX/../src/attempt-x.js"],"names":["root","factory","exports","module","define","amd","$globalThis","ObjectCtr","constructor","objectPrototype","prototype","defineProperty","getGlobalFallback","self","window","global","returnThis","this","get","configurable","__defineGetter__","$$globalThis$$","error","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","enumerable","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","hasOwnProperty","p","s","strValue","String","valueOf","toStr","toString","hasToStringTag","e","tryStringObject","is_primitive_x_esm","val","_typeof","boxedString","has_boxed_string_x_esm","has_working_bind_x_esm_bind","has_working_bind_x_esm","a1","a2","context","testThis","boundFn","apply","arg1","arg2","arguments","args","length","test1","oracle","Ctr","BoundFn","returned","test2","split","max","Math","util_pusher_x_esm_bind","util_pusher_x_esm_call","$split","string","pattern","util_pusher_x_esm_getIterable","arrayLike","is_string_default","util_pusher_x_esm","from","target","iterable","nativeBind","simple_bind_x_esm_call","getMax","a","b","assertIsFunction","TypeError","boundFns","binder","boundLength","f","g","h","getBoundFn","_args","_slicedToArray","bindArgs","fn","Empty","getResult","boundArgs","result","simple_bind_x_esm","thisArg","bound","$TypeError","nativeApply","$apply","simple_call_x_esm_toStringTag","simple_call_x_esm_assertIsFunction","simple_call_x_esm","F","V","__webpack_exports__","threw"],"mappings":";;;;;;;;;;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,IARrB,CASI,WACF,aAEA,IAGIK,EAHAC,EAAY,GAAGC,YACfC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CoB,EAAOoB,EA7GlC,IAgHf,OAAOrG,gBAAgB6G,EAAQL,EAAU9C,MAAM1D,KAAM,CAACmF,EAAQsB,IAActB,EAAOzB,MAAMkD,EAASH,IAKpG,OAFAI,EAAQX,EAAW,CAACL,EAAQV,EAAQkB,KC1HhCS,EAAanB,UACLoB,EAAiCJ,EAAxCjD,MACDsD,EAASL,EADgCA,EAApB/F,KACKmG,GAC1BE,EAAcN,EAAKI,EAAa,GAAGrE,UAInCwE,EAAmB,SAA0B1F,GACjD,GAAqB,mBAAVA,GAHI,sBAGoByF,EAAYzF,GAC7C,MAAM,IAAIsF,EAAWtF,EALH,sBAQpB,OAAOA,GAsBM2F,EALF,SAAcC,EAAGC,GAE5B,OAAOL,EAAOE,EAAiBE,GAAIC,EAAGpC,EAAOpB,UAAU,MCH1CyD,EAAA,QAfC,SAAiBhB,GAC/B,IACE,MAAO,CACLiB,OAAO,EAEP/F,MAAO2F,EAAKb,EAAItG,KAAMiF,EAAOpB,UAAW,KAE1C,MAAOjB,GACP,MAAO,CACL2E,OAAO,EACP/F,MAAOoB","file":"attempt-x.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"attemptX\"] = factory();\n\telse\n\t\troot[\"attemptX\"] = factory();\n})((function () {\n 'use strict';\n\n var ObjectCtr = {}.constructor;\n var objectPrototype = ObjectCtr.prototype;\n var defineProperty = ObjectCtr.defineProperty;\n var $globalThis;\n var getGlobalFallback = function() {\n if (typeof self !== 'undefined') {\n return self;\n }\n\n if (typeof window !== 'undefined') {\n return window;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n return void 0;\n };\n\n var returnThis = function() {\n return this;\n };\n\n try {\n if (defineProperty) {\n defineProperty(objectPrototype, '$$globalThis$$', {\n get: returnThis,\n configurable: true\n });\n } else {\n objectPrototype.__defineGetter__('$$globalThis$$', returnThis);\n }\n\n $globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$;\n\n delete objectPrototype.$$globalThis$$;\n\n return $globalThis;\n } catch (error) {\n return getGlobalFallback();\n }\n}()), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","'use strict';\n\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') { return true; }\n\tif (typeof value !== 'object') { return false; }\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n","/**\n * Returns true if the value is a primitive.\n *\n * @param {*} [val] - The value to test.\n * @returns {boolean} True if a primitive, otherwise false..\n */\nconst isPrimitive = function isPrimitive(val) {\n return typeof val === 'object' ? val === null : typeof val !== 'function';\n};\n\nexport default isPrimitive;\n","const string = 'a';\nconst boxedString = {}.constructor(string);\n\n/**\n * Check failure of by-index access of string characters (IE < 9)\n * and failure of `0 in boxedString` (Rhino).\n *\n * `true` if no failure; otherwise `false`.\n *\n * @type boolean\n */\nconst hasBoxed = boxedString[0] === string && 0 in boxedString;\n\nexport default hasBoxed;\n","import noop from 'noop-x';\n\nconst {bind} = noop;\n\nconst test1 = function test1() {\n let a1 = null;\n let a2 = null;\n let context = null;\n const testThis = [];\n\n const test1Fn = function test1Fn(arg1, arg2) {\n /* eslint-disable-next-line babel/no-invalid-this */\n context = this;\n a1 = arg1;\n a2 = arg2;\n\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n };\n\n try {\n const boundFn = bind.apply(test1Fn, [testThis, 1]);\n const args = boundFn(2);\n\n return boundFn.length === 1 && args.length === 2 && a1 === 1 && a2 === 2 && context === testThis;\n } catch (e) {\n return false;\n }\n};\n\nconst test2 = function test2() {\n let a1 = null;\n let a2 = null;\n let context = null;\n const oracle = [1, 2, 3];\n\n const Ctr = function Ctr(arg1, arg2) {\n a1 = arg1;\n a2 = arg2;\n context = this;\n\n return oracle;\n };\n\n try {\n const BoundFn = bind.apply(Ctr, [null]);\n const returned = new BoundFn(1, 2);\n\n return BoundFn.length === Ctr.length && returned === oracle && a1 === 1 && a2 === 2 && context !== oracle;\n } catch (e) {\n return false;\n }\n};\n\n/**\n * Indicates if the engine has a working bind function.\n *\n * @type {boolean}\n */\nconst isWorking = typeof bind === 'function' && test1() && test2();\n\nexport default isWorking;\n","/**\n * This method returns undefined.\n *\n * @returns {undefined} Always undefined.\n */\nconst noop = function noop() {}; /* eslint-disable-line lodash/prefer-noop */\n\nexport default noop;\n","import isPrimitive from 'is-primitive-x';\nimport isString from 'is-string';\nimport hasBoxed from 'has-boxed-string-x';\nimport hasWorkingBind from 'has-working-bind-x';\n\nconst EMPTY_STRING = '';\nconst {split} = EMPTY_STRING;\nconst {max} = Math;\nconst {bind, call} = isPrimitive;\nexport const stringSplit = function stringSplit(string, pattern) {\n // noinspection JSUnresolvedFunction\n return split.call(string, pattern);\n};\n\nexport const $split = hasWorkingBind ? bind.call(call, split) : stringSplit;\n\nexport const getIterable = function getIterable(arrayLike) {\n // noinspection JSUnresolvedFunction\n return isString(arrayLike) ? $split(arrayLike, EMPTY_STRING) : arrayLike;\n};\n\n// eslint-disable jsdoc/no-undefined-types\n// noinspection JSCommentMatchesSignature\n/**\n * This pushes or concatenates into a new or existing array.\n *\n * @param {Array} arrayLike - The source.\n * @param {number} [from=0] - The from source index.\n * @param {Array} [target=[]] - The target array.\n * @returns {*} The target array.\n */\n// eslint-enable jsdoc/no-undefined-types\nconst pusher = function pusher(arrayLike, from) {\n /* eslint-disable-next-line prefer-rest-params */\n const target = arguments.length > 2 ? arguments[2] : [];\n\n if (typeof arrayLike !== 'string' && isPrimitive(arrayLike)) {\n return target;\n }\n\n const iterable = hasBoxed ? arrayLike : getIterable(arrayLike);\n const {length} = iterable;\n for (let i = max(0, from) || 0; i < length; i += 1) {\n target[target.length] = arrayLike[i];\n }\n\n return target;\n};\n\nexport default pusher;\n","import hasWorkingBind from 'has-working-bind-x';\nimport pusher from 'util-pusher-x';\n\nconst {bind: nativeBind, call} = pusher;\nconst ERROR_MESSAGE = 'bind called on incompatible ';\nconst object = {};\nconst ObjectCtr = object.constructor;\nconst toStringTag = object.toString;\nconst funcType = '[object Function]';\nconst ZERO = 0;\nconst argsOffset = 2;\n\nconst getMax = function getMax(a, b) {\n return a >= b ? a : b;\n};\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + value);\n }\n};\n\nconst boundFns = [\n function zero(binder) {\n return function boundFn() {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments));\n };\n },\n function one(binder, boundLength) {\n return function boundFn(a) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a]));\n };\n },\n function two(binder, boundLength) {\n return function boundFn(a, b) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b]));\n };\n },\n function three(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c]));\n };\n },\n function four(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d]));\n };\n },\n function five(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e]));\n };\n },\n function six(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f]));\n };\n },\n function seven(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g]));\n };\n },\n function eight(binder, boundLength) {\n /* eslint-disable-next-line max-params */\n return function boundFn(a, b, c, d, e, f, g, h) {\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n return binder.apply(this, pusher(arguments, boundLength, [a, b, c, d, e, f, g, h]));\n };\n },\n];\n\nconst getBoundFn = function getBoundFn(args) {\n const [binder, target, bindArgs] = args;\n const boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));\n const fn = boundFns[boundLength];\n const boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);\n\n if (target.prototype) {\n /* eslint-disable-next-line lodash/prefer-noop */\n const Empty = function Empty() {};\n\n Empty.prototype = target.prototype;\n boundFn.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return boundFn;\n};\n\nconst getResult = function getResult(target, boundArgs) {\n /* eslint-disable-next-line babel/no-invalid-this */\n const result = target.apply(this, boundArgs);\n\n /* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */\n return ObjectCtr(result) === result ? result : this;\n};\n\nexport const implementation = function bind(target, thisArg) {\n assertIsFunction(target);\n /* eslint-disable-next-line prefer-rest-params */\n const bindArgs = arguments;\n\n let bound;\n const binder = function binder() {\n /* eslint-disable-next-line prefer-rest-params */\n const boundArgs = pusher(arguments, ZERO, pusher(bindArgs, argsOffset));\n\n /* eslint-disable-next-line babel/no-invalid-this */\n return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);\n };\n\n bound = getBoundFn([binder, target, bindArgs]);\n\n return bound;\n};\n\n/**\n * The bind() method creates a new function that, when called, has its this\n * keyword set to the provided value, with a given sequence of arguments\n * preceding any provided when the new function is called.\n *\n * @function bind\n * @param {Function} target - The target function.\n * @param {*} [thisArg] - The value to be passed as the this parameter to the target\n * function when the bound function is called. The value is ignored if the\n * bound function is constructed using the new operator.\n * @param {...*} [args] - Arguments to prepend to arguments provided to the bound\n * function when invoking the target function.\n * @throws {TypeError} If target is not a function.\n * @returns {Function} The bound function.\n */\nconst $bind = hasWorkingBind ? call.bind(nativeBind) : implementation;\n\nexport default $bind;\n","import pusher from 'util-pusher-x';\nimport bind from 'simple-bind-x';\n\nconst $TypeError = TypeError;\nconst {apply: nativeApply, call: nativeCall} = bind;\nconst $apply = bind(nativeCall, nativeApply);\nconst toStringTag = bind(nativeApply, {}.toString);\nconst ERROR_MESSAGE = ' is not a function';\nconst funcType = '[object Function]';\n\nconst assertIsFunction = function assertIsFunction(value) {\n if (typeof value !== 'function' && toStringTag(value) !== funcType) {\n throw new $TypeError(value + ERROR_MESSAGE);\n }\n\n return value;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * The abstract operation Call is used to call the [[Call]] internal method of a function object.\n *\n * @function call\n * @param {Function} F - The target function.\n * @param {*} [V] - The context.\n * @param {Array} [args] - Argument to call the function with.\n * @throws {TypeError} If target is not a function.\n * @returns {*} The the result of invoking the function.\n * @see https://www.ecma-international.org/ecma-262/6.0/#sec-call\n */\n// eslint-enable jsdoc/check-param-names\nconst call = function call(F, V) {\n /* eslint-disable-next-line prefer-rest-params */\n return $apply(assertIsFunction(F), V, pusher(arguments[2]));\n};\n\nexport default call;\n","import pusher from 'util-pusher-x';\nimport call from 'simple-call-x';\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method attempts to invoke the function, returning either the result or\n * the caught error object. Any additional arguments are provided to the\n * function when it's invoked.\n *\n * @function attempt\n * @param {Function} [fn] - The function to attempt.\n * @param {...*} [args] - The arguments to invoke the function with.\n * @returns {object} Returns an object of the result.\n */\n// eslint-disable jsdoc/check-param-names\nconst attempt = function attempt(fn) {\n try {\n return {\n threw: false,\n /* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */\n value: call(fn, this, pusher(arguments, 1)),\n };\n } catch (e) {\n return {\n threw: true,\n value: e,\n };\n }\n};\n\nexport default attempt;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index db10811..1f89654 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "attempt-x", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5598,6 +5598,14 @@ } } }, + "has-working-bind-x": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-working-bind-x/-/has-working-bind-x-1.0.0.tgz", + "integrity": "sha512-Z4KjFE3r1KAO5vqZWg2epVp2XbK1rI6Z5/e3XDHLrK4MyjESNWRNCVdrzxaKdux0nOziSFT9ZAU89opyHfJIUw==", + "requires": { + "noop-x": "^1.2.0" + } + }, "hash-base": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", @@ -7639,6 +7647,11 @@ } } }, + "noop-x": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/noop-x/-/noop-x-1.2.0.tgz", + "integrity": "sha512-82hTlOqDe53iTIpf5h1phTkskjaVPXtAPsMBJnTZMu1A6hwLVpEqxQkowIdELDdZLdFsNMXq4zi4hi+XShQnIQ==" + }, "nopt": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", @@ -9123,20 +9136,21 @@ "dev": true }, "simple-bind-x": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-bind-x/-/simple-bind-x-1.0.1.tgz", - "integrity": "sha512-OIo1q1wYvm3GMqFsP8E23Lb1bJzHNOJBGAeV0sSIVqxsGXF6fe5WoA5I2qAUzrUp6cWWKAGbTuJf32cjxTyfDA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/simple-bind-x/-/simple-bind-x-1.0.2.tgz", + "integrity": "sha512-97fOo8CRKVC89ELu1YJuCeeZp3RWQp5taB8ryT+C4NupBimrXzez0tvLccEvwImUlXU3r/ohbRJApXio4KHCVA==", "requires": { - "util-pusher-x": "^1.0.1" + "has-working-bind-x": "^1.0.0", + "util-pusher-x": "^1.0.2" } }, "simple-call-x": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-call-x/-/simple-call-x-1.0.1.tgz", - "integrity": "sha512-jVJsqi1bBY6J1jjXZ5Dzu0y9Peku2c/06HqRxkPIIu8jGtOZEV9JXx8Ep6Hjlrr1WNB6z2tBzrobgCwZIJGYcg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/simple-call-x/-/simple-call-x-1.0.2.tgz", + "integrity": "sha512-mdutrZPVfe0ub82f13FCyaH+IYl6LCQif/Zg4emgCBszTjvFeHxD7RNUQ14q1Dx0BBncYEtlWdTrnBBqD6wMlA==", "requires": { - "simple-bind-x": "^1.0.1", - "util-pusher-x": "^1.0.1" + "simple-bind-x": "^1.0.2", + "util-pusher-x": "^1.0.2" } }, "sisteransi": { @@ -10297,11 +10311,12 @@ "dev": true }, "util-pusher-x": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/util-pusher-x/-/util-pusher-x-1.0.1.tgz", - "integrity": "sha512-gAhxuUfuFMI6QAO+GhYiBkGyWDwuVE/C+a/sqBUDcNuD4CJew09Dl5N3SF3tcZEtibHN2PnHwWVEiaGW/JyBQQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-pusher-x/-/util-pusher-x-1.0.2.tgz", + "integrity": "sha512-Sk/h7ZVVh+edhgAHzgOln53qhY63V2N+T/KEwUBfs0biatPzAfwhhWSbHzUEEF1Ywn4tIjczCZcPiNv5ezNqSg==", "requires": { "has-boxed-string-x": "^2.1.0", + "has-working-bind-x": "^1.0.0", "is-primitive-x": "^1.0.0", "is-string": "^1.0.4" } diff --git a/package.json b/package.json index e990422..14986b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "attempt-x", - "version": "2.1.0", + "version": "2.1.1", "description": "Invokes function, returning an object of the results.", "homepage": "https://github.com/Xotic750/attempt-x", "author": { @@ -51,8 +51,8 @@ "url": "https://github.com/Xotic750/attempt-x/issues" }, "dependencies": { - "simple-call-x": "^1.0.1", - "util-pusher-x": "^1.0.1" + "simple-call-x": "^1.0.2", + "util-pusher-x": "^1.0.2" }, "devDependencies": { "@babel/cli": "^7.5.5",