index.js 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*istanbul ignore next*/"use strict";
  2. exports.__esModule = true;
  3. exports.list = undefined;
  4. var _keys = require("babel-runtime/core-js/object/keys");
  5. var _keys2 = _interopRequireDefault(_keys);
  6. exports.get = get;
  7. var /*istanbul ignore next*/_helpers = require("./helpers");
  8. /*istanbul ignore next*/
  9. var _helpers2 = _interopRequireDefault(_helpers);
  10. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11. function get(name) {
  12. var fn = /*istanbul ignore next*/_helpers2.default[name];
  13. if (!fn) throw new ReferenceError( /*istanbul ignore next*/"Unknown helper " + name);
  14. return fn().expression;
  15. } /* eslint no-confusing-arrow: 0 */
  16. var list = /*istanbul ignore next*/exports.list = /*istanbul ignore next*/(0, _keys2.default)( /*istanbul ignore next*/_helpers2.default).map(function (name) /*istanbul ignore next*/{
  17. return name[0] === "_" ? name.slice(1) : name;
  18. }).filter(function (name) /*istanbul ignore next*/{
  19. return name !== "__esModule";
  20. });
  21. /*istanbul ignore next*/exports.default = get;