@graffy/common 0.16.13-alpha.1 → 0.16.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.
Files changed (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.mjs +2 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -1264,7 +1264,7 @@ function decorate(rootGraph, rootQuery) {
1264
1264
  return children.filter((node) => !isRange(node)).map((node) => {
1265
1265
  const $key2 = decode$3(node);
1266
1266
  const subResult = construct(getValue(node), subQuery);
1267
- if (typeof subResult === "object") {
1267
+ if (typeof subResult === "object" && subResult) {
1268
1268
  subResult.$key = children[PRE] && !isMinKey(children[PRE]) ? { ...children[PRE], $cursor: $key2 } : $key2;
1269
1269
  }
1270
1270
  return subResult;
@@ -1319,7 +1319,7 @@ function decorate(rootGraph, rootQuery) {
1319
1319
  let result2;
1320
1320
  if (node.path) {
1321
1321
  result2 = unwrap(rootGraph, node.path);
1322
- if (typeof result2 === "object")
1322
+ if (typeof result2 === "object" && result2)
1323
1323
  result2[REF] = node.path;
1324
1324
  } else {
1325
1325
  result2 = getNodeValue(node);
package/index.mjs CHANGED
@@ -1262,7 +1262,7 @@ function decorate(rootGraph, rootQuery) {
1262
1262
  return children.filter((node) => !isRange(node)).map((node) => {
1263
1263
  const $key2 = decode$3(node);
1264
1264
  const subResult = construct(getValue(node), subQuery);
1265
- if (typeof subResult === "object") {
1265
+ if (typeof subResult === "object" && subResult) {
1266
1266
  subResult.$key = children[PRE] && !isMinKey(children[PRE]) ? { ...children[PRE], $cursor: $key2 } : $key2;
1267
1267
  }
1268
1268
  return subResult;
@@ -1317,7 +1317,7 @@ function decorate(rootGraph, rootQuery) {
1317
1317
  let result2;
1318
1318
  if (node.path) {
1319
1319
  result2 = unwrap(rootGraph, node.path);
1320
- if (typeof result2 === "object")
1320
+ if (typeof result2 === "object" && result2)
1321
1321
  result2[REF] = node.path;
1322
1322
  } else {
1323
1323
  result2 = getNodeValue(node);
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.13-alpha.1",
5
+ "version": "0.16.13",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -19,6 +19,6 @@
19
19
  "lodash": "^4.17.19",
20
20
  "debug": "^4.3.3",
21
21
  "merge-async-iterators": "^0.2.1",
22
- "@graffy/stream": "0.16.13-alpha.1"
22
+ "@graffy/stream": "0.16.13"
23
23
  }
24
24
  }