Comparing version 0.0.4 to 0.0.5
@@ -10,2 +10,3 @@ /*! | ||
// var Num = require('./number'); | ||
var Receipts = require('./receipts'); | ||
@@ -26,2 +27,4 @@ module.exports = function(options) { | ||
// Nexmo.number = new Num(options); | ||
Nexmo.receipts = new Receipts(options); | ||
@@ -28,0 +31,0 @@ return Nexmo; |
@@ -8,3 +8,4 @@ { | ||
"dependencies": { | ||
"request": "2.2.x" | ||
"request": "2.2.x", | ||
"connect": "1.8.x" | ||
}, | ||
@@ -15,3 +16,3 @@ "devDependencies": { | ||
"engine": "node >= 0.4.1", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"files": [ | ||
@@ -18,0 +19,0 @@ "index.js", |
@@ -19,3 +19,3 @@ # node-nexmo | ||
// ... or check your account balance | ||
// Check your account balance | ||
@@ -28,2 +28,10 @@ nexmo.account.balance(function(err, balance) { | ||
// ... or spin up an http server and emit message receipts | ||
nexmo.receipts.on('failed', function(msg) { | ||
console.log('Message to ' + msg.to + ' failed!'); | ||
nexmo.receipts.stop(); | ||
} | ||
nexmo.receipts.start(); | ||
``` | ||
@@ -30,0 +38,0 @@ |
10154
11
301
49
2
+ Addedconnect@1.8.x
+ Addedcall-bind@1.0.7(transitive)
+ Addedconnect@1.8.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedformidable@1.0.17(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmime@4.0.4(transitive)
+ Addedobject-inspect@1.13.2(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)