@protobase/server 0.62.2 → 0.62.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/jobs/schema.js +1 -1
- package/dist/package.js +1 -1
- package/dist/webhooks/table/schema.js +1 -1
- package/package.json +4 -4
package/dist/jobs/schema.js
CHANGED
|
@@ -27,7 +27,7 @@ const readJobsSchema = async (db) => {
|
|
|
27
27
|
};
|
|
28
28
|
const [version] = await rows(db, `select version from ${jobsSchema}.version`);
|
|
29
29
|
const functions = await rows(db, `select p.proname as name, obj_description(p.oid, 'pg_proc') as comment from pg_proc p
|
|
30
|
-
join pg_namespace n on n.oid = p.pronamespace where n.nspname = $1 and p.proname = any($2)`, [jobsSchema, functionNames]);
|
|
30
|
+
join pg_namespace n on n.oid = p.pronamespace where n.nspname = $1 and p.proname = any($2) order by p.proname`, [jobsSchema, functionNames]);
|
|
31
31
|
const functionsCurrent = functionNames.every((name) => functions.some((found) => found.name === name && found.comment === functionsComment));
|
|
32
32
|
return {
|
|
33
33
|
pgBoss: version === void 0 ? void 0 : Number(version.version),
|
package/dist/package.js
CHANGED
|
@@ -9,7 +9,7 @@ const functionNames = ["subscription_commands", "deliveries_resend"];
|
|
|
9
9
|
const readWebhooksSchema = async (db, schema) => {
|
|
10
10
|
const exists = async (table) => (await sql`select to_regclass(${`${quoteIdent(schema)}.${quoteIdent(table)}`}) is not null as found`.execute(db)).rows[0].found;
|
|
11
11
|
const { rows } = await sql`select p.proname as name, obj_description(p.oid, 'pg_proc') as comment
|
|
12
|
-
from pg_proc p join pg_namespace n on n.oid = p.pronamespace where n.nspname = ${schema} and p.proname = any(${functionNames}::text[])`.execute(db);
|
|
12
|
+
from pg_proc p join pg_namespace n on n.oid = p.pronamespace where n.nspname = ${schema} and p.proname = any(${functionNames}::text[]) order by p.proname`.execute(db);
|
|
13
13
|
return {
|
|
14
14
|
subscriptions: await exists("subscriptions"),
|
|
15
15
|
current: functionNames.every((name) => rows.some((row) => row.name === name && row.comment === webhooksComment)) && await exists("deliveries"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/server",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.3",
|
|
4
4
|
"description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@better-auth/sso": "^1.7.12",
|
|
43
43
|
"@livekit/protocol": "1.53.1",
|
|
44
44
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
45
|
-
"@protobase/layout": "0.62.
|
|
46
|
-
"@protobase/query": "0.62.
|
|
47
|
-
"@protobase/schema": "0.62.
|
|
45
|
+
"@protobase/layout": "0.62.3",
|
|
46
|
+
"@protobase/query": "0.62.3",
|
|
47
|
+
"@protobase/schema": "0.62.3",
|
|
48
48
|
"@react-email/render": "^2.1.0",
|
|
49
49
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
50
50
|
"@sentry/core": "^11.7.0",
|