@eyepop.ai/eyepop 3.26.0-rc.0 → 3.26.0-rc.2
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/eyepop.index.js
CHANGED
|
@@ -9051,7 +9051,7 @@ var Endpoint = class {
|
|
|
9051
9051
|
this._expire_token_time = null;
|
|
9052
9052
|
this._client = null;
|
|
9053
9053
|
this._statusRetryHandlers = /* @__PURE__ */ new Map();
|
|
9054
|
-
this._statusRetryHandlers.set(401, this.statusHandler401);
|
|
9054
|
+
this._statusRetryHandlers.set(401, (statusCode) => this.statusHandler401(statusCode));
|
|
9055
9055
|
this._limit = new Semaphore(this._options.jobQueueLength ?? 1024);
|
|
9056
9056
|
this._state = "Idle" /* Idle */;
|
|
9057
9057
|
this._message = null;
|
|
@@ -9067,7 +9067,7 @@ var Endpoint = class {
|
|
|
9067
9067
|
}
|
|
9068
9068
|
setStatusRetryHandlers(statusRetryHandlers = void 0) {
|
|
9069
9069
|
this._statusRetryHandlers = new Map(statusRetryHandlers);
|
|
9070
|
-
this._statusRetryHandlers.set(401, this.statusHandler401);
|
|
9070
|
+
this._statusRetryHandlers.set(401, (statusCode) => this.statusHandler401(statusCode));
|
|
9071
9071
|
}
|
|
9072
9072
|
eyepopUrl() {
|
|
9073
9073
|
if (this._options.eyepopUrl) {
|
|
@@ -12136,6 +12136,10 @@ var PipelineBackend = class {
|
|
|
12136
12136
|
command(socket, message) {
|
|
12137
12137
|
const id = this.newId(message["type"]);
|
|
12138
12138
|
return new Promise((resolve, reject) => {
|
|
12139
|
+
if (!socket.open) {
|
|
12140
|
+
reject(new PipelineSocketClosedError(void 0, "the socket closed"));
|
|
12141
|
+
return;
|
|
12142
|
+
}
|
|
12139
12143
|
socket.commands.set(id, { resolve, reject });
|
|
12140
12144
|
socket.sendJson({ ...message, id });
|
|
12141
12145
|
});
|