@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -234876,6 +234876,10 @@ function putRecord_default(server, ctx) {
|
|
234876
234876
|
function uploadBlob_default(server, ctx) {
|
234877
234877
|
server.com.atproto.repo.uploadBlob({
|
234878
234878
|
auth: ctx.authVerifier.accessCheckTakedown,
|
234879
|
+
rateLimit: {
|
234880
|
+
durationMs: DAY,
|
234881
|
+
points: 1e3
|
234882
|
+
},
|
234879
234883
|
handler: async ({ auth, input }) => {
|
234880
234884
|
const requester = auth.credentials.did;
|
234881
234885
|
const blob2 = await ctx.actorStore.transact(requester, (actorTxn) => {
|
@@ -247246,12 +247250,7 @@ var _AtpAgent = class {
|
|
247246
247250
|
}
|
247247
247251
|
async createAccount(opts) {
|
247248
247252
|
try {
|
247249
|
-
const res = await this.api.com.atproto.server.createAccount(
|
247250
|
-
handle: opts.handle,
|
247251
|
-
password: opts.password,
|
247252
|
-
email: opts.email,
|
247253
|
-
inviteCode: opts.inviteCode
|
247254
|
-
});
|
247253
|
+
const res = await this.api.com.atproto.server.createAccount(opts);
|
247255
247254
|
this.session = {
|
247256
247255
|
accessJwt: res.data.accessJwt,
|
247257
247256
|
refreshJwt: res.data.refreshJwt,
|