eml-parser-qaap 1.1.15 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ export interface ReadedEmlJson {
21
21
  from: EmailAddress | EmailAddress[] | null;
22
22
  to: EmailAddress | EmailAddress[] | null;
23
23
  cc?: EmailAddress | EmailAddress[] | null;
24
+ bcc?: EmailAddress | EmailAddress[] | null;
24
25
  headers: EmlHeaders;
25
26
  multipartAlternative?: {
26
27
  'Content-Type': string;
@@ -58,6 +59,7 @@ export interface EmlHeaders extends KeyValue {
58
59
  To?: string;
59
60
  Cc?: string;
60
61
  CC?: string;
62
+ Bcc?: string;
61
63
  'Content-Disposition'?: string | null;
62
64
  'Content-Type'?: string | null;
63
65
  'Content-Transfer-Encoding'?: string;
package/lib/bundle.amd.js CHANGED
@@ -998,6 +998,9 @@ define(['exports', 'js-base64', '@sinonjs/text-encoding'], function (exports, js
998
998
  if (typeof data.cc !== 'undefined') {
999
999
  data.headers['Cc'] = toEmailAddress(data.cc);
1000
1000
  }
1001
+ if (typeof data.bcc !== 'undefined') {
1002
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
1003
+ }
1001
1004
  // if (!data.headers['To']) {
1002
1005
  // throw new Error('Missing "To" e-mail address!');
1003
1006
  // }
@@ -1291,6 +1294,9 @@ define(['exports', 'js-base64', '@sinonjs/text-encoding'], function (exports, js
1291
1294
  if (data.headers['Cc']) {
1292
1295
  result_1.cc = getEmailAddress(data.headers['Cc']);
1293
1296
  }
1297
+ if (data.headers['Bcc']) {
1298
+ result_1.bcc = getEmailAddress(data.headers['Bcc']);
1299
+ }
1294
1300
  result_1.headers = data.headers;
1295
1301
  //Content mime type
1296
1302
  var boundary = null;
package/lib/bundle.cjs.js CHANGED
@@ -1003,6 +1003,9 @@ function build(data, options, callback) {
1003
1003
  if (typeof data.cc !== 'undefined') {
1004
1004
  data.headers['Cc'] = toEmailAddress(data.cc);
1005
1005
  }
1006
+ if (typeof data.bcc !== 'undefined') {
1007
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
1008
+ }
1006
1009
  // if (!data.headers['To']) {
1007
1010
  // throw new Error('Missing "To" e-mail address!');
1008
1011
  // }
@@ -1296,6 +1299,9 @@ function read(eml, options, callback) {
1296
1299
  if (data.headers['Cc']) {
1297
1300
  result_1.cc = getEmailAddress(data.headers['Cc']);
1298
1301
  }
1302
+ if (data.headers['Bcc']) {
1303
+ result_1.bcc = getEmailAddress(data.headers['Bcc']);
1304
+ }
1299
1305
  result_1.headers = data.headers;
1300
1306
  //Content mime type
1301
1307
  var boundary = null;
package/lib/bundle.esm.js CHANGED
@@ -1000,6 +1000,9 @@ function build(data, options, callback) {
1000
1000
  if (typeof data.cc !== 'undefined') {
1001
1001
  data.headers['Cc'] = toEmailAddress(data.cc);
1002
1002
  }
1003
+ if (typeof data.bcc !== 'undefined') {
1004
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
1005
+ }
1003
1006
  // if (!data.headers['To']) {
1004
1007
  // throw new Error('Missing "To" e-mail address!');
1005
1008
  // }
@@ -1293,6 +1296,9 @@ function read(eml, options, callback) {
1293
1296
  if (data.headers['Cc']) {
1294
1297
  result_1.cc = getEmailAddress(data.headers['Cc']);
1295
1298
  }
1299
+ if (data.headers['Bcc']) {
1300
+ result_1.bcc = getEmailAddress(data.headers['Bcc']);
1301
+ }
1296
1302
  result_1.headers = data.headers;
1297
1303
  //Content mime type
1298
1304
  var boundary = null;
@@ -999,6 +999,9 @@
999
999
  if (typeof data.cc !== 'undefined') {
1000
1000
  data.headers['Cc'] = toEmailAddress(data.cc);
1001
1001
  }
1002
+ if (typeof data.bcc !== 'undefined') {
1003
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
1004
+ }
1002
1005
  // if (!data.headers['To']) {
1003
1006
  // throw new Error('Missing "To" e-mail address!');
1004
1007
  // }
@@ -1292,6 +1295,9 @@
1292
1295
  if (data.headers['Cc']) {
1293
1296
  result_1.cc = getEmailAddress(data.headers['Cc']);
1294
1297
  }
1298
+ if (data.headers['Bcc']) {
1299
+ result_1.bcc = getEmailAddress(data.headers['Bcc']);
1300
+ }
1295
1301
  result_1.headers = data.headers;
1296
1302
  //Content mime type
1297
1303
  var boundary = null;
package/lib/bundle.umd.js CHANGED
@@ -1002,6 +1002,9 @@
1002
1002
  if (typeof data.cc !== 'undefined') {
1003
1003
  data.headers['Cc'] = toEmailAddress(data.cc);
1004
1004
  }
1005
+ if (typeof data.bcc !== 'undefined') {
1006
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
1007
+ }
1005
1008
  // if (!data.headers['To']) {
1006
1009
  // throw new Error('Missing "To" e-mail address!');
1007
1010
  // }
@@ -1295,6 +1298,9 @@
1295
1298
  if (data.headers['Cc']) {
1296
1299
  result_1.cc = getEmailAddress(data.headers['Cc']);
1297
1300
  }
1301
+ if (data.headers['Bcc']) {
1302
+ result_1.bcc = getEmailAddress(data.headers['Bcc']);
1303
+ }
1298
1304
  result_1.headers = data.headers;
1299
1305
  //Content mime type
1300
1306
  var boundary = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eml-parser-qaap",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "format EML file in browser env",
5
5
  "main": "./lib/bundle.umd.js",
6
6
  "module": "./lib/bundle.esm.js",
package/src/index.ts CHANGED
@@ -548,6 +548,10 @@ function build(
548
548
  data.headers['Cc'] = toEmailAddress(data.cc);
549
549
  }
550
550
 
551
+ if (typeof data.bcc !== 'undefined') {
552
+ data.headers['Bcc'] = toEmailAddress(data.bcc);
553
+ }
554
+
551
555
  // if (!data.headers['To']) {
552
556
  // throw new Error('Missing "To" e-mail address!');
553
557
  // }
@@ -856,6 +860,9 @@ function read(
856
860
  if (data.headers['Cc']) {
857
861
  result.cc = getEmailAddress(data.headers['Cc']);
858
862
  }
863
+ if (data.headers['Bcc']) {
864
+ result.bcc = getEmailAddress(data.headers['Bcc']);
865
+ }
859
866
  result.headers = data.headers;
860
867
 
861
868
  //Content mime type
package/src/interface.ts CHANGED
@@ -24,6 +24,7 @@ export interface ReadedEmlJson {
24
24
  from: EmailAddress | EmailAddress[] | null;
25
25
  to: EmailAddress | EmailAddress[] | null;
26
26
  cc?: EmailAddress | EmailAddress[] | null;
27
+ bcc?: EmailAddress | EmailAddress[] | null;
27
28
  headers: EmlHeaders;
28
29
  multipartAlternative?: {
29
30
  'Content-Type': string;
@@ -65,6 +66,7 @@ export interface EmlHeaders extends KeyValue {
65
66
  To?: string;
66
67
  Cc?: string;
67
68
  CC?: string;
69
+ Bcc?: string;
68
70
  'Content-Disposition'?: string | null;
69
71
  'Content-Type'?: string | null;
70
72
  'Content-Transfer-Encoding'?: string;