Repository URL to install this package:
|
Version:
0.6.0 ▾
|
gateway-proxy
/
usr
/
share
/
gateway-proxy
/
app
/
node_modules
/
@commitlint
/
parse
/
lib
/
index.js
|
|---|
"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({}, defaultOpts), (parserOpts || {}));
const parsed = parser(message, opts);
parsed.raw = message;
return parsed;
}
exports.default = parse;
//# sourceMappingURL=index.js.map