opencommit 1.1.19 → 1.1.21

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.
Files changed (2) hide show
  1. package/out/cli.cjs +1 -32
  2. package/package.json +1 -1
package/out/cli.cjs CHANGED
@@ -15763,7 +15763,7 @@ function G3(t, e2) {
15763
15763
  // package.json
15764
15764
  var package_default = {
15765
15765
  name: "opencommit",
15766
- version: "1.1.18",
15766
+ version: "1.1.20",
15767
15767
  description: "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
15768
15768
  keywords: [
15769
15769
  "git",
@@ -21019,17 +21019,6 @@ var OpenAi = class {
21019
21019
  };
21020
21020
  }
21021
21021
  };
21022
- var getOpenCommitLatestVersion = async () => {
21023
- try {
21024
- const { data } = await axios_default.get(
21025
- "https://unpkg.com/opencommit/package.json"
21026
- );
21027
- return data.version;
21028
- } catch (_6) {
21029
- ce("Error while getting the latest version of opencommit");
21030
- return void 0;
21031
- }
21032
- };
21033
21022
  var api = new OpenAi();
21034
21023
 
21035
21024
  // src/utils/mergeStrings.ts
@@ -21346,25 +21335,6 @@ ${stagedFiles.map((file) => ` ${file}`).join("\n")}`
21346
21335
  process.exit(0);
21347
21336
  }
21348
21337
 
21349
- // src/utils/checkIsLatestVersion.ts
21350
- var checkIsLatestVersion = async () => {
21351
- const latestVersion = await getOpenCommitLatestVersion();
21352
- if (latestVersion) {
21353
- const currentVersion = package_default.version;
21354
- if (currentVersion !== latestVersion) {
21355
- console.warn(
21356
- source_default.yellow(
21357
- `
21358
- You are not using the latest stable version of OpenCommit with new features and bug fixes.
21359
- Current version: ${currentVersion}. Latest version: ${latestVersion}.
21360
- \u{1F680} To update run: npm i -g opencommit@latest.
21361
- `
21362
- )
21363
- );
21364
- }
21365
- }
21366
- };
21367
-
21368
21338
  // src/cli.ts
21369
21339
  var extraArgs = process.argv.slice(2);
21370
21340
  Z2(
@@ -21377,7 +21347,6 @@ Z2(
21377
21347
  help: { description: package_default.description }
21378
21348
  },
21379
21349
  async () => {
21380
- await checkIsLatestVersion();
21381
21350
  if (isHookCalled) {
21382
21351
  prepareCommitMessageHook();
21383
21352
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencommit",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
5
5
  "keywords": [
6
6
  "git",