web_plsql 1.4.0 → 1.5.1

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/README.md CHANGED
@@ -217,6 +217,18 @@ The following mod_plsql DAD configuration translates to the configuration option
217
217
  "rollback" this automatically rolls back any open transaction after each request.
218
218
  "transactionCallbackType" this allows defining a custom handler as a JavaScript function.
219
219
  - The option `auth` allows for custom authentication strategies.
220
+ - The option `setupExtensions` allows for injecting custom Express routes and middleware.
221
+ This hook is executed after the database connection pools are initialized but before the static file routes and SPA fallback are mounted.
222
+
223
+ ```typescript
224
+ setupExtensions: async (app, pools) => {
225
+ // app is the Express application
226
+ // pools is an array of initialized Oracle connection pools
227
+ app.get('/api-ext/test', (req, res) => {
228
+ res.json({ status: 'ok', poolsCount: pools.length });
229
+ });
230
+ }
231
+ ```
220
232
 
221
233
  **Basic Authentication**:
222
234
  ```typescript
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };