@bbn/bbn 1.0.324 → 1.0.325

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.
@@ -61,6 +61,9 @@ export default function stream(url, success, data, failure, abort) {
61
61
  // Do something with last chunk of data then exit reader
62
62
  _deleteLoader(requestId, data);
63
63
  defaultEndLoadingFunction(url, tst, data);
64
+ if (json) {
65
+ throw new Error('Stream ended with data: ' + json);
66
+ }
64
67
  return;
65
68
  }
66
69
  bbn.fn.log(["STREAM SUCCESS IS FN: " + isFn_1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.324",
3
+ "version": "1.0.325",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",