git-authors-cli
Advanced tools
Comparing version 1.0.46 to 1.0.47
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
const emailRegex = require('email-regex') | ||
const existsFile = require('exists-file') | ||
const jsonFuture = require('json-future') | ||
@@ -12,2 +11,3 @@ const colors = require('picocolors') | ||
const mri = require('mri') | ||
const fs = require('fs') | ||
@@ -86,3 +86,3 @@ const BOT_NAMES = ['ImgBotApp', 'greenkeeper', 'noreply', '\\bbot\\b', 'Travis CI'] | ||
const getContributors = async () => { | ||
if (!(await existsFile('.git'))) { | ||
if (!fs.existsSync('.git')) { | ||
return processError({ | ||
@@ -95,4 +95,3 @@ message: 'Ops, not git directory detected!' | ||
const pkgPath = path.join(cwd, 'package.json') | ||
const cmd = 'git shortlog -sne HEAD' | ||
const { stdout, stderr } = await execa.command(cmd, { | ||
const { stdout, stderr } = await execa.command('git shortlog -sne HEAD', { | ||
cwd, | ||
@@ -99,0 +98,0 @@ shell: true, |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/Kikobeats/git-authors-cli", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"bin": { | ||
@@ -55,4 +55,3 @@ "git-authors": "bin/index.js", | ||
"email-regex": "~4.0.0", | ||
"execa": "~5.1.0", | ||
"exists-file": "~3.0.2", | ||
"execa": "~5.1.1", | ||
"json-future": "~2.2.18", | ||
@@ -65,2 +64,3 @@ "mri": "~1.2.0", | ||
"@commitlint/config-conventional": "latest", | ||
"@ksmithut/prettier-standard": "latest", | ||
"c8": "latest", | ||
@@ -72,3 +72,2 @@ "ci-publish": "latest", | ||
"npm-check-updates": "latest", | ||
"prettier-standard": "latest", | ||
"simple-git-hooks": "latest", | ||
@@ -108,4 +107,5 @@ "standard": "latest", | ||
"nano-staged": { | ||
"*.js,!*.min.js,": [ | ||
"prettier-standard" | ||
"*.js": [ | ||
"prettier-standard", | ||
"standard --fix" | ||
], | ||
@@ -112,0 +112,0 @@ "*.md": [ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
5
11809
159
2
- Removedexists-file@~3.0.2
- Removedexists-file@3.0.2(transitive)
Updatedexeca@~5.1.1