@ikonintegration/ikapi 4.0.0-alpha13 → 4.0.0-alpha15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "4.0.0-alpha13",
3
+ "version": "4.0.0-alpha15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -1,5 +1,5 @@
1
- import IKDBBaseQuery from './IKDBBaseQuery.js';
2
1
  import Utils from './../../API/IKUtils.js';
2
+ import IKDBBaseQuery from './IKDBBaseQuery.js';
3
3
  //
4
4
  export default class IKDBQueryScan extends IKDBBaseQuery {
5
5
  constructor(optIndexName) {
@@ -12,7 +12,7 @@ export default class IKDBQueryScan extends IKDBBaseQuery {
12
12
  const resp = await this.rawRun(dbManager, appendingItems);
13
13
  if (resp.Items) {
14
14
  let unmarshalled = Utils.decapsulateForDB(resp.Items);
15
- localConsole.debug('Parsed result: ', unmarshalled);
15
+ localConsole.debug('Parsed result: ', unmarshalled.substring(0,4000));
16
16
  //Check for appending items from previous query
17
17
  if (appendingItems && appendingItems.length > 0) {
18
18
  unmarshalled = unmarshalled.concat(appendingItems);
@@ -22,10 +22,11 @@ export default class IKMailer {
22
22
  }
23
23
 
24
24
  //to can be an array or just one address
25
- async sendTemplatedEmail(_to, _templates, _data, _optionalCC, _optionalAttachments) {
25
+ async sendTemplatedEmail(_to, _templates, _data, _optionalCC, _optionalAttachments, _optionalHeaders) {
26
26
  //Generate emails
27
27
  const email = new Email({
28
28
  message: {
29
+ ...(_optionalHeaders ? {headers: _optionalHeaders} : {}),
29
30
  from: this.from,
30
31
  to: _to,
31
32
  ...(_optionalAttachments ? {attachments: _optionalAttachments} : {}),