git-raw-commits
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.7...git-raw-commits@2.0.8) (2020-11-05) | ||
### Bug Fixes | ||
* **deps:** update dependency through2 to v4 ([#657](https://github.com/conventional-changelog/conventional-changelog/issues/657)) ([7ae618c](https://github.com/conventional-changelog/conventional-changelog/commit/7ae618c81491841e5b1d796d3933aac0c54bc312)) | ||
## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits@2.0.3...git-raw-commits@2.0.7) (2020-05-08) | ||
@@ -8,0 +19,0 @@ |
#!/usr/bin/env node | ||
'use strict' | ||
var meow = require('meow') | ||
var gitRawCommits = require('./') | ||
const meow = require('meow') | ||
const gitRawCommits = require('./') | ||
var cli = meow(` | ||
const cli = meow(` | ||
Usage | ||
@@ -8,0 +8,0 @@ git-raw-commits [<git-log(1)-options>] |
32
index.js
'use strict' | ||
var dargs = require('dargs') | ||
var execFile = require('child_process').execFile | ||
var split = require('split2') | ||
var stream = require('stream') | ||
var template = require('lodash.template') | ||
var through = require('through2') | ||
const dargs = require('dargs') | ||
const execFile = require('child_process').execFile | ||
const split = require('split2') | ||
const stream = require('stream') | ||
const template = require('lodash.template') | ||
const through = require('through2') | ||
var DELIMITER = '------------------------ >8 ------------------------' | ||
const DELIMITER = '------------------------ >8 ------------------------' | ||
@@ -27,6 +27,6 @@ function normalizeExecOpts (execOpts) { | ||
function getGitArgs (gitOpts) { | ||
var gitFormat = template('--format=<%= format %>%n' + DELIMITER)(gitOpts) | ||
var gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..') | ||
const gitFormat = template('--format=<%= format %>%n' + DELIMITER)(gitOpts) | ||
const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..') | ||
var gitArgs = ['log', gitFormat, gitFromTo] | ||
const gitArgs = ['log', gitFormat, gitFromTo] | ||
@@ -45,8 +45,8 @@ // allow commits to focus on a single directory | ||
function gitRawCommits (rawGitOpts, rawExecOpts) { | ||
var readable = new stream.Readable() | ||
const readable = new stream.Readable() | ||
readable._read = function () {} | ||
var gitOpts = normalizeGitOpts(rawGitOpts) | ||
var execOpts = normalizeExecOpts(rawExecOpts) | ||
var args = getGitArgs(gitOpts) | ||
const gitOpts = normalizeGitOpts(rawGitOpts) | ||
const execOpts = normalizeExecOpts(rawExecOpts) | ||
const args = getGitArgs(gitOpts) | ||
@@ -57,5 +57,5 @@ if (gitOpts.debug) { | ||
var isError = false | ||
let isError = false | ||
var child = execFile('git', args, { | ||
const child = execFile('git', args, { | ||
cwd: execOpts.cwd, | ||
@@ -62,0 +62,0 @@ maxBuffer: Infinity |
{ | ||
"name": "git-raw-commits", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Get raw git commits out of your repository using git-log(1)", | ||
@@ -38,5 +38,5 @@ "bugs": { | ||
"lodash.template": "^4.0.2", | ||
"meow": "^7.0.0", | ||
"meow": "^8.0.0", | ||
"split2": "^2.0.0", | ||
"through2": "^3.0.0" | ||
"through2": "^4.0.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "scripts": { | ||
}, | ||
"gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c" | ||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca" | ||
} |
12914
+ Addedhosted-git-info@4.1.0(transitive)
+ Addedis-core-module@2.14.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedmeow@8.1.2(transitive)
+ Addednormalize-package-data@3.0.3(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsemver@7.6.2(transitive)
+ Addedthrough2@4.0.2(transitive)
+ Addedtype-fest@0.18.1(transitive)
+ Addedyallist@4.0.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
- Removedis-core-module@2.13.1(transitive)
- Removedmeow@7.1.1(transitive)
- Removedthrough2@3.0.2(transitive)
- Removedtype-fest@0.13.1(transitive)
- Removedyargs-parser@18.1.3(transitive)
Updatedmeow@^8.0.0
Updatedthrough2@^4.0.0