@realtimex/email-automator 2.8.2 → 2.8.3

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.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Email Automator</title>
8
- <script type="module" crossorigin src="/assets/index-B8JaOAxd.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-DIo7yzpy.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-BXVbfEhG.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/email-automator",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "type": "module",
5
5
  "main": "dist/api/server.js",
6
6
  "bin": {
@@ -0,0 +1,18 @@
1
+ -- Enable Realtime for emails table
2
+ -- This allows the frontend to receive INSERT/UPDATE/DELETE events
3
+
4
+ -- Set REPLICA IDENTITY to FULL so we get all column values in realtime events
5
+ ALTER TABLE emails REPLICA IDENTITY FULL;
6
+
7
+ -- Add emails table to the realtime publication
8
+ DO $$
9
+ BEGIN
10
+ IF NOT EXISTS (
11
+ SELECT 1 FROM pg_publication_tables
12
+ WHERE pubname = 'supabase_realtime'
13
+ AND schemaname = 'public'
14
+ AND tablename = 'emails'
15
+ ) THEN
16
+ ALTER PUBLICATION supabase_realtime ADD TABLE emails;
17
+ END IF;
18
+ END $$;