@atproto/dev-env 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 +9 -0
- package/dist/seed/users.d.ts.map +1 -1
- package/dist/seed/users.js +13 -0
- package/dist/seed/users.js.map +1 -1
- package/package.json +4 -4
- package/src/seed/users.ts +17 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.12
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`f36585013`](https://github.com/bluesky-social/atproto/commit/f365850139ffb2b5e63facfd95eedf0b87d01ee7)]:
|
8
|
+
- @atproto/pds@0.4.21
|
9
|
+
- @atproto/bsky@0.0.51
|
10
|
+
- @atproto/ozone@0.1.13
|
11
|
+
|
3
12
|
## 0.3.11
|
4
13
|
|
5
14
|
### Patch Changes
|
package/dist/seed/users.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/seed/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;6BAEX,UAAU;AAApC,
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/seed/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;6BAEX,UAAU;AAApC,wBAqCC"}
|
package/dist/seed/users.js
CHANGED
@@ -7,6 +7,19 @@ exports.default = async (sc) => {
|
|
7
7
|
await sc.createAccount('dan', users.dan);
|
8
8
|
await sc.createProfile(sc.dids.alice, users.alice.displayName, users.alice.description, users.alice.selfLabels);
|
9
9
|
await sc.createProfile(sc.dids.bob, users.bob.displayName, users.bob.description, users.bob.selfLabels);
|
10
|
+
await sc.agent.api.com.atproto.repo.putRecord({
|
11
|
+
repo: sc.dids.dan,
|
12
|
+
collection: 'chat.bsky.actor.declaration',
|
13
|
+
rkey: 'self',
|
14
|
+
validate: false,
|
15
|
+
record: {
|
16
|
+
$type: 'chat.bsky.actor.declaration',
|
17
|
+
allowIncoming: 'none',
|
18
|
+
},
|
19
|
+
}, {
|
20
|
+
encoding: 'application/json',
|
21
|
+
headers: sc.getHeaders(sc.dids.dan),
|
22
|
+
});
|
10
23
|
return sc;
|
11
24
|
};
|
12
25
|
const users = {
|
package/dist/seed/users.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/seed/users.ts"],"names":[],"mappings":";;AAEA,kBAAe,KAAK,EAAE,EAAc,EAAE,EAAE;IACtC,MAAM,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IAC5C,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;IACxC,MAAM,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IAC5C,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;IAExC,MAAM,EAAE,CAAC,aAAa,CACpB,EAAE,CAAC,IAAI,CAAC,KAAK,EACb,KAAK,CAAC,KAAK,CAAC,WAAW,EACvB,KAAK,CAAC,KAAK,CAAC,WAAW,EACvB,KAAK,CAAC,KAAK,CAAC,UAAU,CACvB,CAAA;IACD,MAAM,EAAE,CAAC,aAAa,CACpB,EAAE,CAAC,IAAI,CAAC,GAAG,EACX,KAAK,CAAC,GAAG,CAAC,WAAW,EACrB,KAAK,CAAC,GAAG,CAAC,WAAW,EACrB,KAAK,CAAC,GAAG,CAAC,UAAU,CACrB,CAAA;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE;QACL,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,YA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;QACH,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,SAAS;KACtB;CACF,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.12",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -25,14 +25,14 @@
|
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
27
|
"@atproto/api": "^0.12.9",
|
28
|
-
"@atproto/bsky": "^0.0.51",
|
29
28
|
"@atproto/bsync": "^0.0.3",
|
30
|
-
"@atproto/
|
29
|
+
"@atproto/bsky": "^0.0.51",
|
31
30
|
"@atproto/crypto": "^0.4.0",
|
31
|
+
"@atproto/common-web": "^0.3.0",
|
32
32
|
"@atproto/identity": "^0.4.0",
|
33
33
|
"@atproto/lexicon": "^0.4.0",
|
34
34
|
"@atproto/ozone": "^0.1.13",
|
35
|
-
"@atproto/pds": "^0.4.
|
35
|
+
"@atproto/pds": "^0.4.21",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
37
|
"@atproto/xrpc-server": "^0.5.1"
|
38
38
|
},
|
package/src/seed/users.ts
CHANGED
@@ -19,6 +19,23 @@ export default async (sc: SeedClient) => {
|
|
19
19
|
users.bob.selfLabels,
|
20
20
|
)
|
21
21
|
|
22
|
+
await sc.agent.api.com.atproto.repo.putRecord(
|
23
|
+
{
|
24
|
+
repo: sc.dids.dan,
|
25
|
+
collection: 'chat.bsky.actor.declaration',
|
26
|
+
rkey: 'self',
|
27
|
+
validate: false,
|
28
|
+
record: {
|
29
|
+
$type: 'chat.bsky.actor.declaration',
|
30
|
+
allowIncoming: 'none',
|
31
|
+
},
|
32
|
+
},
|
33
|
+
{
|
34
|
+
encoding: 'application/json',
|
35
|
+
headers: sc.getHeaders(sc.dids.dan),
|
36
|
+
},
|
37
|
+
)
|
38
|
+
|
22
39
|
return sc
|
23
40
|
}
|
24
41
|
|