@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
|
@@ -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
|
}
|