medusa-test-utils 1.1.45-snapshot-20240815071705 → 1.1.45-snapshot-20240821132459

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE3E,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAStD;AAED,wBAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAcV;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,GAAG,EAAE,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAEhC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9B,UAAU,IAAI,gBAAgB,CAAA;IAC9B,WAAW,IAAI,gBAAgB,CAAA;IAC/B,MAAM,IAAI,QAAQ,CAAA;CACnB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,C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AAE,MAAM,CAAA;CAChB,GAAG,YAAY,CA2Ff"}
package/dist/database.js CHANGED
@@ -18,6 +18,9 @@ function getMikroOrmConfig({ mikroOrmEntities, pathToMigrations, clientUrl, sche
18
18
  entities: Object.values(mikroOrmEntities),
19
19
  schema: schema ?? process.env.MEDUSA_DB_SCHEMA,
20
20
  debug: false,
21
+ pool: {
22
+ min: 2,
23
+ },
21
24
  migrations: {
22
25
  pathTs: pathToMigrations,
23
26
  silent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"database.js","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":";;;AAAA,sDAA2E;AAE3E,SAAgB,cAAc,CAAC,MAAe;IAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,WAAW,CAAA;IAClD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAA;IACjD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;IAC3C,MAAM,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA;IAElD,OAAO,cAAc,WAAW,GAC9B,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EACpC,IAAI,OAAO,IAAI,OAAO,EAAE,CAAA;AAC1B,CAAC;AATD,wCASC;AAED,SAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,MAAM,GAMP;IACC,MAAM,MAAM,GAAG,SAAS,IAAI,cAAc,EAAE,CAAA;IAE5C,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACzC,MAAM,EAAE,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB;QAC9C,KAAK,EAAE,KAAK;QACZ,UAAU,EAAE;YACV,MAAM,EAAE,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CAAA;YACxB,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;YAEV,IAAI,CAAC,GAAG,GAAG,IAAI,CAAA;YACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACrB,CAAC;KACF,CAAA;AACH,CAAC;AArGD,gDAqGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-test-utils",
3
- "version": "1.1.45-snapshot-20240815071705",
3
+ "version": "1.1.45-snapshot-20240821132459",
4
4
  "description": "Test utils for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -24,17 +24,17 @@
24
24
  "author": "Medusa",
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@medusajs/framework": "0.0.2-snapshot-20240815071705",
28
- "@medusajs/types": "1.12.0-snapshot-20240815071705",
29
- "@medusajs/utils": "1.12.0-snapshot-20240815071705",
27
+ "@medusajs/framework": "0.0.2-snapshot-20240821132459",
28
+ "@medusajs/types": "1.12.0-snapshot-20240821132459",
29
+ "@medusajs/utils": "1.12.0-snapshot-20240821132459",
30
30
  "cross-env": "^5.2.1",
31
31
  "jest": "^29.7.0",
32
32
  "rimraf": "^3.0.2",
33
33
  "typescript": "^5.1.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@medusajs/medusa": "1.20.6-snapshot-20240815071705",
37
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240815071705",
36
+ "@medusajs/medusa": "1.20.6-snapshot-20240821132459",
37
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240821132459",
38
38
  "@mikro-orm/core": "5.9.7",
39
39
  "axios": "^0.28.0",
40
40
  "express": "^4.18.3",
@@ -59,7 +59,7 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@medusajs/utils": "1.12.0-snapshot-20240815071705",
62
+ "@medusajs/utils": "1.12.0-snapshot-20240821132459",
63
63
  "@mikro-orm/migrations": "5.9.7",
64
64
  "@mikro-orm/postgresql": "5.9.7",
65
65
  "randomatic": "^3.1.1"