dzql 0.3.3 → 0.3.5
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/bin/cli.js +2 -7
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -246,13 +246,8 @@ RETURNS JSONB
|
|
|
246
246
|
LANGUAGE sql
|
|
247
247
|
SECURITY DEFINER
|
|
248
248
|
AS $$
|
|
249
|
-
SELECT jsonb_build_object(
|
|
250
|
-
|
|
251
|
-
'email', email,
|
|
252
|
-
'name', name,
|
|
253
|
-
'created_at', created_at
|
|
254
|
-
)
|
|
255
|
-
FROM users
|
|
249
|
+
SELECT jsonb_build_object('user_id', u.id) || (to_jsonb(u.*) - 'id' - 'password_hash' - 'password' - 'secret' - 'token')
|
|
250
|
+
FROM users u
|
|
256
251
|
WHERE id = p_user_id;
|
|
257
252
|
$$;
|
|
258
253
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dzql",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "PostgreSQL-powered framework with zero boilerplate CRUD operations and real-time WebSocket synchronization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/server/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
25
|
"test": "bun test",
|
|
26
|
-
"prepublishOnly": "echo '✅ Publishing DZQL v0.3.
|
|
26
|
+
"prepublishOnly": "echo '✅ Publishing DZQL v0.3.5...'"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"jose": "^6.1.0",
|