electron-injector 1.1.3 → 1.1.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.
package/dist/index.cjs CHANGED
@@ -202,7 +202,7 @@ function applyDecorators(...decorators) {
202
202
  }
203
203
  __name(applyDecorators, "applyDecorators");
204
204
  function createParamDecorator(fn) {
205
- return function(target, propertyKey, paramIndex) {
205
+ return () => function(target, propertyKey, paramIndex) {
206
206
  const params = Reflect.getMetadata(PARAM, target, propertyKey) ?? [];
207
207
  params[paramIndex] = fn;
208
208
  Reflect.defineMetadata(PARAM, params, target, propertyKey);
package/dist/index.js CHANGED
@@ -148,7 +148,7 @@ function applyDecorators(...decorators) {
148
148
  }
149
149
  __name(applyDecorators, "applyDecorators");
150
150
  function createParamDecorator(fn) {
151
- return function(target, propertyKey, paramIndex) {
151
+ return () => function(target, propertyKey, paramIndex) {
152
152
  const params = Reflect.getMetadata(PARAM, target, propertyKey) ?? [];
153
153
  params[paramIndex] = fn;
154
154
  Reflect.defineMetadata(PARAM, params, target, propertyKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-injector",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Biblioteca para el desarrollo de aplicaciones con electron que proporciona una arquitectura robusta con inyección e inversion de dependencias.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",