@graffy/common 0.15.10 → 0.15.12-alpha.1
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 +4 -0
- package/index.mjs +4 -0
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -1364,9 +1364,13 @@ function encode(value, { version, isGraph } = {}) {
|
|
|
1364
1364
|
if (children.length) {
|
|
1365
1365
|
node.children = children;
|
|
1366
1366
|
} else if (isGraph) {
|
|
1367
|
+
if (!isDef($key) && !isDef($put))
|
|
1368
|
+
return;
|
|
1367
1369
|
if (node.key && !node.end)
|
|
1368
1370
|
node.end = node.key;
|
|
1369
1371
|
} else {
|
|
1372
|
+
if (!isDef($key))
|
|
1373
|
+
return;
|
|
1370
1374
|
node.value = 1;
|
|
1371
1375
|
}
|
|
1372
1376
|
}
|
package/index.mjs
CHANGED
|
@@ -1356,9 +1356,13 @@ function encode(value, { version, isGraph } = {}) {
|
|
|
1356
1356
|
if (children.length) {
|
|
1357
1357
|
node.children = children;
|
|
1358
1358
|
} else if (isGraph) {
|
|
1359
|
+
if (!isDef($key) && !isDef($put))
|
|
1360
|
+
return;
|
|
1359
1361
|
if (node.key && !node.end)
|
|
1360
1362
|
node.end = node.key;
|
|
1361
1363
|
} else {
|
|
1364
|
+
if (!isDef($key))
|
|
1365
|
+
return;
|
|
1362
1366
|
node.value = 1;
|
|
1363
1367
|
}
|
|
1364
1368
|
}
|
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.15.
|
|
5
|
+
"version": "0.15.12-alpha.1",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"lodash": "^4.17.19",
|
|
20
|
-
"nanoid": "^3.1.25",
|
|
21
20
|
"merge-async-iterators": "^0.2.1",
|
|
22
|
-
"
|
|
21
|
+
"nanoid": "^3.1.25",
|
|
22
|
+
"@graffy/stream": "0.15.12-alpha.1"
|
|
23
23
|
}
|
|
24
24
|
}
|