diff --git a/README.markdown b/README.markdown index b2c98b7..03aa177 100644 --- a/README.markdown +++ b/README.markdown @@ -35,7 +35,7 @@ There a are multiple ways you can use exceptional with your node.js app. * The process.uncaughtException event can be used to catch exceptions that bubble all the way up to the event loop. ```javascript -process.addListener('uncaughtException', function(err) { +process.on('uncaughtException', function(err) { Exceptional.handle(err); }); ``` @@ -59,4 +59,4 @@ Check out the small example in examples/demo.js (replace 'your-api-key-here' wit node example/demo.js ``` -Copyright © 2008, 2010, 2012 getexceptional.com \ No newline at end of file +Copyright © 2008, 2010, 2012 getexceptional.com diff --git a/example/demo.js b/example/demo.js index 6b60885..83ee3b4 100644 --- a/example/demo.js +++ b/example/demo.js @@ -2,7 +2,7 @@ var Exceptional = require('../lib/exceptional').Exceptional; Exceptional.API_KEY = 'your-api-key-here'; -process.addListener('uncaughtException', function(err) { +process.on('uncaughtException', function(err) { Exceptional.handle(err); }); diff --git a/lib/exceptional.js b/lib/exceptional.js index f9046e0..bc9e5e5 100644 --- a/lib/exceptional.js +++ b/lib/exceptional.js @@ -59,7 +59,7 @@ var Exceptional = { send_error: function(doc) { gzip(doc, 1, function(err, data) { - var client = HTTP.createClient(Exceptional.Port, Exceptional.Host); + var client = HTTP.request(Exceptional.Port, Exceptional.Host); var headers = { 'Host' : Exceptional.Host, @@ -82,4 +82,4 @@ var Exceptional = { } }; -exports.Exceptional = Exceptional; \ No newline at end of file +exports.Exceptional = Exceptional; diff --git a/package.json b/package.json index d60d49c..31ec344 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name" : "exceptional-node", - "version" : "0.1.1", + "version" : "0.1.2", "description" : "node.js module for getexceptional.com", "homepage" : "http://getexceptional.com", "author" : "Wal McConnell ", @@ -8,19 +8,19 @@ ], "repository" : { "type" : "git", - "url" : "http://github.com/contrast/exceptional-node.git" + "url" : "http://github.com/exceptional/exceptional-node.git" }, "bugs" : { - "web" : "http://github.com/contrast/exceptional-node/issues", + "web" : "http://github.com/exceptional/exceptional-node/issues", "mail" : "support@getexceptional.com" }, "main" : "./lib/exceptional", - "engines" : { "node" : ">=0.2.0" }, + "engines" : { "node" : ">=0.8.0" }, "scripts" : { "test" : "test/exceptional-test.js" }, "dependencies" : {}, "licenses" : [ { "type" : "MIT", - "url" : "http://github.com/contrast/exceptional-node" + "url" : "http://github.com/exceptional/exceptional-node" } ] }