Permalink
Browse files

Bump minimum node version requirement to 0.6.0 and remove a couple of…

… wrappers for old node versions
  • Loading branch information...
1 parent aac8d5a commit 6d159507dd965c00ba10f4efcbae00c4ae6e8d5a @mscdex committed Jul 4, 2012
Showing with 5 additions and 18 deletions.
  1. +4 −17 oscar.js
  2. +1 −1 package.json
View
@@ -1,5 +1,7 @@
-var net = require('net'), util = require('util'),
- EventEmitter = require('events').EventEmitter, crypto = require('crypto');
+var net = require('net'),
+ util = require('util'),
+ EventEmitter = require('events').EventEmitter,
+ crypto = require('crypto');
var fnEmpty = function() {};
var debug = fnEmpty, hexy, inspectMutated = false,
hexyFormat = {
@@ -3165,21 +3167,6 @@ Buffer.prototype.toArray = function() {
return Array.prototype.slice.call(this);
};
-var _oldBufferToString = Buffer.prototype.toString;
-Buffer.prototype.toString = function() {
- if (arguments.length > 0 && arguments[0] === 'hex')
- return toHexStr(this);
- else
- return _oldBufferToString.apply(this, Array.prototype.slice.call(arguments));
-};
-
-var _oldStreamConnect = net.Stream.prototype.connect;
-net.Stream.prototype.connect = function(port, host) {
- this.remoteAddress = host;
- this.remotePort = port;
- _oldStreamConnect.apply(this, Array.prototype.slice.call(arguments));
-};
-
function getConnSvcNames(conn) {
if (conn.id === 'login')
return 'login';
View
@@ -3,7 +3,7 @@
"author": "Brian White <mscdex@mscdex.net>",
"description": "An OSCAR protocol module for node.js",
"main": "./oscar",
- "engines": { "node": ">=0.2.0" },
+ "engines": { "node": ">=0.6.0" },
"keywords": [ "aim", "icq", "oscar", "aol", "im", "chat", "client" ],
"licenses": [ { "type": "MIT", "url": "http://github.com/mscdex/node-oscar/raw/master/LICENSE" } ],
"repository": { "type": "git", "url": "http://github.com/mscdex/node-oscar.git" }

0 comments on commit 6d15950

Please sign in to comment.