@maildrop/api
Advanced tools
Comparing version 1.0.13 to 1.0.15
13
main.js
@@ -7,4 +7,4 @@ const axios = require("axios"); | ||
// api base url & path | ||
apiHost: "https://api.maildrop.cc/v2", | ||
apiPath: "/mailbox", | ||
apiHost: "https://api.maildrop.cc", | ||
apiRelativePath: "/v2/mailbox", | ||
@@ -50,3 +50,3 @@ // api key for 'x-api-key' header | ||
const { data } = await axios.delete( | ||
url.resolve(this.apiHost, `${this.apiPath}/${alias}/${id}`), | ||
url.resolve(this.apiHost, `${this.apiRelativePath}/${alias}/${id}`), | ||
options | ||
@@ -91,3 +91,3 @@ ); | ||
const { data: inbox } = await axios.get( | ||
url.resolve(this.apiHost, `${this.apiPath}/${alias}`), | ||
url.resolve(this.apiHost, `${this.apiRelativePath}/${alias}`), | ||
options | ||
@@ -98,3 +98,6 @@ ); | ||
const { data } = await axios.get( | ||
url.resolve(this.apiHost, `${this.apiPath}/${alias}/${message.id}`), | ||
url.resolve( | ||
this.apiHost, | ||
`${this.apiRelativePath}/${alias}/${message.id}` | ||
), | ||
options | ||
@@ -101,0 +104,0 @@ ); |
@@ -22,3 +22,3 @@ { | ||
}, | ||
"version": "1.0.13" | ||
"version": "1.0.15" | ||
} |
7736
146