@meith/subscriptions 0.31.0 → 0.32.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/tokens.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/subscriptions",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@meith/core": "0.31.0",
23
- "@meith/i18n": "0.31.0"
22
+ "@meith/core": "0.32.0",
23
+ "@meith/i18n": "0.32.0"
24
24
  }
25
25
  }
package/src/tokens.ts CHANGED
@@ -4,10 +4,14 @@ import { timingSafeEqualString } from '@meith/core'
4
4
 
5
5
  import type { SubscriptionTarget } from './modes'
6
6
 
7
- export type UnsubscribeScope = SubscriptionTarget | 'email' | 'mass-mail'
7
+ export type UnsubscribeScope = SubscriptionTarget | 'email' | 'mass-mail' | 'board-digest'
8
8
 
9
9
  export function parseUnsubscribeScope(value: string): UnsubscribeScope | null {
10
- return value === 'thread' || value === 'forum' || value === 'email' || value === 'mass-mail'
10
+ return value === 'thread' ||
11
+ value === 'forum' ||
12
+ value === 'email' ||
13
+ value === 'mass-mail' ||
14
+ value === 'board-digest'
11
15
  ? value
12
16
  : null
13
17
  }