@lotics/cli 0.288.0 → 0.289.0
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/src/cli.js +4 -10
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -26497,21 +26497,15 @@ var FIELD_REF_TOKEN = /\{([^{}]+)\}/g;
|
|
|
26497
26497
|
function parseFieldRefTokens(expression) {
|
|
26498
26498
|
return [...expression.matchAll(FIELD_REF_TOKEN)].map((match2) => match2[1].trim());
|
|
26499
26499
|
}
|
|
26500
|
-
function buildRefIndex(fields) {
|
|
26501
|
-
const index = /* @__PURE__ */ new Map();
|
|
26502
|
-
for (const field of fields) index.set(field.name, field.key);
|
|
26503
|
-
for (const field of fields) index.set(field.key, field.key);
|
|
26504
|
-
return index;
|
|
26505
|
-
}
|
|
26506
26500
|
function prepareFormulaExpression(expression, fields) {
|
|
26507
|
-
const
|
|
26501
|
+
const keys2 = new Set(fields.map((field) => field.key));
|
|
26508
26502
|
const referencedKeys = [];
|
|
26509
26503
|
const unresolved = [];
|
|
26510
26504
|
const seenKeys = /* @__PURE__ */ new Set();
|
|
26511
26505
|
const seenRefs = /* @__PURE__ */ new Set();
|
|
26512
26506
|
const lowered = expression.replace(FIELD_REF_TOKEN, (_raw, inner) => {
|
|
26513
26507
|
const ref = inner.trim();
|
|
26514
|
-
const key =
|
|
26508
|
+
const key = keys2.has(ref) ? ref : void 0;
|
|
26515
26509
|
if (key === void 0) {
|
|
26516
26510
|
if (!seenRefs.has(ref)) {
|
|
26517
26511
|
seenRefs.add(ref);
|
|
@@ -42040,8 +42034,8 @@ function resultSideEffects(result) {
|
|
|
42040
42034
|
}
|
|
42041
42035
|
|
|
42042
42036
|
// src/version.ts
|
|
42043
|
-
var VERSION = "0.
|
|
42044
|
-
var APP_SDK_VERSION = "0.113.
|
|
42037
|
+
var VERSION = "0.289.0";
|
|
42038
|
+
var APP_SDK_VERSION = "0.113.1";
|
|
42045
42039
|
|
|
42046
42040
|
// src/timezone.ts
|
|
42047
42041
|
function machineTimezone() {
|