Skip to content

Commit 52bfdd1

Browse files
committed
Update dependencies, support node 0.8.x, use common logger module.
1 parent 0ea1e6a commit 52bfdd1

File tree

2 files changed

+9
-33
lines changed

2 files changed

+9
-33
lines changed

lib/logger.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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" );

package.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@
22
"name": "plugins.jquery.com",
33
"version": "0.0.0",
44
"author": "jQuery Project",
5-
"description": "...",
5+
"description": "The official jQuery plugins site",
66
"homepage": "https://github.com/jquery/plugins.jquery.com",
77
"repository": {
88
"type": "git",
99
"url": "git://github.com/jquery/plugins.jquery.com.git"
1010
},
1111
"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",
1515
"step": "0.0.5",
16-
"rimraf": "1.0.9",
17-
"node-syslog": "1.1.1",
16+
"rimraf": "2.0.2",
1817
"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"
2421
}
2522
}

0 commit comments

Comments
 (0)