Skip to content
This repository
Browse code

Update dependencies, support node 0.8.x, use common logger module.

  • Loading branch information...
commit 52bfdd1724b5625f7e0a5a2340060f19a57a8f60 1 parent 0ea1e6a
Scott González authored August 10, 2012
23  lib/logger.js
... ...
@@ -1,22 +1 @@
1  
-if ( process.argv.indexOf( "--console" ) !== -1 ) {
2  
-	module.exports = console;
3  
-	return;
4  
-}
5  
-
6  
-var syslog = require( "node-syslog" );
7  
-
8  
-syslog.init( "plugins.jquery.com", syslog.LOG_PID, syslog.LOG_LOCAL0 );
9  
-
10  
-module.exports = {
11  
-	log: function( msg ) {
12  
-		syslog.log( syslog.LOG_INFO, msg );
13  
-	},
14  
-
15  
-	warn: function( msg ) {
16  
-		syslog.log( syslog.LOG_NOTICE, msg );
17  
-	},
18  
-
19  
-	error: function( msg ) {
20  
-		syslog.log( syslog.LOG_ERR, msg );
21  
-	}
22  
-};
  1
+module.exports = require( "logger" ).init( "plugins.jquery.com" );
19  package.json
@@ -2,24 +2,21 @@
2 2
   "name": "plugins.jquery.com",
3 3
   "version": "0.0.0",
4 4
   "author": "jQuery Project",
5  
-  "description": "...",
  5
+  "description": "The official jQuery plugins site",
6 6
   "homepage": "https://github.com/jquery/plugins.jquery.com",
7 7
   "repository": {
8 8
     "type": "git",
9 9
     "url": "git://github.com/jquery/plugins.jquery.com.git"
10 10
   },
11 11
   "dependencies": {
12  
-    "mkdirp": "0.2.1",
13  
-    "semver": "1.0.12",
14  
-    "sqlite3": "2.1.1",
  12
+    "mkdirp": "0.3.3",
  13
+    "semver": "1.0.14",
  14
+    "sqlite3": "2.1.5",
15 15
     "step": "0.0.5",
16  
-    "rimraf": "1.0.9",
17  
-    "node-syslog": "1.1.1",
  16
+    "rimraf": "2.0.2",
18 17
     "wordpress": "0.1.3",
19  
-    "grunt": "0.3.9",
20  
-    "grunt-wordpress": "1.0.2"
21  
-  },
22  
-  "engines": {
23  
-    "node": "0.6.5"
  18
+    "grunt": "0.3.12",
  19
+    "grunt-wordpress": "1.0.2",
  20
+    "logger": "git://github.com/jquery/node-logger.git"
24 21
   }
25 22
 }

0 notes on commit 52bfdd1

Please sign in to comment.
Something went wrong with that request. Please try again.