Socket
Socket
Sign inDemoInstall

gitmoji-cli

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitmoji-cli - npm Package Compare versions

Comparing version 9.1.0 to 9.2.0

3

lib/commands/commit/prompts.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc