befly 3.15.23 → 3.15.24

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
@@ -863,11 +863,11 @@ function configure(cfg) {
863
863
  errorFileSink = null;
864
864
  appConsoleSink = null;
865
865
  sanitizeOptions = {
866
- maxStringLen: normalizePositiveInt(config.maxStringLen, 100, 20, 200000),
867
- maxArrayItems: normalizePositiveInt(config.maxArrayItems, 100, 10, 5000),
868
- sanitizeDepth: normalizePositiveInt(config.sanitizeDepth, 3, 1, 10),
869
- sanitizeNodes: normalizePositiveInt(config.sanitizeNodes, 500, 50, 20000),
870
- sanitizeObjectKeys: normalizePositiveInt(config.sanitizeObjectKeys, 100, 10, 5000),
866
+ maxStringLen: normalizePositiveInt(config.maxStringLen, 200, 20, 200000),
867
+ maxArrayItems: normalizePositiveInt(config.maxArrayItems, 500, 10, 5000),
868
+ sanitizeDepth: normalizePositiveInt(config.sanitizeDepth, 5, 1, 10),
869
+ sanitizeNodes: normalizePositiveInt(config.sanitizeNodes, 5000, 50, 20000),
870
+ sanitizeObjectKeys: normalizePositiveInt(config.sanitizeObjectKeys, 500, 10, 5000),
871
871
  sensitiveKeyMatcher: buildSensitiveKeyMatcher({ builtinPatterns: BUILTIN_SENSITIVE_KEYS, userPatterns: config.excludeFields })
872
872
  };
873
873
  }
@@ -1097,11 +1097,11 @@ var init_logger = __esm(() => {
1097
1097
  INITIAL_CWD = process.cwd();
1098
1098
  BUILTIN_SENSITIVE_KEYS = ["*password*", "pass", "pwd", "*token*", "access_token", "refresh_token", "accessToken", "refreshToken", "authorization", "cookie", "set-cookie", "*secret*", "apiKey", "api_key", "privateKey", "private_key"];
1099
1099
  sanitizeOptions = {
1100
- maxStringLen: 100,
1101
- maxArrayItems: 100,
1102
- sanitizeDepth: 3,
1103
- sanitizeNodes: 500,
1104
- sanitizeObjectKeys: 100,
1100
+ maxStringLen: 200,
1101
+ maxArrayItems: 500,
1102
+ sanitizeDepth: 5,
1103
+ sanitizeNodes: 5000,
1104
+ sanitizeObjectKeys: 500,
1105
1105
  sensitiveKeyMatcher: buildSensitiveKeyMatcher({ builtinPatterns: BUILTIN_SENSITIVE_KEYS, userPatterns: [] })
1106
1106
  };
1107
1107
  HOSTNAME = (() => {
@@ -10874,7 +10874,12 @@ class SyncTable {
10874
10874
  message: msgLines.join(`
10875
10875
  `),
10876
10876
  noLog: true,
10877
- meta: { subsystem: "syncTable", operation: "precheck" }
10877
+ meta: {
10878
+ subsystem: "syncTable",
10879
+ operation: "precheck",
10880
+ incompatibleTypeChangeCount: incompatibleTypeChanges.length,
10881
+ incompatibleTypeChanges
10882
+ }
10878
10883
  });
10879
10884
  }
10880
10885
  static truncateForLog(input, maxLen) {
@@ -16557,10 +16562,16 @@ class Befly {
16557
16562
  let kind = "runtime";
16558
16563
  let alreadyLogged = false;
16559
16564
  let noLog = false;
16565
+ let incompatibleTypeChanges = null;
16566
+ let incompatibleTypeChangeCount = null;
16560
16567
  if (isCoreError(error)) {
16561
16568
  kind = error.kind;
16562
16569
  alreadyLogged = error.logged === true;
16563
16570
  noLog = error.noLog === true;
16571
+ if (error.meta && typeof error.meta === "object") {
16572
+ incompatibleTypeChanges = error.meta["incompatibleTypeChanges"] ?? null;
16573
+ incompatibleTypeChangeCount = error.meta["incompatibleTypeChangeCount"] ?? null;
16574
+ }
16564
16575
  } else {
16565
16576
  const anyErr = error;
16566
16577
  if (anyErr && anyErr.__syncTableLogged === true) {
@@ -16580,20 +16591,26 @@ class Befly {
16580
16591
  Logger.error({
16581
16592
  msg: "\u9879\u76EE\u542F\u52A8\u5931\u8D25\uFF08\u4E0B\u5C42\u5DF2\u8BB0\u5F55\uFF09",
16582
16593
  errorKind: kind,
16583
- errorMessage: errMessage
16594
+ errorMessage: errMessage,
16595
+ incompatibleTypeChangeCount,
16596
+ incompatibleTypeChanges
16584
16597
  });
16585
16598
  } else if (noLog) {
16586
16599
  Logger.error({
16587
16600
  msg: "\u9879\u76EE\u542F\u52A8\u5931\u8D25",
16588
16601
  errorKind: kind,
16589
- errorMessage: errMessage
16602
+ errorMessage: errMessage,
16603
+ incompatibleTypeChangeCount,
16604
+ incompatibleTypeChanges
16590
16605
  });
16591
16606
  } else {
16592
16607
  Logger.error({
16593
16608
  msg: "\u9879\u76EE\u542F\u52A8\u5931\u8D25",
16594
16609
  errorKind: kind,
16595
16610
  errorMessage: errMessage,
16596
- err: error
16611
+ err: error,
16612
+ incompatibleTypeChangeCount,
16613
+ incompatibleTypeChanges
16597
16614
  });
16598
16615
  }
16599
16616
  try {