@graffy/fill 0.17.8-alpha.2 → 0.17.8-alpha.3

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 +4 -4
package/index.cjs CHANGED
@@ -82,7 +82,7 @@ function subscribe(store, originalQuery, { raw }) {
82
82
  }
83
83
  if (unknown) return resubscribe(unknown);
84
84
  if (!raw) {
85
- if (!isChange || (sieved == null ? void 0 : sieved.length)) push(data);
85
+ if (!isChange || sieved?.length) push(data);
86
86
  } else if (payload.length) {
87
87
  push(payload);
88
88
  payload = [];
@@ -103,7 +103,7 @@ function fill(_) {
103
103
  store.on("read", [], async function fillOnRead(query, options, next) {
104
104
  let value = await next(query);
105
105
  if (options.skipFill) return value;
106
- if (!(value == null ? void 0 : value.length)) {
106
+ if (!value?.length) {
107
107
  log("No progress", query);
108
108
  throw Error("fill.no_progress");
109
109
  }
package/index.mjs CHANGED
@@ -81,7 +81,7 @@ function subscribe(store, originalQuery, { raw }) {
81
81
  }
82
82
  if (unknown) return resubscribe(unknown);
83
83
  if (!raw) {
84
- if (!isChange || (sieved == null ? void 0 : sieved.length)) push(data);
84
+ if (!isChange || sieved?.length) push(data);
85
85
  } else if (payload.length) {
86
86
  push(payload);
87
87
  payload = [];
@@ -102,7 +102,7 @@ function fill(_) {
102
102
  store.on("read", [], async function fillOnRead(query, options, next) {
103
103
  let value = await next(query);
104
104
  if (options.skipFill) return value;
105
- if (!(value == null ? void 0 : value.length)) {
105
+ if (!value?.length) {
106
106
  log("No progress", query);
107
107
  throw Error("fill.no_progress");
108
108
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/fill",
3
3
  "description": "Graffy module for fulfilling queries using multiple backends, traversing links and turning subscriptions into live queries.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.17.8-alpha.2",
5
+ "version": "0.17.8-alpha.3",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.17.8-alpha.2",
20
- "debug": "^4.4.1",
21
- "@graffy/stream": "0.17.8-alpha.2"
19
+ "@graffy/common": "0.17.8-alpha.3",
20
+ "debug": "^4.4.3",
21
+ "@graffy/stream": "0.17.8-alpha.3"
22
22
  }
23
23
  }