@startinblox/core 2.0.2 → 2.0.3
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
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2;
|
|
5
|
-
import { g as getDefaultExportFromCjs, s as store, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as commonjsGlobal } from "./store-
|
|
5
|
+
import { g as getDefaultExportFromCjs, s as store, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as commonjsGlobal } from "./store-DLqFZAPg.js";
|
|
6
6
|
import { d as defineComponent, n as normalizeContext, u as uniqID, e as evalTemplateString, a as doesResourceContainList, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, i as importInlineCSS, j as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-4GFJ8HI8.js";
|
|
7
7
|
import { k } from "./helpers-4GFJ8HI8.js";
|
|
8
8
|
if (!("flat" in Array.prototype)) {
|
|
@@ -8890,6 +8890,18 @@ class CustomGetter {
|
|
|
8890
8890
|
}
|
|
8891
8891
|
if (path2.length === 0) {
|
|
8892
8892
|
if (!value || !value["@id"]) return this.getLiteralValue(value);
|
|
8893
|
+
const valueKeys = Object.keys(value).filter((k) => k !== "@type");
|
|
8894
|
+
if (valueKeys.length === 1 && valueKeys[0] === "@id") {
|
|
8895
|
+
const resource2 = await this.getResource(
|
|
8896
|
+
value["@id"],
|
|
8897
|
+
mergeContexts(this.clientContext, this.serverContext),
|
|
8898
|
+
this.parentId || this.resourceId
|
|
8899
|
+
);
|
|
8900
|
+
if (resource2 === null) {
|
|
8901
|
+
return value["@id"];
|
|
8902
|
+
}
|
|
8903
|
+
return resource2;
|
|
8904
|
+
}
|
|
8893
8905
|
return await this.getResource(
|
|
8894
8906
|
value["@id"],
|
|
8895
8907
|
mergeContexts(this.clientContext, this.serverContext),
|
package/dist/store.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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",
|