index.js 561 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const { sync } = require('conventional-commits-parser');
  4. const defaultChangelogOpts = require('conventional-changelog-angular');
  5. async function parse(message, parser = sync, parserOpts) {
  6. const defaultOpts = (await defaultChangelogOpts).parserOpts;
  7. const opts = Object.assign(Object.assign({}, defaultOpts), (parserOpts || {}));
  8. const parsed = parser(message, opts);
  9. parsed.raw = message;
  10. return parsed;
  11. }
  12. exports.default = parse;
  13. //# sourceMappingURL=index.js.map