@omg-dev/server 0.4.30 → 0.4.32
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.mjs +4 -4
- package/dist/trigger-scan.mjs +2 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -763,7 +763,7 @@ async function sendResumeReplay(client, sub, fromSeq) {
|
|
|
763
763
|
replayed
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
const RESERVED = new Set([
|
|
766
|
+
const RESERVED = /* @__PURE__ */ new Set([
|
|
767
767
|
"id",
|
|
768
768
|
"created_at",
|
|
769
769
|
"updated_at",
|
|
@@ -802,7 +802,7 @@ const scopedTables = /* @__PURE__ */ new Set();
|
|
|
802
802
|
function markScoped(table) {
|
|
803
803
|
scopedTables.add(table);
|
|
804
804
|
}
|
|
805
|
-
const RESERVED_COLUMNS = new Set([
|
|
805
|
+
const RESERVED_COLUMNS = /* @__PURE__ */ new Set([
|
|
806
806
|
"id",
|
|
807
807
|
"_owner",
|
|
808
808
|
"created_at",
|
|
@@ -2418,7 +2418,7 @@ const NOTIFICATIONS_TABLE = "vibesNotifications";
|
|
|
2418
2418
|
const PREFERENCES_TABLE = "vibesNotificationPreferences";
|
|
2419
2419
|
const SUBSCRIPTIONS_TABLE = "vibesPushSubscriptions";
|
|
2420
2420
|
const DELIVERIES_TABLE = "vibesNotificationDeliveries";
|
|
2421
|
-
const notificationSystemCollectionNames = new Set([
|
|
2421
|
+
const notificationSystemCollectionNames = /* @__PURE__ */ new Set([
|
|
2422
2422
|
NOTIFICATIONS_TABLE,
|
|
2423
2423
|
PREFERENCES_TABLE,
|
|
2424
2424
|
SUBSCRIPTIONS_TABLE,
|
|
@@ -3168,7 +3168,7 @@ async function createVibesServer(opts) {
|
|
|
3168
3168
|
];
|
|
3169
3169
|
function rebuildRoutes() {
|
|
3170
3170
|
const explicit = new Set(explicitRoutes.map((r) => `${r.method} ${r.path}`));
|
|
3171
|
-
const builtinKeys = new Set([...storageBuiltinRoutes.map((r) => `${r.method} ${r.path}`), ...notificationBuiltinRoutes.map((r) => `${r.method} ${r.path}`)]);
|
|
3171
|
+
const builtinKeys = /* @__PURE__ */ new Set([...storageBuiltinRoutes.map((r) => `${r.method} ${r.path}`), ...notificationBuiltinRoutes.map((r) => `${r.method} ${r.path}`)]);
|
|
3172
3172
|
const builtinStorage = storageBuiltinRoutes.filter((r) => !explicit.has(`${r.method} ${r.path}`));
|
|
3173
3173
|
const builtinNotifications = notificationBuiltinRoutes.filter((r) => !explicit.has(`${r.method} ${r.path}`));
|
|
3174
3174
|
if (hasCollections(currentSchema) && opts.autoCrud !== false) routes = [
|
package/dist/trigger-scan.mjs
CHANGED
|
@@ -24,6 +24,8 @@ function walk(dir, out) {
|
|
|
24
24
|
const EXPORT_TRIGGER_RE = /^export\s+const\s+(\w+)\s*(?::\s*[^=]+)?\s*=\s*(cron|on)\s*\(\s*(.+?)\s*,/gm;
|
|
25
25
|
const EXPORT_STORAGE_HOOK_RE = /^export\s+const\s+(\w+)\s*(?::\s*[^=]+)?\s*=\s*storage\.(onUpload|onDelete)\s*\(/gm;
|
|
26
26
|
var TriggerScanError = class extends Error {
|
|
27
|
+
file;
|
|
28
|
+
detail;
|
|
27
29
|
constructor(file, detail) {
|
|
28
30
|
super(`[vibes:triggers] ${file}: ${detail}`);
|
|
29
31
|
this.file = file;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omg-dev/server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@restatedev/restate-sdk": "1.14.5",
|
|
17
|
-
"@omg-dev/auth": "0.4.
|
|
18
|
-
"@omg-dev/schema": "0.4.
|
|
19
|
-
"@omg-dev/stream": "0.4.
|
|
17
|
+
"@omg-dev/auth": "0.4.32",
|
|
18
|
+
"@omg-dev/schema": "0.4.32",
|
|
19
|
+
"@omg-dev/stream": "0.4.32",
|
|
20
20
|
"web-push": "^3.6.7"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|