@bool-ts/core 1.5.3 → 1.5.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/hooks/factory.js +5 -1
- package/dist/interfaces/controller.d.ts +2 -0
- package/dist/interfaces/controller.js +1 -0
- package/dist/interfaces/dispatcher.js +1 -0
- package/dist/interfaces/guard.js +1 -0
- package/dist/interfaces/middleware.js +1 -0
- package/dist/interfaces/module.d.ts +2 -0
- package/dist/interfaces/module.js +1 -0
- package/package.json +1 -1
- package/src/hooks/factory.ts +7 -1
- package/src/interfaces/dispatcher.ts +3 -0
- package/src/interfaces/guard.ts +3 -0
- package/src/interfaces/middleware.ts +3 -0
- /package/{src → dist}/interfaces/dispatcher.d.ts +0 -0
- /package/{src → dist}/interfaces/guard.d.ts +0 -0
- /package/{src → dist}/interfaces/middleware.d.ts +0 -0
- /package/src/interfaces/{controller.d.ts → controller.ts} +0 -0
- /package/src/interfaces/{module.d.ts → module.ts} +0 -0
package/dist/hooks/factory.js
CHANGED
|
@@ -177,7 +177,11 @@ export const BoolFactory = (target, options) => {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
await middlewareCollection.func(...middlewareArguments);
|
|
180
|
+
const middlewareResult = await middlewareCollection.func(...middlewareArguments);
|
|
181
|
+
if (!(middlewareResult instanceof Response)) {
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
return middlewareResult;
|
|
181
185
|
}
|
|
182
186
|
// Execute guard(s)
|
|
183
187
|
for (let i = 0; i < guardGroup.length; i++) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/hooks/factory.ts
CHANGED
|
@@ -247,7 +247,13 @@ export const BoolFactory = (target: new (...args: any[]) => unknown, options: TB
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
await middlewareCollection.func(...middlewareArguments);
|
|
250
|
+
const middlewareResult = await middlewareCollection.func(...middlewareArguments);
|
|
251
|
+
|
|
252
|
+
if (!(middlewareResult instanceof Response)) {
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return middlewareResult;
|
|
251
257
|
}
|
|
252
258
|
|
|
253
259
|
// Execute guard(s)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|