[Pkg-javascript-commits] [node-log-driver] 33/49: get rid of global leaks.
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Feb 22 12:57:03 UTC 2018
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-log-driver.
commit 09dd22cc242bc70e2f224bfe7cf06961cd1127dc
Author: Gregg Caines <gregg at caines.ca>
Date: Thu Sep 25 20:43:15 2014 -0700
get rid of global leaks.
---
index.js | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index a78776f..769e891 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,6 @@
var util = require('util');
-LogDriver = function(options){
+var LogDriver = function(options){
options = options || {};
var logger = this;
if (options.format){
@@ -49,7 +49,7 @@ LogDriver.prototype.format = function(){
var defaultLogger = null;
-factory = function(options){
+var factory = function(options){
defaultLogger = new LogDriver(options);
factory.logger = defaultLogger;
return defaultLogger;
diff --git a/package.json b/package.json
index 699faef..968ef30 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"logger",
"log"
],
- "version": "1.2.4",
+ "version": "1.2.5",
"bugs": {
"url": "https://github.com/cainus/logdriver/issues"
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-log-driver.git
More information about the Pkg-javascript-commits
mailing list