@medusajs/framework 0.0.2-snapshot-20240815071705 → 0.0.2-snapshot-20240821142206
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pg-connection-loader.d.ts","sourceRoot":"","sources":["../../src/database/pg-connection-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAK5E;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAC9C,OAAO,eAAe,CAAC,kBAAkB,CAC1C,
|
1
|
+
{"version":3,"file":"pg-connection-loader.d.ts","sourceRoot":"","sources":["../../src/database/pg-connection-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAK5E;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAC9C,OAAO,eAAe,CAAC,kBAAkB,CAC1C,CAqCA"}
|
@@ -18,6 +18,7 @@ function pgConnectionLoader() {
|
|
18
18
|
const driverOptions = configModule.projectConfig.databaseDriverOptions || {};
|
19
19
|
const schema = configModule.projectConfig.databaseSchema || "public";
|
20
20
|
const idleTimeoutMillis = driverOptions.pool?.idleTimeoutMillis ?? undefined; // prevent null to be passed
|
21
|
+
const poolMin = driverOptions.pool?.min ?? 2;
|
21
22
|
const poolMax = driverOptions.pool?.max;
|
22
23
|
delete driverOptions.pool;
|
23
24
|
const pgConnection = utils_1.ModulesSdkUtils.createPgConnection({
|
@@ -25,6 +26,7 @@ function pgConnectionLoader() {
|
|
25
26
|
schema,
|
26
27
|
driverOptions,
|
27
28
|
pool: {
|
29
|
+
min: poolMin,
|
28
30
|
max: poolMax,
|
29
31
|
idleTimeoutMillis,
|
30
32
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/framework",
|
3
|
-
"version": "0.0.2-snapshot-
|
3
|
+
"version": "0.0.2-snapshot-20240821142206",
|
4
4
|
"description": "Framework",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -33,13 +33,13 @@
|
|
33
33
|
"scripts": {
|
34
34
|
"watch": "tsc --watch -p ./tsconfig.build.json",
|
35
35
|
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
36
|
-
"prepublishOnly": "cross-env NODE_ENV=production tsc -p ./tsconfig.build.json
|
36
|
+
"prepublishOnly": "cross-env NODE_ENV=production tsc -p ./tsconfig.build.json",
|
37
37
|
"build": "rimraf dist && tsc --noEmit && tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
|
38
38
|
"test": "jest --runInBand --bail --passWithNoTests --forceExit -- src",
|
39
39
|
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@medusajs/types": "1.12.0-snapshot-
|
42
|
+
"@medusajs/types": "1.12.0-snapshot-20240821142206",
|
43
43
|
"@types/express": "^4.17.17",
|
44
44
|
"@types/jsonwebtoken": "^8.5.9",
|
45
45
|
"cross-env": "^7.0.3",
|
@@ -50,12 +50,13 @@
|
|
50
50
|
"vite": "^5.2.11"
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
|
-
"@medusajs/medusa-cli": "1.3.23-snapshot-
|
54
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
55
|
-
"@medusajs/orchestration": "0.5.8-snapshot-
|
56
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
57
|
-
"@medusajs/workflows-sdk": "0.1.7-snapshot-
|
53
|
+
"@medusajs/medusa-cli": "1.3.23-snapshot-20240821142206",
|
54
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240821142206",
|
55
|
+
"@medusajs/orchestration": "0.5.8-snapshot-20240821142206",
|
56
|
+
"@medusajs/utils": "1.12.0-snapshot-20240821142206",
|
57
|
+
"@medusajs/workflows-sdk": "0.1.7-snapshot-20240821142206",
|
58
58
|
"awilix": "^8.0.0",
|
59
|
+
"connect-redis": "^5.0.0",
|
59
60
|
"cookie-parser": "^1.4.6",
|
60
61
|
"cors": "^2.8.5",
|
61
62
|
"express": "^4.18.2",
|
@@ -63,7 +64,7 @@
|
|
63
64
|
"ioredis": "^5.4.1",
|
64
65
|
"ioredis-mock": "8.4.0",
|
65
66
|
"jsonwebtoken": "^9.0.2",
|
66
|
-
"medusa-telemetry": "0.0.18-snapshot-
|
67
|
+
"medusa-telemetry": "0.0.18-snapshot-20240821142206",
|
67
68
|
"morgan": "^1.9.1",
|
68
69
|
"zod": "3.22.4"
|
69
70
|
}
|