@medusajs/link-modules 0.2.12-preview-20240701120658 → 0.2.12-preview-20240701172451

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ function getMigration(joinerConfig, serviceName, primary, foreign) {
33
33
  logger.info(`Link module "${serviceName}" migration executed`)
34
34
  } catch (error) {
35
35
  logger.error(
36
- `Link module "${serviceName}" migration failed to run - Error: ${error}`
36
+ `Link module "${serviceName}" migration failed to run - Error: ${error.errros ?? error}`
37
37
  )
38
38
  }
39
39
  } else {
@@ -47,7 +47,7 @@ function getMigration(joinerConfig, serviceName, primary, foreign) {
47
47
  logger.info(`Link module "${serviceName}" migration executed`);
48
48
  }
49
49
  catch (error) {
50
- logger.error(`Link module "${serviceName}" migration failed to run - Error: ${error}`);
50
+ logger.error(`Link module "${serviceName}" migration failed to run - Error: ${error.errros ?? error}`);
51
51
  }
52
52
  }
53
53
  await orm.close();
@@ -67,7 +67,7 @@ function getRevertMigration(joinerConfig, serviceName, primary, foreign) {
67
67
  logger.info(`Link module "${serviceName}" migration executed`);
68
68
  }
69
69
  catch (error) {
70
- logger.error(`Link module "${serviceName}" migration failed to run - Error: ${error}`);
70
+ logger.error(`Link module "${serviceName}" migration failed to run - Error: ${error.errros ?? error}`);
71
71
  }
72
72
  await orm.close();
73
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-preview-20240701120658",
3
+ "version": "0.2.12-preview-20240701172451",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "test:integration": "jest --passWithNoTests"
30
30
  },
31
31
  "devDependencies": {
32
- "@medusajs/types": "1.12.0-preview-20240701120658",
32
+ "@medusajs/types": "1.12.0-preview-20240701172451",
33
33
  "cross-env": "^5.2.1",
34
34
  "jest": "^29.7.0",
35
35
  "pg-god": "^1.0.12",
@@ -39,8 +39,8 @@
39
39
  "typescript": "^5.1.6"
40
40
  },
41
41
  "dependencies": {
42
- "@medusajs/modules-sdk": "1.13.0-preview-20240701120658",
43
- "@medusajs/utils": "1.12.0-preview-20240701120658",
42
+ "@medusajs/modules-sdk": "1.13.0-preview-20240701172451",
43
+ "@medusajs/utils": "1.12.0-preview-20240701172451",
44
44
  "@mikro-orm/core": "5.9.7",
45
45
  "@mikro-orm/postgresql": "5.9.7",
46
46
  "awilix": "^8.0.0"