@evanp/activitypub-bot 0.11.0 → 0.12.0

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.
package/Dockerfile CHANGED
@@ -6,13 +6,12 @@ RUN apk add --no-cache libstdc++ sqlite sqlite-libs
6
6
 
7
7
  ARG PACKAGE_VERSION
8
8
 
9
- ENV DATABASE_URL \
10
- ORIGIN \
11
- PORT \
12
- BOTS_CONFIG_FILE \
13
- LOG_LEVEL
9
+ ENV DATABASE_URL=
10
+ ENV ORIGIN=
11
+ ENV PORT=
12
+ ENV BOTS_CONFIG_FILE=
13
+ ENV LOG_LEVEL=
14
14
 
15
- RUN npm init -y \
16
- && npm install --omit=dev @evanp/activitypub-bot@${PACKAGE_VERSION:-latest}
15
+ RUN npm install -g @evanp/activitypub-bot@${PACKAGE_VERSION:-latest}
17
16
 
18
- CMD ["npx", "activitypub-bot"]
17
+ CMD ["activitypub-bot"]
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { makeApp } from './app.js'
2
+ export { default as Bot } from './bot.js'
3
+ export { default as BotFactory } from './botfactory.js'
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
- "main": "activitypub-bot.js",
6
+ "main": "lib/index.js",
7
7
  "bin": {
8
- "activitypub-bot": "./activitypub-bot.js"
8
+ "activitypub-bot": "./bin/activitypub-bot.js"
9
9
  },
10
10
  "scripts": {
11
11
  "test": "NODE_ENV=test node --test",
@@ -0,0 +1,10 @@
1
+ import assert from 'node:assert'
2
+ import { describe, it } from 'node:test'
3
+ describe('package exports', () => {
4
+ it('exposes Bot, BotFactory, and makeApp', async () => {
5
+ const { Bot, BotFactory, makeApp } = await import('../lib/index.js')
6
+ assert.equal(typeof Bot, 'function')
7
+ assert.equal(typeof BotFactory, 'function')
8
+ assert.equal(typeof makeApp, 'function')
9
+ })
10
+ })
File without changes