@iobroker/js-controller-common-db 7.1.2-alpha.0-20260409-feacb179d → 7.1.2

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.
@@ -610,8 +610,9 @@ export declare function removePreservedProperties(preserve: Record<string, any>,
610
610
  * Returns the array of system.adapter.<namespace>.* objects which are created for every instance
611
611
  *
612
612
  * @param namespace - adapter namespace + id, e.g., hm-rpc.0
613
+ * @param adapterCommon - adapter object from io-package.json
613
614
  */
614
- export declare function getInstanceIndicatorObjects(namespace: string): ioBroker.StateObject[];
615
+ export declare function getInstanceIndicatorObjects(namespace: string, adapterCommon: ioBroker.AdapterCommon): ioBroker.StateObject[];
615
616
  export type InternalLogger = Omit<ioBroker.Logger, 'level'>;
616
617
  export declare function getLogger(log: any): InternalLogger;
617
618
  /**
@@ -2155,7 +2155,7 @@ function removePreservedProperties(preserve, oldObj, newObj) {
2155
2155
  }
2156
2156
  }
2157
2157
  }
2158
- function getInstanceIndicatorObjects(namespace) {
2158
+ function getInstanceIndicatorObjects(namespace, adapterCommon) {
2159
2159
  const id = `system.adapter.${namespace}`;
2160
2160
  return [
2161
2161
  {
@@ -2351,7 +2351,7 @@ function getInstanceIndicatorObjects(namespace) {
2351
2351
  write: true,
2352
2352
  desc: "If the number of objects of this adapter instance exceeds this limit, the user will receive a warning",
2353
2353
  role: "state",
2354
- def: import_constants.DEFAULT_OBJECTS_WARN_LIMIT
2354
+ def: adapterCommon.defaultObjectsWarnLimit ?? import_constants.DEFAULT_OBJECTS_WARN_LIMIT
2355
2355
  },
2356
2356
  native: {}
2357
2357
  }