@loomcore/api 0.1.110 → 0.1.112

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,36 +1,13 @@
1
1
  import { LeftJoin } from '../../operations/left-join.operation.js';
2
2
  import { InnerJoin } from '../../operations/inner-join.operation.js';
3
3
  import { LeftJoinMany } from '../../operations/left-join-many.operation.js';
4
- import { toSnakeCase } from './convert-keys.util.js';
5
- function convertFieldToSnakeCase(field) {
6
- if (field.startsWith('_')) {
7
- return field;
8
- }
9
- return toSnakeCase(field);
10
- }
11
- function resolveLocalRef(localField, mainTableName, operations, currentIndex) {
12
- if (!localField.includes('.')) {
13
- const snake = convertFieldToSnakeCase(localField);
14
- return `"${mainTableName}"."${snake}"`;
15
- }
16
- const [alias, field] = localField.split('.');
17
- const snake = convertFieldToSnakeCase(field);
18
- const priorOps = operations.slice(0, currentIndex);
19
- const leftJoinMany = priorOps.find((op) => op instanceof LeftJoinMany && op.as === alias);
20
- if (leftJoinMany) {
21
- const castType = field === '_id' || snake === '_id' ? '::int' : '::text';
22
- const elemAlias = `_elem_${alias}`;
23
- return `(SELECT (${elemAlias}->>'${snake}')${castType} FROM jsonb_array_elements("${alias}") AS ${elemAlias})`;
24
- }
25
- return `${alias}."${snake}"`;
26
- }
27
4
  async function getTableColumns(client, tableName) {
28
- const result = await client.query(`
29
- SELECT column_name
30
- FROM information_schema.columns
31
- WHERE table_schema = current_schema()
32
- AND table_name = $1
33
- ORDER BY ordinal_position
5
+ const result = await client.query(`
6
+ SELECT column_name
7
+ FROM information_schema.columns
8
+ WHERE table_schema = current_schema()
9
+ AND table_name = $1
10
+ ORDER BY ordinal_position
34
11
  `, [tableName]);
35
12
  return result.rows.map(row => row.column_name);
36
13
  }
@@ -52,55 +29,12 @@ export async function buildSelectClause(client, mainTableName, mainTableAlias, o
52
29
  const mainTableColumns = await getTableColumns(client, mainTableName);
53
30
  const mainSelects = mainTableColumns.map(col => `"${mainTableName}"."${col}" AS "${col}"`);
54
31
  const joinSelects = [];
55
- for (const join of [...leftJoinOperations, ...innerJoinOperations]) {
32
+ for (const join of [...leftJoinOperations, ...leftJoinManyOperations, ...innerJoinOperations]) {
56
33
  const joinColumns = await getTableColumns(client, join.from);
57
34
  for (const col of joinColumns) {
58
35
  joinSelects.push(`${join.as}."${col}" AS "${join.as}__${col}"`);
59
36
  }
60
37
  }
61
- for (let i = 0; i < leftJoinManyOperations.length; i++) {
62
- const joinMany = leftJoinManyOperations[i];
63
- const manyColumns = await getTableColumns(client, joinMany.from);
64
- const foreignSnake = convertFieldToSnakeCase(joinMany.foreignField);
65
- const currentOpIndex = operations.indexOf(joinMany);
66
- const localRef = resolveLocalRef(joinMany.localField, mainTableName, operations, currentOpIndex);
67
- const subAlias = `_sub_${joinMany.as}`;
68
- const objParts = manyColumns.map(c => `'${c.replace(/'/g, "''")}', ${subAlias}."${c}"`).join(', ');
69
- const priorOps = operations.slice(0, currentOpIndex);
70
- const referencedLeftJoinMany = joinMany.localField.includes('.')
71
- ? priorOps.find((op) => op instanceof LeftJoinMany && op.as === joinMany.localField.split('.')[0])
72
- : null;
73
- let whereClause;
74
- if (referencedLeftJoinMany) {
75
- const [prevAlias, fieldName] = joinMany.localField.split('.');
76
- const prevFieldSnake = convertFieldToSnakeCase(fieldName);
77
- const buildNestedInQuery = (refOp, extractField) => {
78
- const extractFieldSnake = convertFieldToSnakeCase(extractField);
79
- const refForeignSnake = convertFieldToSnakeCase(refOp.foreignField);
80
- if (!refOp.localField.includes('.')) {
81
- const refLocalSnake = convertFieldToSnakeCase(refOp.localField);
82
- return `(SELECT "${extractFieldSnake}" FROM "${refOp.from}" WHERE "${refOp.from}"."${refForeignSnake}" = "${mainTableName}"."${refLocalSnake}")`;
83
- }
84
- const [parentAlias, parentField] = refOp.localField.split('.');
85
- const parentOpIndex = operations.indexOf(refOp);
86
- const parentOp = operations.slice(0, parentOpIndex).find((op) => op instanceof LeftJoinMany && op.as === parentAlias);
87
- if (parentOp) {
88
- const parentFieldSnake = convertFieldToSnakeCase(parentField);
89
- const nestedQuery = buildNestedInQuery(parentOp, parentFieldSnake);
90
- return `(SELECT "${extractFieldSnake}" FROM "${refOp.from}" WHERE "${refOp.from}"."${refForeignSnake}" IN ${nestedQuery})`;
91
- }
92
- const parentFieldSnake = convertFieldToSnakeCase(parentField);
93
- return `(SELECT "${extractFieldSnake}" FROM "${refOp.from}" WHERE "${refOp.from}"."${refForeignSnake}" = ${parentAlias}."${parentFieldSnake}")`;
94
- };
95
- const nestedQuery = buildNestedInQuery(referencedLeftJoinMany, prevFieldSnake);
96
- whereClause = `${subAlias}."${foreignSnake}" IN ${nestedQuery}`;
97
- }
98
- else {
99
- whereClause = `${subAlias}."${foreignSnake}" = ${localRef}`;
100
- }
101
- const subquery = `(SELECT COALESCE(jsonb_agg(jsonb_build_object(${objParts})), '[]'::jsonb) FROM "${joinMany.from}" AS ${subAlias} WHERE ${whereClause})`;
102
- joinSelects.push(`${subquery} AS "${joinMany.as}"`);
103
- }
104
38
  const allSelects = [...mainSelects, ...joinSelects];
