index.js 819 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. exports.__esModule = true;
  3. var _processor = require('./processor');
  4. var _processor2 = _interopRequireDefault(_processor);
  5. var _selectors = require('./selectors');
  6. var selectors = _interopRequireWildcard(_selectors);
  7. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. var parser = function parser(processor) {
  10. return new _processor2.default(processor);
  11. };
  12. Object.assign(parser, selectors);
  13. delete parser.__esModule;
  14. exports.default = parser;
  15. module.exports = exports['default'];