Skip to content

Commit

Permalink
4.4.0 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderEpolite committed Feb 2, 2025
1 parent f8c72c8 commit fb6691f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tempmail.lol",
"version": "4.3.3",
"version": "4.4.0",
"description": "API to generate temporary email addresses.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class TempMail {
private async makeRequest(url: string, post_data?: any, method?: "POST" | "GET" | "DELETE"): Promise<any> {

let headers = {
"User-Agent": "TempMailJS/4.3.0"
"User-Agent": "TempMailJS/4.4.0"
};

//if the user is a TempMail Plus subscriber, add the credentials here
Expand Down Expand Up @@ -61,7 +61,7 @@ export class TempMail {
async createInbox(options?: CreateInboxOptions): Promise<Inbox> {
let url = "/inbox/create";

const r = await this.makeRequest(url, options);
const r = await this.makeRequest(url, options, "POST");

return {
address: r.address,
Expand Down

0 comments on commit fb6691f

Please sign in to comment.