@qikdev/sdk 0.2.2 → 0.2.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/main.js CHANGED
@@ -1237,7 +1237,7 @@ function lt() {
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ mr(ft), vr = "0.2.2", pt = Ee.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "0.2.3", pt = Ee.CancelToken;
1241
1241
  var mt = function(e) {
1242
1242
  var r;
1243
1243
  typeof window < "u" && (r = e.cache.get("api"));
@@ -2188,7 +2188,7 @@ k.mapFields = function(e, r) {
2188
2188
  e.forEach(p);
2189
2189
  function p(y, w) {
2190
2190
  var A = y.key, u = y.type == "group", s = y.minimum === y.maximum && y.minimum === 1, i = y.asObject, S = u && !i, f = r.original ? y : k.clone(y);
2191
- f.trail = t.slice(), f.trail.push(A), f.path = f.trail.join("."), y.titles && y.titles.length ? f.titles = y.titles.slice() : (f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || "")), (!S || r.includeLayout) && a.push(f);
2191
+ f.trail = t.slice(), f.trail.push(A), f.path = f.trail.join("."), f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || ""), (!S || r.includeLayout) && a.push(f);
2192
2192
  var b = m && o >= m;
2193
2193
  if (y.fields && y.fields.length)
2194
2194
  if (S)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qikdev/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Promise based Javascript SDK",
6
6
  "main": "./dist/main.js",
@@ -797,12 +797,8 @@ service.mapFields = function (fields, options) {
797
797
  mapped.trail.push(fieldKey);
798
798
 
799
799
  mapped.path = mapped.trail.join(".");
800
- if (field.titles && field.titles.length) {
801
- mapped.titles = field.titles.slice();
802
- } else {
803
- mapped.titles = titles.slice();
804
- mapped.titles.push(field.filterTitle || field.title || "");
805
- }
800
+ mapped.titles = titles.slice();
801
+ mapped.titles.push(field.filterTitle || field.title || "");
806
802
 
807
803
  const isNotLayoutOrIsAllowed = !isLayout || options.includeLayout;
808
804
 
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.2.2";
1
+ export const version = "0.2.3";