@arinova-ai/spaces-sdk 0.1.4 → 0.1.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/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111,10 +111,12 @@ export class Arinova {
|
|
|
111
111
|
}
|
|
112
112
|
}, timeout);
|
|
113
113
|
const handler = (event) => {
|
|
114
|
+
console.log("[ARINOVA-SDK] message received", event.data?.type, { settled, hasPayload: !!event.data?.payload });
|
|
114
115
|
if (event.data?.type !== "arinova:auth")
|
|
115
116
|
return;
|
|
116
117
|
if (settled)
|
|
117
118
|
return;
|
|
119
|
+
console.log("[ARINOVA-SDK] arinova:auth matched, resolving connect()");
|
|
118
120
|
settled = true;
|
|
119
121
|
clearTimeout(timer);
|
|
120
122
|
window.removeEventListener("message", handler);
|
|
@@ -123,6 +125,7 @@ export class Arinova {
|
|
|
123
125
|
resolve(payload);
|
|
124
126
|
};
|
|
125
127
|
window.addEventListener("message", handler);
|
|
128
|
+
console.log("[ARINOVA-SDK] connect() listener registered, waiting for arinova:auth...");
|
|
126
129
|
});
|
|
127
130
|
}
|
|
128
131
|
/**
|