@xrystal/core 3.55.63 → 3.55.64

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,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.55.63",
4
+ "version": "3.55.64",
5
5
  "description": "Runtime framework and CLI for API services, frontends, and multi-repo workspaces",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -2,6 +2,7 @@ import { createContainer, asClass, asValue, InjectionMode, listModules, Lifetime
2
2
  import path from 'node:path';
3
3
  import { pathToFileURL } from 'node:url';
4
4
  import defaults from '../../../utils/constants/defaults.json' with { type: 'json' };
5
+ import { InfraPreflightFailed } from '../../../utils/helpers/infra-preflight/index.js';
5
6
  export const xSymbol = Symbol.for(`${defaults.packageName}/di-container`);
6
7
  class X {
7
8
  checkRegistration(container, name) {
@@ -113,6 +114,9 @@ class DIM extends X {
113
114
  this.initializedNames.add(name);
114
115
  }
115
116
  catch (err) {
117
+ if (err instanceof InfraPreflightFailed) {
118
+ throw err;
119
+ }
116
120
  console.error(`[DI] Priority onInit Failed (${name}):`, err.message);
117
121
  throw err;
118
122
  }