all files / lib/ evalFilter.js

100% Statements 9/9
75% Branches 3/4
100% Functions 2/2
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                35×    
'use strict';
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
 
var _scopeEval = require('scope-eval');
 
var _scopeEval2 = _interopRequireDefault(_scopeEval);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
function evalFilter(input) {
  return (0, _scopeEval2.default)('return ' + input + ';', {});
}
 
exports.default = evalFilter;
module.exports = exports['default'];