index.js 736 B

12345678910111213141516171819202122232425262728293031
  1. "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 _helpers = require("./helpers");
  8. var _helpers2 = _interopRequireDefault(_helpers);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. function get(name) {
  11. var fn = _helpers2.default[name];
  12. if (!fn) throw new ReferenceError("Unknown helper " + name);
  13. return fn().expression;
  14. }
  15. var list = exports.list = (0, _keys2.default)(_helpers2.default).map(function (name) {
  16. return name.replace(/^_/, "");
  17. }).filter(function (name) {
  18. return name !== "__esModule";
  19. });
  20. exports.default = get;