105
39
  return allSelects.join(', ');
106
40
  }
@@ -1,8 +1,8 @@
1
1
  export async function doesTableExist(client, tableName) {
2
- const result = await client.query(`
3
- SELECT EXISTS (
4
- SELECT 1 FROM information_schema.tables WHERE table_schema = current_schema() AND table_name = $1
5
- )
2
+ const result = await client.query(`
3
+ SELECT EXISTS (
4
+ SELECT 1 FROM information_schema.tables WHERE table_schema = current_schema() AND table_name = $1
5
+ )
6
6
  `, [tableName]);
7
7
  return result.rows[0].exists;
8
8
  }
@@ -1,2 +1,2 @@
1
1
  import { Operation } from '../../operations/operation.js';
2
- export declare function transformJoinResults<T>(rows: Record<string, unknown>[], operations: Operation[]): T[];
2
+ export declare function transformJoinResults<T>(rows: any[], operations: Operation[]): T[];
@@ -1,6 +1,30 @@
1
1
  import { LeftJoin } from '../../operations/left-join.operation.js';
2
2
  import { InnerJoin } from '../../operations/inner-join.operation.js';
3
3
  import { LeftJoinMany } from '../../operations/left-join-many.operation.js';
4
+ function findNestedObject(obj, alias, path = []) {
5
+ if (obj[alias] !== undefined && obj[alias] !== null) {
6
+ return { obj: obj[alias], path: [...path, alias] };
7
+ }
8
+ for (const key in obj) {
9
+ if (obj[key] && typeof obj[key] === 'object' && !Array.isArray(obj[key])) {
10
+ const found = findNestedObject(obj[key], alias, [...path, key]);
11
+ if (found !== null) {
12
+ return found;
13
+ }
14
+ }
15
+ else if (Array.isArray(obj[key])) {
16
+ for (const item of obj[key]) {
17
+ if (item && typeof item === 'object') {
18
+ const found = findNestedObject(item, alias, [...path, key]);
19
+ if (found !== null) {
20
+ return found;
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ return null;
27
+ }
4
28
  function parseJsonValue(value) {
5
29
  if (value === null || value === undefined) {
6
30
  return null;
@@ -15,88 +39,90 @@ function parseJsonValue(value) {
15
39
  }
16
40
  return value;
17
41
  }
18
- function getJoinAliasesAndParents(operations) {
19
- const aliases = new Set();
20
- const parentByAlias = new Map();
21
- for (const op of operations) {
22
- if (op instanceof LeftJoin || op instanceof InnerJoin || op instanceof LeftJoinMany) {
23
- aliases.add(op.as);
24
- const parent = op.localField.includes('.') ? op.localField.split('.')[0] : null;
25
- parentByAlias.set(op.as, parent);
26
- }
27
- }
28
- return { aliases, parentByAlias };
29
- }
30
- const PREFIX_SEP = '__';
31
- function setJoinValue(joinData, alias, value, parentByAlias, operations) {
32
- const parent = parentByAlias.get(alias) ?? null;
33
- if (parent) {
34
- const parentValue = joinData[parent];
35
- const parentOp = operations.find(op => (op instanceof LeftJoinMany || op instanceof LeftJoin || op instanceof InnerJoin) && op.as === parent);
36
- const isParentArray = parentOp instanceof LeftJoinMany;
37
- if (isParentArray && Array.isArray(parentValue)) {
38
- joinData[alias] = value;
39
- }
40
- else {
41
- let parentObj = parentValue;
42
- if (parentObj == null || typeof parentObj !== 'object' || Array.isArray(parentObj)) {
43
- parentObj = {};
44
- joinData[parent] = parentObj;
45
- }
46
- parentObj[alias] = value;
47
- }
48
- }
49
- else {
50
- joinData[alias] = value;
51
- }
52
- }
53
42
  export function transformJoinResults(rows, operations) {
54
- const { aliases: joinAliases, parentByAlias } = getJoinAliasesAndParents(operations);
55
- if (joinAliases.size === 0) {
43
+ const leftJoinOperations = operations.filter(op => op instanceof LeftJoin);
44
+ const innerJoinOperations = operations.filter(op => op instanceof InnerJoin);
45
+ const leftJoinManyOperations = operations.filter(op => op instanceof LeftJoinMany);
46
+ const allJoinOperations = [...leftJoinOperations, ...innerJoinOperations, ...leftJoinManyOperations];
47
+ if (allJoinOperations.length === 0) {
56
48
  return rows;
57
49
  }
58
- return rows.map((row) => {
50
+ const allJoinAliases = allJoinOperations.map(j => j.as);
51
+ return rows.map(row => {
59
52
  const transformed = {};
60
- const flatJoinValues = {};
61
- const prefixedByAlias = {};
53
+ const joinData = {};
62
54
  for (const key of Object.keys(row)) {
63
- if (joinAliases.has(key)) {
64
- flatJoinValues[key] = parseJsonValue(row[key]);
55
+ const hasJoinPrefix = allJoinOperations.some(join => key.startsWith(`${join.as}__`));
56
+ const isJoinAlias = allJoinAliases.includes(key);
57
+ if (!hasJoinPrefix && !isJoinAlias) {
58
+ transformed[key] = row[key];
65
59
  }
66
- else if (key.includes(PREFIX_SEP)) {
67
- const i = key.indexOf(PREFIX_SEP);
68
- const alias = key.slice(0, i);
69
- const column = key.slice(i + PREFIX_SEP.length);
70
- if (joinAliases.has(alias)) {
71
- if (!prefixedByAlias[alias])
72
- prefixedByAlias[alias] = {};
73
- prefixedByAlias[alias][column] = row[key];
60
+ }
61
+ for (const operation of operations) {
62
+ if (operation instanceof LeftJoin || operation instanceof InnerJoin) {
63
+ const prefix = `${operation.as}__`;
64
+ const joinedData = {};
65
+ let hasAnyData = false;
66
+ for (const key of Object.keys(row)) {
67
+ if (key.startsWith(prefix)) {
68
+ const columnName = key.substring(prefix.length);
69
+ const value = row[key];
70
+ joinedData[columnName] = value;
71
+ if (value !== null && value !== undefined) {
72
+ hasAnyData = true;
73
+ }
74
+ }
75
+ }
76
+ if (operation.localField.includes('.')) {
77
+ const [tableAlias] = operation.localField.split('.');
78
+ const relatedJoin = allJoinOperations.find(j => j.as === tableAlias);
79
+ let targetObject = null;
80
+ if (relatedJoin && joinData[relatedJoin.as]) {
81
+ targetObject = joinData[relatedJoin.as];
82
+ }
83
+ else {
84
+ const found = findNestedObject(joinData, tableAlias);
85
+ if (found) {
86
+ targetObject = found.obj;
87
+ }
88
+ }
89
+ if (targetObject) {
90
+ targetObject[operation.as] = hasAnyData ? joinedData : null;
91
+ }
92
+ else {
93
+ joinData[operation.as] = hasAnyData ? joinedData : null;
94
+ }
74
95
  }
75
96
  else {
76
- transformed[key] = row[key];
97
+ joinData[operation.as] = hasAnyData ? joinedData : null;
77
98
  }
78
99
  }
79
- else {
80
- transformed[key] = row[key];
81
- }
82
- }
83
- for (const alias of Object.keys(prefixedByAlias)) {
84
- const obj = prefixedByAlias[alias];
85
- const hasAny = Object.values(obj).some(v => v !== null && v !== undefined);
86
- if (!(alias in flatJoinValues)) {
87
- flatJoinValues[alias] = hasAny ? obj : null;
100
+ else if (operation instanceof LeftJoinMany) {
101
+ const jsonValue = parseJsonValue(row[operation.as]);
102
+ let parsedValue = Array.isArray(jsonValue) ? jsonValue : (jsonValue ? [jsonValue] : []);
103
+ if (operation.localField.includes('.')) {
104
+ const [tableAlias] = operation.localField.split('.');
105
+ const relatedJoin = allJoinOperations.find(j => j.as === tableAlias);
106
+ const relatedJoinMany = leftJoinManyOperations.find(j => j.as === tableAlias);
107
+ let targetObject = null;
108
+ if (relatedJoin && joinData[relatedJoin.as]) {
109
+ targetObject = joinData[relatedJoin.as];
110
+ }
111
+ else if (relatedJoinMany && joinData[relatedJoinMany.as]) {
112
+ targetObject = joinData[relatedJoinMany.as];
113
+ }
114
+ if (targetObject) {
115
+ targetObject[operation.as] = parsedValue;
116
+ }
117
+ else {
118
+ joinData[operation.as] = parsedValue;
119
+ }
120
+ }
121
+ else {
122
+ joinData[operation.as] = parsedValue;
123
+ }
88
124
  }
89
125
  }
90
- const joinData = {};
91
- for (const op of operations) {
92
- if (!(op instanceof LeftJoin || op instanceof InnerJoin || op instanceof LeftJoinMany))
93
- continue;
94
- const alias = op.as;
95
- const value = flatJoinValues[alias];
96
- if (value === undefined)
97
- continue;
98
- setJoinValue(joinData, alias, value, parentByAlias, operations);
99
- }
100
126
  if (Object.keys(joinData).length > 0) {
101
127
  transformed._joinData = joinData;
102
128
  }
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "name": "@loomcore/api",
3
- "version": "0.1.110",
4
- "private": false,
5
- "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb or PostgreSQL",
6
- "scripts": {
7
- "clean": "rm -rf dist",
8
- "tsc": "tsc --project tsconfig.prod.json",
9
- "build": "npm-run-all -s clean tsc",
10
- "add": "git add .",
11
- "commit": "git commit -m \"Updates\"",
12
- "patch": "npm version patch",
13
- "push": "git push",
14
- "publishMe": "npm publish --access public",
15
- "pub": "npm-run-all -s add commit patch build push publishMe",
16
- "update-lib-versions": "npx --yes npm-check-updates -u -f @loomcore/common",
17
- "install-updated-libs": "npm i @loomcore/common",
18
- "update-libs": "npm-run-all -s update-lib-versions install-updated-libs",
19
- "typecheck": "tsc",
20
- "test": "npm-run-all -s test:postgres test:mongodb",
21
- "test:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run",
22
- "test:postgres:real": "cross-env NODE_ENV=test TEST_DATABASE=postgres USE_REAL_POSTGRES=true vitest run",
23
- "test:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run",
24
- "test:ci": "npm-run-all -s test:ci:postgres test:ci:mongodb",
25
- "test:ci:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run --reporter=json --outputFile=test-results-postgres.json",
26
- "test:ci:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run --reporter=json --outputFile=test-results-mongodb.json",
27
- "test:watch": "cross-env NODE_ENV=test vitest",
28
- "coverage": "npm-run-all -s coverage:postgres coverage:mongodb",
29
- "coverage:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run --coverage",
30
- "coverage:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run --coverage",
31
- "test:db:start": "docker-compose -f docker-compose.test.yml up -d",
32
- "test:db:stop": "docker-compose -f docker-compose.test.yml down",
33
- "test:db:logs": "docker-compose -f docker-compose.test.yml logs -f"
34
- },
35
- "author": "Tim Hardy",
36
- "license": "Apache 2.0",
37
- "main": "dist/index.js",
38
- "type": "module",
39
- "types": "dist/index.d.ts",
40
- "files": [
41
- "dist/**/*"
42
- ],
43
- "exports": {
44
- "./__tests__": "./dist/__tests__/index.js",
45
- "./config": "./dist/config/index.js",
46
- "./controllers": "./dist/controllers/index.js",
47
- "./databases": "./dist/databases/index.js",
48
- "./errors": "./dist/errors/index.js",
49
- "./middleware": "./dist/middleware/index.js",
50
- "./models": "./dist/models/index.js",
51
- "./services": "./dist/services/index.js",
52
- "./utils": "./dist/utils/index.js"
53
- },
54
- "dependencies": {
55
- "jsonwebtoken": "^9.0.2",
56
- "node-mailjet": "^6.0.8",
57
- "qs": "^6.15.0"
58
- },
59
- "peerDependencies": {
60
- "@loomcore/common": "^0.0.51",
61
- "@sinclair/typebox": "0.34.33",
62
- "cookie-parser": "^1.4.6",
63
- "cors": "^2.8.5",
64
- "express": "^5.1.0",
65
- "lodash": "^4.17.21",
66
- "moment": "^2.30.1",
67
- "mongodb": "^6.16.0",
68
- "pg": "^8.15.6",
69
- "rxjs": "^7.8.0",
70
- "umzug": "^3.8.2"
71
- },
72
- "devDependencies": {
73
- "@types/cookie-parser": "^1.4.7",
74
- "@types/cors": "^2.8.18",
75
- "@types/express": "^5.0.1",
76
- "@types/jsonwebtoken": "^9.0.9",
77
- "@types/lodash": "^4.17.13",
78
- "@types/pg": "^8.15.6",
79
- "@types/qs": "^6.14.0",
80
- "@types/supertest": "^6.0.3",
81
- "@vitest/coverage-v8": "^3.0.9",
82
- "cross-env": "^7.0.3",
83
- "mongodb-memory-server": "^9.3.0",
84
- "npm-run-all": "^4.1.5",
85
- "pg-mem": "^3.0.12",
86
- "rxjs": "^7.8.0",
87
- "supertest": "^7.1.0",
88
- "typescript": "^5.8.3",
89
- "vite": "^6.2.5",
90
- "vitest": "^3.0.9"
91
- }
92
- }
1
+ {
2
+ "name": "@loomcore/api",
3
+ "version": "0.1.112",
4
+ "private": false,
5
+ "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb or PostgreSQL",
6
+ "scripts": {
7
+ "clean": "rm -rf dist",
8
+ "tsc": "tsc --project tsconfig.prod.json",
9
+ "build": "npm-run-all -s clean tsc",
10
+ "add": "git add .",
11
+ "commit": "git commit -m \"Updates\"",
12
+ "patch": "npm version patch",
13
+ "push": "git push",
14
+ "publishMe": "npm publish --access public",
15
+ "pub": "npm-run-all -s add commit patch build push publishMe",
16
+ "update-lib-versions": "npx --yes npm-check-updates -u -f @loomcore/common",
17
+ "install-updated-libs": "npm i @loomcore/common",
18
+ "update-libs": "npm-run-all -s update-lib-versions install-updated-libs",
19
+ "typecheck": "tsc",
20
+ "test": "npm-run-all -s test:postgres test:mongodb",
21
+ "test:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run",
22
+ "test:postgres:real": "cross-env NODE_ENV=test TEST_DATABASE=postgres USE_REAL_POSTGRES=true vitest run",
23
+ "test:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run",
24
+ "test:ci": "npm-run-all -s test:ci:postgres test:ci:mongodb",
25
+ "test:ci:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run --reporter=json --outputFile=test-results-postgres.json",
26
+ "test:ci:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run --reporter=json --outputFile=test-results-mongodb.json",
27
+ "test:watch": "cross-env NODE_ENV=test vitest",
28
+ "coverage": "npm-run-all -s coverage:postgres coverage:mongodb",
29
+ "coverage:postgres": "cross-env NODE_ENV=test TEST_DATABASE=postgres vitest run --coverage",
30
+ "coverage:mongodb": "cross-env NODE_ENV=test TEST_DATABASE=mongodb vitest run --coverage",
31
+ "test:db:start": "docker-compose -f docker-compose.test.yml up -d",
32
+ "test:db:stop": "docker-compose -f docker-compose.test.yml down",
33
+ "test:db:logs": "docker-compose -f docker-compose.test.yml logs -f"
34
+ },
35
+ "author": "Tim Hardy",
36
+ "license": "Apache 2.0",
37
+ "main": "dist/index.js",
38
+ "type": "module",
39
+ "types": "dist/index.d.ts",
40
+ "files": [
41
+ "dist/**/*"
42
+ ],
43
+ "exports": {
44
+ "./__tests__": "./dist/__tests__/index.js",
45
+ "./config": "./dist/config/index.js",
46
+ "./controllers": "./dist/controllers/index.js",
47
+ "./databases": "./dist/databases/index.js",
48
+ "./errors": "./dist/errors/index.js",
49
+ "./middleware": "./dist/middleware/index.js",
50
+ "./models": "./dist/models/index.js",
51
+ "./services": "./dist/services/index.js",
52
+ "./utils": "./dist/utils/index.js"
53
+ },
54
+ "dependencies": {
55
+ "jsonwebtoken": "^9.0.2",
56
+ "node-mailjet": "^6.0.8",
57
+ "qs": "^6.15.0"
58
+ },
59
+ "peerDependencies": {
60
+ "@loomcore/common": "^0.0.52",
61
+ "@sinclair/typebox": "0.34.33",
62
+ "cookie-parser": "^1.4.6",
63
+ "cors": "^2.8.5",
64
+ "express": "^5.1.0",
65
+ "lodash": "^4.17.21",
66
+ "moment": "^2.30.1",
67
+ "mongodb": "^6.16.0",
68
+ "pg": "^8.15.6",
69
+ "rxjs": "^7.8.0",
70
+ "umzug": "^3.8.2"
71
+ },
72
+ "devDependencies": {
73
+ "@types/cookie-parser": "^1.4.7",
74
+ "@types/cors": "^2.8.18",
75
+ "@types/express": "^5.0.1",
76
+ "@types/jsonwebtoken": "^9.0.9",
77
+ "@types/lodash": "^4.17.13",
78
+ "@types/pg": "^8.15.6",
79
+ "@types/qs": "^6.14.0",
80
+ "@types/supertest": "^6.0.3",
81
+ "@vitest/coverage-v8": "^3.0.9",
82
+ "cross-env": "^7.0.3",
83
+ "mongodb-memory-server": "^9.3.0",
84
+ "npm-run-all": "^4.1.5",
85
+ "pg-mem": "^3.0.12",
86
+ "rxjs": "^7.8.0",
87
+ "supertest": "^7.1.0",
88
+ "typescript": "^5.8.3",
89
+ "vite": "^6.2.5",
90
+ "vitest": "^3.0.9"
91
+ }
92
+ }