@medusajs/link-modules 0.2.12-snapshot-20240716102844 → 0.2.12-snapshot-20240717110205

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,7 +92,7 @@ class LinkModuleService {
92
92
  }
93
93
  const links = await this.linkService_.create(data, sharedContext);
94
94
  await this.eventBusModuleService_?.emit(data.map(({ id }) => ({
95
- eventName: this.entityName_ + "." + utils_1.CommonEvents.ATTACHED,
95
+ name: this.entityName_ + "." + utils_1.CommonEvents.ATTACHED,
96
96
  metadata: {
97
97
  source: this.serviceName_,
98
98
  action: utils_1.CommonEvents.ATTACHED,
@@ -121,7 +121,7 @@ class LinkModuleService {
121
121
  await this.linkService_.delete(data, sharedContext);
122
122
  const allData = Array.isArray(data) ? data : [data];
123
123
  await this.eventBusModuleService_?.emit(allData.map(({ id }) => ({
124
- eventName: this.entityName_ + "." + utils_1.CommonEvents.DETACHED,
124
+ name: this.entityName_ + "." + utils_1.CommonEvents.DETACHED,
125
125
  metadata: {
126
126
  source: this.serviceName_,
127
127
  action: utils_1.CommonEvents.DETACHED,
@@ -151,7 +151,7 @@ class LinkModuleService {
151
151
  });
152
152
  }
153
153
  await this.eventBusModuleService_?.emit(deletedEntities.map(({ id }) => ({
154
- eventName: this.entityName_ + "." + utils_1.CommonEvents.DETACHED,
154
+ name: this.entityName_ + "." + utils_1.CommonEvents.DETACHED,
155
155
  metadata: {
156
156
  source: this.serviceName_,
157
157
  action: utils_1.CommonEvents.DETACHED,
@@ -185,7 +185,7 @@ class LinkModuleService {
185
185
  });
186
186
  }
187
187
  await this.eventBusModuleService_?.emit(restoredEntities.map(({ id }) => ({
188
- eventName: this.entityName_ + "." + utils_1.CommonEvents.ATTACHED,
188
+ name: this.entityName_ + "." + utils_1.CommonEvents.ATTACHED,
189
189
  metadata: {
190
190
  source: this.serviceName_,
191
191
  action: utils_1.CommonEvents.ATTACHED,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-snapshot-20240716102844",
3
+ "version": "0.2.12-snapshot-20240717110205",
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-snapshot-20240716102844",
32
+ "@medusajs/types": "1.12.0-snapshot-20240717110205",
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-snapshot-20240716102844",
43
- "@medusajs/utils": "1.12.0-snapshot-20240716102844",
42
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240717110205",
43
+ "@medusajs/utils": "1.12.0-snapshot-20240717110205",
44
44
  "@mikro-orm/core": "5.9.7",
45
45
  "@mikro-orm/postgresql": "5.9.7",
46
46
  "awilix": "^8.0.0"