fix(core): update

This commit is contained in:
2023-07-28 05:49:44 +02:00
parent 64eb16880a
commit 515be51253
11 changed files with 967 additions and 13681 deletions

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartmail',
version: '1.0.23',
name: '@push.rocks/smartmail',
version: '1.0.24',
description: 'a unified format for representing and dealing with mails'
}

View File

@ -16,7 +16,7 @@ export class EmailAddressValidator {
public async validate(emailArg: string): Promise<IEmailValidationResult> {
await this.fetchDomains();
const emailArray = emailArg.split('@');
const result = await this.smartdns.getRecord(emailArray[1], 'MX');
const result = await this.smartdns.getRecords(emailArray[1], 'MX');
// console.log(emailArray);
// console.log(this.domainMap[emailArray[1]]);
return {

View File

@ -4,10 +4,10 @@ import * as path from 'path';
export { path };
// pushrocks scope
import * as smartdns from '@pushrocks/smartdns';
import * as smartfile from '@pushrocks/smartfile';
import * as smartmustache from '@pushrocks/smartmustache';
import * as smartpath from '@pushrocks/smartpath';
import * as smartrequest from '@pushrocks/smartrequest';
import * as smartdns from '@push.rocks/smartdns';
import * as smartfile from '@push.rocks/smartfile';
import * as smartmustache from '@push.rocks/smartmustache';
import * as smartpath from '@push.rocks/smartpath';
import * as smartrequest from '@push.rocks/smartrequest';
export { smartdns, smartfile, smartmustache, smartpath, smartrequest };