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/browser/n3.min.js +1 -1
- package/lib/N3Store.js +1 -1
- package/package.json +1 -1
- package/src/N3Store.js +1 -1
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
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
|
}
|