@adimm/x-injection 3.0.0 → 3.0.2

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
@@ -17,9 +17,9 @@ var e, t = Object.defineProperty, i = Object.getOwnPropertyDescriptor, o = Objec
17
17
  InjectFromBase: () => L,
18
18
  Injectable: () => q,
19
19
  InjectionError: () => m,
20
- InjectionProviderModuleDisposedError: () => g,
20
+ InjectionProviderModuleDisposedError: () => I,
21
21
  InjectionProviderModuleError: () => M,
22
- InjectionProviderModuleMissingIdentifierError: () => I,
22
+ InjectionProviderModuleMissingIdentifierError: () => g,
23
23
  InjectionProviderModuleMissingProviderError: () => b,
24
24
  InjectionProviderModuleUnknownProviderError: () => y,
25
25
  InjectionScope: () => u,
@@ -120,7 +120,7 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
120
120
  constructor(e, t) {
121
121
  super(e, `The [${h.providerTokenToString(t)}] provider is of an unknown type!`);
122
122
  }
123
- }, g = class e extends M {
123
+ }, I = class e extends M {
124
124
  static {
125
125
  n(this, "InjectionProviderModuleDisposedError");
126
126
  }
@@ -128,7 +128,7 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
128
128
  constructor(e) {
129
129
  super(e, "Has been disposed!");
130
130
  }
131
- }, I = class e extends M {
131
+ }, g = class e extends M {
132
132
  static {
133
133
  n(this, "InjectionProviderModuleMissingIdentifierError");
134
134
  }
@@ -142,7 +142,7 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
142
142
  }
143
143
  name=e.name;
144
144
  constructor(e, t) {
145
- super(e, `The [${h.providerTokenToString(t)}] provider is not bound to this (or any imported) module container, and was not found either in the 'AppModule'!`);
145
+ super(e, `The [${h.providerTokenToString(t)}] provider not found. It's not in this module, any imported ones, or the root 'AppModule'.`);
146
146
  }
147
147
  }, P = require("inversify"), w = new (require("inversify").Container)({
148
148
  defaultScope: "Singleton"
@@ -306,7 +306,7 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
306
306
  return this.providerModule.moduleContainer;
307
307
  }
308
308
  get subscribe() {
309
- if (null === this.event$) throw new g(this.providerModule);
309
+ if (null === this.event$) throw new I(this.providerModule);
310
310
  return this.event$.subscribe.bind(this.event$);
311
311
  }
312
312
  moduleDef;
@@ -455,7 +455,7 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
455
455
  i ? i.push(t) : this.middlewaresMap.set(e, [ t ]);
456
456
  }
457
457
  applyMiddlewares(e, ...t) {
458
- if (null === this.middlewaresMap) throw new g(this.providerModule);
458
+ if (null === this.middlewaresMap) throw new I(this.providerModule);
459
459
  const i = this.middlewaresMap.get(e);
460
460
  if (!i) return t[0];
461
461
  switch (e) {
@@ -635,10 +635,10 @@ var h, f, v = require("@inversifyjs/core"), m = class e extends Error {
635
635
  return this.id.toString();
636
636
  }
637
637
  throwIfIdIsMissing() {
638
- if (!this.options.id || 0 === this.options.id.toString().trim().length) throw new I(this);
638
+ if (!this.options.id || 0 === this.options.id.toString().trim().length) throw new g(this);
639
639
  }
640
640
  throwIfDisposed() {
641
- if (this.isDisposed) throw new g(this);
641
+ if (this.isDisposed) throw new I(this);
642
642
  }
643
643
  }, j = class {
644
644
  static {
package/dist/index.js CHANGED
@@ -99,7 +99,7 @@ var p = class e extends Error {
99
99
  }
100
100
  name=e.name;
101
101
  constructor(e, t) {
102
- super(e, `The [${I.providerTokenToString(t)}] provider is not bound to this (or any imported) module container, and was not found either in the 'AppModule'!`);
102
+ super(e, `The [${I.providerTokenToString(t)}] provider not found. It's not in this module, any imported ones, or the root 'AppModule'.`);
103
103
  }
104
104
  };
105
105
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/AdiMarianMutu/x-injection"
6
6
  },
7
7
  "description": "Powerful IoC library built on-top of InversifyJS inspired by NestJS's DI.",
8
- "version": "3.0.0",
8
+ "version": "3.0.2",
9
9
  "author": "Adi-Marian Mutu",
10
10
  "homepage": "https://github.com/AdiMarianMutu/x-injection#readme",
11
11
  "bugs": "https://github.com/AdiMarianMutu/x-injection/issues",
@@ -39,16 +39,16 @@
39
39
  "v:bump-major": "npm version major -m \"chore: update lib major version %s\""
40
40
  },
41
41
  "dependencies": {
42
- "inversify": "^7.5.2",
42
+ "inversify": "^7.11.0",
43
43
  "reflect-metadata": "^0.2.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
47
47
  "@swc/core": "^1.11.24",
48
- "eslint": "^8.57.1",
49
48
  "@tsconfig/node22": "^22.0.2",
50
49
  "@types/jest": "^30.0.0",
51
50
  "@typescript-eslint/eslint-plugin": "^8.34.1",
51
+ "eslint": "^8.57.1",
52
52
  "eslint-config-prettier": "^10.1.5",
53
53
  "eslint-plugin-import": "^2.31.0",
54
54
  "eslint-plugin-prettier": "^5.3.1",