@holistics/cli-core 2.2.9 → 2.2.10

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.
Files changed (2) hide show
  1. package/dist/commands.js +10 -11
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -27370,7 +27370,7 @@ var require_dist2 = __commonJS((exports2) => {
27370
27370
  exports2.default = deferred;
27371
27371
  });
27372
27372
  // package.json
27373
- var version = "2.2.9";
27373
+ var version = "2.2.10";
27374
27374
 
27375
27375
  // ../../node_modules/.pnpm/@commander-js+extra-typings@13.1.0_commander@13.1.0/node_modules/@commander-js/extra-typings/esm.mjs
27376
27376
  var import__ = __toESM(require_extra_typings(), 1);
@@ -75912,16 +75912,16 @@ var jE2 = (e, t, n) => {
75912
75912
  if (!i || !i?.length)
75913
75913
  throw new Error(`${e.__type__}: ${o}: Please select at least one location field`);
75914
75914
  return r3 = i.map((l, c2) => {
75915
- const u = import_lodash.get(l, "location_type", "none"), d = `!location[${c2}]`;
75916
- if (l.primary_field && (s2 += 1, a = d), s2 > 2)
75915
+ const u = import_lodash.get(l, "location_type", "none"), d = W(l.field, t, {
75916
+ allowDimension: true,
75917
+ allowMeasure: true,
75918
+ fallbackUname: `!location[${c2}]`,
75919
+ unameValidator: n
75920
+ });
75921
+ if (l.primary_field && (s2 += 1, a = d.uuid), s2 > 1)
75917
75922
  throw new Error(`${o}: Please select only one primary field`);
75918
75923
  return {
75919
- ...W(l.field, t, {
75920
- allowDimension: true,
75921
- allowMeasure: true,
75922
- fallbackUname: d,
75923
- unameValidator: n
75924
- }),
75924
+ ...d,
75925
75925
  location_type: GE2(u)
75926
75926
  };
75927
75927
  }), s2 === 0 && (a = r3[0].uuid), {
@@ -80641,8 +80641,7 @@ var Em2 = (e) => {
80641
80641
  if (e._id)
80642
80642
  return e._id;
80643
80643
  const t = Object.entries(e).filter(([n, o]) => o).map(([n, o]) => `${n}: true`);
80644
- if (t.length !== 0)
80645
- return `{
80644
+ return t.length === 0 ? "{}" : `{
80646
80645
  ${t.join(`
80647
80646
  `)}
80648
80647
  }`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@holistics/cli-core",
3
3
  "type": "module",
4
- "version": "2.2.9",
4
+ "version": "2.2.10",
5
5
  "bin": {
6
6
  "holistics": "./bin/holistics.js"
7
7
  },