gmail-api-parse-message-ts
Advanced tools
Comparing version 2.2.23 to 2.2.24
# 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' |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34970