@graffy/fill 0.15.25-alpha.1 → 0.15.25-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.
- package/index.cjs +7 -9
- package/index.mjs +4 -2
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var debug__default = /* @__PURE__ */ _interopDefaultLegacy(debug);
|
|
9
|
-
const log$1 = debug__default["default"]("graffy:fill:subscribe");
|
|
2
|
+
const common = require("@graffy/common");
|
|
3
|
+
const stream = require("@graffy/stream");
|
|
4
|
+
const debug = require("debug");
|
|
5
|
+
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
6
|
+
const debug__default = /* @__PURE__ */ _interopDefaultLegacy(debug);
|
|
7
|
+
const log$1 = debug__default.default("graffy:fill:subscribe");
|
|
10
8
|
function subscribe(store, originalQuery, { raw }) {
|
|
11
9
|
const empty = () => common.finalize([], originalQuery, 0);
|
|
12
10
|
let push, end;
|
|
@@ -109,7 +107,7 @@ function subscribe(store, originalQuery, { raw }) {
|
|
|
109
107
|
upstream.return();
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
|
-
const log = debug__default
|
|
110
|
+
const log = debug__default.default("graffy:fill");
|
|
113
111
|
const MAX_RECURSIONS = 10;
|
|
114
112
|
function fill(_) {
|
|
115
113
|
return (store) => {
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { add, sieve, slice, merge, finalize } from "@graffy/common";
|
|
2
2
|
import { makeStream } from "@graffy/stream";
|
|
3
3
|
import debug from "debug";
|
|
4
4
|
const log$1 = debug("graffy:fill:subscribe");
|
|
@@ -138,4 +138,6 @@ function fill(_) {
|
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
export {
|
|
141
|
+
export {
|
|
142
|
+
fill as default
|
|
143
|
+
};
|
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.15.25-alpha.
|
|
5
|
+
"version": "0.15.25-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.15.25-alpha.
|
|
19
|
+
"@graffy/common": "0.15.25-alpha.3",
|
|
20
20
|
"debug": "^4.3.3",
|
|
21
|
-
"@graffy/stream": "0.15.25-alpha.
|
|
21
|
+
"@graffy/stream": "0.15.25-alpha.3"
|
|
22
22
|
}
|
|
23
23
|
}
|