n3 1.17.0 → 1.17.1

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/N3Writer.js CHANGED
@@ -40,8 +40,8 @@ const escape = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,
40
40
  class SerializedTerm extends _N3DataFactory.Term {
41
41
  // Pretty-printed nodes are not equal to any other node
42
42
  // (e.g., [] does not equal [])
43
- equals() {
44
- return false;
43
+ equals(other) {
44
+ return other === this;
45
45
  }
46
46
 
47
47
  } // ## Constructor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n3",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
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/N3Writer.js CHANGED
@@ -19,8 +19,8 @@ const escape = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,
19
19
  class SerializedTerm extends Term {
20
20
  // Pretty-printed nodes are not equal to any other node
21
21
  // (e.g., [] does not equal [])
22
- equals() {
23
- return false;
22
+ equals(other) {
23
+ return other === this;
24
24
  }
25
25
  }
26
26