Socket
Socket
Sign inDemoInstall

@commitlint/read

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/read - npm Package Compare versions

Comparing version 19.4.0 to 19.5.0

11

lib/read.js
import minimist from 'minimist';
import { getHistoryCommits } from './get-history-commits.js';
import { getEditCommit } from './get-edit-commit.js';
import { execa } from 'execa';
import { x } from 'tinyexec';
// Get commit messages

@@ -13,4 +13,4 @@ export default async function getCommitMessages(settings) {

if (last) {
const gitCommandResult = await execa('git', ['log', '-1', '--pretty=format:%B'], { cwd });
let output = gitCommandResult.stdout;
const gitCommandResult = await x('git', ['log', '-1', '--pretty=format:%B'], { nodeOptions: { cwd } });
let output = gitCommandResult.stdout.trim();
// strip output of extra quotation marks ("")

@@ -22,3 +22,3 @@ if (output[0] == '"' && output[output.length - 1] == '"')

if (!from && fromLastTag) {
const { stdout } = await execa('git', [
const output = await x('git', [
'describe',

@@ -30,3 +30,4 @@ '--abbrev=40',

'--tags',
], { cwd });
], { nodeOptions: { cwd } });
const stdout = output.stdout.trim();
if (stdout.length === 40) {

@@ -33,0 +34,0 @@ // Hash only means no last tag. Use that as the from ref which

{
"name": "@commitlint/read",
"type": "module",
"version": "19.4.0",
"version": "19.5.0",
"description": "Read commit messages from a specified range or last edit",

@@ -39,4 +39,4 @@ "main": "lib/read.js",

"devDependencies": {
"@commitlint/test": "^19.0.0",
"@commitlint/utils": "^19.0.0",
"@commitlint/test": "^19.5.0",
"@commitlint/utils": "^19.5.0",
"@types/git-raw-commits": "^2.0.3",

@@ -46,9 +46,9 @@ "@types/minimist": "^1.2.4"

"dependencies": {
"@commitlint/top-level": "^19.0.0",
"@commitlint/types": "^19.0.3",
"execa": "^8.0.1",
"@commitlint/top-level": "^19.5.0",
"@commitlint/types": "^19.5.0",
"git-raw-commits": "^4.0.0",
"minimist": "^1.2.8"
"minimist": "^1.2.8",
"tinyexec": "^0.3.0"
},
"gitHead": "bac2288cc7de5bb6f41939d1c562193c74ce16d5"
"gitHead": "7e79af18b7500cda0e38f35944ee08b0b312c006"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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