medusa-test-utils 1.1.45-preview-20240505115807 → 1.1.45-preview-20240507182533

Sign up to get free protection for your applications and to get access to all the features.
package/dist/database.js CHANGED
@@ -91,9 +91,9 @@ function getMikroOrmWrapper(_a) {
91
91
  return this.orm;
92
92
  },
93
93
  setupDatabase: function () {
94
- var _a, _b;
95
94
  return __awaiter(this, void 0, void 0, function () {
96
- var OrmConfig, _c, err_1, pendingMigrations;
95
+ var OrmConfig, _a, err_1, pendingMigrations;
96
+ var _b, _c;
97
97
  return __generator(this, function (_d) {
98
98
  switch (_d.label) {
99
99
  case 0:
@@ -104,11 +104,11 @@ function getMikroOrmWrapper(_a) {
104
104
  schema: this.schema,
105
105
  });
106
106
  // Initializing the ORM
107
- _c = this;
107
+ _a = this;
108
108
  return [4 /*yield*/, postgresql_1.MikroORM.init(OrmConfig)];
109
109
  case 1:
110
110
  // Initializing the ORM
111
- _c.orm = _d.sent();
111
+ _a.orm = _d.sent();
112
112
  this.manager = this.orm.em;
113
113
  _d.label = 2;
114
114
  case 2:
@@ -121,7 +121,7 @@ function getMikroOrmWrapper(_a) {
121
121
  err_1 = _d.sent();
122
122
  console.log(err_1);
123
123
  return [3 /*break*/, 5];
124
- case 5: return [4 /*yield*/, ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.execute("CREATE SCHEMA IF NOT EXISTS \"".concat((_b = this.schema) !== null && _b !== void 0 ? _b : "public", "\";")))];
124
+ case 5: return [4 /*yield*/, ((_b = this.manager) === null || _b === void 0 ? void 0 : _b.execute("CREATE SCHEMA IF NOT EXISTS \"".concat((_c = this.schema) !== null && _c !== void 0 ? _c : "public", "\";")))];
125
125
  case 6:
126
126
  _d.sent();
127
127
  return [4 /*yield*/, this.orm
@@ -146,19 +146,19 @@ function getMikroOrmWrapper(_a) {
146
146
  });
147
147
  },
148
148
  clearDatabase: function () {
149
- var _a, _b, _c, _d;
150
149
  return __awaiter(this, void 0, void 0, function () {
151
- var _e;
150
+ var _a;
151
+ var _b, _c, _d, _e;
152
152
  return __generator(this, function (_f) {
153
153
  switch (_f.label) {
154
154
  case 0:
155
155
  if (this.orm === null) {
156
156
  throw new Error("ORM not configured");
157
157
  }
158
- return [4 /*yield*/, ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.execute("DROP SCHEMA IF EXISTS \"".concat((_b = this.schema) !== null && _b !== void 0 ? _b : "public", "\" CASCADE;")))];
158
+ return [4 /*yield*/, ((_b = this.manager) === null || _b === void 0 ? void 0 : _b.execute("DROP SCHEMA IF EXISTS \"".concat((_c = this.schema) !== null && _c !== void 0 ? _c : "public", "\" CASCADE;")))];
159
159
  case 1:
160
160
  _f.sent();
161
- return [4 /*yield*/, ((_c = this.manager) === null || _c === void 0 ? void 0 : _c.execute("CREATE SCHEMA IF NOT EXISTS \"".concat((_d = this.schema) !== null && _d !== void 0 ? _d : "public", "\";")))];
161
+ return [4 /*yield*/, ((_d = this.manager) === null || _d === void 0 ? void 0 : _d.execute("CREATE SCHEMA IF NOT EXISTS \"".concat((_e = this.schema) !== null && _e !== void 0 ? _e : "public", "\";")))];
162
162
  case 2:
163
163
  _f.sent();
164
164
  _f.label = 3;
@@ -169,7 +169,7 @@ function getMikroOrmWrapper(_a) {
169
169
  _f.sent();
170
170
  return [3 /*break*/, 6];
171
171
  case 5:
172
- _e = _f.sent();
172
+ _a = _f.sent();
173
173
  return [3 /*break*/, 6];
174
174
  case 6:
175
175
  this.orm = null;
@@ -1 +1 @@
1
- {"version":3,"file":"database.js","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2E;AAE3E,SAAgB,cAAc,CAAC,MAAe;;IAC5C,IAAM,OAAO,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,OAAO,mCAAI,WAAW,CAAA;IAClD,IAAM,WAAW,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,WAAW,mCAAI,EAAE,CAAA;IACjD,IAAM,WAAW,GAAG,OAAO,CAAC,G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O,CACzB,wCAAgC,MAAA,IAAI,CAAC,MAAM,mCAAI,QAAQ,QAAI,CAC5D,CAAA,EAAA;;4BAFD,SAEC,CAAA;;;;4BAGC,qBAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAA;;4BAAtB,SAAsB,CAAA;;;;;;4BAGxB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAA;4BACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;;;;;SACpB;KACF,CAAA;AACH,CAAC;AArGD,gDAqGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"id-map.js","sourceRoot":"","sources":["../src/id-map.js"],"names":[],"mappings":";;;;;AAAA,0DAAkC;AAElC;IAAA;QACE,QAAG,GAAG,EAAE,CAAA;IAYV,CAAC;IAVC,qBAAK,GAAL,UAAM,GAAG,EAAE,MAAW,EAAE,MAAW;QAAxB,uBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,WAAW;QACjC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YACjB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;SACrB;QAED,IAAM,EAAE,GAAG,UAAG,MAAM,IAAI,MAAM,GAAG,GAAG,SAAG,IAAA,oBAAS,EAAC,KAAK,EAAE,MAAM,CAAC,CAAE,CAAA;QACjE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAA;QAElB,OAAO,EAAE,CAAA;IACX,CAAC;IACH,YAAC;AAAD,CAAC,AAbD,IAaC;AAED,IAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAA;AAC5B,kBAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"id-map.js","sourceRoot":"","sources":["../src/id-map.js"],"names":[],"mappings":";;;;;AAAA,0DAAkC;AAElC;IAAA;QACE,QAAG,GAAG,EAAE,CAAA;IAYV,CAAC;IAVC,qBAAK,GAAL,UAAM,GAAG,EAAE,MAAW,EAAE,MAAW;QAAxB,uBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,WAAW;QACjC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACtB,CAAC;QAED,IAAM,EAAE,GAAG,UAAG,MAAM,IAAI,MAAM,GAAG,GAAG,SAAG,IAAA,oBAAS,EAAC,KAAK,EAAE,MAAM,CAAC,CAAE,CAAA;QACjE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAA;QAElB,OAAO,EAAE,CAAA;IACX,CAAC;IACH,YAAC;AAAD,CAAC,AAbD,IAaC;AAED,IAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAA;AAC5B,kBAAe,QAAQ,CAAA"}
@@ -39,11 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.initModules = void 0;
40
40
  var utils_1 = require("@medusajs/utils");
41
41
  function initModules(_a) {
42
- var injectedDependencies = _a.injectedDependencies, databaseConfig = _a.databaseConfig, modulesConfig = _a.modulesConfig, joinerConfig = _a.joinerConfig, _b = _a.preventConnectionDestroyWarning, preventConnectionDestroyWarning = _b === void 0 ? false : _b;
43
- return __awaiter(this, void 0, void 0, function () {
42
+ return __awaiter(this, arguments, void 0, function (_b) {
44
43
  function shutdown() {
45
- var _a;
46
44
  return __awaiter(this, void 0, void 0, function () {
45
+ var _a;
47
46
  return __generator(this, function (_b) {
48
47
  switch (_b.label) {
49
48
  case 0:
@@ -69,8 +68,9 @@ function initModules(_a) {
69
68
  });
70
69
  }
71
70
  var moduleSdkImports, sharedPgConnection, shouldDestroyConnectionAutomatically, medusaApp;
72
- return __generator(this, function (_c) {
73
- switch (_c.label) {
71
+ var injectedDependencies = _b.injectedDependencies, databaseConfig = _b.databaseConfig, modulesConfig = _b.modulesConfig, joinerConfig = _b.joinerConfig, _c = _b.preventConnectionDestroyWarning, preventConnectionDestroyWarning = _c === void 0 ? false : _c;
72
+ return __generator(this, function (_d) {
73
+ switch (_d.label) {
74
74
  case 0:
75
75
  moduleSdkImports = require("@medusajs/modules-sdk");
76
76
  injectedDependencies !== null && injectedDependencies !== void 0 ? injectedDependencies : (injectedDependencies = {});
@@ -90,7 +90,7 @@ function initModules(_a) {
90
90
  injectedDependencies: injectedDependencies,
91
91
  })];
92
92
  case 1:
93
- medusaApp = _c.sent();
93
+ medusaApp = _d.sent();
94
94
  return [2 /*return*/, {
95
95
  medusaApp: medusaApp,
96
96
  shutdown: shutdown,
@@ -1 +1 @@
1
- {"version":3,"file":"init-modules.js","sourceRoot":"","sources":["../src/init-modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,yCAIwB;AAkBxB,SAAsB,WAAW,CAAC,EAMb;QALnB,oBAAoB,0BAAA,EACpB,cAAc,oBAAA,EACd,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,uCAAuC,EAAvC,+BAA+B,mBAAG,KAAK,KAAA;;QA0BvC,SAAe,QAAQ;;;;;;iCACjB,oCAAoC,EAApC,wBAAoC;4BACtC,qBAAM,IAAA,kBAAU,EAAC;oCACf,MAAC,kBAA0B,CAAC,OAAO,0CAAE,OAAO,EAAE;oCAC7C,kBAA0B,CAAC,OAAO,EAAE;oCACrC,SAAS,CAAC,qBAAqB,EAAE;iCAClC,CAAC,EAAA;;4BAJF,SAIE,CAAA;;;4BAEF,IAAI,CAAC,+BAA+B,EAAE;gCACpC,OAAO,CAAC,IAAI,CACV,4FAA4F,CAC7F,CAAA;6BACF;;;4BAEH,gBAAgB,CAAC,YAAY,CAAC,cAAc,EAAE,CAAA;;;;;SAC/C;;;;;oBAvCK,gBAAgB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;oBAEzD,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,IAApB,oBAAoB,GAAK,EAAE,EAAA;oBAEvB,kBAAkB,GACpB,oBAAoB,aAApB,oBAAoB,uBAApB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AAa,mBAAA,EACb,YAAY,kBAAA,EACZ,uCAAuC,EAAvC,+BAA+B,mBAAG,KAAK,KAAA;;;;oBAEjC,gBAAgB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;oBAEzD,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,IAApB,oBAAoB,GAAK,EAAE,EAAA;oBAEvB,kBAAkB,GACpB,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAG,iCAAyB,CAAC,aAAa,CAAC,CAAA;oBAE7D,oCAAoC,GAAG,CAAC,kBAAkB,CAAA;oBAC9D,IAAI,CAAC,kBAAkB,EAAE,CAAC;wBACxB,kBAAkB,GAAG,uBAAe,CAAC,kBAAkB,CAAC;4BACtD,SAAS,EAAE,cAAc,CAAC,SAAS;4BACnC,MAAM,EAAE,cAAc,CAAC,MAAM;yBAC9B,CAAC,CAAA;wBAEF,oBAAoB,CAAC,iCAAyB,CAAC,aAAa,CAAC;4BAC3D,kBAAkB,CAAA;oBACtB,CAAC;oBAEiB,qBAAM,gBAAgB,CAAC,SAAS,CAAC;4BACjD,aAAa,eAAA;4BACb,cAAc,EAAE,YAAY;4BAC5B,oBAAoB,sBAAA;yBACrB,CAAC,EAAA;;oBAJI,SAAS,GAAG,SAIhB;oBAmBF,sBAAO;4BACL,SAAS,WAAA;4BACT,QAAQ,UAAA;yBACT,EAAA;;;;CACF;AApDD,kCAoDC"}
@@ -50,16 +50,25 @@ var __read = (this && this.__read) || function (o, n) {
50
50
  }
51
51
  return ar;
52
52
  };
53
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
54
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
55
+ if (ar || !(i in from)) {
56
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
57
+ ar[i] = from[i];
58
+ }
59
+ }
60
+ return to.concat(ar || Array.prototype.slice.call(from));
61
+ };
53
62
  var _this = this;
54
63
  var path = require("path");
55
64
  var express = require("express");
56
65
  var getPort = require("get-port");
57
66
  var _a = require("@medusajs/utils"), isObject = _a.isObject, promiseAll = _a.promiseAll;
58
67
  var GracefulShutdownServer = require("medusa-core-utils").GracefulShutdownServer;
59
- function bootstrapApp(_a) {
60
- var _b = _a === void 0 ? {} : _a, cwd = _b.cwd, _c = _b.env, env = _c === void 0 ? {} : _c;
61
- return __awaiter(this, void 0, void 0, function () {
62
- var app, loaders, _d, container, shutdown, PORT;
68
+ function bootstrapApp() {
69
+ return __awaiter(this, arguments, void 0, function (_a) {
70
+ var app, loaders, _b, container, shutdown, PORT;
71
+ var _c = _a === void 0 ? {} : _a, cwd = _c.cwd, _d = _c.env, env = _d === void 0 ? {} : _d;
63
72
  return __generator(this, function (_e) {
64
73
  switch (_e.label) {
65
74
  case 0:
@@ -77,7 +86,7 @@ function bootstrapApp(_a) {
77
86
  isTest: false,
78
87
  })];
79
88
  case 1:
80
- _d = _e.sent(), container = _d.container, shutdown = _d.shutdown;
89
+ _b = _e.sent(), container = _b.container, shutdown = _b.shutdown;
81
90
  return [4 /*yield*/, getPort()];
82
91
  case 2:
83
92
  PORT = _e.sent();
@@ -92,11 +101,15 @@ function bootstrapApp(_a) {
92
101
  });
93
102
  }
94
103
  module.exports = {
95
- startBootstrapApp: function (_a) {
96
- var _b = _a === void 0 ? {} : _a, cwd = _b.cwd, _c = _b.env, env = _c === void 0 ? {} : _c, _d = _b.skipExpressListen, skipExpressListen = _d === void 0 ? false : _d;
97
- return __awaiter(_this, void 0, void 0, function () {
98
- var _e, app, port, container, medusaShutdown, expressServer, shutdown;
104
+ startBootstrapApp: function () {
105
+ var args_1 = [];
106
+ for (var _i = 0; _i < arguments.length; _i++) {
107
+ args_1[_i] = arguments[_i];
108
+ }
109
+ return __awaiter(_this, __spreadArray([], __read(args_1), false), void 0, function (_a) {
110
+ var _b, app, port, container, medusaShutdown, expressServer, shutdown;
99
111
  var _this = this;
112
+ var _c = _a === void 0 ? {} : _a, cwd = _c.cwd, _d = _c.env, env = _d === void 0 ? {} : _d, _e = _c.skipExpressListen, skipExpressListen = _e === void 0 ? false : _e;
100
113
  return __generator(this, function (_f) {
101
114
  switch (_f.label) {
102
115
  case 0: return [4 /*yield*/, bootstrapApp({
@@ -104,7 +117,7 @@ module.exports = {
104
117
  env: env,
105
118
  })];
106
119
  case 1:
107
- _e = _f.sent(), app = _e.app, port = _e.port, container = _e.container, medusaShutdown = _e.shutdown;
120
+ _b = _f.sent(), app = _b.app, port = _b.port, container = _b.container, medusaShutdown = _b.shutdown;
108
121
  if (skipExpressListen) {
109
122
  return [2 /*return*/];
110
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/bootstrap-app.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iBA+EA;AA/EA,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,IAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;AAClC,IAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAC7B,IAAA,KAA2B,OAAO,CAAC,iBAAiB,CAAC,EAAnD,QAAQ,cAAA,EAAE,UAAU,gBAA+B,CAAA;AACnD,IAAA,sBAAsB,GAAK,OAAO,CAAC,mBAAmB,CAAC,uBAAjC,CAAiC;AAE/D,SAAe,YAAY,CAAC,EAAsB;QAAtB,qBAAoB,EAAE,KAAA,EAApB,GAAG,SAAA,EAAE,WAAQ,EAAR,GAAG,mBAAG,EAAE,KAAA;;;;;;oBACnC,GAAG,GAAG,OAAO,EAAE,CAAA;oBAErB,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;wBACjB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAC,EAAM;gCAAN,KAAA,aAAM,EAAL,CAAC,QAAA,EAAE,CAAC,QAAA;4BAAM,OAAA,CAAC,OAA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B,IAAI,iBAAiB,EAAE,CAAC;4BACtB,sBAAM;wBACR,CAAC;wBAEK,QAAQ,GAAG;;;4CACf,qBAAM,UAAU,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,EAAA;;wCAA9D,SAA8D,CAAA;wCAE9D,IAAI,OAAO,MAAM,KAAK,WAAW,KAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,CAAA,EAAE,CAAC;4CAChD,MAAM,CAAC,EAAE,EAAE,CAAA;wCACb,CAAC;;;;6BACF,CAAA;wBAEM,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;gCACvC,IAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,UAAO,GAAG;;;;qDACpC,GAAG,EAAH,wBAAG;gDACL,qBAAM,QAAQ,EAAE,EAAA;;gDAAhB,SAAgB,CAAA;gDAChB,sBAAO,MAAM,CAAC,GAAG,CAAC,EAAA;;gDAEpB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gDAClB,OAAO,CAAC;oDACN,QAAQ,UAAA;oDACR,SAAS,WAAA;oDACT,IAAI,MAAA;iDACL,CAAC,CAAA;;;;qCACH,CAAC,CAAA;gCAEF,aAAa,GAAG,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;4BACvD,CAAC,CAAC,EAAA;4BAfF,sBAAO,SAeL,EAAA;;;;KACH;CACF,CAAA"}
@@ -70,14 +70,14 @@ var ContainerRegistrationKeys = require("@medusajs/utils").ContainerRegistration
70
70
  var logger = require("@medusajs/medusa-cli/dist/reporter").logger;
71
71
  module.exports = {
72
72
  initDb: function (_a) {
73
- var cwd = _a.cwd,
74
- // use for v1 datasource only
75
- database_extra = _a.database_extra, env = _a.env, force_modules_migration = _a.force_modules_migration, _b = _a.dbUrl, dbUrl = _b === void 0 ? "" : _b, _c = _a.dbSchema, dbSchema = _c === void 0 ? "public" : _c;
76
- return __awaiter(this, void 0, void 0, function () {
77
- var configModuleLoader, configModule, featureFlagsLoader, featureFlagRouter, modelsLoader, entities, migrationDir, _d, getEnabledMigrations, getModuleSharedResources, _e, moduleMigrations, moduleModels, enabledMigrations, enabledEntities, dbDataSource, pgConnectionLoader, featureFlagLoader, container, featureFlagRouter_1, pgConnection, migrateMedusaApp;
78
- var _f;
79
- return __generator(this, function (_g) {
80
- switch (_g.label) {
73
+ return __awaiter(this, arguments, void 0, function (_b) {
74
+ var configModuleLoader, configModule, featureFlagsLoader, featureFlagRouter, modelsLoader, entities, migrationDir, _c, getEnabledMigrations, getModuleSharedResources, _d, moduleMigrations, moduleModels, enabledMigrations, enabledEntities, dbDataSource, pgConnectionLoader, featureFlagLoader, container, featureFlagRouter_1, pgConnection, migrateMedusaApp;
75
+ var _e;
76
+ var cwd = _b.cwd,
77
+ // use for v1 datasource only
78
+ database_extra = _b.database_extra, env = _b.env, force_modules_migration = _b.force_modules_migration, _f = _b.dbUrl, dbUrl = _f === void 0 ? "" : _f, _g = _b.dbSchema, dbSchema = _g === void 0 ? "public" : _g;
79
+ return __generator(this, function (_h) {
80
+ switch (_h.label) {
81
81
  case 0:
82
82
  if (isObject(env)) {
83
83
  Object.entries(env).forEach(function (_a) {
@@ -92,8 +92,8 @@ module.exports = {
92
92
  modelsLoader = require("@medusajs/medusa/dist/loaders/models").default;
93
93
  entities = modelsLoader({}, { register: false });
94
94
  migrationDir = path.resolve(path.join(cwd, "../../", "node_modules", "@medusajs", "medusa", "dist", "migrations", "*.js"));
95
- _d = require("@medusajs/medusa/dist/commands/utils/get-migrations"), getEnabledMigrations = _d.getEnabledMigrations, getModuleSharedResources = _d.getModuleSharedResources;
96
- _e = getModuleSharedResources(configModule, featureFlagRouter), moduleMigrations = _e.migrations, moduleModels = _e.models;
95
+ _c = require("@medusajs/medusa/dist/commands/utils/get-migrations"), getEnabledMigrations = _c.getEnabledMigrations, getModuleSharedResources = _c.getModuleSharedResources;
96
+ _d = getModuleSharedResources(configModule, featureFlagRouter), moduleMigrations = _d.migrations, moduleModels = _d.models;
97
97
  enabledMigrations = getEnabledMigrations([migrationDir], function (flag) {
98
98
  return featureFlagRouter.isFeatureEnabled(flag);
99
99
  });
@@ -109,10 +109,10 @@ module.exports = {
109
109
  });
110
110
  return [4 /*yield*/, dbDataSource.initialize()];
111
111
  case 1:
112
- _g.sent();
112
+ _h.sent();
113
113
  return [4 /*yield*/, dbDataSource.runMigrations()];
114
114
  case 2:
115
- _g.sent();
115
+ _h.sent();
116
116
  if (!(force_modules_migration ||
117
117
  featureFlagRouter.isFeatureEnabled(MedusaV2Flag.key))) return [3 /*break*/, 6];
118
118
  pgConnectionLoader = require("@medusajs/medusa/dist/loaders/pg-connection").default;
@@ -120,25 +120,25 @@ module.exports = {
120
120
  container = createMedusaContainer();
121
121
  return [4 /*yield*/, featureFlagLoader(configModule)];
122
122
  case 3:
123
- featureFlagRouter_1 = _g.sent();
123
+ featureFlagRouter_1 = _h.sent();
124
124
  return [4 /*yield*/, pgConnectionLoader({
125
125
  configModule: __assign(__assign({}, configModule), { projectConfig: __assign(__assign({}, configModule.projectConfig), { database_url: dbUrl || configModule.projectConfig.database_url }) }),
126
126
  container: container,
127
127
  })];
128
128
  case 4:
129
- pgConnection = _g.sent();
130
- container.register((_f = {},
131
- _f[ContainerRegistrationKeys.CONFIG_MODULE] = asValue(configModule),
132
- _f[ContainerRegistrationKeys.LOGGER] = asValue(logger),
133
- _f[ContainerRegistrationKeys.MANAGER] = asValue(dbDataSource.manager),
134
- _f[ContainerRegistrationKeys.PG_CONNECTION] = asValue(pgConnection),
135
- _f.featureFlagRouter = asValue(featureFlagRouter_1),
136
- _f));
129
+ pgConnection = _h.sent();
130
+ container.register((_e = {},
131
+ _e[ContainerRegistrationKeys.CONFIG_MODULE] = asValue(configModule),
132
+ _e[ContainerRegistrationKeys.LOGGER] = asValue(logger),
133
+ _e[ContainerRegistrationKeys.MANAGER] = asValue(dbDataSource.manager),
134
+ _e[ContainerRegistrationKeys.PG_CONNECTION] = asValue(pgConnection),
135
+ _e.featureFlagRouter = asValue(featureFlagRouter_1),
136
+ _e));
137
137
  migrateMedusaApp = require("@medusajs/medusa/dist/loaders/medusa-app").migrateMedusaApp;
138
138
  return [4 /*yield*/, migrateMedusaApp({ configModule: configModule, container: container }, { registerInContainer: false })];
139
139
  case 5:
140
- _g.sent();
141
- _g.label = 6;
140
+ _h.sent();
141
+ _h.label = 6;
142
142
  case 6: return [2 /*return*/, { dbDataSource: dbDataSource, pgConnection: pgConnection }];
143
143
  }
144
144
  });
@@ -1 +1 @@
1
- {"version":3,"file":"use-db.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/use-db.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEpB,IAAA,aAAa,GAAK,OAAO,CAAC,mBAAmB,CAAC,cAAjC,CAAiC;AAC9C,IAAA,OAAO,GAAK,OAAO,CAAC,QAAQ,CAAC,QAAtB,CAAsB;AAC/B,IAAA,KAIF,OAAO,CAAC,iBAAiB,CAAC,EAH5B,QAAQ,cAAA,EACR,qBAAqB,2BAAA,EACrB,YAAY,kBACgB,CAAA;AACtB,IAAA,UAAU,GAAK,OAAO,CAAC,SAAS,CAAC,WAAvB,CAAuB;AACjC,IAAA,yBAAyB,GAAK,OAAO,CAAC,iBAAiB,CAAC,0BAA/B,CAA+B;AACxD,IAAA,MAAM,GAAK,OAAO,CAAC,oCAAoC,CAAC,OAAlD,CAAkD;AAEhE,MAAM,CAAC,OAAO,GAAG;IACf,MAAM,EAAE,UAAgB,EAQvB;YAPC,GAAG,SAAA;QACH,6BAA6B;QAC7B,cAAc,oBAAA,EACd,GAAG,SAAA,EACH,uBAAuB,6BAAA,EACvB,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EACV,gBAAmB,EAAnB,Q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AEf,qBAAM,iBAAiB,CAAC,YAAY,CAAC,EAAA;;wBAAzD,sBAAoB,SAAqC;wBAE1C,qBAAM,kBAAkB,CAAC;gCAC5C,YAAY,wBACP,YAAY,KACf,aAAa,wBACR,YAAY,CAAC,aAAa,KAC7B,YAAY,EAAE,KAAK,IAAI,YAAY,CAAC,aAAa,CAAC,YAAY,MAEjE;gCACD,SAAS,WAAA;6BACV,CAAC,EAAA;;wBATI,YAAY,GAAG,SASnB;wBAEF,SAAS,CAAC,QAAQ;4BAChB,GAAC,yBAAyB,CAAC,aAAa,IAAG,OAAO,CAAC,YAAY,CAAC;4BAChE,GAAC,yBAAyB,CAAC,MAAM,IAAG,OAAO,CAAC,MAAM,CAAC;4BACnD,GAAC,yBAAyB,CAAC,OAAO,IAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC;4BAClE,GAAC,yBAAyB,CAAC,aAAa,IAAG,OAAO,CAAC,YAAY,CAAC;4BAChE,oBAAiB,GAAE,OAAO,CAAC,mBAAiB,CAAC;gCAC7C,CAAA;wBAGA,gBAAgB,GACd,OAAO,CAAC,0CAA0C,CAAC,iBADrC,CACqC;wBACvD,qBAAM,gBAAgB,CACpB,EAAE,YAAY,cAAA,EAAE,SAAS,WAAA,EAAE,EAC3B,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAC/B,EAAA;;wBAHD,SAGC,CAAA;;4BAGH,sBAAO,EAAE,YAAY,cAAA,EAAE,YAAY,cAAA,EAAE,EAAA;;;;KACtC;CACF,CAAA"}
@@ -48,11 +48,11 @@ var __values = (this && this.__values) || function(o) {
48
48
  };
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.medusaIntegrationTestRunner = void 0;
51
+ var utils_1 = require("@medusajs/utils");
52
+ var pg_god_1 = require("pg-god");
51
53
  var database_1 = require("./database");
52
- var use_db_1 = require("./medusa-test-runner-utils/use-db");
53
54
  var bootstrap_app_1 = require("./medusa-test-runner-utils/bootstrap-app");
54
- var pg_god_1 = require("pg-god");
55
- var utils_1 = require("@medusajs/utils");
55
+ var use_db_1 = require("./medusa-test-runner-utils/use-db");
56
56
  var axios = require("axios").default;
57
57
  var DB_HOST = process.env.DB_HOST;
58
58
  var DB_USERNAME = process.env.DB_USERNAME;
@@ -66,8 +66,8 @@ var dbTestUtilFactory = function () { return ({
66
66
  db_: null,
67
67
  pgConnection_: null,
68
68
  clear: function () {
69
- var _a;
70
69
  return __awaiter(this, void 0, void 0, function () {
70
+ var _a;
71
71
  return __generator(this, function (_b) {
72
72
  (_a = this.db_) === null || _a === void 0 ? void 0 : _a.synchronize(true);
73
73
  return [2 /*return*/];
@@ -86,11 +86,11 @@ var dbTestUtilFactory = function () { return ({
86
86
  });
87
87
  });
88
88
  },
89
- teardown: function (_a) {
90
- var _b = _a === void 0 ? {} : _a, forceDelete = _b.forceDelete, schema = _b.schema;
91
- return __awaiter(this, void 0, void 0, function () {
89
+ teardown: function () {
90
+ return __awaiter(this, arguments, void 0, function (_a) {
92
91
  var manager, tableNames, tableNames_1, tableNames_1_1, table_name, e_1_1;
93
- var e_1, _c;
92
+ var e_1, _b;
93
+ var _c = _a === void 0 ? {} : _a, forceDelete = _c.forceDelete, schema = _c.schema;
94
94
  return __generator(this, function (_d) {
95
95
  switch (_d.label) {
96
96
  case 0:
@@ -128,7 +128,7 @@ var dbTestUtilFactory = function () { return ({
128
128
  return [3 /*break*/, 10];
129
129
  case 9:
130
130
  try {
131
- if (tableNames_1_1 && !tableNames_1_1.done && (_c = tableNames_1.return)) _c.call(tableNames_1);
131
+ if (tableNames_1_1 && !tableNames_1_1.done && (_b = tableNames_1.return)) _b.call(tableNames_1);
132
132
  }
133
133
  finally { if (e_1) throw e_1.error; }
134
134
  return [7 /*endfinally*/];
@@ -141,8 +141,8 @@ var dbTestUtilFactory = function () { return ({
141
141
  });
142
142
  },
143
143
  shutdown: function (dbName) {
144
- var _a, _b, _c, _d;
145
144
  return __awaiter(this, void 0, void 0, function () {
145
+ var _a, _b, _c, _d;
146
146
  return __generator(this, function (_e) {
147
147
  switch (_e.label) {
148
148
  case 0: return [4 /*yield*/, ((_a = this.db_) === null || _a === void 0 ? void 0 : _a.destroy())];
@@ -177,12 +177,14 @@ function medusaIntegrationTestRunner(_a) {
177
177
  require("@medusajs/medusa/dist/loaders/config").default = function (rootDirectory) {
178
178
  var config = originalConfigLoader(rootDirectory);
179
179
  config.projectConfig.database_url = dbConfig.clientUrl;
180
- config.projectConfig.database_driver_options = dbConfig.clientUrl.includes("localhost") ? {} : {
181
- connection: {
182
- ssl: { rejectUnauthorized: false },
183
- },
184
- idle_in_transaction_session_timeout: 20000,
185
- };
180
+ config.projectConfig.database_driver_options = dbConfig.clientUrl.includes("localhost")
181
+ ? {}
182
+ : {
183
+ connection: {
184
+ ssl: { rejectUnauthorized: false },
185
+ },
186
+ idle_in_transaction_session_timeout: 20000,
187
+ };
186
188
  return config;
187
189
  };
188
190
  var cwd = process.cwd();
@@ -278,7 +280,7 @@ function medusaIntegrationTestRunner(_a) {
278
280
  });
279
281
  }); };
280
282
  var beforeEach_ = function () { return __awaiter(_this, void 0, void 0, function () {
281
- var container, copiedContainer, defaultLoader, error_3, medusaAppLoaderRunner, error_4;
283
+ var container, copiedContainer, medusaAppLoaderRunner, error_3;
282
284
  return __generator(this, function (_a) {
283
285
  switch (_a.label) {
284
286
  case 0:
@@ -289,41 +291,27 @@ function medusaIntegrationTestRunner(_a) {
289
291
  }
290
292
  container = options.getContainer();
291
293
  copiedContainer = (0, utils_1.createMedusaContainer)({}, container);
292
- if (!(process.env.MEDUSA_FF_MEDUSA_V2 != "true")) return [3 /*break*/, 4];
293
294
  _a.label = 1;
294
295
  case 1:
295
296
  _a.trys.push([1, 3, , 4]);
296
- defaultLoader = require("@medusajs/medusa/dist/loaders/defaults").default;
297
- return [4 /*yield*/, defaultLoader({
297
+ medusaAppLoaderRunner = require("@medusajs/medusa/dist/loaders/medusa-app").runModulesLoader;
298
+ return [4 /*yield*/, medusaAppLoaderRunner({
298
299
  container: copiedContainer,
300
+ configModule: container.resolve("configModule"),
299
301
  })];
300
302
  case 2:
301
303
  _a.sent();
302
304
  return [3 /*break*/, 4];
303
305
  case 3:
304
306
  error_3 = _a.sent();
305
- console.error("Error runner medusa loaders", error_3 === null || error_3 === void 0 ? void 0 : error_3.message);
307
+ console.error("Error runner modules loaders", error_3 === null || error_3 === void 0 ? void 0 : error_3.message);
306
308
  throw error_3;
307
- case 4:
308
- _a.trys.push([4, 6, , 7]);
309
- medusaAppLoaderRunner = require("@medusajs/medusa/dist/loaders/medusa-app").runModulesLoader;
310
- return [4 /*yield*/, medusaAppLoaderRunner({
311
- container: copiedContainer,
312
- configModule: container.resolve("configModule"),
313
- })];
314
- case 5:
315
- _a.sent();
316
- return [3 /*break*/, 7];
317
- case 6:
318
- error_4 = _a.sent();
319
- console.error("Error runner modules loaders", error_4 === null || error_4 === void 0 ? void 0 : error_4.message);
320
- throw error_4;
321
- case 7: return [2 /*return*/];
309
+ case 4: return [2 /*return*/];
322
310
  }
323
311
  });
324
312
  }); };
325
313
  var afterEach_ = function () { return __awaiter(_this, void 0, void 0, function () {
326
- var error_5;
314
+ var error_4;
327
315
  return __generator(this, function (_a) {
328
316
  switch (_a.label) {
329
317
  case 0:
@@ -333,9 +321,9 @@ function medusaIntegrationTestRunner(_a) {
333
321
  _a.sent();
334
322
  return [3 /*break*/, 3];
335
323
  case 2:
336
- error_5 = _a.sent();
337
- console.error("Error tearing down database:", error_5 === null || error_5 === void 0 ? void 0 : error_5.message);
338
- throw error_5;
324
+ error_4 = _a.sent();
325
+ console.error("Error tearing down database:", error_4 === null || error_4 === void 0 ? void 0 : error_4.message);
326
+ throw error_4;
339
327
  case 3: return [2 /*return*/];
340
328
  }
341
329
  });
@@ -1 +1 @@
1
- {"version":3,"file":"medusa-test-runner.js","sourceRoot":"","sources":["../src/medusa-test-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCA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SAAS,CAAC,OAAO,CAAC,cAAc,CAAC;yBAChD,CAAC,EAAA;;oBAHF,SAGE,CAAA;;;;oBAEF,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,OAAK,aAAL,OAAK,uBAAL,OAAK,CAAE,OAAO,CAAC,CAAA;oBAC7D,MAAM,OAAK,CAAA;;;;SAEd,CAAA;IAED,IAAM,UAAU,GAAG;;;;;;oBAEf,qBAAM,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;oBAAlC,SAAkC,CAAA;;;;oBAElC,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,OAAK,aAAL,OAAK,uBAAL,OAAK,CAAE,OAAO,CAAC,CAAA;oBAC7D,MAAM,OAAK,CAAA;;;;SAEd,CAAA;IAED,OAAO,QAAQ,CAAC,EAAE,EAAE;QAClB,SAAS,CAAC,UAAU,CAAC,CAAA;QACrB,UAAU,CAAC,WAAW,CAAC,CAAA;QACvB,SAAS,CAAC,UAAU,CAAC,CAAA;QACrB,QAAQ,CAAC;;;4BACP,qBAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAA;;wBAA9B,SAA8B,CAAA;wBAC9B,qBAAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;aACjB,CAAC,CAAA;QAEF,SAAS,CAAC,OAAQ,CAAC,CAAA;IACrB,CAAC,CAAC,CAAA;AACJ,CAAC;AAtLD,kEAsLC"}
@@ -39,11 +39,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var EventBusService = /** @class */ (function () {
40
40
  function EventBusService() {
41
41
  }
42
- EventBusService.prototype.emit = function (eventOrData, data, options) {
43
- if (options === void 0) { options = {}; }
44
- return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
45
- return [2 /*return*/];
46
- }); });
42
+ EventBusService.prototype.emit = function (eventOrData_1, data_1) {
43
+ return __awaiter(this, arguments, void 0, function (eventOrData, data, options) {
44
+ if (options === void 0) { options = {}; }
45
+ return __generator(this, function (_a) {
46
+ return [2 /*return*/];
47
+ });
48
+ });
47
49
  };
48
50
  EventBusService.prototype.subscribe = function (event, subscriber) {
49
51
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"mock-event-bus-service.js","sourceRoot":"","sources":["../src/mock-event-bus-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;IAAA;IAgCA,CAAC;IAvBO,8BAAI,GAAV,UAOE,WAAmB,EACnB,IAAQ,EACR,OAAqC;QAArC,wBAAA,EAAA,YAAqC;;;;KACpB;IAEnB,mCAAS,GAAT,UAAU,KAAsB,EAAE,UAAsB;QACtD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,qCAAW,GAAX,UACE,KAAsB,EACtB,UAAsB,EACtB,OAAyC;QAEzC,OAAO,IAAI,CAAA;IACb,CAAC;IACH,sBAAC;AAAD,CAAC,AAhCD,IAgCC"}
1
+ {"version":3,"file":"mock-event-bus-service.js","sourceRoot":"","sources":["../src/mock-event-bus-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;IAAA;IAgCA,CAAC;IAvBO,8BAAI,GAAV;4DAOE,WAAmB,EACnB,IAAQ,EACR,OAAqC;YAArC,wBAAA,EAAA,YAAqC;;;;;KACpB;IAEnB,mCAAS,GAAT,UAAU,KAAsB,EAAE,UAAsB;QACtD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,qCAAW,GAAX,UACE,KAAsB,EACtB,UAAsB,EACtB,OAAyC;QAEzC,OAAO,IAAI,CAAA;IACb,CAAC;IACH,sBAAC;AAAD,CAAC,AAhCD,IAgCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mock-manager.js","sourceRoot":"","sources":["../src/mock-manager.js"],"names":[],"mappings":";;AAAA,kBAAe;IACb,UAAU,EAAE;QACV,WAAW,EAAE,UAAC,MAAM;;YAClB,OAAO,CACL,MAAA,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IAAI,CAAC,CAAA;QAC5B,CAAC;IACH,CAAC;CACF,CAAA"}
@@ -27,8 +27,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var MockRepo = /** @class */ (function () {
29
29
  function MockRepo(_a) {
30
- var _this = this;
31
30
  var create = _a.create, update = _a.update, remove = _a.remove, softRemove = _a.softRemove, find = _a.find, findDescendantsTree = _a.findDescendantsTree, findOne = _a.findOne, findOneWithRelations = _a.findOneWithRelations, findOneOrFail = _a.findOneOrFail, save = _a.save, findAndCount = _a.findAndCount, del = _a.del, count = _a.count, insertBulk = _a.insertBulk, metadata = _a.metadata;
31
+ var _this = this;
32
32
  this.insertBulk = jest.fn().mockImplementation(function () {
33
33
  var args = [];
34
34
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -1 +1 @@
1
- {"version":3,"file":"mock-repository.js","sourceRoot":"","sources":["../src/mock-repository.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IACE,kBAAY,EAgBX;QAhBD,iBAmCC;YAlCC,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,IAAI,UAAA,EACJ,mBAAmB,yBAAA,EACnB,OAAO,aAAA,EACP,oBAAoB,0BAAA,EACpB,aAAa,mBAAA,EACb,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,GAAG,SAAA,EACH,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA;QA0BV,eAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC;YAAC,cAAO;iBAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;gBAAP,yBAAO;;YAChD,IAAI,KAAI,CAAC,WAAW,EAAE;gBACpB,OAAO,KAAI,CAAC,WAAW,OAAhB,KAAI,2BAAgB,IAAI,WAAC;aACjC;YACD,OAAO,EAAE,CAAA;QACX,CAAC,CAAC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AAC,OAAY;IAAZ,wBAAA,EAAA,YAAY;IAC1B,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAA;AAC9B,CAAC,EAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-test-utils",
3
- "version": "1.1.45-preview-20240505115807",
3
+ "version": "1.1.45-preview-20240507182533",
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.11.17-preview-20240505115807",
27
+ "@medusajs/types": "1.11.17-preview-20240507182533",
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-preview-20240505115807",
35
- "@medusajs/modules-sdk": "1.12.12-preview-20240505115807",
34
+ "@medusajs/medusa": "1.20.6-preview-20240507182533",
35
+ "@medusajs/modules-sdk": "1.12.12-preview-20240507182533",
36
36
  "axios": "^0.28.0",
37
37
  "express": "^4.18.3",
38
38
  "get-port": "^5.1.0",
@@ -60,10 +60,10 @@
60
60
  }
61
61
  },
62
62
  "dependencies": {
63
- "@medusajs/utils": "1.11.10-preview-20240505115807",
63
+ "@medusajs/utils": "1.11.10-preview-20240507182533",
64
64
  "@mikro-orm/migrations": "5.9.7",
65
65
  "@mikro-orm/postgresql": "5.9.7",
66
- "medusa-core-utils": "1.2.3-preview-20240505115807",
66
+ "medusa-core-utils": "1.2.3-preview-20240507182533",
67
67
  "randomatic": "^3.1.1"
68
68
  },
69
69
  "gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"