From 399b88faf3b7e108cfefe3a0e3b536b91bfebb50 Mon Sep 17 00:00:00 2001 From: Joshua Pollak Date: Fri, 20 Apr 2018 14:34:57 -0700 Subject: [PATCH] compatibility with Node v6.1 see https://github.com/LearnBoost/websocket.io/issues/55 --- lib/git/git_file_operations.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/git/git_file_operations.js b/lib/git/git_file_operations.js index 8af908c..a438459 100644 --- a/lib/git/git_file_operations.js +++ b/lib/git/git_file_operations.js @@ -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() {} @@ -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 diff --git a/package.json b/package.json index 6a33c61..dd56f37 100644 --- a/package.json +++ b/package.json @@ -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 " , "contributors" : [ "Vincent Giersch " ] , "repository" : { "type" : "git"