web_plsql 1.8.1 → 1.8.3

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.
@@ -1 +1 @@
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;AACjE,mBAAkB;;;;;AAMnB,IAAM,UAAN,MAAc;CACb;CACA,YAAY,MAAuB;AAClC,OAAK,OAAO;;CAGb,UAAgB;;;;;AAMjB,IAAM,iBAAN,MAAqB;CACpB,MAAM,QAAqB,KAAa,YAA6B,UAA+C;AACnH,MAAI,gBACH,QAAQ,MAAM,gBAAgB,KAAK,WAAW;AAE/C,SAAO,EAAC,MAAM,EAAE,EAAC;;CAIlB,MAAM,UAAU,MAAqC;AACpD,SAAO,IAAI,QAAQ,KAAK;;CAGzB,MAAM,SAAwB;CAG9B,MAAM,WAA0B;CAGhC,MAAM,UAAyB;;;;;AAQhC,IAAM,WAAN,MAAe;CACd,kBAAkB;CAClB,mBAAmB;CAGnB,MAAM,gBAAqC;AAC1C,OAAK;AACL,OAAK,kBAAkB,KAAK,IAAI,KAAK,iBAAiB,KAAK,iBAAiB;AAC5E,SAAO,IAAI,gBAAgB;;CAI5B,MAAM,MAAM,YAAoC;AAC/C,OAAK,kBAAkB;AACvB,OAAK,mBAAmB;;;;;;;;AAU1B,eAAsB,WAAW,SAAiC;AACjE,QAAO,IAAI,UAAU"}
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"}
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,128 +1,127 @@
1
1
  {
2
- "name": "web_plsql",
3
- "version": "1.8.1",
4
- "description": "The Express Middleware for Oracle PL/SQL",
5
- "keywords": [
6
- "apex",
7
- "express",
8
- "middleware",
9
- "node",
10
- "nodejs",
11
- "ohs",
12
- "oracle",
13
- "ords",
14
- "pl/sql",
15
- "plsql"
16
- ],
17
- "homepage": "https://github.com/doberkofler/web_plsql",
18
- "bugs": {
19
- "url": "https://github.com/doberkofler/web_plsql/issues"
20
- },
21
- "license": "MIT",
22
- "author": "Dieter Oberkofler <dieter.oberkofler@gmail.com>",
23
- "maintainers": [
24
- {
25
- "name": "Dieter Oberkofler",
26
- "email": "dieter.oberkofler@gmail.com"
27
- }
28
- ],
29
- "repository": {
30
- "type": "git",
31
- "url": "git://github.com/doberkofler/web_plsql.git"
32
- },
33
- "files": [
34
- "dist/",
35
- "examples/"
36
- ],
37
- "type": "module",
38
- "main": "./dist/index.mjs",
39
- "types": "./dist/index.d.mts",
40
- "scripts": {
41
- "build": "npm run build:backend && npm run build:frontend",
42
- "build:backend": "tsdown",
43
- "build:frontend": "vite build",
44
- "dev": "concurrently -n backend,frontend -c blue,green \"npm:dev:backend\" \"npm:dev:frontend\"",
45
- "dev:backend": "node --experimental-strip-types --no-warnings dev/server.ts",
46
- "dev:frontend": "vite",
47
- "format": "oxfmt --write",
48
- "format:check": "oxfmt --check",
49
- "lint": "tsc && oxlint && pnpm run format:check",
50
- "knip:backend": "knip --config knip.backend.config.ts",
51
- "knip:frontend": "knip --config knip.frontend.config.ts",
52
- "test": "vitest run",
53
- "test:perf": "vitest run tests/performance.test.ts",
54
- "test:coverage": "vitest run --coverage",
55
- "test:e2e": "playwright test",
56
- "test:e2e:ui": "playwright test --ui",
57
- "test:e2e:debug": "playwright test --debug",
58
- "stylelint": "stylelint \"src/frontend/**/*.css\"",
59
- "clean": "shx rm -f *.tgz && shx rm -f *.log",
60
- "ci": "npm run clean && npm run lint && npm run build && npm run stylelint && npm run test:coverage && npm run test:e2e && npm run knip:backend && npm run knip:frontend",
61
- "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
62
- "image-build": "cd docker && docker build --no-cache --progress=plain --tag=web_plsql .",
63
- "image-save": "cd docker && docker save web_plsql > web_plsql.tar",
64
- "pack:dev": "VERSION=$(node -p 'require(\"./package.json\").version'); npm pack; mv web_plsql-$VERSION.tgz web_plsql-dev.tgz",
65
- "prepare": "husky",
66
- "release": "release-it"
67
- },
68
- "dependencies": {
69
- "chalk": "5.6.2",
70
- "chart.js": "4.5.1",
71
- "compression": "1.8.1",
72
- "cookie-parser": "1.4.7",
73
- "cors": "2.8.6",
74
- "debug": "4.4.3",
75
- "express": "5.2.1",
76
- "express-static-gzip": "3.0.0",
77
- "morgan": "1.10.1",
78
- "multer": "2.1.1",
79
- "rotating-file-stream": "3.2.9",
80
- "slice-ansi": "9.0.0",
81
- "string-width": "8.2.0",
82
- "zod": "4.3.6"
83
- },
84
- "devDependencies": {
85
- "@commitlint/cli": "20.5.0",
86
- "@commitlint/config-conventional": "20.5.0",
87
- "@playwright/test": "1.59.1",
88
- "@tailwindcss/vite": "4.2.2",
89
- "@types/compression": "1.8.1",
90
- "@types/cookie-parser": "1.4.10",
91
- "@types/cors": "2.8.19",
92
- "@types/debug": "4.1.13",
93
- "@types/express": "5.0.6",
94
- "@types/morgan": "1.9.10",
95
- "@types/multer": "2.1.0",
96
- "@types/node": "25.5.2",
97
- "@types/oracledb": "6.10.2",
98
- "@types/supertest": "7.2.0",
99
- "@vitest/coverage-v8": "4.1.4",
100
- "cheerio": "1.2.0",
101
- "concurrently": "9.2.1",
102
- "conventional-changelog": "7.2.0",
103
- "conventional-changelog-angular": "8.3.1",
104
- "husky": "9.1.7",
105
- "knip": "6.3.1",
106
- "oracledb": "6.10.0",
107
- "oxfmt": "0.44.0",
108
- "oxlint": "1.59.0",
109
- "oxlint-tsgolint": "0.20.0",
110
- "release-it": "19.2.4",
111
- "shx": "0.4.0",
112
- "stylelint": "17.6.0",
113
- "stylelint-config-standard": "40.0.0",
114
- "supertest": "7.2.2",
115
- "tailwindcss": "4.2.2",
116
- "tsdown": "0.21.7",
117
- "typescript": "6.0.2",
118
- "vite": "8.0.8",
119
- "vite-plugin-compression2": "2.5.3",
120
- "vitest": "4.1.4"
121
- },
122
- "peerDependencies": {
123
- "oracledb": "6.10.0"
124
- },
125
- "engines": {
126
- "node": ">=24"
127
- }
128
- }
2
+ "name": "web_plsql",
3
+ "version": "1.8.3",
4
+ "description": "The Express Middleware for Oracle PL/SQL",
5
+ "keywords": [
6
+ "apex",
7
+ "express",
8
+ "middleware",
9
+ "node",
10
+ "nodejs",
11
+ "ohs",
12
+ "oracle",
13
+ "ords",
14
+ "pl/sql",
15
+ "plsql"
16
+ ],
17
+ "homepage": "https://github.com/doberkofler/web_plsql",
18
+ "bugs": {
19
+ "url": "https://github.com/doberkofler/web_plsql/issues"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Dieter Oberkofler <dieter.oberkofler@gmail.com>",
23
+ "maintainers": [
24
+ {
25
+ "name": "Dieter Oberkofler",
26
+ "email": "dieter.oberkofler@gmail.com"
27
+ }
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git://github.com/doberkofler/web_plsql.git"
32
+ },
33
+ "files": [
34
+ "dist/",
35
+ "examples/"
36
+ ],
37
+ "type": "module",
38
+ "main": "./dist/index.mjs",
39
+ "types": "./dist/index.d.mts",
40
+ "dependencies": {
41
+ "chalk": "5.6.2",
42
+ "chart.js": "4.5.1",
43
+ "compression": "1.8.1",
44
+ "cookie-parser": "1.4.7",
45
+ "cors": "2.8.6",
46
+ "debug": "4.4.3",
47
+ "express": "5.2.1",
48
+ "express-static-gzip": "3.0.1",
49
+ "morgan": "1.10.1",
50
+ "multer": "2.1.1",
51
+ "rotating-file-stream": "3.2.9",
52
+ "slice-ansi": "9.0.0",
53
+ "string-width": "8.2.1",
54
+ "zod": "4.4.3"
55
+ },
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",
61
+ "@types/compression": "1.8.1",
62
+ "@types/cookie-parser": "1.4.10",
63
+ "@types/cors": "2.8.19",
64
+ "@types/debug": "4.1.13",
65
+ "@types/express": "5.0.6",
66
+ "@types/morgan": "1.9.10",
67
+ "@types/multer": "2.1.0",
68
+ "@types/node": "25.7.0",
69
+ "@types/oracledb": "6.10.3",
70
+ "@types/supertest": "7.2.0",
71
+ "@vitest/coverage-v8": "4.1.6",
72
+ "cheerio": "1.2.0",
73
+ "concurrently": "9.2.1",
74
+ "conventional-changelog": "7.2.0",
75
+ "conventional-changelog-angular": "8.3.1",
76
+ "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",
83
+ "shx": "0.4.0",
84
+ "stylelint": "17.11.0",
85
+ "stylelint-config-standard": "40.0.0",
86
+ "supertest": "7.2.2",
87
+ "tailwindcss": "4.3.0",
88
+ "tsdown": "0.22.0",
89
+ "typescript": "6.0.3",
90
+ "vite": "8.0.12",
91
+ "vite-plugin-compression2": "2.5.3",
92
+ "vitest": "4.1.6"
93
+ },
94
+ "peerDependencies": {
95
+ "oracledb": "6.10.0"
96
+ },
97
+ "engines": {
98
+ "node": ">=24"
99
+ },
100
+ "scripts": {
101
+ "build": "npm run build:backend && npm run build:frontend",
102
+ "build:backend": "tsdown",
103
+ "build:frontend": "vite build",
104
+ "dev": "concurrently -n backend,frontend -c blue,green \"npm:dev:backend\" \"npm:dev:frontend\"",
105
+ "dev:backend": "node --experimental-strip-types --no-warnings dev/server.ts",
106
+ "dev:frontend": "vite",
107
+ "format": "oxfmt --write",
108
+ "format:check": "oxfmt --check",
109
+ "lint": "tsc && oxlint && pnpm run format:check",
110
+ "knip:backend": "knip --config knip.backend.config.ts",
111
+ "knip:frontend": "knip --config knip.frontend.config.ts",
112
+ "test": "vitest run",
113
+ "test:perf": "vitest run tests/performance.test.ts",
114
+ "test:coverage": "vitest run --coverage",
115
+ "test:e2e": "playwright test",
116
+ "test:e2e:ui": "playwright test --ui",
117
+ "test:e2e:debug": "playwright test --debug",
118
+ "stylelint": "stylelint \"src/frontend/**/*.css\"",
119
+ "clean": "shx rm -f *.tgz && shx rm -f *.log",
120
+ "ci": "npm run clean && npm run lint && npm run build && npm run stylelint && npm run test:coverage && npm run test:e2e && npm run knip:backend && npm run knip:frontend",
121
+ "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
122
+ "image-build": "cd docker && docker build --no-cache --progress=plain --tag=web_plsql .",
123
+ "image-save": "cd docker && docker save web_plsql > web_plsql.tar",
124
+ "pack:dev": "VERSION=$(node -p 'require(\"./package.json\").version'); npm pack; mv web_plsql-$VERSION.tgz web_plsql-dev.tgz",
125
+ "release": "release-it"
126
+ }
127
+ }