@evanp/activitypub-bot 0.30.5 → 0.30.6

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 +8 -3
  2. package/package.json +1 -1
package/lib/app.js CHANGED
@@ -188,15 +188,20 @@ export async function makeApp ({ databaseUrl, origin, bots, logLevel = 'silent',
188
188
  }
189
189
  }))
190
190
 
191
- app.use(signature.authenticate.bind(signature))
191
+ // These should not check HTTP Signature even if provided
192
192
 
193
193
  app.use('/', serverRouter)
194
+ app.use('/', healthRouter)
195
+ app.use('/', webfingerRouter)
196
+
197
+ // These should check HTTP Signature if provided
198
+
199
+ app.use(signature.authenticate.bind(signature))
200
+
194
201
  app.use('/', userRouter)
195
202
  app.use('/', collectionRouter)
196
203
  app.use('/', inboxRouter)
197
204
  app.use('/', objectRouter)
198
- app.use('/', healthRouter)
199
- app.use('/', webfingerRouter)
200
205
  app.use('/', sharedInboxRouter)
201
206
 
202
207
  app.use(async (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.30.5",
3
+ "version": "0.30.6",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",