electron-injector 1.1.0 → 1.1.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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -294,7 +294,7 @@ var Application = class _Application {
|
|
|
294
294
|
loadProviders() {
|
|
295
295
|
for (const provider of this.configOptions.providers || []) {
|
|
296
296
|
this.container.addProvider(provider);
|
|
297
|
-
DEV_LOGGER(`Provider ${typeof provider == "object" ? provider.provided.name : provider.name} loaded`);
|
|
297
|
+
DEV_LOGGER(`[Electron Injector] Provider ${typeof provider == "object" ? provider.provided.name : provider.name} loaded`);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
bootstrap() {
|
|
@@ -309,7 +309,7 @@ var Application = class _Application {
|
|
|
309
309
|
if (typeof handlerMetadata !== "object") continue;
|
|
310
310
|
const handlerGuards = this.getGuards(controllerInstance[controllerMethod]);
|
|
311
311
|
const guards = controllerGuards.filter((guard) => !handlerGuards.includes(guard)).concat(handlerGuards).map((guard) => this.container.resolve(guard));
|
|
312
|
-
const path = this.buildPath(controllerPrefix,
|
|
312
|
+
const path = this.buildPath(controllerPrefix, handlerMetadata.path);
|
|
313
313
|
const handlerCallback = /* @__PURE__ */ __name(async (event, data) => {
|
|
314
314
|
const executionContext = new ExecutionContext(controller, controllerInstance[controllerMethod], data, event);
|
|
315
315
|
for (const guard of guards) {
|
|
@@ -342,6 +342,7 @@ var Application = class _Application {
|
|
|
342
342
|
} else {
|
|
343
343
|
import_electron.ipcMain.on(path, handlerCallback);
|
|
344
344
|
}
|
|
345
|
+
DEV_LOGGER(`[Electron Injector] Route ${path} has initialized (${handlerMetadata.type === "invoke" ? "invoke" : "send"})`);
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
}
|
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var Application = class _Application {
|
|
|
241
241
|
loadProviders() {
|
|
242
242
|
for (const provider of this.configOptions.providers || []) {
|
|
243
243
|
this.container.addProvider(provider);
|
|
244
|
-
DEV_LOGGER(`Provider ${typeof provider == "object" ? provider.provided.name : provider.name} loaded`);
|
|
244
|
+
DEV_LOGGER(`[Electron Injector] Provider ${typeof provider == "object" ? provider.provided.name : provider.name} loaded`);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
bootstrap() {
|
|
@@ -256,7 +256,7 @@ var Application = class _Application {
|
|
|
256
256
|
if (typeof handlerMetadata !== "object") continue;
|
|
257
257
|
const handlerGuards = this.getGuards(controllerInstance[controllerMethod]);
|
|
258
258
|
const guards = controllerGuards.filter((guard) => !handlerGuards.includes(guard)).concat(handlerGuards).map((guard) => this.container.resolve(guard));
|
|
259
|
-
const path = this.buildPath(controllerPrefix,
|
|
259
|
+
const path = this.buildPath(controllerPrefix, handlerMetadata.path);
|
|
260
260
|
const handlerCallback = /* @__PURE__ */ __name(async (event, data) => {
|
|
261
261
|
const executionContext = new ExecutionContext(controller, controllerInstance[controllerMethod], data, event);
|
|
262
262
|
for (const guard of guards) {
|
|
@@ -289,6 +289,7 @@ var Application = class _Application {
|
|
|
289
289
|
} else {
|
|
290
290
|
ipcMain.on(path, handlerCallback);
|
|
291
291
|
}
|
|
292
|
+
DEV_LOGGER(`[Electron Injector] Route ${path} has initialized (${handlerMetadata.type === "invoke" ? "invoke" : "send"})`);
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-injector",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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",
|