@h3ravel/core 1.18.1 → 1.19.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/dist/index.cjs CHANGED
@@ -194,7 +194,7 @@ var ProviderRegistry = class {
194
194
  }
195
195
  }
196
196
  /**
197
- * Get all registered providers as an array.
197
+ * Set the filtered providers.
198
198
  *
199
199
  * @returns
200
200
  */
@@ -380,6 +380,7 @@ var Application = class Application extends Container {
380
380
  paths = new __h3ravel_shared.PathLoader();
381
381
  tries = 0;
382
382
  booted = false;
383
+ basePath;
383
384
  versions = {
384
385
  app: "0.0.0",
385
386
  ts: "0.0.0"
@@ -388,7 +389,6 @@ var Application = class Application extends Container {
388
389
  app: "0.0.0",
389
390
  ts: "0.0.0"
390
391
  };
391
- basePath;
392
392
  providers = [];
393
393
  externalProviders = [];
394
394
  filteredProviders = [];
@@ -479,11 +479,11 @@ var Application = class Application extends Container {
479
479
  ProviderRegistry.registerMany(providers);
480
480
  if (autoRegister) await ProviderRegistry.discoverProviders(autoRegister);
481
481
  ProviderRegistry.doSort();
482
- ProviderRegistry.all().forEach(async (ProviderClass) => {
483
- if (!ProviderClass) return;
482
+ for (const ProviderClass of ProviderRegistry.all()) {
483
+ if (!ProviderClass) continue;
484
484
  const provider = new ProviderClass(this);
485
485
  await this.register(provider);
486
- });
486
+ }
487
487
  }
488
488
  /**
489
489
  * Register service providers
package/dist/index.d.cts CHANGED
@@ -110,9 +110,9 @@ declare class Application extends Container implements IApplication {
110
110
  paths: PathLoader;
111
111
  private tries;
112
112
  private booted;
113
+ private basePath;
113
114
  private versions;
114
115
  private static versions;
115
- private basePath;
116
116
  private providers;
117
117
  protected externalProviders: Array<AServiceProvider>;
118
118
  protected filteredProviders: Array<string>;
@@ -392,7 +392,7 @@ declare class ProviderRegistry {
392
392
  */
393
393
  static registerMany(providers: ProviderCtor[]): void;
394
394
  /**
395
- * Get all registered providers as an array.
395
+ * Set the filtered providers.
396
396
  *
397
397
  * @returns
398
398
  */
package/dist/index.d.ts CHANGED
@@ -111,9 +111,9 @@ declare class Application extends Container implements IApplication {
111
111
  paths: PathLoader;
112
112
  private tries;
113
113
  private booted;
114
+ private basePath;
114
115
  private versions;
115
116
  private static versions;
116
- private basePath;
117
117
  private providers;
118
118
  protected externalProviders: Array<AServiceProvider>;
119
119
  protected filteredProviders: Array<string>;
@@ -393,7 +393,7 @@ declare class ProviderRegistry {
393
393
  */
394
394
  static registerMany(providers: ProviderCtor[]): void;
395
395
  /**
396
- * Get all registered providers as an array.
396
+ * Set the filtered providers.
397
397
  *
398
398
  * @returns
399
399
  */
package/dist/index.js CHANGED
@@ -161,7 +161,7 @@ var ProviderRegistry = class {
161
161
  }
162
162
  }
163
163
  /**
164
- * Get all registered providers as an array.
164
+ * Set the filtered providers.
165
165
  *
166
166
  * @returns
167
167
  */
@@ -347,6 +347,7 @@ var Application = class Application extends Container {
347
347
  paths = new PathLoader();
348
348
  tries = 0;
349
349
  booted = false;
350
+ basePath;
350
351
  versions = {
351
352
  app: "0.0.0",
352
353
  ts: "0.0.0"
@@ -355,7 +356,6 @@ var Application = class Application extends Container {
355
356
  app: "0.0.0",
356
357
  ts: "0.0.0"
357
358
  };
358
- basePath;
359
359
  providers = [];
360
360
  externalProviders = [];
361
361
  filteredProviders = [];
@@ -446,11 +446,11 @@ var Application = class Application extends Container {
446
446
  ProviderRegistry.registerMany(providers);
447
447
  if (autoRegister) await ProviderRegistry.discoverProviders(autoRegister);
448
448
  ProviderRegistry.doSort();
449
- ProviderRegistry.all().forEach(async (ProviderClass) => {
450
- if (!ProviderClass) return;
449
+ for (const ProviderClass of ProviderRegistry.all()) {
450
+ if (!ProviderClass) continue;
451
451
  const provider = new ProviderClass(this);
452
452
  await this.register(provider);
453
- });
453
+ }
454
454
  }
455
455
  /**
456
456
  * Register service providers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/core",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "Core application container, lifecycle management and service providers for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",