cry-synced-db-client 0.1.74 → 0.1.75
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 +19 -5
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -4703,24 +4703,38 @@ function readStringJS(length) {
|
|
|
4703
4703
|
units.push(byte1);
|
|
4704
4704
|
} else if ((byte1 & 224) === 192) {
|
|
4705
4705
|
const byte2 = src[position++] & 63;
|
|
4706
|
-
|
|
4706
|
+
const codePoint = (byte1 & 31) << 6 | byte2;
|
|
4707
|
+
if (codePoint < 128) {
|
|
4708
|
+
units.push(65533);
|
|
4709
|
+
} else {
|
|
4710
|
+
units.push(codePoint);
|
|
4711
|
+
}
|
|
4707
4712
|
} else if ((byte1 & 240) === 224) {
|
|
4708
4713
|
const byte2 = src[position++] & 63;
|
|
4709
4714
|
const byte3 = src[position++] & 63;
|
|
4710
|
-
|
|
4715
|
+
const codePoint = (byte1 & 31) << 12 | byte2 << 6 | byte3;
|
|
4716
|
+
if (codePoint < 2048 || codePoint >= 55296 && codePoint <= 57343) {
|
|
4717
|
+
units.push(65533);
|
|
4718
|
+
} else {
|
|
4719
|
+
units.push(codePoint);
|
|
4720
|
+
}
|
|
4711
4721
|
} else if ((byte1 & 248) === 240) {
|
|
4712
4722
|
const byte2 = src[position++] & 63;
|
|
4713
4723
|
const byte3 = src[position++] & 63;
|
|
4714
4724
|
const byte4 = src[position++] & 63;
|
|
4715
4725
|
let unit = (byte1 & 7) << 18 | byte2 << 12 | byte3 << 6 | byte4;
|
|
4716
|
-
if (unit >
|
|
4726
|
+
if (unit < 65536 || unit > 1114111) {
|
|
4727
|
+
units.push(65533);
|
|
4728
|
+
} else if (unit > 65535) {
|
|
4717
4729
|
unit -= 65536;
|
|
4718
4730
|
units.push(unit >>> 10 & 1023 | 55296);
|
|
4719
4731
|
unit = 56320 | unit & 1023;
|
|
4732
|
+
units.push(unit);
|
|
4733
|
+
} else {
|
|
4734
|
+
units.push(unit);
|
|
4720
4735
|
}
|
|
4721
|
-
units.push(unit);
|
|
4722
4736
|
} else {
|
|
4723
|
-
units.push(
|
|
4737
|
+
units.push(65533);
|
|
4724
4738
|
}
|
|
4725
4739
|
if (units.length >= 4096) {
|
|
4726
4740
|
result += fromCharCode.apply(String, units);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cry-synced-db-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/bun": "latest",
|
|
29
|
-
"bson": "^7.
|
|
29
|
+
"bson": "^7.2.0",
|
|
30
30
|
"cry-ebus-proxy": "^1.0.3",
|
|
31
|
-
"dexie": "^4.
|
|
31
|
+
"dexie": "^4.4.1",
|
|
32
32
|
"fake-indexeddb": "^6.2.5",
|
|
33
|
-
"typescript": "^
|
|
34
|
-
"vitest": "^4.
|
|
33
|
+
"typescript": "^6",
|
|
34
|
+
"vitest": "^4.1.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"cry-db": "^2.4.
|
|
38
|
-
"cry-helpers": "^2.1.
|
|
39
|
-
"msgpackr": "^1.11.
|
|
37
|
+
"cry-db": "^2.4.23",
|
|
38
|
+
"cry-helpers": "^2.1.193",
|
|
39
|
+
"msgpackr": "^1.11.9",
|
|
40
40
|
"notepack": "^0.0.2",
|
|
41
41
|
"notepack.io": "^3.0.1",
|
|
42
42
|
"superjson": "^2.2.6",
|
|
43
|
-
"undici": "^7.
|
|
43
|
+
"undici": "^7.24.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"bson": "^6.0.0 || ^7.0.0",
|