@bbki.ng/backend 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # backend
2
2
 
3
+ ## 0.3.1
4
+
3
5
  ## 0.3.0
4
6
 
5
7
  ## 0.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/backend",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@simplewebauthn/server": "13.2.2",
@@ -4,11 +4,11 @@ import { HTTPException } from "hono/http-exception";
4
4
  interface AddStreamingRequest {
5
5
  author?: string;
6
6
  content: string;
7
- type?: 'note' | 'article' | 'link' | 'image';
7
+ type?: 'note' | 'article' | 'link' | 'image' | 'ci';
8
8
  }
9
9
 
10
10
  const MAX_CONTENT_LENGTH = 50000;
11
- const ALLOWED_TYPES = ['note', 'article', 'link', 'image'] as const;
11
+ const ALLOWED_TYPES = ['note', 'article', 'link', 'image', 'ci'] as const;
12
12
 
13
13
  const timingSafeEqual = (a: string, b: string): boolean => {
14
14
  if (a.length !== b.length) return false;