@bbn/bbn 1.0.332 → 1.0.333

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.
@@ -90,10 +90,14 @@ export default function stream(url, success, data, failure, abort, finished) {
90
90
  return;
91
91
  }
92
92
  if (isFn_1) {
93
- json = arrayBuffer2String(value).trim();
93
+ json += arrayBuffer2String(value).trim();
94
94
  bbn.fn.log(["STREAM RESULT", json.length, json]);
95
95
  if (json) {
96
- treatJSON(json);
96
+ try {
97
+ treatJSON(json);
98
+ json = '';
99
+ }
100
+ catch (e) { }
97
101
  }
98
102
  else {
99
103
  success();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.332",
3
+ "version": "1.0.333",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",