opencommit 1.1.21 → 1.1.23
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 +39 -10
- package/package.json +2 -2
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.
|
|
15766
|
+
version: "1.1.22",
|
|
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",
|
|
@@ -15787,7 +15787,7 @@ var package_default = {
|
|
|
15787
15787
|
},
|
|
15788
15788
|
type: "module",
|
|
15789
15789
|
author: "https://github.com/di-sukharev",
|
|
15790
|
-
license: "
|
|
15790
|
+
license: "MIT",
|
|
15791
15791
|
files: [
|
|
15792
15792
|
"out/**/*"
|
|
15793
15793
|
],
|
|
@@ -16949,6 +16949,22 @@ var pt_br_default = {
|
|
|
16949
16949
|
commitDescription: "A vari\xE1vel de porta agora \xE9 denominada PORT, o que melhora a consist\xEAncia com as conven\xE7\xF5es de nomenclatura, pois PORT \xE9 uma constante. O suporte para uma vari\xE1vel de ambiente permite que o aplicativo seja mais flex\xEDvel, pois agora pode ser executado em qualquer porta dispon\xEDvel especificada por meio da vari\xE1vel de ambiente process.env.PORT."
|
|
16950
16950
|
};
|
|
16951
16951
|
|
|
16952
|
+
// src/i18n/vi_VN.json
|
|
16953
|
+
var vi_VN_default = {
|
|
16954
|
+
localLanguage: "vietnamese",
|
|
16955
|
+
commitFix: "fix(server.ts): thay \u0111\u1ED5i ch\u1EEF vi\u1EBFt th\u01B0\u1EDDng c\u1EE7a bi\u1EBFn port th\xE0nh ch\u1EEF vi\u1EBFt hoa PORT",
|
|
16956
|
+
commitFeat: "feat(server.ts): th\xEAm h\u1ED7 tr\u1EE3 cho bi\u1EBFn m\xF4i tr\u01B0\u1EDDng process.env.PORT",
|
|
16957
|
+
commitDescription: "Bi\u1EBFn port \u0111\xE3 \u0111\u01B0\u1EE3c \u0111\u1ED5i t\xEAn th\xE0nh PORT, gi\xFAp c\u1EA3i thi\u1EC7n t\xEDnh nh\u1EA5t qu\xE1n trong vi\u1EC7c \u0111\u1EB7t t\xEAn theo quy \u01B0\u1EDBc v\xEC PORT l\xE0 m\u1ED9t h\u1EB1ng s\u1ED1. H\u1ED7 tr\u1EE3 cho bi\u1EBFn m\xF4i tr\u01B0\u1EDDng cho ph\xE9p \u1EE9ng d\u1EE5ng linh ho\u1EA1t h\u01A1n khi c\xF3 th\u1EC3 ch\u1EA1y tr\xEAn b\u1EA5t k\u1EF3 c\u1ED5ng n\xE0o \u0111\u01B0\u1EE3c ch\u1EC9 \u0111\u1ECBnh th\xF4ng qua bi\u1EBFn m\xF4i tr\u01B0\u1EDDng process.env.PORT."
|
|
16958
|
+
};
|
|
16959
|
+
|
|
16960
|
+
// src/i18n/es_ES.json
|
|
16961
|
+
var es_ES_default = {
|
|
16962
|
+
localLanguage: "spanish",
|
|
16963
|
+
commitFix: "fix(server.ts): cambiar la variable port de min\xFAsculas a may\xFAsculas PORT",
|
|
16964
|
+
commitFeat: "feat(server.ts): a\xF1adir soporte para la variable de entorno process.env.PORT",
|
|
16965
|
+
commitDescription: "La variable port ahora se llama PORT, lo que mejora la coherencia con las convenciones de nomenclatura, ya que PORT es una constante. El soporte para una variable de entorno permite que la aplicaci\xF3n sea m\xE1s flexible, ya que ahora puede ejecutarse en cualquier puerto disponible especificado a trav\xE9s de la variable de entorno process.env.PORT."
|
|
16966
|
+
};
|
|
16967
|
+
|
|
16952
16968
|
// src/i18n/index.ts
|
|
16953
16969
|
var i18n = {
|
|
16954
16970
|
en: en_default,
|
|
@@ -16959,7 +16975,9 @@ var i18n = {
|
|
|
16959
16975
|
fr: fr_default,
|
|
16960
16976
|
it: it_default,
|
|
16961
16977
|
ko: ko_default,
|
|
16962
|
-
pt_br: pt_br_default
|
|
16978
|
+
pt_br: pt_br_default,
|
|
16979
|
+
vi_VN: vi_VN_default,
|
|
16980
|
+
es_ES: es_ES_default
|
|
16963
16981
|
};
|
|
16964
16982
|
var I18N_CONFIG_ALIAS = {
|
|
16965
16983
|
zh_CN: ["zh_CN", "\u7B80\u4F53\u4E2D\u6587", "\u4E2D\u6587", "\u7B80\u4F53"],
|
|
@@ -16970,7 +16988,9 @@ var I18N_CONFIG_ALIAS = {
|
|
|
16970
16988
|
fr: ["fr", "French", "fran\xE7aise"],
|
|
16971
16989
|
it: ["it", "Italian", "italiano"],
|
|
16972
16990
|
pt_br: ["pt_br", "Portuguese", "portugu\xEAs"],
|
|
16973
|
-
|
|
16991
|
+
vi_VN: ["vi_VN", "Vietnamese", "ti\u1EBFng Vi\u1EC7t"],
|
|
16992
|
+
en: ["en", "English", "english"],
|
|
16993
|
+
es_ES: ["es_ES", "Spanish", "espa\xF1ol"]
|
|
16974
16994
|
};
|
|
16975
16995
|
function getI18nLocal(value) {
|
|
16976
16996
|
for (const key in I18N_CONFIG_ALIAS) {
|
|
@@ -18028,11 +18048,16 @@ var getOpenCommitIgnore = () => {
|
|
|
18028
18048
|
return ig;
|
|
18029
18049
|
};
|
|
18030
18050
|
var getStagedFiles = async () => {
|
|
18051
|
+
const { stdout: gitDir } = await execa("git", [
|
|
18052
|
+
"rev-parse",
|
|
18053
|
+
"--show-toplevel"
|
|
18054
|
+
]);
|
|
18031
18055
|
const { stdout: files } = await execa("git", [
|
|
18032
18056
|
"diff",
|
|
18033
18057
|
"--name-only",
|
|
18034
18058
|
"--cached",
|
|
18035
|
-
"--relative"
|
|
18059
|
+
"--relative",
|
|
18060
|
+
gitDir
|
|
18036
18061
|
]);
|
|
18037
18062
|
if (!files)
|
|
18038
18063
|
return [];
|
|
@@ -18123,16 +18148,16 @@ var hookCommand = G3(
|
|
|
18123
18148
|
return ce(`${source_default.green("\u2714")} Hook set`);
|
|
18124
18149
|
}
|
|
18125
18150
|
if (mode2 === "unset") {
|
|
18126
|
-
ae(`unsetting
|
|
18151
|
+
ae(`unsetting OpenCommit as '${HOOK_NAME}' hook`);
|
|
18127
18152
|
if (!isHookExists) {
|
|
18128
18153
|
return ce(
|
|
18129
|
-
`
|
|
18154
|
+
`OpenCommit wasn't previously set as '${HOOK_NAME}' hook, nothing to remove`
|
|
18130
18155
|
);
|
|
18131
18156
|
}
|
|
18132
18157
|
const realpath = await import_promises.default.realpath(SYMLINK_URL);
|
|
18133
18158
|
if (realpath !== HOOK_URL) {
|
|
18134
18159
|
return ce(
|
|
18135
|
-
`
|
|
18160
|
+
`OpenCommit wasn't previously set as '${HOOK_NAME}' hook, but different hook was, if you want to remove it \u2014 do it manually`
|
|
18136
18161
|
);
|
|
18137
18162
|
}
|
|
18138
18163
|
await import_promises.default.rm(SYMLINK_URL);
|
|
@@ -21224,7 +21249,7 @@ ${commitMessage}
|
|
|
21224
21249
|
${source_default.grey("\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014")}`
|
|
21225
21250
|
);
|
|
21226
21251
|
const isCommitConfirmedByUser = await Q3({
|
|
21227
|
-
message: "Confirm the commit message"
|
|
21252
|
+
message: "Confirm the commit message?"
|
|
21228
21253
|
});
|
|
21229
21254
|
if (isCommitConfirmedByUser && !eD2(isCommitConfirmedByUser)) {
|
|
21230
21255
|
const { stdout } = await execa("git", [
|
|
@@ -21243,7 +21268,11 @@ ${source_default.grey("\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2
|
|
|
21243
21268
|
if (isPushConfirmedByUser && !eD2(isPushConfirmedByUser)) {
|
|
21244
21269
|
const pushSpinner = le();
|
|
21245
21270
|
pushSpinner.start(`Running \`git push ${remotes[0]}\``);
|
|
21246
|
-
const { stdout: stdout2 } = await execa("git", [
|
|
21271
|
+
const { stdout: stdout2 } = await execa("git", [
|
|
21272
|
+
"push",
|
|
21273
|
+
"--verbose",
|
|
21274
|
+
remotes[0]
|
|
21275
|
+
]);
|
|
21247
21276
|
pushSpinner.stop(
|
|
21248
21277
|
`${source_default.green("\u2714")} successfully pushed all commits to ${remotes[0]}`
|
|
21249
21278
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencommit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"author": "https://github.com/di-sukharev",
|
|
27
|
-
"license": "
|
|
27
|
+
"license": "MIT",
|
|
28
28
|
"files": [
|
|
29
29
|
"out/**/*"
|
|
30
30
|
],
|