数通智联化工云平台
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.

15 lines
647 B

2 years ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2 years ago
exports.parse = void 0;
2 years ago
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;
}
2 years ago
exports.parse = parse;
2 years ago
exports.default = parse;
//# sourceMappingURL=index.js.map