r-agency-mesh 1.293.0 → 1.294.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r-agency-mesh",
3
- "version": "1.293.0",
3
+ "version": "1.294.0",
4
4
  "scripts": {
5
5
  "build-dev": "npm run compile && npm run gen",
6
6
  "build-prod": "npm run compile && npm run gen-prod",
@@ -2601,7 +2601,7 @@ interface IDbResource<Entity extends ObjectLiteral> {
2601
2601
  * Example use cases include dynamically creating database resource instances
2602
2602
  * at runtime or defining type-safe factory methods for resource creation.
2603
2603
  */
2604
- type DbResourceCtor = new () => IDbResource<any>;
2604
+ type DbResourceCtor = new (container: IContainer) => IDbResource<any>;
2605
2605
  /**
2606
2606
  * Represents the arguments required for defining a database resource.
2607
2607
  * This interface is used to specify the configuration or properties
package/release/index.js CHANGED
@@ -28483,7 +28483,8 @@ var init_db_resources_manager = __esm({
28483
28483
  "use strict";
28484
28484
  init_helper();
28485
28485
  DbResourcesManager = (_class34 = class {
28486
- constructor(adapter, rootDir2) {;_class34.prototype.__init103.call(this);_class34.prototype.__init104.call(this);_class34.prototype.__init105.call(this);
28486
+ constructor(container, adapter, rootDir2) {;_class34.prototype.__init103.call(this);_class34.prototype.__init104.call(this);_class34.prototype.__init105.call(this);
28487
+ this.container = container;
28487
28488
  this.adapter = adapter;
28488
28489
  this.rootDir = rootDir2;
28489
28490
  }
@@ -28573,7 +28574,7 @@ var init_db_resources_manager = __esm({
28573
28574
  ]
28574
28575
  };
28575
28576
  }
28576
- const resource = new stored.ctor();
28577
+ const resource = new stored.ctor(this.container);
28577
28578
  const result = await this.initialize(stored.props, context);
28578
28579
  if (!result.success) {
28579
28580
  return {
@@ -30925,7 +30926,7 @@ var init_bootstrap = __esm({
30925
30926
  this._pluginManager = getGlobal("mesh-plugin-manager");
30926
30927
  this._wsCTRLManager = getGlobal("mesh-ws-ctrl-manager");
30927
30928
  this._database = new DatabaseAdapter(props.rootDir, config);
30928
- this._resources = new DbResourcesManager(this._database, props.rootDir);
30929
+ this._resources = new DbResourcesManager(this.container, this._database, props.rootDir);
30929
30930
  this._broadcast = new BroadcastManager(config, this._canBus, this._wsCTRLManager);
30930
30931
  this._runtime = new Runtime(this.props, this.container, staticLoader, this._canBus);
30931
30932
  this.container.addClass("logger", Logger);