n3 2.11.4 → 2.11.5

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/N3Reasoner.js CHANGED
@@ -154,7 +154,7 @@ class N3Reasoner {
154
154
  premise,
155
155
  conclusion
156
156
  }) {
157
- const varMapping = {};
157
+ const varMapping = Object.create(null);
158
158
  const toId = value => value.termType === 'Variable' ?
159
159
  // If the term is a variable, then create an empty object that values can be placed into
160
160
  varMapping[value.value] = varMapping[value.value] || {} :
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n3",
3
- "version": "2.11.4",
3
+ "version": "2.11.5",
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/N3Reasoner.js CHANGED
@@ -156,7 +156,7 @@ export default class N3Reasoner {
156
156
  }
157
157
 
158
158
  _createRule({ premise, conclusion }) {
159
- const varMapping = {};
159
+ const varMapping = Object.create(null);
160
160
 
161
161
  const toId = value => value.termType === 'Variable' ?
162
162
  // If the term is a variable, then create an empty object that values can be placed into