@startinblox/core 0.19.22-beta.5 → 0.20.0-beta.2

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.
@@ -1324,8 +1324,10 @@ async function evalTemplateString(str, variables = {}) {
1324
1324
  const keys = Object.keys(variables);
1325
1325
  const values = keys.map((key) => variables[key]);
1326
1326
  try {
1327
- const AsyncFunction = Object.getPrototypeOf(async function() {
1328
- }).constructor;
1327
+ const AsyncFunction = Object.getPrototypeOf(
1328
+ async function() {
1329
+ }
1330
+ ).constructor;
1329
1331
  const func = AsyncFunction.call(null, ...keys, "return `" + str + "`");
1330
1332
  return await func(...values);
1331
1333
  } catch (e) {
@@ -1424,7 +1426,10 @@ function parseFieldsString(fields) {
1424
1426
  let fieldsArray;
1425
1427
  while (fields.indexOf("(") > 0) {
1426
1428
  let firstBracket = fields.indexOf("(");
1427
- let noset = fields.substring(firstBracket, findClosingBracketMatchIndex(fields, firstBracket) + 1);
1429
+ let noset = fields.substring(
1430
+ firstBracket,
1431
+ findClosingBracketMatchIndex(fields, firstBracket) + 1
1432
+ );
1428
1433
  fields = fields.replace(noset, "");
1429
1434
  }
1430
1435
  const re = /((^\s*|,)\s*)(("(\\"|[^"])*")|('(\\'|[^'])*')|[^,]*)/gm;
@@ -1451,7 +1456,9 @@ function defineComponent(tagName, componentClass) {
1451
1456
  if (!customElements.get(tagName)) {
1452
1457
  customElements.define(tagName, componentClass);
1453
1458
  } else {
1454
- console.warn(`Warning: the component "${tagName}" has already been loaded in another version of sib-core.`);
1459
+ console.warn(
1460
+ `Warning: the component "${tagName}" has already been loaded in another version of sib-core.`
1461
+ );
1455
1462
  }
1456
1463
  }
1457
1464
  function fuzzyCompare(subject, search2) {
@@ -1464,7 +1471,8 @@ function fuzzyCompare(subject, search2) {
1464
1471
  const compare = {
1465
1472
  string(subject, query) {
1466
1473
  if (query === "") return true;
1467
- if (subject.toString().toLowerCase().includes(String(query).toLowerCase())) return true;
1474
+ if (subject.toString().toLowerCase().includes(String(query).toLowerCase()))
1475
+ return true;
1468
1476
  return fuzzyCompare(subject, query);
1469
1477
  },
1470
1478
  boolean(subject, query) {
@@ -1527,9 +1535,11 @@ function transformArrayToContainer(resource) {
1527
1535
  "@id": predicateValue["@id"],
1528
1536
  "ldp:contains": [...predicateValue]
1529
1537
  };
1530
- newValue[predicate]["ldp:contains"].forEach((childPredicate, index) => {
1531
- newValue[predicate]["ldp:contains"][index] = transformArrayToContainer(childPredicate);
1532
- });
1538
+ newValue[predicate]["ldp:contains"].forEach(
1539
+ (childPredicate, index) => {
1540
+ newValue[predicate]["ldp:contains"][index] = transformArrayToContainer(childPredicate);
1541
+ }
1542
+ );
1533
1543
  }
1534
1544
  }
1535
1545
  return newValue;
package/dist/helpers.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, a, o, c, A as A2, d, n, e, b, f, g, k, i, l, m, p, s, j, t, u } from "./helpers-D842zXW3.js";
1
+ import { A, a, o, c, A as A2, d, n, e, b, f, g, k, i, l, m, p, s, j, t, u } from "./helpers-BICN491G.js";
2
2
  export {
3
3
  A as AsyncIterableBuilder,
4
4
  a as asyncQuerySelector,