web_plsql 1.4.0 → 1.5.0
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 +12 -0
- package/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/frontend/assets/main-B5q2ur8E.js +147 -0
- package/dist/frontend/assets/main-B5q2ur8E.js.br +0 -0
- package/dist/frontend/assets/main-B5q2ur8E.js.gz +0 -0
- package/dist/frontend/assets/main-CoERzZAr.css +1 -0
- package/dist/frontend/assets/main-CoERzZAr.css.br +0 -0
- package/dist/frontend/assets/main-CoERzZAr.css.gz +0 -0
- package/dist/frontend/index.html +2 -2
- package/dist/frontend/index.html.br +0 -0
- package/dist/frontend/index.html.gz +0 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +17 -176
- package/dist/index.mjs.map +1 -1
- package/dist/{oracledb-mock-Dn8aHtd7.mjs → oracledb-mock-Cya43xKB.mjs} +3 -4
- package/dist/oracledb-mock-Cya43xKB.mjs.map +1 -0
- package/package.json +45 -48
- package/dist/chunk-DQk6qfdC.mjs +0 -18
- package/dist/frontend/assets/main-C_esuqtI.js +0 -147
- package/dist/frontend/assets/main-C_esuqtI.js.br +0 -0
- package/dist/frontend/assets/main-C_esuqtI.js.gz +0 -0
- package/dist/frontend/assets/main-bU4x_yEW.css +0 -1
- package/dist/frontend/assets/main-bU4x_yEW.css.br +0 -0
- package/dist/frontend/assets/main-bU4x_yEW.css.gz +0 -0
- package/dist/oracledb-mock-Dn8aHtd7.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
|
|
1
|
+
import { t as __exportAll } from "./chunk-CfYAbeIz.mjs";
|
|
3
2
|
//#region src/backend/util/oracledb-mock.ts
|
|
4
3
|
var oracledb_mock_exports = /* @__PURE__ */ __exportAll({
|
|
5
4
|
createPool: () => createPool,
|
|
@@ -62,7 +61,7 @@ var MockPool = class {
|
|
|
62
61
|
async function createPool(_config) {
|
|
63
62
|
return new MockPool();
|
|
64
63
|
}
|
|
65
|
-
|
|
66
64
|
//#endregion
|
|
67
65
|
export { setExecuteCallback as n, oracledb_mock_exports as t };
|
|
68
|
-
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=oracledb-mock-Cya43xKB.mjs.map
|
|
@@ -0,0 +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};\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"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web_plsql",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"author": "Dieter Oberkofler <dieter.oberkofler@gmail.com>",
|
|
5
|
-
"license": "MIT",
|
|
3
|
+
"version": "1.5.0",
|
|
6
4
|
"description": "The Express Middleware for Oracle PL/SQL",
|
|
7
5
|
"keywords": [
|
|
8
|
-
"
|
|
9
|
-
"nodejs",
|
|
6
|
+
"apex",
|
|
10
7
|
"express",
|
|
11
8
|
"middleware",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"oracle",
|
|
9
|
+
"node",
|
|
10
|
+
"nodejs",
|
|
15
11
|
"ohs",
|
|
12
|
+
"oracle",
|
|
16
13
|
"ords",
|
|
17
|
-
"
|
|
14
|
+
"pl/sql",
|
|
15
|
+
"plsql"
|
|
18
16
|
],
|
|
19
17
|
"homepage": "https://github.com/doberkofler/web_plsql",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/doberkofler/web_plsql/issues"
|
|
22
20
|
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Dieter Oberkofler <dieter.oberkofler@gmail.com>",
|
|
23
23
|
"maintainers": [
|
|
24
24
|
{
|
|
25
25
|
"name": "Dieter Oberkofler",
|
|
26
26
|
"email": "dieter.oberkofler@gmail.com"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/doberkofler/web_plsql/issues"
|
|
31
|
-
},
|
|
32
29
|
"repository": {
|
|
33
30
|
"type": "git",
|
|
34
31
|
"url": "git://github.com/doberkofler/web_plsql.git"
|
|
@@ -37,9 +34,9 @@
|
|
|
37
34
|
"dist/",
|
|
38
35
|
"examples/"
|
|
39
36
|
],
|
|
37
|
+
"type": "module",
|
|
40
38
|
"main": "./dist/index.mjs",
|
|
41
39
|
"types": "./dist/index.d.mts",
|
|
42
|
-
"type": "module",
|
|
43
40
|
"scripts": {
|
|
44
41
|
"build": "npm run build:backend && npm run build:frontend",
|
|
45
42
|
"build:backend": "tsdown",
|
|
@@ -47,7 +44,9 @@
|
|
|
47
44
|
"dev": "concurrently -n backend,frontend -c blue,green \"npm:dev:backend\" \"npm:dev:frontend\"",
|
|
48
45
|
"dev:backend": "node --experimental-strip-types --no-warnings dev/server.ts",
|
|
49
46
|
"dev:frontend": "vite",
|
|
50
|
-
"lint": "tsc &&
|
|
47
|
+
"lint": "tsc && oxlint --type-aware --type-check . && npm run format",
|
|
48
|
+
"format": "oxfmt --check .",
|
|
49
|
+
"format-write": "oxfmt .",
|
|
51
50
|
"knip:backend": "knip --config knip.backend.config.ts",
|
|
52
51
|
"knip:frontend": "knip --config knip.frontend.config.ts",
|
|
53
52
|
"test": "vitest run",
|
|
@@ -65,9 +64,6 @@
|
|
|
65
64
|
"pack:dev": "VERSION=$(node -p 'require(\"./package.json\").version'); npm pack; mv web_plsql-$VERSION.tgz web_plsql-dev.tgz",
|
|
66
65
|
"prepare": "husky"
|
|
67
66
|
},
|
|
68
|
-
"peerDependencies": {
|
|
69
|
-
"oracledb": "6.10.0"
|
|
70
|
-
},
|
|
71
67
|
"dependencies": {
|
|
72
68
|
"chart.js": "4.5.1",
|
|
73
69
|
"compression": "1.8.1",
|
|
@@ -77,49 +73,50 @@
|
|
|
77
73
|
"express": "5.2.1",
|
|
78
74
|
"express-static-gzip": "3.0.0",
|
|
79
75
|
"morgan": "1.10.1",
|
|
80
|
-
"multer": "2.
|
|
76
|
+
"multer": "2.1.1",
|
|
81
77
|
"rotating-file-stream": "3.2.9",
|
|
82
78
|
"zod": "4.3.6"
|
|
83
79
|
},
|
|
84
80
|
"devDependencies": {
|
|
85
|
-
"@commitlint/cli": "
|
|
86
|
-
"@commitlint/config-conventional": "
|
|
81
|
+
"@commitlint/cli": "20.5.0",
|
|
82
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
87
83
|
"@playwright/test": "1.58.2",
|
|
88
|
-
"@tailwindcss/vite": "4.2.
|
|
84
|
+
"@tailwindcss/vite": "4.2.2",
|
|
89
85
|
"@types/compression": "1.8.1",
|
|
90
86
|
"@types/cookie-parser": "1.4.10",
|
|
91
87
|
"@types/cors": "2.8.19",
|
|
92
|
-
"@types/debug": "4.1.
|
|
88
|
+
"@types/debug": "4.1.13",
|
|
93
89
|
"@types/morgan": "1.9.10",
|
|
94
|
-
"@types/multer": "2.
|
|
95
|
-
"@types/node": "25.
|
|
96
|
-
"@types/oracledb": "6.10.
|
|
97
|
-
"@types/supertest": "
|
|
98
|
-
"@vitest/coverage-v8": "4.
|
|
99
|
-
"@vitest/eslint-plugin": "1.6.9",
|
|
90
|
+
"@types/multer": "2.1.0",
|
|
91
|
+
"@types/node": "25.5.0",
|
|
92
|
+
"@types/oracledb": "6.10.2",
|
|
93
|
+
"@types/supertest": "7.2.0",
|
|
94
|
+
"@vitest/coverage-v8": "4.1.2",
|
|
100
95
|
"cheerio": "1.2.0",
|
|
101
96
|
"concurrently": "9.2.1",
|
|
102
|
-
"conventional-changelog": "
|
|
103
|
-
"conventional-changelog-angular": "
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"eslint-plugin-jsdoc": "62.7.0",
|
|
107
|
-
"eslint-plugin-regexp": "3.0.0",
|
|
108
|
-
"eslint-plugin-unicorn": "63.0.0",
|
|
109
|
-
"husky": "^9.1.7",
|
|
110
|
-
"knip": "5.85.0",
|
|
97
|
+
"conventional-changelog": "7.2.0",
|
|
98
|
+
"conventional-changelog-angular": "8.3.0",
|
|
99
|
+
"husky": "9.1.7",
|
|
100
|
+
"knip": "6.1.0",
|
|
111
101
|
"oracledb": "6.10.0",
|
|
112
|
-
"
|
|
102
|
+
"oxfmt": "0.42.0",
|
|
103
|
+
"oxlint": "1.57.0",
|
|
104
|
+
"oxlint-tsgolint": "0.18.1",
|
|
113
105
|
"shx": "0.4.0",
|
|
114
|
-
"stylelint": "17.
|
|
106
|
+
"stylelint": "17.6.0",
|
|
115
107
|
"stylelint-config-standard": "40.0.0",
|
|
116
108
|
"supertest": "7.2.2",
|
|
117
|
-
"tailwindcss": "4.2.
|
|
118
|
-
"tsdown": "0.
|
|
119
|
-
"typescript": "
|
|
120
|
-
"
|
|
121
|
-
"vite": "
|
|
122
|
-
"
|
|
123
|
-
|
|
109
|
+
"tailwindcss": "4.2.2",
|
|
110
|
+
"tsdown": "0.21.7",
|
|
111
|
+
"typescript": "6.0.2",
|
|
112
|
+
"vite": "8.0.3",
|
|
113
|
+
"vite-plugin-compression2": "2.5.3",
|
|
114
|
+
"vitest": "4.1.2"
|
|
115
|
+
},
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"oracledb": "6.10.0"
|
|
118
|
+
},
|
|
119
|
+
"engines": {
|
|
120
|
+
"node": ">=24"
|
|
124
121
|
}
|
|
125
122
|
}
|
package/dist/chunk-DQk6qfdC.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (!no_symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __exportAll as t };
|