Comparing version 0.5.14 to 0.5.15
@@ -19,2 +19,3 @@ import { CoreSet } from './CoreSet'; | ||
has(value: R, matchOnNodes?: boolean): boolean; | ||
delete(value: R): boolean; | ||
getProperties(includeFromIncomingArcs?: boolean): NodeSet<NamedNode>; | ||
@@ -21,0 +22,0 @@ getInverseProperties(): NodeSet<NamedNode>; |
@@ -27,2 +27,6 @@ "use strict"; | ||
} | ||
delete(value) { | ||
//if we can find a shape with the same node, delete that | ||
return super.delete(this.find(shape => shape.node === value.node)); | ||
} | ||
//we cannot use NamedNodeSet here because of requirement loops | ||
@@ -29,0 +33,0 @@ getProperties(includeFromIncomingArcs = false) { |
@@ -41,2 +41,7 @@ "use strict"; | ||
}); | ||
(0, globals_1.test)('you can remove identical shapes from it', () => { | ||
shapeSet.add(person1); | ||
shapeSet.delete(person1Identical); | ||
(0, globals_1.expect)(shapeSet.size).toBe(0); | ||
}); | ||
(0, globals_1.test)('has returns true for identical shapes', () => { | ||
@@ -43,0 +48,0 @@ shapeSet.add(person1); |
@@ -406,3 +406,5 @@ "use strict"; | ||
if (autoLoadOntologyData) { | ||
loadData(); | ||
loadData().catch(err => { | ||
console.warn("Could not load ontology data. Do you need to rebuild the module of the " + prefixAndFileName + " ontology?", err); | ||
}); | ||
} | ||
@@ -409,0 +411,0 @@ }; |
{ | ||
"name": "lincd", | ||
"license": "MPL-2.0", | ||
"version": "0.5.14", | ||
"version": "0.5.15", | ||
"description": "LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1378601
11807