@evanp/activitypub-bot 0.16.2 → 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.
@@ -1,4 +1,3 @@
1
- import AS2 from 'activitystrea.ms'
2
1
  import as2 from './activitystreams.js'
3
2
  import assert from 'node:assert'
4
3
 
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.2",
3
+ "version": "0.16.4",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",