total5 0.0.18-3 → 0.0.18-5
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/flow-flowstream.js +2 -2
- package/flowstream.js +1 -2
- package/package.json +1 -1
package/flow-flowstream.js
CHANGED
|
@@ -1914,9 +1914,9 @@ exports.client = function(flow, socket) {
|
|
|
1914
1914
|
|
|
1915
1915
|
function MAKEFLOWSTREAM(meta) {
|
|
1916
1916
|
|
|
1917
|
-
var flow = F.TFlowStream.create(meta.id, function(err, type, componentid) {
|
|
1917
|
+
var flow = F.TFlowStream.create(meta.id, function(err, type, componentid, instanceid) {
|
|
1918
1918
|
if (isFLOWSTREAMWORKER) {
|
|
1919
|
-
Parent.postMessage({ TYPE: 'stream/error', error: err.toString(), stack: err.stack, source: type, component: componentid });
|
|
1919
|
+
Parent.postMessage({ TYPE: 'stream/error', error: err.toString(), stack: err.stack, source: type, id: instanceid, component: componentid });
|
|
1920
1920
|
} else {
|
|
1921
1921
|
this.$instance.onerror(err, type, null, componentid, err.stack);
|
|
1922
1922
|
}
|
package/flowstream.js
CHANGED
|
@@ -1730,7 +1730,6 @@ function sendmessage(instance, message, event) {
|
|
|
1730
1730
|
try {
|
|
1731
1731
|
|
|
1732
1732
|
var is = false;
|
|
1733
|
-
|
|
1734
1733
|
var key = 'message_' + message.input;
|
|
1735
1734
|
|
|
1736
1735
|
if (instance[key]) {
|
|
@@ -1747,7 +1746,7 @@ function sendmessage(instance, message, event) {
|
|
|
1747
1746
|
message.destroy();
|
|
1748
1747
|
|
|
1749
1748
|
} catch (e) {
|
|
1750
|
-
instance.main.error(e, 'instance_message', message.
|
|
1749
|
+
instance.main.error(e, 'instance_message', message.tocomponent, message.toid);
|
|
1751
1750
|
message.destroy();
|
|
1752
1751
|
}
|
|
1753
1752
|
}
|