@yawlabs/lemonsqueezy-webhook-sink 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.sql +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/lemonsqueezy-webhook-sink",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Durable webhook receiver for LemonSqueezy — verifies signatures, deduplicates events, and persists them for replay and reconciliation",
5
5
  "license": "MIT",
6
6
  "author": "YawLabs <contact@yaw.sh>",
package/schema.sql CHANGED
@@ -9,9 +9,9 @@ CREATE TABLE IF NOT EXISTS events (
9
9
  id INTEGER PRIMARY KEY AUTOINCREMENT,
10
10
 
11
11
  -- LemonSqueezy event identity. `event_key` is the dedupe key: either the
12
- -- `meta.custom_data.event_id` if the sender provides one, or a hash of
13
- -- (event_name + timestamp + resource_id) as a fallback. Unique so duplicate
14
- -- deliveries become a no-op insert.
12
+ -- `meta.custom_data.event_id` if the sender provides one, or a SHA-256 hash
13
+ -- of `event_name + data.type + data.id + data.attributes.created_at` as a
14
+ -- fallback. Unique so duplicate deliveries become a no-op insert.
15
15
  event_key TEXT NOT NULL UNIQUE,
16
16
  event_name TEXT NOT NULL,
17
17
  resource_id TEXT,