Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

last-commit-log

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

last-commit-log - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

9

index.js

@@ -29,9 +29,12 @@ 'use strict'

c = stdout.split(splitCharacter)
const { stdout: branch } = await exec('git name-rev --name-only HEAD', opts)
const { stdout: revParseBranch } = await exec('git rev-parse --abbrev-ref HEAD', opts)
const { stdout: nameRevBranch } = await exec('git name-rev --name-only HEAD', opts)
const { stdout: tag } = await exec('git tag --contains HEAD', opts)
gitBranch = branch.trim().replace('remotes/origin/', '')
const branch1 = revParseBranch.trim()
const branch2 = nameRevBranch.trim().replace('remotes/origin/', '')
gitBranch = branch1 === 'HEAD' ? branch2 : branch1
gitTag = tag.trim()
gitRemote = await gitRemoteOriginUrl(this.cwd)
} catch (e) {
throw new Error(`Can't get last commit, ${e.stderr}`)
throw new Error(`Can't get last commit, ${e}`)
}

@@ -38,0 +41,0 @@ return ({

{
"name": "last-commit-log",
"version": "1.0.6",
"version": "1.0.7",
"description": "read git last commit log",

@@ -5,0 +5,0 @@ "main": "index.js",

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