@hintergrund/worker 0.3.8 → 0.3.9

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.
@@ -466,7 +466,7 @@ export async function sendOrderInvoice(c) {
466
466
  }
467
467
  catch (error) {
468
468
  console.error('Failed to send invoice:', error);
469
- return c.json({ success: false, error: 'Failed to send invoice' }, 500);
469
+ return c.json({ success: false, error: error instanceof Error ? error.message : 'Failed to send invoice' }, 500);
470
470
  }
471
471
  }
472
472
  export async function handleStripeWebhook(c) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hintergrund/worker",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "postal-mime": "^3.0.0",
30
30
  "stripe": "^17.5.0",
31
31
  "tweetnacl": "^1.0.3",
32
- "@hintergrund/runtime-contracts": "0.3.8"
32
+ "@hintergrund/runtime-contracts": "0.3.9"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsc",