Skip to content

Commit

Permalink
compatibility with Node v6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpollak-zynga committed Apr 20, 2018
1 parent c88e44a commit 399b88f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/git/git_file_operations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var util = require('util'),
fs = require('fs'),
exec = require('child_process').exec;
exec = require('child_process').exec,
EventEmitter = require('events');

var GitFileOperations = exports.GitFileOperations = function() {}

Expand Down Expand Up @@ -43,7 +44,7 @@ GitFileOperations.glob_streaming = function(path) {
// Comptability
var nextTick = global.setImmediate || process.nextTick;
// Create a stream object
var stream = new process.EventEmitter();
var stream = new EventEmitter();
var processed_directories_count = 0;
var top_level_files_count = -1;
// Tick method
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ "name" : "git"
, "description" : "A node.js library for git"
, "version" : "0.1.5"
, "version" : "0.1.6"
, "author" : "Christian Amor Kvalheim <[email protected]>"
, "contributors" : [ "Vincent Giersch <[email protected]>" ]
, "repository" : { "type" : "git"
Expand Down

0 comments on commit 399b88f

Please sign in to comment.