@wix/sdk 1.17.1 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,9 @@ export type EventHandlersClient = Emitter<{
48
48
  };
49
49
  };
50
50
  export declare function eventHandlersModules(authStrategy: AuthenticationStrategy<any>): {
51
- initModule(eventDefinition: EventDefinition<any, string>): (handler: EventHandler<EventDefinition<any, string>>) => void;
51
+ initModule(eventDefinition: EventDefinition<any, string>): (handler: EventHandler<EventDefinition<any, string>>) => {
52
+ slug: string;
53
+ };
52
54
  client: EventHandlersClient;
53
55
  };
54
56
  export {};
@@ -139,6 +139,9 @@ export function eventHandlersModules(authStrategy) {
139
139
  handlers.push({ eventDefinition, handler });
140
140
  eventHandlers.set(eventDefinition.type, handlers);
141
141
  webhooksEmitter.emit('registered', eventDefinition);
142
+ return {
143
+ slug: eventDefinition.type,
144
+ };
142
145
  };
143
146
  },
144
147
  client,
@@ -48,7 +48,9 @@ export type EventHandlersClient = Emitter<{
48
48
  };
49
49
  };
50
50
  export declare function eventHandlersModules(authStrategy: AuthenticationStrategy<any>): {
51
- initModule(eventDefinition: EventDefinition<any, string>): (handler: EventHandler<EventDefinition<any, string>>) => void;
51
+ initModule(eventDefinition: EventDefinition<any, string>): (handler: EventHandler<EventDefinition<any, string>>) => {
52
+ slug: string;
53
+ };
52
54
  client: EventHandlersClient;
53
55
  };
54
56
  export {};
@@ -145,6 +145,9 @@ function eventHandlersModules(authStrategy) {
145
145
  handlers.push({ eventDefinition, handler });
146
146
  eventHandlers.set(eventDefinition.type, handlers);
147
147
  webhooksEmitter.emit('registered', eventDefinition);
148
+ return {
149
+ slug: eventDefinition.type,
150
+ };
148
151
  };
149
152
  },
150
153
  client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -76,7 +76,7 @@
76
76
  "@wix/image-kit": "^1.113.0",
77
77
  "@wix/redirects": "^1.0.70",
78
78
  "@wix/sdk-context": "0.0.1",
79
- "@wix/sdk-runtime": "0.4.0",
79
+ "@wix/sdk-runtime": "0.6.0",
80
80
  "@wix/sdk-types": "1.14.0",
81
81
  "jose": "^5.10.0",
82
82
  "type-fest": "^4.41.0"
@@ -86,20 +86,20 @@
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/is-ci": "^3.0.4",
89
- "@types/node": "^20.19.13",
89
+ "@types/node": "^20.19.24",
90
90
  "@vitest/ui": "^1.6.1",
91
91
  "@wix/ecom": "^1.0.886",
92
92
  "@wix/events": "^1.0.382",
93
93
  "@wix/metro": "^1.0.93",
94
94
  "@wix/metro-runtime": "^1.1891.0",
95
- "@wix/sdk-runtime": "0.4.0",
95
+ "@wix/sdk-runtime": "0.6.0",
96
96
  "eslint": "^8.57.1",
97
97
  "eslint-config-sdk": "0.0.0",
98
98
  "graphql": "^16.8.0",
99
99
  "is-ci": "^3.0.1",
100
100
  "jsdom": "^22.1.0",
101
- "msw": "^2.11.1",
102
- "typescript": "^5.9.2",
101
+ "msw": "^2.11.6",
102
+ "typescript": "^5.9.3",
103
103
  "vitest": "^1.6.1",
104
104
  "vitest-teamcity-reporter": "^0.3.1"
105
105
  },
@@ -126,5 +126,5 @@
126
126
  "wallaby": {
127
127
  "autoDetect": true
128
128
  },
129
- "falconPackageHash": "1e32969c85c2ac1d56e7fd2fe1ffc3556907473b9e9e0efe43db5aaa"
129
+ "falconPackageHash": "50200a6cb3b4b0be89aaf23506afa8458ab80d1508197a08f68ca8c0"
130
130
  }