@thi.ng/oquery 2.3.36 → 2.3.37

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-09-01T16:38:35Z
3
+ - **Last updated**: 2025-09-25T11:10:32Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -89,7 +89,7 @@ For Node.js REPL:
89
89
  const oq = await import("@thi.ng/oquery");
90
90
  ```
91
91
 
92
- Package sizes (brotli'd, pre-treeshake): ESM: 1.69 KB
92
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.70 KB
93
93
 
94
94
  ## Dependencies
95
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/oquery",
3
- "version": "2.3.36",
3
+ "version": "2.3.37",
4
4
  "description": "Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays of objects",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -99,5 +99,5 @@
99
99
  ],
100
100
  "year": 2020
101
101
  },
102
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
102
+ "gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
103
103
  }
package/query.js CHANGED
@@ -278,7 +278,7 @@ const DEFAULT_OPTS = {
278
278
  };
279
279
  const defQuery = (opts) => {
280
280
  const $opts = { ...DEFAULT_OPTS, ...opts };
281
- return (src, ...args) => {
281
+ return ((src, ...args) => {
282
282
  if (isArray(src)) {
283
283
  const out = args[2] || [];
284
284
  __arrayQuery(src, $opts, args[0], args[1], (x) => out.push(x));
@@ -286,11 +286,11 @@ const defQuery = (opts) => {
286
286
  } else {
287
287
  return __objQuery(src, $opts, args);
288
288
  }
289
- };
289
+ });
290
290
  };
291
291
  const defKeyQuery = (opts) => {
292
292
  const $opts = { ...DEFAULT_OPTS, ...opts };
293
- return (src, ...args) => {
293
+ return ((src, ...args) => {
294
294
  if (isArray(src)) {
295
295
  const out = args[2] || /* @__PURE__ */ new Set();
296
296
  __arrayQuery(src, $opts, args[0], args[1], (_, i) => out.add(i));
@@ -302,7 +302,7 @@ const defKeyQuery = (opts) => {
302
302
  for (let k in res) out.add(k);
303
303
  return out;
304
304
  }
305
- };
305
+ });
306
306
  };
307
307
  const query = (db, terms, opts = {}) => {
308
308
  for (let term of terms) {