Comparing version 0.2.2 to 0.3.0
@@ -43,3 +43,4 @@ "use strict"; | ||
type: parsed.type, | ||
value: parsed.message | ||
value: parsed.message, | ||
description: parsed.description | ||
}] | ||
@@ -55,3 +56,4 @@ }; | ||
type: parsed.type, | ||
value: parsed.message | ||
value: parsed.message, | ||
description: parsed.description | ||
}); | ||
@@ -68,3 +70,4 @@ | ||
type: parsed.type, | ||
value: parsed.message | ||
value: parsed.message, | ||
description: parsed.description | ||
}] | ||
@@ -71,0 +74,0 @@ }; |
@@ -10,6 +10,8 @@ "use strict"; | ||
const PARSE_REGEXP = /^([\s\S]+?)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]([\s\S]+?):[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]([\0-\t\x0B-\uFFFF]*)(?:\n\n)?([\s\S]*)$/; | ||
const parseCommitMessage = (commitText, packageNames, prefixes, { | ||
autoNamePrefix | ||
}) => { | ||
const matchResult = commitText.match(/^(.+?)\s(.+?):\s*([\s\S]*)$/); | ||
const matchResult = commitText.match(PARSE_REGEXP); | ||
@@ -88,2 +90,13 @@ if (matchResult === null) { | ||
const message = matchResult[3].trim(); | ||
const description = matchResult[4].trim(); | ||
if (description.length > 0) { | ||
return { | ||
type, | ||
names, | ||
message, | ||
description | ||
}; | ||
} | ||
return { | ||
@@ -90,0 +103,0 @@ type, |
@@ -8,4 +8,5 @@ import { TBumpType } from '@auto/utils/node/'; | ||
type: TParsedMessageType; | ||
names: string[]; | ||
message: string; | ||
names: string[]; | ||
description?: string; | ||
}; |
{ | ||
"name": "@auto/git", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@auto/utils": "^0.2.0", | ||
"@auto/utils": "^0.3.0", | ||
"execa": "^3.0.0", | ||
@@ -16,0 +16,0 @@ "prompts": "^2.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16680
433
1
+ Added@auto/utils@0.3.0(transitive)
- Removed@auto/utils@0.2.0(transitive)
Updated@auto/utils@^0.3.0