dzql 0.3.4 → 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.
Files changed (2) hide show
  1. package/bin/cli.js +1 -1
  2. package/package.json +2 -2
package/bin/cli.js CHANGED
@@ -246,7 +246,7 @@ RETURNS JSONB
246
246
  LANGUAGE sql
247
247
  SECURITY DEFINER
248
248
  AS $$
249
- SELECT to_jsonb(u.*) - 'password_hash' - 'password' - 'secret' - 'token'
249
+ SELECT jsonb_build_object('user_id', u.id) || (to_jsonb(u.*) - 'id' - 'password_hash' - 'password' - 'secret' - 'token')
250
250
  FROM users u
251
251
  WHERE id = p_user_id;
252
252
  $$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzql",
3
- "version": "0.3.4",
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.4...'"
26
+ "prepublishOnly": "echo '✅ Publishing DZQL v0.3.5...'"
27
27
  },
28
28
  "dependencies": {
29
29
  "jose": "^6.1.0",