n3 1.24.1 → 1.24.2

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/lib/N3Store.js CHANGED
@@ -579,7 +579,7 @@ class N3Store {
579
579
  // and returns `true` if it returns truthy for any of them.
580
580
  // Setting any field to `undefined` or `null` indicates a wildcard.
581
581
  some(callback, subject, predicate, object, graph) {
582
- for (const quad of this.readQuads(subject, predicate, object, graph)) if (callback(quad)) return true;
582
+ for (const quad of this.readQuads(subject, predicate, object, graph)) if (callback(quad, this)) return true;
583
583
  return false;
584
584
  }
585
585
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n3",
3
- "version": "1.24.1",
3
+ "version": "1.24.2",
4
4
  "description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.",
5
5
  "author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
6
6
  "keywords": [
package/src/N3Store.js CHANGED
@@ -601,7 +601,7 @@ export default class N3Store {
601
601
  // Setting any field to `undefined` or `null` indicates a wildcard.
602
602
  some(callback, subject, predicate, object, graph) {
603
603
  for (const quad of this.readQuads(subject, predicate, object, graph))
604
- if (callback(quad))
604
+ if (callback(quad, this))
605
605
  return true;
606
606
  return false;
607
607
  }