New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mailtrap

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailtrap - npm Package Compare versions

Comparing version

to
0.0.5

6

mailtrap.js

@@ -16,3 +16,3 @@ "use strict";

const formatResponse = data => JSON.parse(_util.default.format('%j', data));
const formatResponse = res => JSON.parse(_util.default.format('%j', res.data));

@@ -36,3 +36,3 @@ class Client {

get(url) {
return this.client.get(url).then(res => formatResponse(res.data));
return this.client.get(url).then(formatResponse);
}

@@ -73,3 +73,3 @@ /**

deleteMessage(inboxID, messageID) {
return this.client.delete(`/inboxes/${inboxID}/messages/${messageID}`);
return this.client.delete(`/inboxes/${inboxID}/messages/${messageID}`).then(formatResponse);
}

@@ -76,0 +76,0 @@

{
"name": "mailtrap",
"version": "0.0.4",
"version": "0.0.5",
"description": "simple mailtrap api",

@@ -5,0 +5,0 @@ "main": "mailtrap.js",