@pinelab/vendure-plugin-qls-fulfillment 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.5.1 (2026-02-18)
2
+
3
+ - Pass error message to `QlsVariantSyncFailedEvent` instead of the error object.
4
+
1
5
  # 1.5.0 (2026-02-18)
2
6
 
3
7
  - Allow passing additional order items with `addAdditionalOrderItems()` that will be added to the QLS order.
@@ -142,7 +142,7 @@ let QlsProductService = class QlsProductService {
142
142
  const error = (0, catch_unknown_1.asError)(e);
143
143
  core_1.Logger.error(`Error creating or updating variant '${variant.sku}' in QLS: ${error.message}`, constants_1.loggerCtx, error.stack);
144
144
  failed.push(variant);
145
- await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), e));
145
+ await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), error.message));
146
146
  await waitToPreventRateLimit();
147
147
  }
148
148
  }
@@ -224,7 +224,7 @@ let QlsProductService = class QlsProductService {
224
224
  // Log as warning, because this is probably a functional mistake, i.e. duplicate barcodes or EANs
225
225
  core_1.Logger.warn(`Error syncing variant ${variantId} (${variant.sku}) to QLS: ${error.message}`, constants_1.loggerCtx);
226
226
  failed.push({ id: variantId });
227
- await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), e));
227
+ await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), error.message));
228
228
  }
229
229
  }
230
230
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-qls-fulfillment",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Vendure plugin to fulfill orders via QLS.",
5
5
  "keywords": [
6
6
  "fulfillment",