Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

TypeError: TempMail is not a constructor #105

Open
SajjanKarn opened this issue Nov 14, 2020 · 1 comment
Open

TypeError: TempMail is not a constructor #105

SajjanKarn opened this issue Nov 14, 2020 · 1 comment

Comments

@SajjanKarn
Copy link

SajjanKarn commented Nov 14, 2020

whenever i try to initialize an object i am getting a error

TypeError: TempMail is not a constructor

@SajjanKarn SajjanKarn reopened this Nov 14, 2020
@SajjanKarn SajjanKarn changed the title TypeError: TempMail is not a function TypeError: TempMail is not a constructor Nov 14, 2020
@anonghuser
Copy link

anonghuser commented Sep 28, 2023

Despite the claim and example in the README, the webpack version of this module (0.3.x, from 5 years ago) has never worked in a browser.
Versions 0.2.x seem to have been a mess as well, the constructor was the weird tempmail.default and required a fetchJsonp global for whatever reason.
Versions 0.1.x seem to have worked with the constructor name in lowercase, i.e. new tempmail() but used callbacks instead of promises and http instead of https api endpoint so is mostly unusable today.

EDIT: There are other weird things in the code of the newest version as well, i.e. instead of an md5 of the address it uses the first 16 digits of a simple concatenation of ascii codes, which makes me think it never worked in node too. I'm not about to waste time testing it though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants