@graffy/common 0.16.0-alpha.4 → 0.16.0-alpha.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/index.cjs +6 -2
- package/index.mjs +6 -2
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -1398,8 +1398,12 @@ const props = [
|
|
|
1398
1398
|
"children"
|
|
1399
1399
|
];
|
|
1400
1400
|
function serializeKey(key) {
|
|
1401
|
-
if (key[0] === STR)
|
|
1402
|
-
|
|
1401
|
+
if (key[0] === STR) {
|
|
1402
|
+
const last = key[key.length - 1];
|
|
1403
|
+
if (cmp(last, MIN_KEY) !== 0 && cmp(last, MAX_KEY) !== 0) {
|
|
1404
|
+
return decode$4(key);
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1403
1407
|
return "\0" + encode$1(key);
|
|
1404
1408
|
}
|
|
1405
1409
|
function deserializeKey(key) {
|
package/index.mjs
CHANGED
|
@@ -1393,8 +1393,12 @@ const props = [
|
|
|
1393
1393
|
"children"
|
|
1394
1394
|
];
|
|
1395
1395
|
function serializeKey(key) {
|
|
1396
|
-
if (key[0] === STR)
|
|
1397
|
-
|
|
1396
|
+
if (key[0] === STR) {
|
|
1397
|
+
const last = key[key.length - 1];
|
|
1398
|
+
if (cmp(last, MIN_KEY) !== 0 && cmp(last, MAX_KEY) !== 0) {
|
|
1399
|
+
return decode$4(key);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1398
1402
|
return "\0" + encode$1(key);
|
|
1399
1403
|
}
|
|
1400
1404
|
function deserializeKey(key) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/common",
|
|
3
3
|
"description": "Common libraries that used by various Graffy modules.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.16.0-alpha.
|
|
5
|
+
"version": "0.16.0-alpha.5",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"lodash": "^4.17.19",
|
|
20
20
|
"merge-async-iterators": "^0.2.1",
|
|
21
|
-
"@graffy/stream": "0.16.0-alpha.
|
|
21
|
+
"@graffy/stream": "0.16.0-alpha.5"
|
|
22
22
|
}
|
|
23
23
|
}
|