opencommit 1.0.10 → 1.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 +9 -4
- package/package.json +1 -1
package/out/cli.cjs
CHANGED
|
@@ -15412,7 +15412,7 @@ function G3(t, e2) {
|
|
|
15412
15412
|
// package.json
|
|
15413
15413
|
var package_default = {
|
|
15414
15414
|
name: "opencommit",
|
|
15415
|
-
version: "1.0.
|
|
15415
|
+
version: "1.0.10",
|
|
15416
15416
|
description: "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
|
15417
15417
|
keywords: [
|
|
15418
15418
|
"git",
|
|
@@ -17604,11 +17604,16 @@ Z2(
|
|
|
17604
17604
|
ignoreArgv: (type) => type === "unknown-flag" || type === "argument",
|
|
17605
17605
|
help: { description: package_default.description }
|
|
17606
17606
|
},
|
|
17607
|
-
() => {
|
|
17607
|
+
async () => {
|
|
17608
17608
|
if (isHookCalled) {
|
|
17609
|
-
prepareCommitMessageHook();
|
|
17609
|
+
await prepareCommitMessageHook();
|
|
17610
17610
|
} else {
|
|
17611
|
-
commit();
|
|
17611
|
+
await commit();
|
|
17612
|
+
const { stdout } = await execa("npm", ["view", "opencommit", "version"]);
|
|
17613
|
+
if (stdout !== package_default.version)
|
|
17614
|
+
ce(
|
|
17615
|
+
"new opencommit version is available, update with `npm i -g opencommit`"
|
|
17616
|
+
);
|
|
17612
17617
|
}
|
|
17613
17618
|
},
|
|
17614
17619
|
rawArgv
|