Comparing version 0.0.19 to 0.0.20
@@ -6,5 +6,5 @@ "use strict"; | ||
this.client = client; | ||
this.inboxID = message.inbox_id; | ||
this.id = message.id; | ||
this.to_email = message.to_email; | ||
Object.keys(message).forEach(key => { | ||
this[key] = message[key]; | ||
}); | ||
} | ||
@@ -18,5 +18,5 @@ /** | ||
getBody(type = 'html') { | ||
return this.client.getMessageBody(this.inboxID, this.id, type); | ||
return this.client.getMessageBody(this.inbox_id, this.id, type); | ||
} | ||
}; |
{ | ||
"name": "mailtrap", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "simple mailtrap api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6071