@zksecurity/slack-events 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -430,7 +430,7 @@ export function createNameResolver(fetchPage, fetchOne) {
430
430
  const context = { users: {}, channels: {}, files: [] };
431
431
  if (channel && typeof channelId === "string")
432
432
  context.channels[channelId] = channel.name;
433
- const ids = new Set([event.user, message.user, event.item_user, channel?.user,
433
+ const ids = new Set([event.user, event.user_id, message.user, event.item_user, channel?.user,
434
434
  ...Array.from(String(message.text ?? "").matchAll(/<@([A-Z0-9]+)(?:\|[^>]*)?>/g), match => match[1])]);
435
435
  for (const id of ids) {
436
436
  if (typeof id !== "string")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zksecurity/slack-events",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pair a terminal with a pi-mom Slack event feed",
5
5
  "type": "module",
6
6
  "bin": { "slack-events": "bin/slack-events.mjs" },