Commits

askurihin  committed b0f549c

Move debug to dev deps

  • Participants
  • Parent commits e4c7c56

Comments (0)

Files changed (2)

 var http = require('http')
   , url = require('url')
   , httpProxy = require('http-proxy')
-  , debug = require('debug')('lib-proxy')
   , S = require('string')
-  , EE = require('events').EventEmitter
+  , EE = require('events').EventEmitter;
+
+try {
+  var debug = require('debug')('patron')
+} catch (e) {
+  // production
+  var debug = function() {}
+}
 
 var decorate = require('./decorate.js')
 var server = http.createServer();

File package.json

   "dependencies": {
       "http-proxy": "*",
       "bunyan": "*",
-      "string": "*",
-      "debug": "*"
+      "string": "*"
   },
   "devDependencies": {
       "tap": "*",
-      "request": "*"
+      "request": "*",
+      "debug": "*"
   },
   "scripts": {
       "test": "npm test"