@firecms/data_import_export 3.0.0-canary.75 → 3.0.0-canary.76

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.es.js CHANGED
@@ -29,8 +29,7 @@ const ht = () => {
29
29
  function gt(e) {
30
30
  let a = 0;
31
31
  const s = [], t = {};
32
- if (e == null || e["!ref"] == null)
33
- return [];
32
+ if (e == null || e["!ref"] == null) return [];
34
33
  const r = t.range !== void 0 ? t.range : e["!ref"];
35
34
  let n;
36
35
  switch (t.header === 1 ? a = 1 : t.header === "A" ? a = 2 : Array.isArray(t.header) && (a = 3), typeof r) {
@@ -58,8 +57,7 @@ function gt(e) {
58
57
  s.push(t.header[c - n.s.c]);
59
58
  break;
60
59
  default:
61
- if (d === void 0)
62
- continue;
60
+ if (d === void 0) continue;
63
61
  s.push(U.utils.format_cell(d));
64
62
  }
65
63
  }
@@ -146,8 +144,7 @@ function je(e) {
146
144
  if (/^[\w]+\[\d+\]$/.test(n)) {
147
145
  const o = n.slice(0, n.indexOf("[")), c = parseInt(n.slice(n.indexOf("[") + 1, n.indexOf("]")));
148
146
  t[o] || (t[o] = []), l !== r.length - 1 ? (t[o][c] = t[o][c] || {}, t = t[o][c]) : t[o][c] = e[s];
149
- } else
150
- l !== r.length - 1 ? (t[n] = t[n] || {}, t = t[n]) : t[n] = e[s];
147
+ } else l !== r.length - 1 ? (t[n] = t[n] || {}, t = t[n]) : t[n] = e[s];
151
148
  }), a;
152
149
  }, {});
153
150
  }
@@ -177,15 +174,12 @@ function Pe(e, a = "") {
177
174
  }, {});
178
175
  }
179
176
  function ae(e, a) {
180
- if (e === null)
181
- return null;
182
- if (a === void 0)
183
- return e;
177
+ if (e === null) return null;
178
+ if (a === void 0) return e;
184
179
  const s = We({
185
180
  propertyOrBuilder: a
186
181
  });
187
- if (s === null)
188
- return e;
182
+ if (s === null) return e;
189
183
  const t = ut(e), r = s.dataType;
190
184
  if (t === "array" && r === "array" && Array.isArray(e) && s.of && !me(s.of))
191
185
  return e.map((n) => ae(n, s.of));
@@ -918,8 +912,7 @@ function G(e, a, s, t) {
918
912
  else if (a.dataType === "reference" && e && e.isEntityReference && e.isEntityReference()) {
919
913
  const n = e || void 0;
920
914
  r = n ? n.pathWithId : null;
921
- } else
922
- a.dataType === "date" && e instanceof Date ? r = e ? t === "timestamp" ? e.getTime() : e.toISOString() : null : r = e;
915
+ } else a.dataType === "date" && e instanceof Date ? r = e ? t === "timestamp" ? e.getTime() : e.toISOString() : null : r = e;
923
916
  return r;
924
917
  }
925
918
  function oe(e, a, s, t) {