@stemy/backend 5.0.8 → 5.0.9

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.
@@ -1941,12 +1941,19 @@ OpenApi = __decorate([
1941
1941
  ], OpenApi);
1942
1942
 
1943
1943
  let Fixtures = class Fixtures {
1944
- constructor(fixtures) {
1945
- this.fixtures = fixtures;
1944
+ constructor(container) {
1945
+ this.container = container;
1946
+ }
1947
+ init() {
1948
+ try {
1949
+ return this.container.resolveAll(FIXTURE);
1950
+ }
1951
+ catch (e) {
1952
+ return [];
1953
+ }
1946
1954
  }
1947
1955
  async load(output) {
1948
- if (!this.fixtures)
1949
- return;
1956
+ this.fixtures = this.fixtures || this.init();
1950
1957
  output = output || {
1951
1958
  write: console.log,
1952
1959
  writeln: t => console.log(t + "\n")
@@ -1959,8 +1966,8 @@ let Fixtures = class Fixtures {
1959
1966
  Fixtures = __decorate([
1960
1967
  injectable(),
1961
1968
  scoped(Lifecycle.ContainerScoped),
1962
- __param(0, injectAll(FIXTURE)),
1963
- __metadata("design:paramtypes", [Array])
1969
+ __param(0, injectAll(DI_CONTAINER)),
1970
+ __metadata("design:paramtypes", [Object])
1964
1971
  ], Fixtures);
1965
1972
 
1966
1973
  const express = express_;