prostgles-server 4.2.133 → 4.2.135
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/dist/Auth/AuthHandler.d.ts +66 -0
- package/dist/Auth/AuthHandler.d.ts.map +1 -0
- package/dist/Auth/AuthHandler.js +425 -0
- package/dist/Auth/AuthHandler.js.map +1 -0
- package/dist/Auth/AuthTypes.d.ts +218 -0
- package/dist/Auth/AuthTypes.d.ts.map +1 -0
- package/dist/Auth/AuthTypes.js +3 -0
- package/dist/Auth/AuthTypes.js.map +1 -0
- package/dist/Auth/authInit.d.ts +3 -0
- package/dist/Auth/authInit.d.ts.map +1 -0
- package/dist/Auth/authInit.js +155 -0
- package/dist/Auth/authInit.js.map +1 -0
- package/dist/Auth/getSafeReturnURL.d.ts +2 -0
- package/dist/Auth/getSafeReturnURL.d.ts.map +1 -0
- package/dist/Auth/getSafeReturnURL.js +35 -0
- package/dist/Auth/getSafeReturnURL.js.map +1 -0
- package/dist/Auth/setAuthSignup.d.ts +5 -0
- package/dist/Auth/setAuthSignup.d.ts.map +1 -0
- package/dist/Auth/setAuthSignup.js +85 -0
- package/dist/Auth/setAuthSignup.js.map +1 -0
- package/dist/DboBuilder/DboBuilderTypes.d.ts +3 -3
- package/dist/DboBuilder/DboBuilderTypes.d.ts.map +1 -1
- package/dist/DboBuilder/DboBuilderTypes.js.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getNewQuery.d.ts +1 -1
- package/dist/DboBuilder/ViewHandler/ViewHandler.d.ts +1 -1
- package/dist/DboBuilder/runSQL.d.ts +1 -1
- package/dist/FileManager/initFileManager.js +1 -1
- package/dist/FileManager/initFileManager.js.map +1 -1
- package/dist/Filtering.d.ts +1 -1
- package/dist/Prostgles.d.ts +1 -1
- package/dist/Prostgles.d.ts.map +1 -1
- package/dist/Prostgles.js +1 -1
- package/dist/Prostgles.js.map +1 -1
- package/dist/ProstglesTypes.d.ts +1 -1
- package/dist/ProstglesTypes.d.ts.map +1 -1
- package/dist/PubSubManager/PubSubManager.d.ts +1 -1
- package/dist/PubSubManager/PubSubManager.d.ts.map +1 -1
- package/dist/PubSubManager/PubSubManager.js +4 -3
- package/dist/PubSubManager/PubSubManager.js.map +1 -1
- package/dist/PublishParser/PublishParser.d.ts +2 -2
- package/dist/PublishParser/PublishParser.d.ts.map +1 -1
- package/dist/PublishParser/PublishParser.js.map +1 -1
- package/dist/PublishParser/getFileTableRules.d.ts +1 -1
- package/dist/PublishParser/getFileTableRules.d.ts.map +1 -1
- package/dist/PublishParser/getSchemaFromPublish.d.ts +1 -1
- package/dist/PublishParser/getSchemaFromPublish.d.ts.map +1 -1
- package/dist/PublishParser/getTableRulesWithoutFileTable.d.ts +1 -1
- package/dist/PublishParser/getTableRulesWithoutFileTable.d.ts.map +1 -1
- package/dist/PublishParser/publishTypesAndUtils.d.ts +1 -1
- package/dist/PublishParser/publishTypesAndUtils.d.ts.map +1 -1
- package/dist/PublishParser/publishTypesAndUtils.js.map +1 -1
- package/dist/RestApi.d.ts +1 -1
- package/dist/RestApi.d.ts.map +1 -1
- package/dist/RestApi.js +1 -1
- package/dist/RestApi.js.map +1 -1
- package/dist/SchemaWatch/SchemaWatch.d.ts.map +1 -1
- package/dist/SchemaWatch/SchemaWatch.js +5 -1
- package/dist/SchemaWatch/SchemaWatch.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/initProstgles.js +1 -1
- package/dist/initProstgles.js.map +1 -1
- package/dist/runClientRequest.d.ts +1 -1
- package/dist/runClientRequest.d.ts.map +1 -1
- package/dist/runClientRequest.js +1 -1
- package/dist/runClientRequest.js.map +1 -1
- package/lib/Auth/AuthHandler.ts +474 -0
- package/lib/Auth/AuthTypes.ts +247 -0
- package/lib/Auth/authInit.ts +166 -0
- package/lib/Auth/getSafeReturnURL.ts +35 -0
- package/lib/Auth/setAuthSignup.ts +100 -0
- package/lib/DBSchemaBuilder.ts +1 -1
- package/lib/DboBuilder/DboBuilderTypes.ts +4 -3
- package/lib/FileManager/initFileManager.ts +1 -1
- package/lib/Prostgles.ts +2 -2
- package/lib/ProstglesTypes.ts +1 -1
- package/lib/PubSubManager/PubSubManager.ts +4 -3
- package/lib/PublishParser/PublishParser.ts +3 -3
- package/lib/PublishParser/getFileTableRules.ts +1 -1
- package/lib/PublishParser/getSchemaFromPublish.ts +1 -1
- package/lib/PublishParser/getTableRulesWithoutFileTable.ts +1 -1
- package/lib/PublishParser/publishTypesAndUtils.ts +1 -1
- package/lib/RestApi.ts +2 -1
- package/lib/SchemaWatch/SchemaWatch.ts +5 -1
- package/lib/index.ts +1 -1
- package/lib/initProstgles.ts +1 -1
- package/lib/runClientRequest.ts +3 -3
- package/package.json +14 -4
- package/tests/client/index.ts +9 -7
- package/tests/client/package-lock.json +2827 -143
- package/tests/client/package.json +1 -1
- package/tests/client/tsconfig.json +0 -6
- package/tests/clientFileTests.spec.ts +2 -3
- package/tests/clientOnlyQueries.spec.ts +2 -2
- package/tests/clientRestApi.spec.ts +2 -2
- package/tests/server/index.ts +1 -1
- package/tests/server/package-lock.json +62 -77
- package/tests/server/package.json +2 -2
- package/tests/server/tsconfig.json +1 -2
- package/tests/serverOnlyQueries.spec.ts +2 -2
- package/tsconfig.json +0 -1
- package/lib/AuthHandler.ts +0 -816
|
@@ -3,14 +3,8 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "es2022",
|
|
5
5
|
"lib": [ "es2022", "DOM" ],
|
|
6
|
-
// "outDir": "dist",
|
|
7
6
|
"esModuleInterop" : true,
|
|
8
7
|
"module": "commonjs",
|
|
9
|
-
// "sourceMap": true,
|
|
10
|
-
// "rootDir": ".",
|
|
11
|
-
// "declaration": true,
|
|
12
|
-
// "declarationMap": true,
|
|
13
|
-
"keyofStringsOnly": true,
|
|
14
8
|
"ignoreDeprecations": "5.0",
|
|
15
9
|
"skipLibCheck": true,
|
|
16
10
|
"outDir": "dist",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import { DBSchemaTable } from "prostgles-types";
|
|
3
|
-
import type {
|
|
4
|
-
import { tryRun } from './isomorphicQueries.spec';
|
|
3
|
+
import type { AuthHandler, DBHandlerClient } from "./client";
|
|
5
4
|
import { strict as assert } from 'assert';
|
|
6
5
|
import fs from "fs";
|
|
7
6
|
import { describe, test } from "node:test";
|
|
8
7
|
|
|
9
|
-
export const clientFileTests = async (db: DBHandlerClient, auth:
|
|
8
|
+
export const clientFileTests = async (db: DBHandlerClient, auth: AuthHandler, log: (...args: any[]) => any, methods, tableSchema: DBSchemaTable[]) => {
|
|
10
9
|
|
|
11
10
|
await describe("clientFileTests", async () => {
|
|
12
11
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { strict as assert } from 'assert';
|
|
2
|
-
import type { DBHandlerClient,
|
|
2
|
+
import type { DBHandlerClient, AuthHandler } from "./client";
|
|
3
3
|
import { AnyObject, DBSchemaTable, SocketSQLStreamPacket, isDefined } from "prostgles-types";
|
|
4
4
|
import { tryRun, tryRunP } from './isomorphicQueries.spec';
|
|
5
5
|
import { describe, test } from "node:test";
|
|
6
6
|
|
|
7
|
-
export const clientOnlyQueries = async (db: DBHandlerClient, auth:
|
|
7
|
+
export const clientOnlyQueries = async (db: DBHandlerClient, auth: AuthHandler, log: (...args: any[]) => any, methods, tableSchema: DBSchemaTable[], token: string) => {
|
|
8
8
|
|
|
9
9
|
await describe("Client only queries", async (t) => {
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { strict as assert } from 'assert';
|
|
2
|
-
import type { DBHandlerClient,
|
|
2
|
+
import type { DBHandlerClient, AuthHandler } from "./client";
|
|
3
3
|
import { DBSchemaTable } from "prostgles-types";
|
|
4
4
|
import { describe, test } from "node:test";
|
|
5
5
|
|
|
6
|
-
export const clientRestApi = async(db: DBHandlerClient, auth:
|
|
6
|
+
export const clientRestApi = async(db: DBHandlerClient, auth: AuthHandler, log: (...args: any[]) => any, methods, tableSchema: DBSchemaTable[], token: string) => {
|
|
7
7
|
|
|
8
8
|
await describe("clientRestApi", async () => {
|
|
9
9
|
|
package/tests/server/index.ts
CHANGED
|
@@ -168,7 +168,7 @@ function dd(){
|
|
|
168
168
|
if(s) {
|
|
169
169
|
const user = users.find(u => s && s.user_id === u.id);
|
|
170
170
|
if(user) {
|
|
171
|
-
return { sid: s.id, user, clientUser: { sid: s.id, uid: user.id } }
|
|
171
|
+
return { sid: s.id, user, clientUser: { sid: s.id, uid: user.id, id: user.id, type: user.type } }
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -9,38 +9,48 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"express": "^4.21.
|
|
12
|
+
"express": "^4.21.1",
|
|
13
13
|
"prostgles-server": "file:../.."
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "^20.9.2",
|
|
17
17
|
"socket.io": "^4.8.1",
|
|
18
|
-
"tsc-watch": "^
|
|
18
|
+
"tsc-watch": "^6.2.1",
|
|
19
19
|
"typescript": "^5.3.3"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"../..": {
|
|
23
23
|
"name": "prostgles-server",
|
|
24
|
-
"version": "4.2.
|
|
24
|
+
"version": "4.2.134",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"body-parser": "^1.20.3",
|
|
28
28
|
"check-disk-space": "^3.4.0",
|
|
29
29
|
"file-type": "^18.5.0",
|
|
30
|
+
"passport": "^0.7.0",
|
|
31
|
+
"passport-facebook": "^3.0.0",
|
|
32
|
+
"passport-github2": "^0.1.12",
|
|
33
|
+
"passport-google-oauth20": "^2.0.0",
|
|
34
|
+
"passport-microsoft": "^2.1.0",
|
|
30
35
|
"pg": "^8.11.5",
|
|
31
36
|
"pg-cursor": "^2.11.0",
|
|
32
37
|
"pg-promise": "^11.9.1",
|
|
33
|
-
"prostgles-types": "^4.0.
|
|
38
|
+
"prostgles-types": "^4.0.105"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
41
|
"@types/express": "^4.17.21",
|
|
37
42
|
"@types/json-schema": "^7.0.15",
|
|
38
43
|
"@types/node": "^22.8.1",
|
|
44
|
+
"@types/passport": "^1.0.17",
|
|
45
|
+
"@types/passport-facebook": "^3.0.3",
|
|
46
|
+
"@types/passport-github2": "^1.2.9",
|
|
47
|
+
"@types/passport-google-oauth20": "^2.0.16",
|
|
48
|
+
"@types/passport-microsoft": "^1.0.3",
|
|
39
49
|
"@types/pg": "^8.11.5",
|
|
40
50
|
"@types/pg-cursor": "^2.7.2",
|
|
41
51
|
"@types/sharp": "^0.30.4",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
-
"@typescript-eslint/parser": "^8.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
53
|
+
"@typescript-eslint/parser": "^8.15.0",
|
|
44
54
|
"eslint": "^8.51.0",
|
|
45
55
|
"socket.io": "^4.8.1",
|
|
46
56
|
"typescript": "^5.3.3"
|
|
@@ -90,15 +100,6 @@
|
|
|
90
100
|
"node": ">= 0.6"
|
|
91
101
|
}
|
|
92
102
|
},
|
|
93
|
-
"node_modules/ansi-regex": {
|
|
94
|
-
"version": "5.0.1",
|
|
95
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
96
|
-
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
97
|
-
"dev": true,
|
|
98
|
-
"engines": {
|
|
99
|
-
"node": ">=8"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
103
|
"node_modules/array-flatten": {
|
|
103
104
|
"version": "1.1.1",
|
|
104
105
|
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
|
@@ -187,9 +188,10 @@
|
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
190
|
"node_modules/cookie": {
|
|
190
|
-
"version": "0.
|
|
191
|
-
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.
|
|
192
|
-
"integrity": "sha512-
|
|
191
|
+
"version": "0.7.1",
|
|
192
|
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
|
193
|
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
|
194
|
+
"license": "MIT",
|
|
193
195
|
"engines": {
|
|
194
196
|
"node": ">= 0.6"
|
|
195
197
|
}
|
|
@@ -412,9 +414,9 @@
|
|
|
412
414
|
}
|
|
413
415
|
},
|
|
414
416
|
"node_modules/express": {
|
|
415
|
-
"version": "4.21.
|
|
416
|
-
"resolved": "https://registry.npmjs.org/express/-/express-4.21.
|
|
417
|
-
"integrity": "sha512-
|
|
417
|
+
"version": "4.21.1",
|
|
418
|
+
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
|
|
419
|
+
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
|
418
420
|
"license": "MIT",
|
|
419
421
|
"dependencies": {
|
|
420
422
|
"accepts": "~1.3.8",
|
|
@@ -422,7 +424,7 @@
|
|
|
422
424
|
"body-parser": "1.20.3",
|
|
423
425
|
"content-disposition": "0.5.4",
|
|
424
426
|
"content-type": "~1.0.4",
|
|
425
|
-
"cookie": "0.
|
|
427
|
+
"cookie": "0.7.1",
|
|
426
428
|
"cookie-signature": "1.0.6",
|
|
427
429
|
"debug": "2.6.9",
|
|
428
430
|
"depd": "2.0.0",
|
|
@@ -1133,26 +1135,15 @@
|
|
|
1133
1135
|
}
|
|
1134
1136
|
},
|
|
1135
1137
|
"node_modules/string-argv": {
|
|
1136
|
-
"version": "0.
|
|
1137
|
-
"resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.
|
|
1138
|
-
"integrity": "sha512-
|
|
1138
|
+
"version": "0.3.2",
|
|
1139
|
+
"resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
|
|
1140
|
+
"integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
|
|
1139
1141
|
"dev": true,
|
|
1142
|
+
"license": "MIT",
|
|
1140
1143
|
"engines": {
|
|
1141
1144
|
"node": ">=0.6.19"
|
|
1142
1145
|
}
|
|
1143
1146
|
},
|
|
1144
|
-
"node_modules/strip-ansi": {
|
|
1145
|
-
"version": "6.0.1",
|
|
1146
|
-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
1147
|
-
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
1148
|
-
"dev": true,
|
|
1149
|
-
"dependencies": {
|
|
1150
|
-
"ansi-regex": "^5.0.1"
|
|
1151
|
-
},
|
|
1152
|
-
"engines": {
|
|
1153
|
-
"node": ">=8"
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
1147
|
"node_modules/through": {
|
|
1157
1148
|
"version": "2.3.8",
|
|
1158
1149
|
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
|
|
@@ -1169,22 +1160,22 @@
|
|
|
1169
1160
|
}
|
|
1170
1161
|
},
|
|
1171
1162
|
"node_modules/tsc-watch": {
|
|
1172
|
-
"version": "
|
|
1173
|
-
"resolved": "https://registry.npmjs.org/tsc-watch/-/tsc-watch-
|
|
1174
|
-
"integrity": "sha512-
|
|
1163
|
+
"version": "6.2.1",
|
|
1164
|
+
"resolved": "https://registry.npmjs.org/tsc-watch/-/tsc-watch-6.2.1.tgz",
|
|
1165
|
+
"integrity": "sha512-GLwdz5Dy9K3sVm3RzgkLcyDpl5cvU9HEcE1A3gf5rqEwlUe7gDLxNCgcuNEw3zoKOiegMo3LnbF1t6HLqxhrSA==",
|
|
1175
1166
|
"dev": true,
|
|
1167
|
+
"license": "MIT",
|
|
1176
1168
|
"dependencies": {
|
|
1177
1169
|
"cross-spawn": "^7.0.3",
|
|
1178
1170
|
"node-cleanup": "^2.1.2",
|
|
1179
1171
|
"ps-tree": "^1.2.0",
|
|
1180
|
-
"string-argv": "^0.
|
|
1181
|
-
"strip-ansi": "^6.0.0"
|
|
1172
|
+
"string-argv": "^0.3.1"
|
|
1182
1173
|
},
|
|
1183
1174
|
"bin": {
|
|
1184
|
-
"tsc-watch": "
|
|
1175
|
+
"tsc-watch": "dist/lib/tsc-watch.js"
|
|
1185
1176
|
},
|
|
1186
1177
|
"engines": {
|
|
1187
|
-
"node": ">=
|
|
1178
|
+
"node": ">=12.12.0"
|
|
1188
1179
|
},
|
|
1189
1180
|
"peerDependencies": {
|
|
1190
1181
|
"typescript": "*"
|
|
@@ -1324,12 +1315,6 @@
|
|
|
1324
1315
|
"negotiator": "0.6.3"
|
|
1325
1316
|
}
|
|
1326
1317
|
},
|
|
1327
|
-
"ansi-regex": {
|
|
1328
|
-
"version": "5.0.1",
|
|
1329
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
1330
|
-
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
1331
|
-
"dev": true
|
|
1332
|
-
},
|
|
1333
1318
|
"array-flatten": {
|
|
1334
1319
|
"version": "1.1.1",
|
|
1335
1320
|
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
|
@@ -1391,9 +1376,9 @@
|
|
|
1391
1376
|
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="
|
|
1392
1377
|
},
|
|
1393
1378
|
"cookie": {
|
|
1394
|
-
"version": "0.
|
|
1395
|
-
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.
|
|
1396
|
-
"integrity": "sha512-
|
|
1379
|
+
"version": "0.7.1",
|
|
1380
|
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
|
1381
|
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="
|
|
1397
1382
|
},
|
|
1398
1383
|
"cookie-signature": {
|
|
1399
1384
|
"version": "1.0.6",
|
|
@@ -1551,16 +1536,16 @@
|
|
|
1551
1536
|
}
|
|
1552
1537
|
},
|
|
1553
1538
|
"express": {
|
|
1554
|
-
"version": "4.21.
|
|
1555
|
-
"resolved": "https://registry.npmjs.org/express/-/express-4.21.
|
|
1556
|
-
"integrity": "sha512-
|
|
1539
|
+
"version": "4.21.1",
|
|
1540
|
+
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
|
|
1541
|
+
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
|
1557
1542
|
"requires": {
|
|
1558
1543
|
"accepts": "~1.3.8",
|
|
1559
1544
|
"array-flatten": "1.1.1",
|
|
1560
1545
|
"body-parser": "1.20.3",
|
|
1561
1546
|
"content-disposition": "0.5.4",
|
|
1562
1547
|
"content-type": "~1.0.4",
|
|
1563
|
-
"cookie": "0.
|
|
1548
|
+
"cookie": "0.7.1",
|
|
1564
1549
|
"cookie-signature": "1.0.6",
|
|
1565
1550
|
"debug": "2.6.9",
|
|
1566
1551
|
"depd": "2.0.0",
|
|
@@ -1810,19 +1795,29 @@
|
|
|
1810
1795
|
"@types/express": "^4.17.21",
|
|
1811
1796
|
"@types/json-schema": "^7.0.15",
|
|
1812
1797
|
"@types/node": "^22.8.1",
|
|
1798
|
+
"@types/passport": "^1.0.17",
|
|
1799
|
+
"@types/passport-facebook": "^3.0.3",
|
|
1800
|
+
"@types/passport-github2": "^1.2.9",
|
|
1801
|
+
"@types/passport-google-oauth20": "^2.0.16",
|
|
1802
|
+
"@types/passport-microsoft": "^1.0.3",
|
|
1813
1803
|
"@types/pg": "^8.11.5",
|
|
1814
1804
|
"@types/pg-cursor": "^2.7.2",
|
|
1815
1805
|
"@types/sharp": "^0.30.4",
|
|
1816
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
1817
|
-
"@typescript-eslint/parser": "^8.
|
|
1806
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
1807
|
+
"@typescript-eslint/parser": "^8.15.0",
|
|
1818
1808
|
"body-parser": "^1.20.3",
|
|
1819
1809
|
"check-disk-space": "^3.4.0",
|
|
1820
1810
|
"eslint": "^8.51.0",
|
|
1821
1811
|
"file-type": "^18.5.0",
|
|
1812
|
+
"passport": "^0.7.0",
|
|
1813
|
+
"passport-facebook": "^3.0.0",
|
|
1814
|
+
"passport-github2": "^0.1.12",
|
|
1815
|
+
"passport-google-oauth20": "^2.0.0",
|
|
1816
|
+
"passport-microsoft": "^2.1.0",
|
|
1822
1817
|
"pg": "^8.11.5",
|
|
1823
1818
|
"pg-cursor": "^2.11.0",
|
|
1824
1819
|
"pg-promise": "^11.9.1",
|
|
1825
|
-
"prostgles-types": "^4.0.
|
|
1820
|
+
"prostgles-types": "^4.0.105",
|
|
1826
1821
|
"socket.io": "^4.8.1",
|
|
1827
1822
|
"typescript": "^5.3.3"
|
|
1828
1823
|
}
|
|
@@ -2076,20 +2071,11 @@
|
|
|
2076
2071
|
}
|
|
2077
2072
|
},
|
|
2078
2073
|
"string-argv": {
|
|
2079
|
-
"version": "0.
|
|
2080
|
-
"resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.
|
|
2081
|
-
"integrity": "sha512-
|
|
2074
|
+
"version": "0.3.2",
|
|
2075
|
+
"resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
|
|
2076
|
+
"integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
|
|
2082
2077
|
"dev": true
|
|
2083
2078
|
},
|
|
2084
|
-
"strip-ansi": {
|
|
2085
|
-
"version": "6.0.1",
|
|
2086
|
-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
2087
|
-
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
2088
|
-
"dev": true,
|
|
2089
|
-
"requires": {
|
|
2090
|
-
"ansi-regex": "^5.0.1"
|
|
2091
|
-
}
|
|
2092
|
-
},
|
|
2093
2079
|
"through": {
|
|
2094
2080
|
"version": "2.3.8",
|
|
2095
2081
|
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
|
|
@@ -2102,16 +2088,15 @@
|
|
|
2102
2088
|
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
|
2103
2089
|
},
|
|
2104
2090
|
"tsc-watch": {
|
|
2105
|
-
"version": "
|
|
2106
|
-
"resolved": "https://registry.npmjs.org/tsc-watch/-/tsc-watch-
|
|
2107
|
-
"integrity": "sha512-
|
|
2091
|
+
"version": "6.2.1",
|
|
2092
|
+
"resolved": "https://registry.npmjs.org/tsc-watch/-/tsc-watch-6.2.1.tgz",
|
|
2093
|
+
"integrity": "sha512-GLwdz5Dy9K3sVm3RzgkLcyDpl5cvU9HEcE1A3gf5rqEwlUe7gDLxNCgcuNEw3zoKOiegMo3LnbF1t6HLqxhrSA==",
|
|
2108
2094
|
"dev": true,
|
|
2109
2095
|
"requires": {
|
|
2110
2096
|
"cross-spawn": "^7.0.3",
|
|
2111
2097
|
"node-cleanup": "^2.1.2",
|
|
2112
2098
|
"ps-tree": "^1.2.0",
|
|
2113
|
-
"string-argv": "^0.
|
|
2114
|
-
"strip-ansi": "^6.0.0"
|
|
2099
|
+
"string-argv": "^0.3.1"
|
|
2115
2100
|
}
|
|
2116
2101
|
},
|
|
2117
2102
|
"type-is": {
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"express": "^4.21.
|
|
16
|
+
"express": "^4.21.1",
|
|
17
17
|
"prostgles-server": "file:../.."
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^20.9.2",
|
|
21
21
|
"socket.io": "^4.8.1",
|
|
22
|
-
"tsc-watch": "^
|
|
22
|
+
"tsc-watch": "^6.2.1",
|
|
23
23
|
"typescript": "^5.3.3"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
//@ts-ignore
|
|
2
|
+
import type { DBHandlerServer } from "../dist/DboBuilder";
|
|
3
3
|
import { test, describe } from "node:test";
|
|
4
4
|
|
|
5
5
|
export const serverOnlyQueries = async (db: DBHandlerServer) => {
|