Socket
Socket
Sign inDemoInstall

gmail-api-parse-message-ts

Package Overview
Dependencies
2
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.27 to 2.2.28

3

CHANGELOG.md
# 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

2

dist/constants.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc