@commitlint/parse
Advanced tools
Comparing version 18.6.1 to 19.0.0
@@ -1,4 +0,5 @@ | ||
import { Commit, Parser, ParserOptions } from '@commitlint/types'; | ||
export declare function parse(message: string, parser?: Parser, parserOpts?: ParserOptions): Promise<Commit>; | ||
import type { Parser } from '@commitlint/types'; | ||
import { type Commit, type Options } from 'conventional-commits-parser'; | ||
export declare function parse(message: string, parser?: Parser, parserOpts?: Options): Promise<Commit>; | ||
export default parse; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,7 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parse = void 0; | ||
const { sync } = require('conventional-commits-parser'); | ||
const defaultChangelogOpts = require('conventional-changelog-angular'); | ||
async function parse(message, parser = sync, parserOpts) { | ||
import { sync } from 'conventional-commits-parser'; | ||
// @ts-expect-error -- no typings | ||
import defaultChangelogOpts from 'conventional-changelog-angular'; | ||
export async function parse(message, parser = sync, parserOpts) { | ||
const preset = await defaultChangelogOpts(); | ||
@@ -14,4 +12,3 @@ const defaultOpts = preset.parserOpts; | ||
} | ||
exports.parse = parse; | ||
exports.default = parse; | ||
export default parse; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@commitlint/parse", | ||
"version": "18.6.1", | ||
"type": "module", | ||
"version": "19.0.0", | ||
"description": "Lint your commit messages", | ||
@@ -38,11 +39,12 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^18.0.0", | ||
"@commitlint/utils": "^18.6.1" | ||
"@commitlint/test": "^19.0.0", | ||
"@commitlint/utils": "^19.0.0", | ||
"@types/conventional-commits-parser": "^3.0.6" | ||
}, | ||
"dependencies": { | ||
"@commitlint/types": "^18.6.1", | ||
"@commitlint/types": "^19.0.0", | ||
"conventional-changelog-angular": "^7.0.0", | ||
"conventional-commits-parser": "^5.0.0" | ||
}, | ||
"gitHead": "89f5bf91d1c11b1f457a6f0d99b8ea34583a9311" | ||
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4618
Yes
3
16
+ Added@commitlint/types@19.0.3(transitive)
+ Added@types/conventional-commits-parser@5.0.0(transitive)
+ Added@types/node@20.12.12(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedundici-types@5.26.5(transitive)
- Removed@commitlint/types@18.6.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updated@commitlint/types@^19.0.0