electron-injector 1.1.3 → 1.1.5
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 +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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.d.cts
CHANGED
|
@@ -21,7 +21,7 @@ declare class ExecutionContext {
|
|
|
21
21
|
set payload(payload: any);
|
|
22
22
|
}
|
|
23
23
|
declare function applyDecorators(...decorators: CallableFunction[]): (target: Object, _propertyKey?: string | symbol, descriptor?: PropertyDescriptor) => void;
|
|
24
|
-
declare function createParamDecorator(fn: (context: ExecutionContext) => any): ParameterDecorator;
|
|
24
|
+
declare function createParamDecorator(fn: (context: ExecutionContext) => any): () => ParameterDecorator;
|
|
25
25
|
|
|
26
26
|
type Class<T = any> = new (...args: any[]) => T;
|
|
27
27
|
type InjectableType = 'singleton' | 'transient';
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class ExecutionContext {
|
|
|
21
21
|
set payload(payload: any);
|
|
22
22
|
}
|
|
23
23
|
declare function applyDecorators(...decorators: CallableFunction[]): (target: Object, _propertyKey?: string | symbol, descriptor?: PropertyDescriptor) => void;
|
|
24
|
-
declare function createParamDecorator(fn: (context: ExecutionContext) => any): ParameterDecorator;
|
|
24
|
+
declare function createParamDecorator(fn: (context: ExecutionContext) => any): () => ParameterDecorator;
|
|
25
25
|
|
|
26
26
|
type Class<T = any> = new (...args: any[]) => T;
|
|
27
27
|
type InjectableType = 'singleton' | 'transient';
|
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
|
+
"version": "1.1.5",
|
|
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",
|