podchat 12.5.3 → 12.5.4-snapshot.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/chat.js +10 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podchat",
3
- "version": "12.5.3",
3
+ "version": "12.5.4-snapshot.0",
4
4
  "description": "Javascript SDK to use POD's Chat Service",
5
5
  "main": "./src/chat.js",
6
6
  "scripts": {
@@ -39,7 +39,7 @@
39
39
  "indexeddbshim": "^3.10.0",
40
40
  "jsdom": "^18.0.0",
41
41
  "mime": "^2.4.4",
42
- "podasync": "^2.8.3",
42
+ "podasync": "^2.8.3-snapshot.1",
43
43
  "query-string": "^6.8.1",
44
44
  "request": "^2.88.0"
45
45
  },
package/src/chat.js CHANGED
@@ -10825,12 +10825,18 @@
10825
10825
  };
10826
10826
 
10827
10827
  if (!returnData.hasError) {
10828
- for(var i in result.result) {
10829
- stackArr.push(result.result[i]);
10830
- }
10828
+ // for(var i in result.result) {
10829
+ // stackArr.push(result.result[i]);
10830
+ // }
10831
+ stackArr.push(...result.result);
10831
10832
 
10832
10833
  consoleLogging && console.log("[SDK][exportChat] a step passed...");
10833
- wantedCount = wantedCount > result.contentCount ? result.contentCount : wantedCount;
10834
+ // wantedCount = wantedCount > result.contentCount ? result.contentCount : wantedCount;
10835
+
10836
+ if(result.result.length < stepCount) {
10837
+ wantedCount = stackArr.length
10838
+ }
10839
+
10834
10840
  setTimeout(function () {
10835
10841
  fireEvent('threadEvents', {
10836
10842
  type: 'EXPORT_CHAT',