web_plsql 1.8.3 → 1.8.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web_plsql",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "The Express Middleware for Oracle PL/SQL",
5
5
  "keywords": [
6
6
  "apex",
@@ -46,18 +46,18 @@
46
46
  "debug": "4.4.3",
47
47
  "express": "5.2.1",
48
48
  "express-static-gzip": "3.0.1",
49
- "morgan": "1.10.1",
50
- "multer": "2.1.1",
49
+ "morgan": "1.11.0",
50
+ "multer": "2.2.0",
51
51
  "rotating-file-stream": "3.2.9",
52
52
  "slice-ansi": "9.0.0",
53
53
  "string-width": "8.2.1",
54
54
  "zod": "4.4.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@commitlint/cli": "21.0.0",
58
- "@commitlint/config-conventional": "21.0.0",
59
- "@playwright/test": "1.60.0",
60
- "@tailwindcss/vite": "4.3.0",
57
+ "@commitlint/cli": "21.0.2",
58
+ "@commitlint/config-conventional": "21.0.2",
59
+ "@playwright/test": "1.61.0",
60
+ "@tailwindcss/vite": "4.3.1",
61
61
  "@types/compression": "1.8.1",
62
62
  "@types/cookie-parser": "1.4.10",
63
63
  "@types/cors": "2.8.19",
@@ -65,34 +65,35 @@
65
65
  "@types/express": "5.0.6",
66
66
  "@types/morgan": "1.9.10",
67
67
  "@types/multer": "2.1.0",
68
- "@types/node": "25.7.0",
69
- "@types/oracledb": "6.10.3",
68
+ "@types/node": "26.0.0",
69
+ "@types/oracledb": "7.0.1",
70
70
  "@types/supertest": "7.2.0",
71
- "@vitest/coverage-v8": "4.1.6",
71
+ "@vitest/coverage-v8": "4.1.9",
72
72
  "cheerio": "1.2.0",
73
- "concurrently": "9.2.1",
74
- "conventional-changelog": "7.2.0",
73
+ "concurrently": "10.0.3",
74
+ "conventional-changelog": "7.2.1",
75
75
  "conventional-changelog-angular": "8.3.1",
76
+ "eslint-plugin-regexp": "^3.1.0",
76
77
  "husky": "9.1.7",
77
- "knip": "6.12.2",
78
- "oracledb": "6.10.0",
79
- "oxfmt": "0.49.0",
80
- "oxlint": "1.64.0",
81
- "oxlint-tsgolint": "0.22.1",
82
- "release-it": "20.0.1",
78
+ "knip": "6.18.0",
79
+ "oracledb": "7.0.0",
80
+ "oxfmt": "0.56.0",
81
+ "oxlint": "1.71.0",
82
+ "oxlint-tsgolint": "0.23.0",
83
+ "release-it": "20.2.0",
83
84
  "shx": "0.4.0",
84
- "stylelint": "17.11.0",
85
+ "stylelint": "17.13.0",
85
86
  "stylelint-config-standard": "40.0.0",
86
87
  "supertest": "7.2.2",
87
- "tailwindcss": "4.3.0",
88
- "tsdown": "0.22.0",
88
+ "tailwindcss": "4.3.1",
89
+ "tsdown": "0.22.3",
89
90
  "typescript": "6.0.3",
90
- "vite": "8.0.12",
91
+ "vite": "8.0.16",
91
92
  "vite-plugin-compression2": "2.5.3",
92
- "vitest": "4.1.6"
93
+ "vitest": "4.1.9"
93
94
  },
94
95
  "peerDependencies": {
95
- "oracledb": "6.10.0"
96
+ "oracledb": "7.0.0"
96
97
  },
