@twintag/twintag-core 0.2.290 → 0.2.291

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.
@@ -204,7 +204,7 @@ class IndexedDbService {
204
204
  /**
205
205
  * The SDK version.
206
206
  */
207
- const VERSION = '0.0.0-VERSION';
207
+ const VERSION = '0.2.291';
208
208
 
209
209
  class TwintagErrorValue {
210
210
  }
@@ -652,15 +652,19 @@ class ListObject {
652
652
  data[key] = new Date(dateTimeInMilliSeconds - tzoffset).toISOString().split('T').join(' ').split('.')[0];
653
653
  }
654
654
  else if (value && typeof value === 'object') {
655
+ const file = Object.create(null);
656
+ if (value.url) {
657
+ file.url = value.url;
658
+ }
659
+ else {
660
+ file.name = value.name;
661
+ file.size = value.size;
662
+ file.fileContent = value.fileContent;
663
+ }
655
664
  fileType.push({
656
665
  apiName: key,
657
- file: data[key],
666
+ file,
658
667
  });
659
- data[key] = {
660
- name: value.name,
661
- size: value.size,
662
- fileContent: value.fileContent
663
- };
664
668
  }
665
669
  });
666
670
  return fileType;
@@ -2,4 +2,4 @@
2
2
  /**
3
3
  * The library version.
4
4
  */
5
- export const VERSION = '0.2.290';
5
+ export const VERSION = '0.2.291';
@@ -200,7 +200,7 @@ class IndexedDbService {
200
200
  /**
201
201
  * The SDK version.
202
202
  */
203
- const VERSION = '0.0.0-VERSION';
203
+ const VERSION = '0.2.291';
204
204
 
205
205
  class TwintagErrorValue {
206
206
  }
@@ -648,15 +648,19 @@ class ListObject {
648
648
  data[key] = new Date(dateTimeInMilliSeconds - tzoffset).toISOString().split('T').join(' ').split('.')[0];
649
649
  }
650
650
  else if (value && typeof value === 'object') {
651
+ const file = Object.create(null);
652
+ if (value.url) {
653
+ file.url = value.url;
654
+ }
655
+ else {
656
+ file.name = value.name;
657
+ file.size = value.size;
658
+ file.fileContent = value.fileContent;
659
+ }
651
660
  fileType.push({
652
661
  apiName: key,
653
- file: data[key],
662
+ file,
654
663
  });
655
- data[key] = {
656
- name: value.name,
657
- size: value.size,
658
- fileContent: value.fileContent
659
- };
660
664
  }
661
665
  });
662
666
  return fileType;
@@ -200,7 +200,7 @@ class IndexedDbService {
200
200
  /**
201
201
  * The SDK version.
202
202
  */
203
- const VERSION = '0.0.0-VERSION';
203
+ const VERSION = '0.2.291';
204
204
 
205
205
  class TwintagErrorValue {
206
206
  }
@@ -648,15 +648,19 @@ class ListObject {
648
648
  data[key] = new Date(dateTimeInMilliSeconds - tzoffset).toISOString().split('T').join(' ').split('.')[0];
649
649
  }
650
650
  else if (value && typeof value === 'object') {
651
+ const file = Object.create(null);
652
+ if (value.url) {
653
+ file.url = value.url;
654
+ }
655
+ else {
656
+ file.name = value.name;
657
+ file.size = value.size;
658
+ file.fileContent = value.fileContent;
659
+ }
651
660
  fileType.push({
652
661
  apiName: key,
653
- file: data[key],
662
+ file,
654
663
  });
655
- data[key] = {
656
- name: value.name,
657
- size: value.size,
658
- fileContent: value.fileContent
659
- };
660
664
  }
661
665
  });
662
666
  return fileType;