gmail-api-parse-message-ts
Advanced tools
Comparing version 2.2.27 to 2.2.28
# Versions | ||
## 2.2.28 | ||
@IReceiver.isValid is now required (was optional). Set is as true as default by ParseGmailApi.parseMessage(). Validation appears to be redundant, as emails from the gmail api, should be correct | ||
## 2.2.27 | ||
@@ -4,0 +7,0 @@ add isEmailValid: boolean function, check whether or not an email is valid |
@@ -14,3 +14,3 @@ "use strict"; | ||
sentDate: -1, | ||
from: { name: '', email: '' }, | ||
from: { name: '', email: '', isValid: true }, | ||
to: [], | ||
@@ -17,0 +17,0 @@ cc: [], |
@@ -6,4 +6,5 @@ export interface IReceiver { | ||
email: string; | ||
/** Optional. Possible to marked users non-valid emails, as not valid, for later evaluation */ | ||
isValid?: boolean; | ||
/** set is as true as default by ParseGmailApi.parseMessage(). Validation appears to be | ||
* redundant, as emails from the gmail api, should be correct */ | ||
isValid: boolean; | ||
} |
@@ -172,3 +172,3 @@ "use strict"; | ||
resp.name = this.removeUnwantedCharsFromName(resp.name); | ||
receivers.push({ name: resp.name, email: resp.email }); | ||
receivers.push({ name: resp.name, email: resp.email, isValid: true }); | ||
} | ||
@@ -175,0 +175,0 @@ return receivers; |
{ | ||
"name": "gmail-api-parse-message-ts", | ||
"version": "2.2.27", | ||
"version": "2.2.28", | ||
"description": "Parses Gmail API's GET method to iGmail object. Typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -105,2 +105,6 @@ [![npm][npm]][npm-url] | ||
email: string; | ||
/** set is as true as default by ParseGmailApi.parseMessage(). Validation appears to be | ||
* redundant, as emails from the gmail api, should be correct */ | ||
isValid: boolean; | ||
} | ||
@@ -107,0 +111,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37241
467
158