opencommit 3.0.10 → 3.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/cli.cjs +4 -2
- package/package.json +1 -1
package/out/cli.cjs
CHANGED
|
@@ -16384,7 +16384,7 @@ function G3(t, e2) {
|
|
|
16384
16384
|
// package.json
|
|
16385
16385
|
var package_default = {
|
|
16386
16386
|
name: "opencommit",
|
|
16387
|
-
version: "3.0.
|
|
16387
|
+
version: "3.0.11",
|
|
16388
16388
|
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
|
16389
16389
|
keywords: [
|
|
16390
16390
|
"git",
|
|
@@ -22413,6 +22413,8 @@ var generateCommitMessageFromGitDiff = async (diff, extraArgs2, fullGitMojiSpec)
|
|
|
22413
22413
|
);
|
|
22414
22414
|
const messageTemplate = checkMessageTemplate(extraArgs2);
|
|
22415
22415
|
if (config7?.OCO_MESSAGE_TEMPLATE_PLACEHOLDER && typeof messageTemplate === "string") {
|
|
22416
|
+
const messageTemplateIndex = extraArgs2.indexOf(messageTemplate);
|
|
22417
|
+
extraArgs2.splice(messageTemplateIndex, 1);
|
|
22416
22418
|
commitMessage = messageTemplate.replace(
|
|
22417
22419
|
config7?.OCO_MESSAGE_TEMPLATE_PLACEHOLDER,
|
|
22418
22420
|
commitMessage
|
|
@@ -22659,7 +22661,7 @@ var hookCommand = G3(
|
|
|
22659
22661
|
return ce(`${source_default.green("\u2714")} Hook is removed`);
|
|
22660
22662
|
}
|
|
22661
22663
|
throw new Error(
|
|
22662
|
-
`Unsupported mode: ${mode2}. Supported modes are: 'set' or 'unset'
|
|
22664
|
+
`Unsupported mode: ${mode2}. Supported modes are: 'set' or 'unset', do: \`oco hook set\``
|
|
22663
22665
|
);
|
|
22664
22666
|
} catch (error) {
|
|
22665
22667
|
ce(`${source_default.red("\u2716")} ${error}`);
|