@evanp/activitypub-bot 0.16.3 → 0.16.4

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/lib/app.js +3 -2
  2. package/package.json +1 -1
package/lib/app.js CHANGED
@@ -82,10 +82,11 @@ export async function makeApp (databaseUrl, origin, bots, logLevel = 'silent') {
82
82
 
83
83
  // TODO: Make an endpoint for tagged objects
84
84
  const transformer = new Transformer(origin + '/tag/', client)
85
+
85
86
  await Promise.all(
86
- Object.values(bots).map(bot => bot.initialize(
87
+ Object.entries(bots).map(([key, bot]) => bot.initialize(
87
88
  new BotContext(
88
- bot.username,
89
+ key,
89
90
  botDataStorage,
90
91
  objectStorage,
91
92
  actorStorage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",