medusa-test-utils 1.1.45-snapshot-20240528082138 → 1.1.45-snapshot-20240528094636

Sign up to get free protection for your applications and to get access to all the features.
@@ -110,7 +110,7 @@ function startApp() {
110
110
  shutdown = function () { return __awaiter(_this, void 0, void 0, function () {
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
- case 0: return [4 /*yield*/, (0, utils_1.promiseAll)([expressServer.shutdown(), medusaShutdown()])];
113
+ case 0: return [4 /*yield*/, (0, utils_1.promiseAll)([expressServer === null || expressServer === void 0 ? void 0 : expressServer.shutdown(), medusaShutdown()])];
114
114
  case 1:
115
115
  _a.sent();
116
116
  if (typeof global !== "undefined" && (global === null || global === void 0 ? void 0 : global.gc)) {
@@ -143,8 +143,7 @@ function startApp() {
143
143
  });
144
144
  });
145
145
  // TODO: fix that once we find the appropriate place to put this util
146
- var GracefulShutdownServer = require("@medusajs/medusa/dist/utils/graceful-shutdown-server").GracefulShutdownServer;
147
- expressServer = GracefulShutdownServer.create(server);
146
+ expressServer = utils_1.GracefulShutdownServer.create(server);
148
147
  })];
149
148
  case 2: return [2 /*return*/, _e.sent()];
150
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA6B;AAC7B,sDAA8B;AAC9B,6BAA8B;AAC9B,yCAAsD;AAGtD,SAAe,YAAY;wDAAC,EAGoB;;YAHpB,qBAGkB,EAAE,KAAA,EAF9C,GAAG,SAAA,EACH,WAAQ,EAAR,GAAG,mBAAG,EAAE,KAAA;;;;oBAEF,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;oBAErB,IAAI,IAAA,gBAAQ,EAAC,GAAG,CAAC,EAAE,CAAC;wBAClB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAC,EAAM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AAC;wCAChD,MAAM,CAAC,EAAE,EAAE,CAAA;oCACb,CAAC;;;;yBACF,CAAA;oBAEM,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;4BACvC,IAAM,MAAM,GAAG,GAAG;iCACf,MAAM,CAAC,IAAI,CAAC;iCACZ,EAAE,CAAC,OAAO,EAAE,UAAO,GAAG;;;gDACrB,qBAAM,QAAQ,EAAE,EAAA;;4CAAhB,SAAgB,CAAA;4CAChB,sBAAO,MAAM,CAAC,GAAG,CAAC,EAAA;;;iCACnB,CAAC;iCACD,EAAE,CAAC,WAAW,EAAE;;gCACf,MAAA,OAAO,CAAC,IAAI,wDAAG,IAAI,CAAC,CAAA;gCAEpB,OAAO,CAAC;oCACN,QAAQ,UAAA;oCACR,SAAS,WAAA;oCACT,IAAI,MAAA;iCACL,CAAC,CAAA;4BACJ,CAAC,CAAC,CAAA;4BAEJ,qEAAqE;4BACrE,aAAa,GAAG,8BAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;wBACvD,CAAC,CAAC,EAAA;wBAnBF,sBAAO,SAmBL,EAAA;;;;CACH;AAhDD,4BAgDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-test-utils",
3
- "version": "1.1.45-snapshot-20240528082138",
3
+ "version": "1.1.45-snapshot-20240528094636",
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-20240528082138",
27
+ "@medusajs/types": "1.12.0-snapshot-20240528094636",
28
28
  "cross-env": "^5.2.1",
29
29
  "jest": "^25.5.4",
30
30
  "rimraf": "^3.0.2",
31
31
  "typescript": "^5.1.6"
32
32
  },
33
33
  "peerDependencies": {
34
- "@medusajs/medusa": "1.20.6-snapshot-20240528082138",
35
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240528082138",
34
+ "@medusajs/medusa": "1.20.6-snapshot-20240528094636",
35
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240528094636",
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-20240528082138",
59
+ "@medusajs/utils": "1.12.0-snapshot-20240528094636",
60
60
  "@mikro-orm/migrations": "5.9.7",
61
61
  "@mikro-orm/postgresql": "5.9.7",
62
62
  "randomatic": "^3.1.1"