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

gitlog

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlog - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

3

index.js

@@ -56,3 +56,4 @@ module.exports = gitlog

// Set defaults
options = extend(defaultOptions, options)
options = extend({}, defaultOptions, options)
extend(options.execOptions, defaultOptions.execOptions)

@@ -59,0 +60,0 @@ // Start constructing command

{
"name": "gitlog",
"version": "3.1.1",
"version": "3.1.2",
"description": "Git log parser for Node.JS",

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

@@ -87,2 +87,22 @@ var gitlog = require('../')

it('returns 10 commits from other dir, execOptions specified', function(done) {
var cwd = process.cwd()
process.chdir('/tmp')
gitlog({ repo: testRepoLocation, execOptions: { encoding: 'utf8' } }, function(err, commits) {
commits.length.should.equal(10)
done()
})
process.chdir(cwd)
})
it('returns 10 commits from other dir', function(done) {
var cwd = process.cwd()
process.chdir('/tmp')
gitlog({ repo: testRepoLocation }, function(err, commits) {
commits.length.should.equal(10)
done()
})
process.chdir(cwd)
})
it('returns the fields requested', function(done) {

@@ -89,0 +109,0 @@ var fields =

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