97
98
  "engines": {
98
99
  "node": ">=24"
@@ -1,67 +0,0 @@
1
- import { t as __exportAll } from "./chunk-CfYAbeIz.mjs";
2
- //#region src/backend/util/oracledb-mock.ts
3
- var oracledb_mock_exports = /* @__PURE__ */ __exportAll({
4
- createPool: () => createPool,
5
- setExecuteCallback: () => setExecuteCallback
6
- });
7
- let executeCallback = null;
8
- /**
9
- * Test utility: Set the callback for execute calls.
10
- * @param cb - The callback
11
- */
12
- const setExecuteCallback = (cb) => {
13
- executeCallback = cb;
14
- };
15
- /**
16
- * Mock LOB class.
17
- */
18
- var MockLob = class {
19
- type;
20
- constructor(type) {
21
- this.type = type;
22
- }
23
- destroy() {}
24
- };
25
- /**
26
- * Mock Connection class.
27
- */
28
- var MockConnection = class {
29
- async execute(sql, bindParams, _options) {
30
- if (executeCallback) return await executeCallback(sql, bindParams);
31
- return { rows: [] };
32
- }
33
- async createLob(type) {
34
- return new MockLob(type);
35
- }
36
- async commit() {}
37
- async rollback() {}
38
- async release() {}
39
- };
40
- /**
41
- * Mock Pool class.
42
- */
43
- var MockPool = class {
44
- connectionsOpen = 0;
45
- connectionsInUse = 0;
46
- async getConnection() {
47
- this.connectionsInUse++;
48
- this.connectionsOpen = Math.max(this.connectionsOpen, this.connectionsInUse);
49
- return new MockConnection();
50
- }
51
- async close(_drainTime) {
52
- this.connectionsOpen = 0;
53
- this.connectionsInUse = 0;
54
- }
55
- };
56
- /**
57
- * Mock createPool function.
58
- * @param _config - The configuration
59
- * @returns The pool
60
- */
61
- async function createPool(_config) {
62
- return new MockPool();
63
- }
64
- //#endregion
65
- export { setExecuteCallback as n, oracledb_mock_exports as t };
66
-
67
- //# sourceMappingURL=oracledb-mock-Cya43xKB.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oracledb-mock-Cya43xKB.mjs","names":[],"sources":["../src/backend/util/oracledb-mock.ts"],"sourcesContent":["import type {Connection, Pool, Lob, Result, BindParameters, ExecuteOptions, DbType} from 'oracledb';\n\n// Mock implementation\nexport type ExecuteCallback = (sql: string, binds?: BindParameters) => Promise<Result<unknown>> | Result<unknown>;\nlet executeCallback: ExecuteCallback | null = null;\n\n/**\n * Test utility: Set the callback for execute calls.\n * @param cb - The callback\n */\nexport const setExecuteCallback = (cb: ExecuteCallback | null) => {\n\texecuteCallback = cb;\n};\n\n/**\n * Mock LOB class.\n */\nclass MockLob {\n\ttype: DbType | number;\n\tconstructor(type: DbType | number) {\n\t\tthis.type = type;\n\t}\n\t// oxlint-disable-next-line typescript/no-empty-function\n\tdestroy(): void {}\n}\n\n/**\n * Mock Connection class.\n */\nclass MockConnection {\n\tasync execute<T = unknown>(sql: string, bindParams?: BindParameters, _options?: ExecuteOptions): Promise<Result<T>> {\n\t\tif (executeCallback) {\n\t\t\treturn (await executeCallback(sql, bindParams)) as Result<T>;\n\t\t}\n\t\treturn {rows: []} as Result<T>;\n\t}\n\n\t// oxlint-disable-next-line typescript/require-await\n\tasync createLob(type: DbType | number): Promise<Lob> {\n\t\treturn new MockLob(type) as unknown as Lob;\n\t}\n\n\tasync commit(): Promise<void> {\n\t\t// empty\n\t}\n\tasync rollback(): Promise<void> {\n\t\t// empty\n\t}\n\tasync release(): Promise<void> {\n\t\t// empty\n\t}\n}\n\n/**\n * Mock Pool class.\n */\nclass MockPool {\n\tconnectionsOpen = 0;\n\tconnectionsInUse = 0;\n\n\t// oxlint-disable-next-line typescript/require-await\n\tasync getConnection(): Promise<Connection> {\n\t\tthis.connectionsInUse++;\n\t\tthis.connectionsOpen = Math.max(this.connectionsOpen, this.connectionsInUse);\n\t\treturn new MockConnection() as unknown as Connection;\n\t}\n\n\t// oxlint-disable-next-line typescript/require-await\n\tasync close(_drainTime?: number): Promise<void> {\n\t\tthis.connectionsOpen = 0;\n\t\tthis.connectionsInUse = 0;\n\t}\n}\n\n/**\n * Mock createPool function.\n * @param _config - The configuration\n * @returns The pool\n */\n// oxlint-disable-next-line typescript/require-await\nexport async function createPool(_config: unknown): Promise<Pool> {\n\treturn new MockPool() as unknown as Pool;\n}\n\n// Default export mimics oracledb module structure for test mocking\nexport default {\n\t// Constants will be merged from actual oracledb by vi.importActual in test_setup.ts\n\tcreatePool,\n\tsetExecuteCallback,\n};"],"mappings":";;;;;;AAIA,IAAI,kBAA0C;;;;;AAM9C,MAAa,sBAAsB,OAA+B;CACjE,kBAAkB;;;;;AAMnB,IAAM,UAAN,MAAc;CACb;CACA,YAAY,MAAuB;EAClC,KAAK,OAAO;;CAGb,UAAgB;;;;;AAMjB,IAAM,iBAAN,MAAqB;CACpB,MAAM,QAAqB,KAAa,YAA6B,UAA+C;EACnH,IAAI,iBACH,OAAQ,MAAM,gBAAgB,KAAK,WAAW;EAE/C,OAAO,EAAC,MAAM,EAAE,EAAC;;CAIlB,MAAM,UAAU,MAAqC;EACpD,OAAO,IAAI,QAAQ,KAAK;;CAGzB,MAAM,SAAwB;CAG9B,MAAM,WAA0B;CAGhC,MAAM,UAAyB;;;;;AAQhC,IAAM,WAAN,MAAe;CACd,kBAAkB;CAClB,mBAAmB;CAGnB,MAAM,gBAAqC;EAC1C,KAAK;EACL,KAAK,kBAAkB,KAAK,IAAI,KAAK,iBAAiB,KAAK,iBAAiB;EAC5E,OAAO,IAAI,gBAAgB;;CAI5B,MAAM,MAAM,YAAoC;EAC/C,KAAK,kBAAkB;EACvB,KAAK,mBAAmB;;;;;;;;AAU1B,eAAsB,WAAW,SAAiC;CACjE,OAAO,IAAI,UAAU"}