Skip to content

Commit e1911e7

Browse files
4.1.0
1 parent 7a35af2 commit e1911e7

File tree

3 files changed

+146
-4
lines changed

3 files changed

+146
-4
lines changed

package-lock.json

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tempmail.lol",
3-
"version": "4.0.2",
3+
"version": "4.1.0",
44
"description": "API to generate temporary email addresses.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class TempMail {
1717
private async makeRequest(url: string, post_data?: any, method?: "POST" | "GET" | "DELETE"): Promise<any> {
1818

1919
let headers = {
20-
"User-Agent": "TempMailJS/3.0.0"
20+
"User-Agent": "TempMailJS/4.1.0"
2121
};
2222

2323
//if the user is a TempMail Plus subscriber, add the credentials here
@@ -94,11 +94,11 @@ export class TempMail {
9494
*/
9595
async checkCustomDomainLegacy(domain: string, token: string): Promise<Email[]> {
9696

97-
const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`), {
97+
const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`, {
9898
headers: {
9999
"Authorization": "Bearer " + this.api_key,
100100
},
101-
});
101+
}));
102102
const r = await raw.json();
103103

104104
let emails: Email[];

0 commit comments

Comments
 (0)