@bytezhang/ledger-adapter 0.0.17 → 0.0.18
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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1085,10 +1085,12 @@ function deviceActionToPromise(action, onInteraction) {
|
|
|
1085
1085
|
if (settled) return;
|
|
1086
1086
|
if (state.status === "completed") {
|
|
1087
1087
|
settled = true;
|
|
1088
|
+
onInteraction?.("interaction-complete");
|
|
1088
1089
|
sub?.unsubscribe();
|
|
1089
1090
|
resolve(state.output);
|
|
1090
1091
|
} else if (state.status === "error") {
|
|
1091
1092
|
settled = true;
|
|
1093
|
+
onInteraction?.("interaction-complete");
|
|
1092
1094
|
sub?.unsubscribe();
|
|
1093
1095
|
reject(state.error);
|
|
1094
1096
|
} else if (state.status === "pending" && onInteraction) {
|