From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/async/internal/wrapAsync.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'node_modules/async/internal/wrapAsync.js') diff --git a/node_modules/async/internal/wrapAsync.js b/node_modules/async/internal/wrapAsync.js index 862dc90f2..bc6c96668 100644 --- a/node_modules/async/internal/wrapAsync.js +++ b/node_modules/async/internal/wrapAsync.js @@ -3,11 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.isAsync = exports.supportsAsync = undefined; - -var _identity = require('lodash/identity'); - -var _identity2 = _interopRequireDefault(_identity); +exports.isAsync = undefined; var _asyncify = require('../asyncify'); @@ -17,17 +13,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de var supportsSymbol = typeof Symbol === 'function'; -function supportsAsync() { - var supported; - try { - /* eslint no-eval: 0 */ - supported = isAsync(eval('(async function () {})')); - } catch (e) { - supported = false; - } - return supported; -} - function isAsync(fn) { return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction'; } @@ -36,6 +21,5 @@ function wrapAsync(asyncFn) { return isAsync(asyncFn) ? (0, _asyncify2.default)(asyncFn) : asyncFn; } -exports.default = supportsAsync() ? wrapAsync : _identity2.default; -exports.supportsAsync = supportsAsync; +exports.default = wrapAsync; exports.isAsync = isAsync; \ No newline at end of file -- cgit v1.2.3