You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
600 B
13 lines
600 B
2 years ago
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const { sync } = require('conventional-commits-parser');
|
||
|
const defaultChangelogOpts = require('conventional-changelog-angular');
|
||
|
async function parse(message, parser = sync, parserOpts) {
|
||
|
const defaultOpts = (await defaultChangelogOpts).parserOpts;
|
||
|
const opts = Object.assign(Object.assign(Object.assign({}, defaultOpts), { fieldPattern: null }), (parserOpts || {}));
|
||
|
const parsed = parser(message, opts);
|
||
|
parsed.raw = message;
|
||
|
return parsed;
|
||
|
}
|
||
|
exports.default = parse;
|
||
|
//# sourceMappingURL=index.js.map
|