@atproto/dev-env 0.3.12 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/bin.js +4 -0
- package/dist/bin.js.map +1 -1
- package/dist/seed/users.d.ts.map +1 -1
- package/dist/seed/users.js +1 -13
- package/dist/seed/users.js.map +1 -1
- package/package.json +6 -6
- package/src/bin.ts +4 -0
- package/src/seed/users.ts +4 -15
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.14
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`06d2328ee`](https://github.com/bluesky-social/atproto/commit/06d2328eeb8d706018dbdf7cc7b9862dd65b96cb)]:
|
8
|
+
- @atproto/api@0.12.11
|
9
|
+
- @atproto/bsky@0.0.53
|
10
|
+
- @atproto/ozone@0.1.15
|
11
|
+
- @atproto/pds@0.4.23
|
12
|
+
|
13
|
+
## 0.3.13
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [[`d32f7215f`](https://github.com/bluesky-social/atproto/commit/d32f7215f69bc87f50890d9cfdb09840c2fbaa41)]:
|
18
|
+
- @atproto/api@0.12.10
|
19
|
+
- @atproto/pds@0.4.22
|
20
|
+
- @atproto/bsky@0.0.52
|
21
|
+
- @atproto/ozone@0.1.14
|
22
|
+
|
3
23
|
## 0.3.12
|
4
24
|
|
5
25
|
### Patch Changes
|
package/dist/bin.js
CHANGED
@@ -26,6 +26,10 @@ const run = async () => {
|
|
26
26
|
publicUrl: 'http://localhost:2584',
|
27
27
|
},
|
28
28
|
plc: { port: 2582 },
|
29
|
+
ozone: {
|
30
|
+
chatUrl: 'http://localhost:2590', // must run separate chat service
|
31
|
+
chatDid: 'did:example:chat',
|
32
|
+
},
|
29
33
|
introspect: { port: 2581 },
|
30
34
|
});
|
31
35
|
(0, util_1.mockMailer)(network.pds);
|
package/dist/bin.js.map
CHANG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AG,CACT,sDAAsD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CACzE,CAAA;IACD,OAAO,CAAC,GAAG,CACT,oDAAoD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CACvE,CAAA;IACD,OAAO,CAAC,GAAG,CAAC,4CAA4C,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;IAC7E,OAAO,CAAC,GAAG,CAAC,wBAAwB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IACxE,OAAO,CAAC,GAAG,CAAC,4CAA4C,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAC5E,KAAK,MAAM,EAAE,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;IACtE,CAAC;AACH,CAAC,CAAA;AAED,GAAG,EAAE,CAAA"}
|
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,wBA0BC"}
|
package/dist/seed/users.js
CHANGED
@@ -7,19 +7,7 @@ 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.
|
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
|
+
await sc.agent.api.chat.bsky.actor.declaration.create({ repo: sc.dids.dan }, { allowIncoming: 'none' }, sc.getHeaders(sc.dids.dan));
|
23
11
|
return sc;
|
24
12
|
};
|
25
13
|
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,CACr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BAAgB;QACvB,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;KAC7C;IACD,GAAG,EAAE;QACH,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,oBAAoB;QACjC,UAAU,EAAE,SAAS;KACtB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,SAAS;KACtB;IACD,GAAG,EAAE;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.14",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.12.
|
27
|
+
"@atproto/api": "^0.12.11",
|
28
|
+
"@atproto/bsky": "^0.0.53",
|
28
29
|
"@atproto/bsync": "^0.0.3",
|
29
|
-
"@atproto/bsky": "^0.0.51",
|
30
|
-
"@atproto/crypto": "^0.4.0",
|
31
30
|
"@atproto/common-web": "^0.3.0",
|
31
|
+
"@atproto/crypto": "^0.4.0",
|
32
32
|
"@atproto/identity": "^0.4.0",
|
33
33
|
"@atproto/lexicon": "^0.4.0",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.15",
|
35
|
+
"@atproto/pds": "^0.4.23",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
37
|
"@atproto/xrpc-server": "^0.5.1"
|
38
38
|
},
|
package/src/bin.ts
CHANGED
@@ -26,6 +26,10 @@ const run = async () => {
|
|
26
26
|
publicUrl: 'http://localhost:2584',
|
27
27
|
},
|
28
28
|
plc: { port: 2582 },
|
29
|
+
ozone: {
|
30
|
+
chatUrl: 'http://localhost:2590', // must run separate chat service
|
31
|
+
chatDid: 'did:example:chat',
|
32
|
+
},
|
29
33
|
introspect: { port: 2581 },
|
30
34
|
})
|
31
35
|
mockMailer(network.pds)
|
package/src/seed/users.ts
CHANGED
@@ -19,21 +19,10 @@ export default async (sc: SeedClient) => {
|
|
19
19
|
users.bob.selfLabels,
|
20
20
|
)
|
21
21
|
|
22
|
-
await sc.agent.api.
|
23
|
-
{
|
24
|
-
|
25
|
-
|
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
|
-
},
|
22
|
+
await sc.agent.api.chat.bsky.actor.declaration.create(
|
23
|
+
{ repo: sc.dids.dan },
|
24
|
+
{ allowIncoming: 'none' },
|
25
|
+
sc.getHeaders(sc.dids.dan),
|
37
26
|
)
|
38
27
|
|
39
28
|
return sc
|