@thi.ng/rstream-query 2.1.206 → 2.1.207

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 211 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-query",
3
- "version": "2.1.206",
3
+ "version": "2.1.207",
4
4
  "description": "@thi.ng/rstream based triple store & reactive query engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,16 +39,16 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.9",
43
- "@thi.ng/associative": "^7.1.20",
44
- "@thi.ng/checks": "^3.7.25",
45
- "@thi.ng/equiv": "^2.1.99",
46
- "@thi.ng/errors": "^2.5.49",
47
- "@thi.ng/logger": "^3.2.8",
48
- "@thi.ng/math": "^5.13.6",
49
- "@thi.ng/rstream": "^9.3.7",
50
- "@thi.ng/rstream-dot": "^3.0.156",
51
- "@thi.ng/transducers": "^9.6.18"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/associative": "^7.1.21",
44
+ "@thi.ng/checks": "^3.8.0",
45
+ "@thi.ng/equiv": "^2.1.100",
46
+ "@thi.ng/errors": "^2.5.50",
47
+ "@thi.ng/logger": "^3.2.9",
48
+ "@thi.ng/math": "^5.14.0",
49
+ "@thi.ng/rstream": "^9.3.8",
50
+ "@thi.ng/rstream-dot": "^3.0.157",
51
+ "@thi.ng/transducers": "^9.6.19"
52
52
  },
53
53
  "devDependencies": {
54
54
  "esbuild": "^0.27.0",
@@ -111,5 +111,5 @@
111
111
  "parent": "@thi.ng/rstream",
112
112
  "year": 2018
113
113
  },
114
- "gitHead": "fdca77cabf47dd23a9ab17a5ca13e3060075c12c\n"
114
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
115
115
  }
package/store.js CHANGED
@@ -62,7 +62,7 @@ class TripleStore {
62
62
  }
63
63
  }
64
64
  *[Symbol.iterator]() {
65
- for (let t of this.triples) {
65
+ for (const t of this.triples) {
66
66
  if (t) {
67
67
  yield t;
68
68
  }
@@ -102,7 +102,7 @@ class TripleStore {
102
102
  }
103
103
  into(triples) {
104
104
  let ok = true;
105
- for (let f of triples) {
105
+ for (const f of triples) {
106
106
  ok = this.add(f) && ok;
107
107
  }
108
108
  return ok;
@@ -212,7 +212,7 @@ class TripleStore {
212
212
  return query.transform(
213
213
  map((triples) => {
214
214
  const res = /* @__PURE__ */ new Set();
215
- for (let f of triples) {
215
+ for (const f of triples) {
216
216
  res.add(resolve(f));
217
217
  }
218
218
  return res;
@@ -287,7 +287,7 @@ class TripleStore {
287
287
  addQueryFromSpec(spec) {
288
288
  let query;
289
289
  let curr;
290
- for (let q of spec.q) {
290
+ for (const q of spec.q) {
291
291
  if (__isWhereQuery(q)) {
292
292
  curr = this.addMultiJoin(this.addParamQueries(q.where));
293
293
  } else if (__isPathQuery(q)) {
@@ -325,7 +325,7 @@ class TripleStore {
325
325
  if (s && p && o) {
326
326
  const triples = this.triples;
327
327
  const index = [s, p, o][min3id(s.size, p.size, o.size)];
328
- for (let id of index) {
328
+ for (const id of index) {
329
329
  if (equiv(triples[id], f)) {
330
330
  return id;
331
331
  }
package/xforms.js CHANGED
@@ -24,7 +24,7 @@ const indexSel = (key) => (rfn) => {
24
24
  };
25
25
  const resultTriples = (graph) => map((ids) => {
26
26
  const res = /* @__PURE__ */ new Set();
27
- for (let id of ids) res.add(graph.triples[id]);
27
+ for (const id of ids) res.add(graph.triples[id]);
28
28
  return res;
29
29
  });
30
30
  const joinSolutions = (n) => map((src) => {
@@ -38,7 +38,7 @@ const filterSolutions = (qvars) => {
38
38
  const filterVars = keySelector([...qvars]);
39
39
  return map((sol) => {
40
40
  const res = /* @__PURE__ */ new Set();
41
- for (let s of sol) {
41
+ for (const s of sol) {
42
42
  res.add(filterVars(s));
43
43
  }
44
44
  return res;
@@ -50,7 +50,7 @@ const limitSolutions = (n) => map((sol) => {
50
50
  }
51
51
  const res = /* @__PURE__ */ new Set();
52
52
  let m = n;
53
- for (let s of sol) {
53
+ for (const s of sol) {
54
54
  res.add(s);
55
55
  if (--m <= 0) break;
56
56
  }
@@ -61,7 +61,7 @@ const bindVars = (bindings) => map((sol) => {
61
61
  for (let s of sol) {
62
62
  s = { ...s };
63
63
  res.add(s);
64
- for (let b in bindings) {
64
+ for (const b in bindings) {
65
65
  s[b] = bindings[b](s);
66
66
  }
67
67
  }