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.23 to 2.2.24

3

CHANGELOG.md
# Versions
## 2.2.24
updates removeUnwantedCharsFromName(), now removes also ',' from name
## 2.2.23

@@ -3,0 +6,0 @@ BugFix. Headers may be undefined for deleted 'email'

4

dist/parse-gmail-api.d.ts

@@ -19,5 +19,5 @@ import { IEmail } from './iface/iemail';

/** for testing parseAddresses purpose only
* does not mutate object gmail, return a parsed copy
* does not mutate object Email, return a parsed copy
*/
test_parseAddresses(gmail: IEmail): IEmail;
test_parseAddresses(email: IEmail): IEmail;
/** mutates/parse IEmail headers (such as 'to', 'subject')

@@ -24,0 +24,0 @@ * to to, cc, from, subject attributes

@@ -116,6 +116,6 @@ "use strict";

/** for testing parseAddresses purpose only
* does not mutate object gmail, return a parsed copy
* does not mutate object Email, return a parsed copy
*/
test_parseAddresses(gmail) {
const copy = constants_1.copyGmail(gmail);
test_parseAddresses(email) {
const copy = constants_1.copyGmail(email);
return this.parseHeaders(copy);

@@ -169,3 +169,3 @@ }

removeUnwantedCharsFromName(s) {
const re = /(['"<>()!*;#?]+)/gm;
const re = /(['"<>()!*;,#?]+)/gm;
return s.replace(re, '');

@@ -172,0 +172,0 @@ }

{
"name": "gmail-api-parse-message-ts",
"version": "2.2.23",
"version": "2.2.24",
"description": "Parses Gmail API's GET method to iGmail object. Typescript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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