@omg-dev/server 0.4.24 → 0.4.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omg-dev/server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
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.26",
|
|
18
|
+
"@omg-dev/schema": "0.4.26",
|
|
19
|
+
"@omg-dev/stream": "0.4.26",
|
|
20
20
|
"web-push": "^3.6.7"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"url": "git+https://github.com/BennyKok/vibes.git"
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://docs.omg.dev",
|
|
32
|
-
"files": [
|
|
33
|
-
"dist",
|
|
34
|
-
"src"
|
|
35
|
-
],
|
|
36
32
|
"publishConfig": {
|
|
37
33
|
"access": "public",
|
|
38
34
|
"registry": "https://registry.npmjs.org/"
|
|
39
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"src"
|
|
39
|
+
]
|
|
40
40
|
}
|
|
@@ -44,11 +44,11 @@ describe("notifications", () => {
|
|
|
44
44
|
method: "POST",
|
|
45
45
|
headers: { "content-type": "application/json" },
|
|
46
46
|
body: JSON.stringify({
|
|
47
|
-
kind: "
|
|
48
|
-
title: "
|
|
49
|
-
body: "
|
|
47
|
+
kind: "build_failed",
|
|
48
|
+
title: "Build failed",
|
|
49
|
+
body: "Open the app to retry.",
|
|
50
50
|
url: "/demo",
|
|
51
|
-
dedupeKey: "run:1:
|
|
51
|
+
dedupeKey: "run:1:failed",
|
|
52
52
|
}),
|
|
53
53
|
}))
|
|
54
54
|
expect(create.status).toBe(200)
|
|
@@ -59,20 +59,20 @@ describe("notifications", () => {
|
|
|
59
59
|
method: "POST",
|
|
60
60
|
headers: { "content-type": "application/json" },
|
|
61
61
|
body: JSON.stringify({
|
|
62
|
-
kind: "
|
|
62
|
+
kind: "build_failed",
|
|
63
63
|
title: "Duplicate",
|
|
64
|
-
dedupeKey: "run:1:
|
|
64
|
+
dedupeKey: "run:1:failed",
|
|
65
65
|
}),
|
|
66
66
|
}))
|
|
67
67
|
const dup = await duplicate.json() as { id: string; title: string }
|
|
68
68
|
expect(dup.id).toBe(created.id)
|
|
69
|
-
expect(dup.title).toBe("
|
|
69
|
+
expect(dup.title).toBe("Build failed")
|
|
70
70
|
|
|
71
71
|
const list = await server.fetch(authed("/api/_notifications/list"))
|
|
72
72
|
expect(list.status).toBe(200)
|
|
73
73
|
const rows = await list.json() as Array<{ id: string; title: string }>
|
|
74
74
|
expect(rows).toHaveLength(1)
|
|
75
|
-
expect(rows[0].title).toBe("
|
|
75
|
+
expect(rows[0].title).toBe("Build failed")
|
|
76
76
|
|
|
77
77
|
const read = await server.fetch(authed("/api/_notifications/read", {
|
|
78
78
|
method: "POST",
|