Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

convert uses of 'sys' to 'util' for nodev6

  • Loading branch information...
commit 78168de1ce0c7a7c213e9d57efb512c19297dc2b 1 parent 77feb36
Gary Peck garyp authored
1  Apps/BloodPressureTracker/bptracker.js
View
@@ -11,7 +11,6 @@ var url = require('url');
var express = require('express');
var connect = require('connect');
var request = require('request');
-var sys = require('sys');
var fs = require("fs");
var path = require("path");
var querystring = require("querystring");
1  Apps/HashTags/hashtags.js
View
@@ -11,7 +11,6 @@ var url = require('url');
var express = require('express');
var connect = require('connect');
var request = require('request');
-var sys = require('sys');
var fs = require("fs");
var path = require("path");
var querystring = require("querystring");
6 Common/node/connector/oauth2.js
View
@@ -10,7 +10,7 @@
var request = require('request'),
lfs = require('lfs'),
fs = require('fs'),
- sys = require('sys'),
+ util = require('util'),
querystring = require('querystring'),
options = {provider : 'Some oauth2 consumer',
endPoint : 'http://consumer.com/oauth/',
@@ -92,7 +92,7 @@ function go(req, res) {
} else {
var newUrl = options.endPoint + "/" + options.authEndpoint + '?client_id=' + exports.auth.appKey +
'&response_type=code&redirect_uri=' + options.redirectURI + 'auth/';
- sys.debug('redirecting to ' + newUrl);
+ util.debug('redirecting to ' + newUrl);
if (options.extraParams) {
newUrl += "&" + options.extraParams;
}
@@ -137,4 +137,4 @@ function saveAuth(req, res) {
exports.auth.appKey = req.param('appKey');
exports.auth.appSecret = req.param('appSecret');
res.redirect(options.redirectURI + 'go');
-}
+}
3  Common/node/lfs.js
View
@@ -8,7 +8,6 @@
*/
var fs = require('fs'),
- sys = require('sys'),
url = require('url'),
https = require('https'),
http = require('http'),
@@ -138,4 +137,4 @@ function listSubdirectories(path) {
dirs.push(files[i]);
}
return dirs;
-}
+}
6 Common/node/locker.js
View
@@ -9,7 +9,7 @@
var request = require('request'),
fs = require("fs"),
- sys = require('sys'),
+ util = require('util'),
url = require("url"),
lstate = require("lstate"),
lutil = require("lutil"),
@@ -138,7 +138,7 @@ exports.idrLocal = function(idr)
exports.listen = function(type, callbackEndpoint, callbackFunction) {
request.get({url:baseServiceUrl + '/listen?' + querystring.stringify({'type':type, 'cb':callbackEndpoint})},
function(error, response, body) {
- if(error) sys.debug(error);
+ if(error) util.debug(error);
if(callbackFunction) callbackFunction(error);
});
};
@@ -146,7 +146,7 @@ exports.listen = function(type, callbackEndpoint, callbackFunction) {
exports.deafen = function(type, callbackEndpoint, callbackFunction) {
request.get({url:baseServiceUrl + '/deafen?' + querystring.stringify({'type':type, 'cb':callbackEndpoint})},
function(error, response, body) {
- if(error) sys.debug(error);
+ if(error) util.debug(error);
if(callbackFunction) callbackFunction(error);
});
};
1  Connectors/AmazonHistory/server.js
View
@@ -10,7 +10,6 @@
var fs = require('fs'),
path = require('path'),
url = require('url'),
- sys = require('sys'),
express = require('express'),
connect = require('connect');
1  Connectors/AmazonS3/s3.js
View
@@ -16,7 +16,6 @@ var fs = require('fs'),
express = require('express'),
connect = require('connect'),
request = require('request'),
- sys = require('sys'),
path = require('path'),
knox = require('knox'),
app = express.createServer(
1  Connectors/Dropbox/dropbox.js
View
@@ -16,7 +16,6 @@ var fs = require('fs'),
express = require('express'),
connect = require('connect'),
request = require('request'),
- sys = require('sys'),
dbox = require('dropbox').DropboxClient,
app = express.createServer(
connect.bodyParser(),
3  Connectors/Facebook/lib.js
View
@@ -9,8 +9,7 @@
var fs = require('fs'),
request = require('request'),
- async = require('async'),
- sys = require('sys');
+ async = require('async');
var auth;
1  Connectors/FirefoxHistory/client.js
View
@@ -8,7 +8,6 @@
*/
var fs = require('fs'),
- sys = require('sys'),
sqlite = require('sqlite'),
express = require('express'),
connect = require('connect'),
3  Connectors/GooglePlus/lib.js
View
@@ -12,8 +12,7 @@ var fs = require('fs'),
async = require('async'),
url = require('url'),
crypto = require("crypto"),
- querystring = require('querystring'),
- sys = require('sys');
+ querystring = require('querystring');
var auth;
3  Connectors/Gowalla/lib.js
View
@@ -10,8 +10,7 @@
var fs = require('fs'),
request = require('request'),
async = require('async'),
- url = require('url'),
- sys = require('sys');
+ url = require('url');
var auth;
var base = 'http://api.gowalla.com';
1  Connectors/SimpleJournal/simplejournal.js
View
@@ -11,7 +11,6 @@ var url = require('url')
var express = require('express');
var connect = require('connect');
var request = require('request');
-var sys = require('sys');
var sqlite = require("sqlite");
var app = express.createServer(connect.bodyParser(), connect.cookieParser())
3  Connectors/Tumblr/lib.js
View
@@ -11,8 +11,7 @@ var fs = require('fs'),
request = require('request'),
async = require('async'),
url = require('url'),
- crypto = require("crypto"),
- sys = require('sys');
+ crypto = require("crypto");
var tumblr;
1  Connectors/Twitpic/twitpic.js
View
@@ -18,7 +18,6 @@ var fs = require('fs'),
express = require('express'),
connect = require('connect'),
request = require('request'),
- sys = require('sys'),
app = express.createServer(
connect.bodyParser(),
connect.cookieParser()),
3  Connectors/Twitter/lib.js
View
@@ -10,8 +10,7 @@
var fs = require('fs'),
request = require('request'),
async = require('async'),
- url = require('url'),
- sys = require('sys');
+ url = require('url');
var tw;
1  Connectors/TwitterSearch/tsearch.js
View
@@ -15,7 +15,6 @@ var fs = require('fs'),
url = require('url'),
express = require('express'),
connect = require('connect'),
- sys = require('sys'),
async = require('async'),
app = express.createServer(
connect.bodyParser(),
4 Ops/TeleHash/telehash.js
View
@@ -1,4 +1,4 @@
-var sys = require("sys");
+var util = require("util");
var events = require("events");
var crypto = require("crypto");
var dgram = require("dgram");
@@ -174,7 +174,7 @@ function Switch(bindPort){
self.on("+end", self.onSignal_end);
}
-sys.inherits(Switch, events.EventEmitter);
+util.inherits(Switch, events.EventEmitter);
exports.Switch = Switch;
exports.createSwitch = function(bindPort) {
6 tests/Data.tests/flickr-event-collector/client.js
View
@@ -1,6 +1,6 @@
var http = require("http");
var fs = require("fs");
-var sys = require('sys');
+var util = require('util');
var connect = require('connect'),
express = require('express'),
app = express.createServer(
@@ -10,10 +10,10 @@ var connect = require('connect'),
var eventCount = 1;
app.post('/event', function(req, res) {
- sys.debug('flickr-event!!!');
+ util.debug('flickr-event!!!');
fs.writeFileSync('events', "" + eventCount);
eventCount++;
-// sys.debug("events:" + fs.readFileSync('events'));
+// util.debug("events:" + fs.readFileSync('events'));
res.writeHead(200);
res.end();
});
1  tests/Data.tests/testCookies/client.js
View
@@ -4,7 +4,6 @@ var fs = require("fs");
var querystring = require("querystring");
express = require('express'),
connect = require('connect'),
- sys = require('sys'),
app = express.createServer();
Please sign in to comment.
Something went wrong with that request. Please try again.