@prsm/devtools 1.0.0 → 1.0.1

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/package.json +3 -3
  2. package/src/index.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prsm/devtools",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Read-only Express middleware dashboard for observing @prsm infrastructure at runtime",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,9 +31,9 @@
31
31
  "express": "^4.21.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@prsm/cron": "^1.0.0",
34
+ "@prsm/cron": "^1.0.2",
35
35
  "@prsm/limit": "^1.1.0",
36
- "@prsm/queue": "^2.0.0",
36
+ "@prsm/queue": "^3.0.7",
37
37
  "cors": "^2.8.6",
38
38
  "dotenv": "^16.4.7"
39
39
  },
package/src/index.js CHANGED
@@ -197,7 +197,7 @@ export function prsmDevtools(options = {}) {
197
197
 
198
198
  const channels = {}
199
199
  for (const [channel, subscribers] of Object.entries(realtime.channelManager.channelSubscriptions)) {
200
- if (channel.startsWith('mesh:presence:updates:')) continue
200
+ if (channel.startsWith('rt:presence:updates:')) continue
201
201
  channels[channel] = [...subscribers].map((c) => c.id)
202
202
  }
203
203
 
@@ -222,7 +222,7 @@ export function prsmDevtools(options = {}) {
222
222
  collections: realtime.collectionManager.exposedCollections.map((e) => patternToString(e.pattern)),
223
223
  presence: realtime.presenceManager.trackedRooms.map(patternToString),
224
224
  commands: realtime.commandManager.commands
225
- ? Object.keys(realtime.commandManager.commands).filter((c) => !c.startsWith('mesh/'))
225
+ ? Object.keys(realtime.commandManager.commands).filter((c) => !c.startsWith('rt/'))
226
226
  : [],
227
227
  }
228
228
 
@@ -246,7 +246,7 @@ export function prsmDevtools(options = {}) {
246
246
 
247
247
  const channels = []
248
248
  for (const [channel, subscribers] of Object.entries(realtime.channelManager.channelSubscriptions)) {
249
- if (channel.startsWith('mesh:presence:updates:')) continue
249
+ if (channel.startsWith('rt:presence:updates:')) continue
250
250
  for (const conn of subscribers) {
251
251
  if (conn.id === id) { channels.push(channel); break }
252
252
  }
@@ -310,7 +310,7 @@ export function prsmDevtools(options = {}) {
310
310
  const connId = req.query.connId
311
311
  if (!connId) return res.status(400).json({ error: 'connId query param required' })
312
312
 
313
- const raw = await realtime.redisManager.redis.get(`mesh:collection:${collId}:${connId}`)
313
+ const raw = await realtime.redisManager.redis.get(`rt:collection:${collId}:${connId}`)
314
314
  if (!raw) return res.json({ recordIds: [], records: [] })
315
315
 
316
316
  const recordIds = JSON.parse(raw)