medusa-test-utils 1.1.45-snapshot-20240703074611 → 1.1.45-snapshot-20240704061641
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/init-modules.js +1 -1
- package/dist/init-modules.js.map +1 -1
- package/package.json +5 -5
package/dist/init-modules.js
CHANGED
@@ -8,7 +8,7 @@ async function initModules({ injectedDependencies, databaseConfig, modulesConfig
|
|
8
8
|
let sharedPgConnection = injectedDependencies?.[utils_1.ContainerRegistrationKeys.PG_CONNECTION];
|
9
9
|
let shouldDestroyConnectionAutomatically = !sharedPgConnection;
|
10
10
|
if (!sharedPgConnection) {
|
11
|
-
sharedPgConnection = utils_1.
|
11
|
+
sharedPgConnection = (0, utils_1.createPgConnection)({
|
12
12
|
clientUrl: databaseConfig.clientUrl,
|
13
13
|
schema: databaseConfig.schema,
|
14
14
|
});
|
package/dist/init-modules.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"init-modules.js","sourceRoot":"","sources":["../src/init-modules.ts"],"names":[],"mappings":";;;AAKA,2CAIwB;AAkBjB,KAAK,UAAU,WAAW,CAAC,EAChC,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,+BAA+B,GAAG,KAAK,GACpB;IACnB,MAAM,gBAAgB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAEzD,oBAAoB,KAAK,EAAE,CAAA;IAE3B,IAAI,kBAAkB,GACpB,oBAAoB,EAAE,CAAC,iCAAyB,CAAC,aAAa,CAAC,CAAA;IAEjE,IAAI,oCAAoC,GAAG,CAAC,kBAAkB,CAAA;IAC9D,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,kBAAkB,GAAG,
|
1
|
+
{"version":3,"file":"init-modules.js","sourceRoot":"","sources":["../src/init-modules.ts"],"names":[],"mappings":";;;AAKA,2CAIwB;AAkBjB,KAAK,UAAU,WAAW,CAAC,EAChC,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,+BAA+B,GAAG,KAAK,GACpB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-snapshot-
|
3
|
+
"version": "1.1.45-snapshot-20240704061641",
|
4
4
|
"description": "Test utils for Medusa",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"author": "Sebastian Rindom",
|
25
25
|
"license": "MIT",
|
26
26
|
"devDependencies": {
|
27
|
-
"@medusajs/types": "1.12.0-snapshot-
|
27
|
+
"@medusajs/types": "1.12.0-snapshot-20240704061641",
|
28
28
|
"cross-env": "^5.2.1",
|
29
29
|
"jest": "^29.7.0",
|
30
30
|
"rimraf": "^3.0.2",
|
31
31
|
"typescript": "^5.1.6"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
34
|
-
"@medusajs/medusa": "1.20.6-snapshot-
|
35
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
34
|
+
"@medusajs/medusa": "1.20.6-snapshot-20240704061641",
|
35
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240704061641",
|
36
36
|
"axios": "^0.28.0",
|
37
37
|
"express": "^4.18.3",
|
38
38
|
"get-port": "^5.1.0",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
}
|
57
57
|
},
|
58
58
|
"dependencies": {
|
59
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
59
|
+
"@medusajs/utils": "1.12.0-snapshot-20240704061641",
|
60
60
|
"@mikro-orm/migrations": "5.9.7",
|
61
61
|
"@mikro-orm/postgresql": "5.9.7",
|
62
62
|
"randomatic": "^3.1.1"
|