@progus/connector 0.5.1 → 0.5.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.
package/dist/index.cjs CHANGED
@@ -162,7 +162,7 @@ function createProgusConnector(config) {
162
162
  if (!apiBaseUrl || !config.signingSecret) {
163
163
  return { success: false, message: "Partners API configuration not set", status: 500 };
164
164
  }
165
- const requestBody = JSON.stringify({ shop: payload.shopDomain });
165
+ const requestBody = JSON.stringify({ shop: payload.shopDomain, appName: config.appKey });
166
166
  const headers = {
167
167
  "Content-Type": "application/json",
168
168
  "x-progus-hmac-sha256": signPayload(requestBody, config.signingSecret)
package/dist/index.js CHANGED
@@ -134,7 +134,7 @@ function createProgusConnector(config) {
134
134
  if (!apiBaseUrl || !config.signingSecret) {
135
135
  return { success: false, message: "Partners API configuration not set", status: 500 };
136
136
  }
137
- const requestBody = JSON.stringify({ shop: payload.shopDomain });
137
+ const requestBody = JSON.stringify({ shop: payload.shopDomain, appName: config.appKey });
138
138
  const headers = {
139
139
  "Content-Type": "application/json",
140
140
  "x-progus-hmac-sha256": signPayload(requestBody, config.signingSecret)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progus/connector",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Progus partner/affiliate connector helpers",
5
5
  "license": "MIT",
6
6
  "type": "module",