last-commit-log
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -18,3 +18,3 @@ 'use strict' | ||
] | ||
const splitCharacter = `<#__last-commit-log__#>` | ||
const splitCharacter = '<#__last-commit-log__#>' | ||
const command = 'git log -1 --pretty=format:"' + prettyFormat.join(splitCharacter) + '"' | ||
@@ -93,3 +93,5 @@ | ||
const branchRP = revParseBranch.trim() | ||
const branchNR = nameRevBranch.trim().replace('remotes/origin/', '') | ||
const branchNR = nameRevBranch.trim() | ||
.replace('remotes/origin/', '') | ||
.replace(/~\d+$/, '') // in case 'develop~1' | ||
const branchGL = gitLogBranch.split(',') | ||
@@ -96,0 +98,0 @@ .filter(i => i.includes('origin/')) |
{ | ||
"name": "last-commit-log", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "read git last commit log", | ||
"main": "index.js", | ||
"scripts": { | ||
"prune": "npm prune", | ||
"lint": "eslint . --fix", | ||
@@ -13,3 +12,3 @@ "test": "npm run lint && nyc --reporter=lcov --reporter=text mocha", | ||
"files": [ | ||
"src" | ||
"index.js" | ||
], | ||
@@ -16,0 +15,0 @@ "repository": { |
@@ -7,3 +7,3 @@ # last-commit-log | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![node version][node-image]][node-url] | ||
@@ -16,4 +16,4 @@ [![npm download][download-image]][download-url] | ||
[travis-url]: https://travis-ci.org/macacajs/last-commit-log | ||
[coveralls-image]: https://img.shields.io/coveralls/macacajs/last-commit-log.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/macacajs/last-commit-log?branch=master | ||
[codecov-image]: https://img.shields.io/codecov/c/github/macacajs/last-commit-log.svg?style=flat-square | ||
[codecov-url]: https://codecov.io/gh/macacajs/last-commit-log/branch/master | ||
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg?style=flat-square | ||
@@ -20,0 +20,0 @@ [node-url]: http://nodejs.org/download/ |
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
7841
100