Socket
Socket
Sign inDemoInstall

git-raw-commits

Package Overview
Dependencies
81
Maintainers
7
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.7 to 2.0.8

11

CHANGELOG.md

@@ -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 @@

6

cli.js
#!/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>]

'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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc