@declaro/redis 2.0.0-beta.67 → 2.0.0-beta.69

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/bun/index.js CHANGED
@@ -36685,12 +36685,7 @@ class Context {
36685
36685
  }
36686
36686
  register(key, dep) {
36687
36687
  const existingDep = this.state[key];
36688
- this.state[key] = dep;
36689
- Object.defineProperty(this.scope, key, {
36690
- get: () => this.resolve(key),
36691
- enumerable: true,
36692
- configurable: true
36693
- });
36688
+ this.addDep(key, dep);
36694
36689
  if (existingDep) {
36695
36690
  const dependents = this.getAllDependents(key);
36696
36691
  dependents.forEach((dependent) => {
@@ -36698,6 +36693,15 @@ class Context {
36698
36693
  });
36699
36694
  }
36700
36695
  }
36696
+ addDep(key, dep) {
36697
+ this.state[key] = dep;
36698
+ Object.defineProperty(this.scope, key, {
36699
+ get: () => this.resolve(key),
36700
+ enumerable: true,
36701
+ configurable: true
36702
+ });
36703
+ return dep;
36704
+ }
36701
36705
  registerValue(key, value, defaultResolveOptions2) {
36702
36706
  const attribute = {
36703
36707
  value: () => value,
@@ -36849,7 +36853,7 @@ class Context {
36849
36853
  contexts.forEach((context) => {
36850
36854
  Reflect.ownKeys(context.state).forEach((key) => {
36851
36855
  const dep = { ...context.state[key] };
36852
- this.register(key, dep);
36856
+ this.addDep(key, dep);
36853
36857
  });
36854
36858
  this.emitter.extend(context.emitter);
36855
36859
  });
@@ -49828,5 +49832,5 @@ export {
49828
49832
  Config
49829
49833
  };
49830
49834
 
49831
- //# debugId=25244FDB325BB58264756E2164756E21
49835
+ //# debugId=8EF78DB5F568082164756E2164756E21
49832
49836
  //# sourceMappingURL=index.js.map