gitmoji-cli
Advanced tools
Comparing version 9.1.0 to 9.2.0
@@ -37,3 +37,4 @@ import inquirer from 'inquirer'; | ||
transformer: input => { | ||
return `[${(title || input).length}/${TITLE_MAX_LENGTH_COUNT}]: ${configurationVault.getCapitalizeTitle() ? capitalizeTitle(input) : input}`; | ||
const length = (title || input).length.toString().padStart(2, '0'); | ||
return `[${length}/${TITLE_MAX_LENGTH_COUNT}]: ${configurationVault.getCapitalizeTitle() ? capitalizeTitle(input) : input}`; | ||
}, | ||
@@ -40,0 +41,0 @@ ...(title ? { |
@@ -19,5 +19,5 @@ import { execa } from 'execa'; | ||
} catch (error) { | ||
console.error(chalk.red('\n', 'Oops! An error occurred. There is likely additional logging output above.\n', 'You can run the same commit with this command:\n'), '\t', error.escapedCommand); | ||
console.error(chalk.red(error, '\n\n', 'Oops! An error occurred. There is likely additional logging output above.\n')); | ||
} | ||
}; | ||
export default withClient; |
@@ -5,14 +5,10 @@ import fs from 'fs'; | ||
const isHookCreated = async () => { | ||
try { | ||
const hookFile = await getAbsoluteHooksPath(HOOK.FILENAME); | ||
if (fs.existsSync(hookFile)) { | ||
return fs.readFileSync(hookFile, { | ||
encoding: 'utf-8' | ||
}) === HOOK.CONTENTS; | ||
} | ||
return false; | ||
} catch (error) { | ||
console.error(error); | ||
const hookFile = await getAbsoluteHooksPath(HOOK.FILENAME); | ||
if (fs.existsSync(hookFile)) { | ||
return fs.readFileSync(hookFile, { | ||
encoding: 'utf-8' | ||
}) === HOOK.CONTENTS; | ||
} | ||
return false; | ||
}; | ||
export default isHookCreated; |
{ | ||
"name": "gitmoji-cli", | ||
"version": "9.1.0", | ||
"version": "9.2.0", | ||
"type": "module", | ||
@@ -20,3 +20,3 @@ "description": "A gitmoji client for using emojis on commit messages.", | ||
"flow": "flow", | ||
"lint": "eslint ./src && prettier --check src/**/*.js", | ||
"lint": "eslint ./src && prettier --check src/**/*.js --parser=flow && prettier --check src/**/*.ts --parser=typescript", | ||
"package": "pkg . --output ./bin/gitmoji --targets latest-linux-x64,latest-macos-x64,latest-win-x64", | ||
@@ -52,5 +52,5 @@ "prepare": "husky install", | ||
"fuse.js": "7.0.0", | ||
"inquirer": "^9.2.11", | ||
"inquirer": "^9.2.15", | ||
"inquirer-autocomplete-prompt": "^3.0.1", | ||
"meow": "^12.1.1", | ||
"meow": "^13.1.0", | ||
"node-fetch": "^3.3.2", | ||
@@ -64,9 +64,9 @@ "ora": "^8.0.1", | ||
"devDependencies": { | ||
"@babel/cli": "7.23.4", | ||
"@babel/core": "7.23.7", | ||
"@babel/cli": "7.23.9", | ||
"@babel/core": "7.24.0", | ||
"@babel/plugin-syntax-import-assertions": "^7.23.3", | ||
"@babel/preset-env": "7.23.7", | ||
"@babel/preset-flow": "7.22.15", | ||
"@babel/preset-env": "7.23.9", | ||
"@babel/preset-flow": "7.24.0", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@types/jest": "^29.5.10", | ||
"@types/jest": "^29.5.12", | ||
"@types/update-notifier": "^6.0.8", | ||
@@ -80,14 +80,14 @@ "@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"eslint": "8.56.0", | ||
"eslint-plugin-ft-flow": "3.0.2", | ||
"eslint-plugin-ft-flow": "3.0.7", | ||
"eslint-plugin-immutable": "1.0.0", | ||
"flow-bin": "^0.225.1", | ||
"hermes-eslint": "0.16.0", | ||
"husky": "8.0.3", | ||
"flow-bin": "^0.230.0", | ||
"hermes-eslint": "0.20.1", | ||
"husky": "9.0.11", | ||
"jest": "29.7.0", | ||
"jest-fetch-mock": "3.0.3", | ||
"jest-mock-process": "2.0.0", | ||
"lint-staged": "15.2.0", | ||
"lint-staged": "15.2.1", | ||
"pkg": "5.8.1", | ||
"prettier": "3.1.1", | ||
"turbo": "^1.11.2", | ||
"prettier": "3.2.4", | ||
"turbo": "^1.12.5", | ||
"typescript": "^5.3.3" | ||
@@ -170,2 +170,5 @@ }, | ||
"prettier --write" | ||
], | ||
"src/**/*.ts": [ | ||
"prettier --write" | ||
] | ||
@@ -172,0 +175,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35900
714
+ Addedmeow@13.2.0(transitive)
- Removedmeow@12.1.1(transitive)
Updatedinquirer@^9.2.15
Updatedmeow@^13.1.0