@fileverse-dev/ddoc 3.0.11 → 3.0.13
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-PVW2nFVp.mjs";
|
|
2
2
|
class S extends p {
|
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
|
4
4
|
var o;
|
|
@@ -93960,7 +93960,7 @@ async function vF(e, t) {
|
|
|
93960
93960
|
});
|
|
93961
93961
|
return ne === "0x" ? { data: void 0 } : { data: ne };
|
|
93962
93962
|
} catch (R) {
|
|
93963
|
-
const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93963
|
+
const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-CUmnwIYx.mjs");
|
|
93964
93964
|
if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
|
|
93965
93965
|
return { data: await H(e, { data: I, to: x }) };
|
|
93966
93966
|
throw B && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new WGt({ factory: f }) : cge(R, {
|
|
@@ -249530,6 +249530,7 @@ const jjn = Pt.create({
|
|
|
249530
249530
|
addOptions() {
|
|
249531
249531
|
return {
|
|
249532
249532
|
model: "",
|
|
249533
|
+
endpoint: "",
|
|
249533
249534
|
tone: "neutral",
|
|
249534
249535
|
maxTokens: 8,
|
|
249535
249536
|
temperature: 0.1,
|
|
@@ -249711,7 +249712,9 @@ const uoe = () => {
|
|
|
249711
249712
|
), q = Tse({
|
|
249712
249713
|
extensions: [Lbe, ...B6e],
|
|
249713
249714
|
content: "",
|
|
249714
|
-
editable: !0
|
|
249715
|
+
editable: !0,
|
|
249716
|
+
immediatelyRender: !1,
|
|
249717
|
+
shouldRerenderOnTransaction: !1
|
|
249715
249718
|
});
|
|
249716
249719
|
Ue(() => {
|
|
249717
249720
|
if (C) {
|
|
@@ -259480,7 +259483,8 @@ class oOn {
|
|
|
259480
259483
|
data: a,
|
|
259481
259484
|
roomKey: this.roomKey
|
|
259482
259485
|
}), a.statusCode !== 200) {
|
|
259483
|
-
|
|
259486
|
+
const d = a.err, f = new Error(d);
|
|
259487
|
+
f.name = "SocketHandshakeError", (u = this._onHandShakeError) == null || u.call(this, f);
|
|
259484
259488
|
return;
|
|
259485
259489
|
}
|
|
259486
259490
|
if (!a.is_handshake_response) {
|
|
@@ -259537,7 +259541,8 @@ class oOn {
|
|
|
259537
259541
|
async _sendNetworkRequest(t, n) {
|
|
259538
259542
|
var r;
|
|
259539
259543
|
if (this._webSocketStatus !== Io.CONNECTED || !this._webSocket) {
|
|
259540
|
-
|
|
259544
|
+
const o = new Error("Lost connection to websocket server");
|
|
259545
|
+
o.name = "SocketConnectionLostError", (r = this._onError) == null || r.call(this, o);
|
|
259541
259546
|
return;
|
|
259542
259547
|
}
|
|
259543
259548
|
return new Promise((o) => {
|
|
@@ -259687,7 +259692,10 @@ class oOn {
|
|
|
259687
259692
|
this._webSocketStatus = Io.CLOSED, (r = this._onDisconnection) == null || r.call(this, n);
|
|
259688
259693
|
}, this._webSocket.onerror = (n) => {
|
|
259689
259694
|
var r;
|
|
259690
|
-
console.error("SocketAPI: socket error", n), this._webSocketStatus = Io.CLOSED, this._webSocket && this._webSocket.retryCount === Yoe.maxRetries
|
|
259695
|
+
if (console.error("SocketAPI: socket error", n), this._webSocketStatus = Io.CLOSED, this._webSocket && this._webSocket.retryCount === Yoe.maxRetries) {
|
|
259696
|
+
const o = new Error("Failed to connect to Socket");
|
|
259697
|
+
o.name = "SocketConnectionFailedError", (r = this._onError) == null || r.call(this, o);
|
|
259698
|
+
}
|
|
259691
259699
|
};
|
|
259692
259700
|
});
|
|
259693
259701
|
}
|
|
@@ -261307,6 +261315,7 @@ const ERn = (e) => e.context.awareness, ARn = (e) => !!(e.context.isReady && e.c
|
|
|
261307
261315
|
),
|
|
261308
261316
|
jjn.configure({
|
|
261309
261317
|
model: C,
|
|
261318
|
+
endpoint: C.endpoint,
|
|
261310
261319
|
maxTokens: D,
|
|
261311
261320
|
temperature: 0.1,
|
|
261312
261321
|
tone: "neutral"
|
package/dist/index.es.js
CHANGED
|
@@ -48,7 +48,7 @@ export interface SyncMachineContext {
|
|
|
48
48
|
updated: number[];
|
|
49
49
|
removed: number[];
|
|
50
50
|
}) => void) | null;
|
|
51
|
-
onError: ((e:
|
|
51
|
+
onError: ((e: Error) => void) | null;
|
|
52
52
|
roomKey: string;
|
|
53
53
|
wsUrl: string;
|
|
54
54
|
uncommittedUpdatesIdList: string[];
|
|
@@ -121,9 +121,9 @@ export type Update = Uint8Array;
|
|
|
121
121
|
export interface ISocketInitConfig {
|
|
122
122
|
onConnect: ConnectHandler;
|
|
123
123
|
onDisconnect: DisconnectHandler;
|
|
124
|
-
onError: (err:
|
|
124
|
+
onError: (err: Error) => void;
|
|
125
125
|
onWsEvent: EventHandler;
|
|
126
|
-
onHandShakeError: (err:
|
|
126
|
+
onHandShakeError: (err: Error) => void;
|
|
127
127
|
roomId: string;
|
|
128
128
|
}
|
|
129
129
|
export declare enum SocketStatusEnum {
|