@yorkie-js/react 0.6.13 → 0.6.15
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.
|
@@ -5,7 +5,7 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { createContext, useMemo, useState, useEffect, useContext, useCallback } from "react";
|
|
7
7
|
const name$1 = "@yorkie-js/react";
|
|
8
|
-
const version$1 = "0.6.
|
|
8
|
+
const version$1 = "0.6.15";
|
|
9
9
|
const pkg$1 = {
|
|
10
10
|
name: name$1,
|
|
11
11
|
version: version$1
|
|
@@ -17437,8 +17437,12 @@ class CRDTRoot {
|
|
|
17437
17437
|
});
|
|
17438
17438
|
addDataSizes(this.docSize.live, element.getDataSize());
|
|
17439
17439
|
if (element instanceof CRDTContainer) {
|
|
17440
|
-
element.getDescendants((elem,
|
|
17441
|
-
this.
|
|
17440
|
+
element.getDescendants((elem, par) => {
|
|
17441
|
+
this.elementPairMapByCreatedAt.set(elem.getCreatedAt().toIDString(), {
|
|
17442
|
+
parent: par,
|
|
17443
|
+
element: elem
|
|
17444
|
+
});
|
|
17445
|
+
addDataSizes(this.docSize.live, elem.getDataSize());
|
|
17442
17446
|
return false;
|
|
17443
17447
|
});
|
|
17444
17448
|
}
|
|
@@ -20742,7 +20746,7 @@ function createAuthInterceptor(apiKey, token) {
|
|
|
20742
20746
|
};
|
|
20743
20747
|
}
|
|
20744
20748
|
const name = "@yorkie-js/sdk";
|
|
20745
|
-
const version = "0.6.
|
|
20749
|
+
const version = "0.6.15";
|
|
20746
20750
|
const pkg = {
|
|
20747
20751
|
name,
|
|
20748
20752
|
version
|
|
@@ -20870,7 +20874,7 @@ class Client {
|
|
|
20870
20874
|
clientKey: this.key,
|
|
20871
20875
|
metadata: this.metadata
|
|
20872
20876
|
},
|
|
20873
|
-
{ headers: { "x-shard-key": this.apiKey } }
|
|
20877
|
+
{ headers: { "x-shard-key": `${this.apiKey}/${this.key}` } }
|
|
20874
20878
|
);
|
|
20875
20879
|
this.id = res.clientId;
|
|
20876
20880
|
this.status = "activated";
|
|
@@ -20904,7 +20908,7 @@ class Client {
|
|
|
20904
20908
|
try {
|
|
20905
20909
|
await this.rpcClient.deactivateClient(
|
|
20906
20910
|
{ clientId: this.id },
|
|
20907
|
-
{ headers: { "x-shard-key": this.apiKey } }
|
|
20911
|
+
{ headers: { "x-shard-key": `${this.apiKey}/${this.key}` } }
|
|
20908
20912
|
);
|
|
20909
20913
|
this.deactivateInternal();
|
|
20910
20914
|
logger.info(`[DC] c"${this.getKey()}" deactivated`);
|