This commit is contained in:
quoije
2023-05-10 21:03:22 -04:00
parent ef1b411c12
commit bd732815c7
1304 changed files with 192970 additions and 5407 deletions
+24
View File
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOptions = void 0;
const defaultOptions = {
email: '[email protected]',
sender: '[email protected]',
validateRegex: true,
validateMx: true,
validateTypo: true,
validateDisposable: true,
validateSMTP: true,
};
function getOptions(emailOrOptions) {
let options = defaultOptions;
if (typeof emailOrOptions === 'string') {
options = Object.assign(Object.assign({}, options), { email: emailOrOptions });
}
else {
options = Object.assign(Object.assign({}, options), emailOrOptions);
}
return options;
}
exports.getOptions = getOptions;
//# sourceMappingURL=options.js.map