opencommit 1.0.10 → 1.0.12
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 -5
- 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.11",
|
|
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",
|
|
@@ -17334,7 +17334,6 @@ if (!apiKey) {
|
|
|
17334
17334
|
ce(
|
|
17335
17335
|
"For help Look into README https://github.com/di-sukharev/opencommit#setup"
|
|
17336
17336
|
);
|
|
17337
|
-
process.exit(1);
|
|
17338
17337
|
}
|
|
17339
17338
|
var OpenAi = class {
|
|
17340
17339
|
constructor() {
|
|
@@ -17604,11 +17603,16 @@ Z2(
|
|
|
17604
17603
|
ignoreArgv: (type) => type === "unknown-flag" || type === "argument",
|
|
17605
17604
|
help: { description: package_default.description }
|
|
17606
17605
|
},
|
|
17607
|
-
() => {
|
|
17606
|
+
async () => {
|
|
17608
17607
|
if (isHookCalled) {
|
|
17609
|
-
prepareCommitMessageHook();
|
|
17608
|
+
await prepareCommitMessageHook();
|
|
17610
17609
|
} else {
|
|
17611
|
-
commit();
|
|
17610
|
+
await commit();
|
|
17611
|
+
const { stdout } = await execa("npm", ["view", "opencommit", "version"]);
|
|
17612
|
+
if (stdout !== package_default.version)
|
|
17613
|
+
ce(
|
|
17614
|
+
"new opencommit version is available, update with `npm i -g opencommit`"
|
|
17615
|
+
);
|
|
17612
17616
|
}
|
|
17613
17617
|
},
|
|
17614
17618
|
rawArgv
|