@atproto/pds 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +5 -6
- package/dist/index.js.map +2 -2
- package/package.json +9 -9
- package/src/api/com/atproto/repo/uploadBlob.ts +5 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.12",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -44,15 +44,15 @@
|
|
44
44
|
"typed-emitter": "^2.1.0",
|
45
45
|
"uint8arrays": "3.0.0",
|
46
46
|
"zod": "^3.21.4",
|
47
|
-
"@atproto/api": "^0.9.0",
|
48
47
|
"@atproto/common": "^0.3.3",
|
49
|
-
"@atproto/identity": "^0.3.2",
|
50
|
-
"@atproto/lexicon": "^0.3.1",
|
51
|
-
"@atproto/syntax": "^0.1.5",
|
52
48
|
"@atproto/repo": "^0.3.6",
|
49
|
+
"@atproto/identity": "^0.3.2",
|
53
50
|
"@atproto/xrpc-server": "^0.4.2",
|
51
|
+
"@atproto/lexicon": "^0.3.1",
|
54
52
|
"@atproto/xrpc": "^0.4.1",
|
53
|
+
"@atproto/api": "^0.9.1",
|
55
54
|
"@atproto/crypto": "^0.3.0",
|
55
|
+
"@atproto/syntax": "^0.1.5",
|
56
56
|
"@atproto/aws": "^0.1.6"
|
57
57
|
},
|
58
58
|
"devDependencies": {
|
@@ -68,10 +68,10 @@
|
|
68
68
|
"axios": "^0.27.2",
|
69
69
|
"get-port": "^6.1.2",
|
70
70
|
"ws": "^8.12.0",
|
71
|
-
"@atproto/api": "^0.9.
|
72
|
-
"@atproto/
|
73
|
-
"@atproto/bsky": "^0.0.
|
74
|
-
"@atproto/
|
71
|
+
"@atproto/api": "^0.9.1",
|
72
|
+
"@atproto/dev-env": "^0.2.24",
|
73
|
+
"@atproto/bsky": "^0.0.24",
|
74
|
+
"@atproto/lex-cli": "^0.3.0"
|
75
75
|
},
|
76
76
|
"scripts": {
|
77
77
|
"codegen": "lex gen-server ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import { Server } from '../../../../lexicon'
|
2
2
|
import AppContext from '../../../../context'
|
3
|
+
import { DAY } from '@atproto/common'
|
3
4
|
|
4
5
|
export default function (server: Server, ctx: AppContext) {
|
5
6
|
server.com.atproto.repo.uploadBlob({
|
6
7
|
auth: ctx.authVerifier.accessCheckTakedown,
|
8
|
+
rateLimit: {
|
9
|
+
durationMs: DAY,
|
10
|
+
points: 1000,
|
11
|
+
},
|
7
12
|
handler: async ({ auth, input }) => {
|
8
13
|
const requester = auth.credentials.did
|
9
14
|
|