befly 3.15.24 → 3.15.25

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/befly.js CHANGED
@@ -16564,6 +16564,7 @@ class Befly {
16564
16564
  let noLog = false;
16565
16565
  let incompatibleTypeChanges = null;
16566
16566
  let incompatibleTypeChangeCount = null;
16567
+ let incompatibleTypeChangeLines = null;
16567
16568
  if (isCoreError(error)) {
16568
16569
  kind = error.kind;
16569
16570
  alreadyLogged = error.logged === true;
@@ -16587,13 +16588,39 @@ class Befly {
16587
16588
  noLog = true;
16588
16589
  }
16589
16590
  }
16591
+ {
16592
+ const lines = [];
16593
+ if (Array.isArray(incompatibleTypeChanges)) {
16594
+ for (const item of incompatibleTypeChanges) {
16595
+ if (!item || typeof item !== "object")
16596
+ continue;
16597
+ const rec = item;
16598
+ const tableName = rec["tableName"];
16599
+ const dbFieldName = rec["dbFieldName"];
16600
+ const currentType = rec["currentType"];
16601
+ const expectedType = rec["expectedType"];
16602
+ if (typeof tableName !== "string" || tableName.length === 0)
16603
+ continue;
16604
+ if (typeof dbFieldName !== "string" || dbFieldName.length === 0)
16605
+ continue;
16606
+ if (typeof currentType !== "string" || currentType.length === 0)
16607
+ continue;
16608
+ if (typeof expectedType !== "string" || expectedType.length === 0)
16609
+ continue;
16610
+ lines.push(`- ${tableName}.${dbFieldName}: ${currentType} -> ${expectedType}`);
16611
+ }
16612
+ }
16613
+ if (lines.length > 0) {
16614
+ incompatibleTypeChangeLines = lines;
16615
+ }
16616
+ }
16590
16617
  if (alreadyLogged) {
16591
16618
  Logger.error({
16592
16619
  msg: "\u9879\u76EE\u542F\u52A8\u5931\u8D25\uFF08\u4E0B\u5C42\u5DF2\u8BB0\u5F55\uFF09",
16593
16620
  errorKind: kind,
16594
16621
  errorMessage: errMessage,
16595
16622
  incompatibleTypeChangeCount,
16596
- incompatibleTypeChanges
16623
+ incompatibleTypeChangeLines
16597
16624
  });
16598
16625
  } else if (noLog) {
16599
16626
  Logger.error({
@@ -16601,7 +16628,7 @@ class Befly {
16601
16628
  errorKind: kind,
16602
16629
  errorMessage: errMessage,
16603
16630
  incompatibleTypeChangeCount,
16604
- incompatibleTypeChanges
16631
+ incompatibleTypeChangeLines
16605
16632
  });
16606
16633
  } else {
16607
16634
  Logger.error({
@@ -16610,7 +16637,7 @@ class Befly {
16610
16637
  errorMessage: errMessage,
16611
16638
  err: error,
16612
16639
  incompatibleTypeChangeCount,
16613
- incompatibleTypeChanges
16640
+ incompatibleTypeChangeLines
16614
16641
  });
16615
16642
  }
16616
16643
  try {