Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated depreciated parts of node syntax #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
```
Expand All @@ -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
Copyright © 2008, 2010, 2012 getexceptional.com
2 changes: 1 addition & 1 deletion example/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
4 changes: 2 additions & 2 deletions lib/exceptional.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -82,4 +82,4 @@ var Exceptional = {
}
};

exports.Exceptional = Exceptional;
exports.Exceptional = Exceptional;
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand All @@ -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" : "[email protected]"
},
"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"
}
]
}
Expand Down