web_plsql 0.14.0 → 0.14.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/package.json +1 -1
- package/src/types.js +2 -7
- package/types/types.d.ts +4 -7
package/package.json
CHANGED
package/src/types.js
CHANGED
|
@@ -2,6 +2,7 @@ import z from 'zod';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef {import('oracledb').BindParameter} BindParameter
|
|
5
|
+
* @typedef {import('oracledb').Connection} Connection
|
|
5
6
|
* @typedef {import('express').CookieOptions} CookieOptions
|
|
6
7
|
* @typedef {import('express').Request} Request
|
|
7
8
|
*/
|
|
@@ -22,13 +23,7 @@ export const z$configStaticType = z.strictObject({
|
|
|
22
23
|
});
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
|
-
* @
|
|
26
|
-
* @param {Request} req - Incoming request object.
|
|
27
|
-
* @param {import('oracledb').Connection} connection - Active database connection pool.
|
|
28
|
-
* @returns {void | Promise<void>}
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
26
|
+
* @typedef {(req: Request, connection: Connection) => void | Promise<void>} transactionCallbackType
|
|
32
27
|
* @typedef {'commit' | 'rollback' | transactionCallbackType | undefined | null} transactionModeType
|
|
33
28
|
*/
|
|
34
29
|
|
package/types/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import('oracledb').BindParameter} BindParameter
|
|
3
|
+
* @typedef {import('oracledb').Connection} Connection
|
|
3
4
|
* @typedef {import('express').CookieOptions} CookieOptions
|
|
4
5
|
* @typedef {import('express').Request} Request
|
|
5
6
|
*/
|
|
@@ -20,12 +21,7 @@ export const z$configStaticType: z.ZodObject<{
|
|
|
20
21
|
directoryPath: z.ZodString;
|
|
21
22
|
}, z.core.$strict>;
|
|
22
23
|
/**
|
|
23
|
-
* @
|
|
24
|
-
* @param {Request} req - Incoming request object.
|
|
25
|
-
* @param {import('oracledb').Connection} connection - Active database connection pool.
|
|
26
|
-
* @returns {void | Promise<void>}
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
24
|
+
* @typedef {(req: Request, connection: Connection) => void | Promise<void>} transactionCallbackType
|
|
29
25
|
* @typedef {'commit' | 'rollback' | transactionCallbackType | undefined | null} transactionModeType
|
|
30
26
|
*/
|
|
31
27
|
/**
|
|
@@ -122,6 +118,7 @@ export const z$configType: z.ZodObject<{
|
|
|
122
118
|
loggerFilename: z.ZodString;
|
|
123
119
|
}, z.core.$strict>;
|
|
124
120
|
export type BindParameter = import("oracledb").BindParameter;
|
|
121
|
+
export type Connection = import("oracledb").Connection;
|
|
125
122
|
export type CookieOptions = import("express").CookieOptions;
|
|
126
123
|
export type Request = import("express").Request;
|
|
127
124
|
export type errorStyleType = "basic" | "debug";
|
|
@@ -135,7 +132,7 @@ export type configStaticType = {
|
|
|
135
132
|
*/
|
|
136
133
|
directoryPath: string;
|
|
137
134
|
};
|
|
138
|
-
export type transactionCallbackType = (req: Request, connection:
|
|
135
|
+
export type transactionCallbackType = (req: Request, connection: Connection) => void | Promise<void>;
|
|
139
136
|
export type transactionModeType = "commit" | "rollback" | transactionCallbackType | undefined | null;
|
|
140
137
|
export type configPlSqlHandlerType = {
|
|
141
138
|
/**
|