@tstdl/base 0.89.3 → 0.89.4

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.
@@ -288,7 +288,15 @@ export class Injector {
288
288
  throw new ResolveError(`${provider.useClass.name} has constructor parameters but is not injectable.`, chain);
289
289
  }
290
290
  const parameters = (typeMetadata?.parameters ?? []).map((metadata) => this.resolveClassInjection(resolutionTag, context, provider.useClass, metadata, arg, chain));
291
- result = { value: new provider.useClass(...parameters) };
291
+ try {
292
+ result = { value: new provider.useClass(...parameters) };
293
+ }
294
+ catch (error) {
295
+ if (error instanceof ResolveError) {
296
+ throw error;
297
+ }
298
+ throw new ResolveError('Error in class constructor.', chain, error);
299
+ }
292
300
  }
293
301
  if (isValueProvider(provider)) {
294
302
  result = { value: provider.useValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.89.3",
3
+ "version": "0.89.4",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -121,7 +121,7 @@
121
121
  "@typescript-eslint/parser": "6.7",
122
122
  "concurrently": "8.2",
123
123
  "esbuild": "0.19",
124
- "eslint": "8.49",
124
+ "eslint": "8.50",
125
125
  "eslint-import-resolver-typescript": "3.6",
126
126
  "eslint-plugin-import": "2.28",
127
127
  "tsc-alias": "1.8",