@archbase/core 3.0.11 → 3.0.13

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.js CHANGED
@@ -6900,12 +6900,12 @@ const ARCHBASE_IOC_API_TYPE = {
6900
6900
  };
6901
6901
 
6902
6902
  class ArchbaseJacksonParser {
6903
- // Helper para verificar se é um Map simples (string -> number/string)
6903
+ // Helper para verificar se é um Map simples (string -> number/string/array de primitivos)
6904
6904
  static isSimpleMap(obj) {
6905
- if (!obj || typeof obj !== "object")
6905
+ if (!obj || typeof obj !== "object" || Array.isArray(obj))
6906
6906
  return false;
6907
6907
  return Object.entries(obj).every(
6908
- ([key, value]) => typeof key === "string" && (typeof value === "number" || typeof value === "string")
6908
+ ([key, value]) => typeof key === "string" && (typeof value === "number" || typeof value === "string" || ArchbaseJacksonParser.isSimpleArray(value))
6909
6909
  );
6910
6910
  }
6911
6911
  // Helper para verificar se é um Array simples (de strings)