You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
736 B
JavaScript
31 lines
736 B
JavaScript
6 years ago
|
"use strict";
|
||
|
|
||
|
exports.__esModule = true;
|
||
|
exports.list = undefined;
|
||
|
|
||
|
var _keys = require("babel-runtime/core-js/object/keys");
|
||
|
|
||
|
var _keys2 = _interopRequireDefault(_keys);
|
||
|
|
||
|
exports.get = get;
|
||
|
|
||
|
var _helpers = require("./helpers");
|
||
|
|
||
|
var _helpers2 = _interopRequireDefault(_helpers);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
function get(name) {
|
||
|
var fn = _helpers2.default[name];
|
||
|
if (!fn) throw new ReferenceError("Unknown helper " + name);
|
||
|
|
||
|
return fn().expression;
|
||
|
}
|
||
|
|
||
|
var list = exports.list = (0, _keys2.default)(_helpers2.default).map(function (name) {
|
||
|
return name.replace(/^_/, "");
|
||
|
}).filter(function (name) {
|
||
|
return name !== "__esModule";
|
||
|
});
|
||
|
|
||
|
exports.default = get;
|