@startinblox/core 0.19.13 → 0.19.14
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/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11311,7 +11311,11 @@ class Store {
|
|
|
11311
11311
|
this.resolveResource = function(id2, resolve2) {
|
|
11312
11312
|
const handler = function(event) {
|
|
11313
11313
|
if (event.detail.id === id2) {
|
|
11314
|
-
|
|
11314
|
+
if (event.detail.resource) {
|
|
11315
|
+
resolve2(event.detail.resource);
|
|
11316
|
+
} else {
|
|
11317
|
+
resolve2(event.detail.fetchedResource);
|
|
11318
|
+
}
|
|
11315
11319
|
document.removeEventListener("resourceReady", handler);
|
|
11316
11320
|
}
|
|
11317
11321
|
};
|
|
@@ -11374,13 +11378,13 @@ class Store {
|
|
|
11374
11378
|
}
|
|
11375
11379
|
if (!resource) {
|
|
11376
11380
|
this.loadingList.delete(key);
|
|
11377
|
-
|
|
11381
|
+
document.dispatchEvent(new CustomEvent("resourceReady", { detail: { id: key, resource: null, fetchedResource: null } }));
|
|
11378
11382
|
return;
|
|
11379
11383
|
}
|
|
11380
11384
|
const serverContext = await myParser.parse([resource["@context"] || base_context]);
|
|
11381
11385
|
await this.cacheGraph(resource, clientContext, serverContext, parentId ? parentId : key, serverPagination, serverSearch);
|
|
11382
11386
|
this.loadingList.delete(key);
|
|
11383
|
-
document.dispatchEvent(new CustomEvent("resourceReady", { detail: { id: key, resource: this.get(key) } }));
|
|
11387
|
+
document.dispatchEvent(new CustomEvent("resourceReady", { detail: { id: key, resource: this.get(key), fetchedResource: resource } }));
|
|
11384
11388
|
});
|
|
11385
11389
|
}
|
|
11386
11390
|
async fetchAuthn(iri, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.14",
|
|
4
4
|
"description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|