From fae2a1718aea0a6251b5a18b140dc915a987af23 Mon Sep 17 00:00:00 2001 From: TiloSoenke Date: Tue, 17 Jul 2012 17:17:27 +0200 Subject: [PATCH 1/4] changed owner of git repository: contrast => exceptional and updated node-version: 0.2 => 0.8 --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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" } ] } From 4e684aa0eccffaa05f7839c70d84a1dd9702a7a0 Mon Sep 17 00:00:00 2001 From: TiloSoenke Date: Tue, 17 Jul 2012 17:19:00 +0200 Subject: [PATCH 2/4] node update: process.addListener => process.on --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 753b04a4929eb4d942d0f52af8bca1130bbddd3a Mon Sep 17 00:00:00 2001 From: TiloSoenke Date: Tue, 17 Jul 2012 17:19:52 +0200 Subject: [PATCH 3/4] node update: process.addListener => process.on --- example/demo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); From cadcccee365e41012822cdfbe2c029832563ca33 Mon Sep 17 00:00:00 2001 From: TiloSoenke Date: Tue, 17 Jul 2012 17:21:00 +0200 Subject: [PATCH 4/4] node update: http.createClient => http.request --- lib/exceptional.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;