git-raw-commits 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/cli.js +3 -3
  3. package/index.js +16 -16
  4. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [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)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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)
7
18
 
8
19
 
package/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- var meow = require('meow')
4
- var gitRawCommits = require('./')
3
+ const meow = require('meow')
4
+ const gitRawCommits = require('./')
5
5
 
6
- var cli = meow(`
6
+ const cli = meow(`
7
7
  Usage
8
8
  git-raw-commits [<git-log(1)-options>]
9
9
 
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict'
2
2
 
3
- var dargs = require('dargs')
4
- var execFile = require('child_process').execFile
5
- var split = require('split2')
6
- var stream = require('stream')
7
- var template = require('lodash.template')
8
- var through = require('through2')
3
+ const dargs = require('dargs')
4
+ const execFile = require('child_process').execFile
5
+ const split = require('split2')
6
+ const stream = require('stream')
7
+ const template = require('lodash.template')
8
+ const through = require('through2')
9
9
 
10
- var DELIMITER = '------------------------ >8 ------------------------'
10
+ const DELIMITER = '------------------------ >8 ------------------------'
11
11
 
12
12
  function normalizeExecOpts (execOpts) {
13
13
  execOpts = execOpts || {}
@@ -24,10 +24,10 @@ function normalizeGitOpts (gitOpts) {
24
24
  }
25
25
 
26
26
  function getGitArgs (gitOpts) {
27
- var gitFormat = template('--format=<%= format %>%n' + DELIMITER)(gitOpts)
28
- var gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..')
27
+ const gitFormat = template('--format=<%= format %>%n' + DELIMITER)(gitOpts)
28
+ const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..')
29
29
 
30
- var gitArgs = ['log', gitFormat, gitFromTo]
30
+ const gitArgs = ['log', gitFormat, gitFromTo]
31
31
 
32
32
  // allow commits to focus on a single directory
33
33
  // this is useful for monorepos.
@@ -41,20 +41,20 @@ function getGitArgs (gitOpts) {
41
41
  }
42
42
 
43
43
  function gitRawCommits (rawGitOpts, rawExecOpts) {
44
- var readable = new stream.Readable()
44
+ const readable = new stream.Readable()
45
45
  readable._read = function () {}
46
46
 
47
- var gitOpts = normalizeGitOpts(rawGitOpts)
48
- var execOpts = normalizeExecOpts(rawExecOpts)
49
- var args = getGitArgs(gitOpts)
47
+ const gitOpts = normalizeGitOpts(rawGitOpts)
48
+ const execOpts = normalizeExecOpts(rawExecOpts)
49
+ const args = getGitArgs(gitOpts)
50
50
 
51
51
  if (gitOpts.debug) {
52
52
  gitOpts.debug('Your git-log command is:\ngit ' + args.join(' '))
53
53
  }
54
54
 
55
- var isError = false
55
+ let isError = false
56
56
 
57
- var child = execFile('git', args, {
57
+ const child = execFile('git', args, {
58
58
  cwd: execOpts.cwd,
59
59
  maxBuffer: Infinity
60
60
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-raw-commits",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Get raw git commits out of your repository using git-log(1)",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
@@ -35,9 +35,9 @@
35
35
  "dependencies": {
36
36
  "dargs": "^7.0.0",
37
37
  "lodash.template": "^4.0.2",
38
- "meow": "^7.0.0",
38
+ "meow": "^8.0.0",
39
39
  "split2": "^2.0.0",
40
- "through2": "^3.0.0"
40
+ "through2": "^4.0.0"
41
41
  },
42
42
  "scripts": {
43
43
  "test-windows": "mocha --timeout 30000"
@@ -45,5 +45,5 @@
45
45
  "bin": {
46
46
  "git-raw-commits": "cli.js"
47
47
  },
48
- "gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c"
48
+ "gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca"
49
49
  }