@atproto/dev-env 0.3.47 → 0.3.49
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +1 -3
- package/dist/bsky.js.map +1 -1
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +6 -5
- package/dist/network.js.map +1 -1
- package/package.json +6 -5
- package/src/bsky.ts +2 -3
- package/src/network.ts +6 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.49
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`b15dec2f4`](https://github.com/bluesky-social/atproto/commit/b15dec2f4feb25ac91b169c83ccff1adbb5a9442), [`642c7ae96`](https://github.com/bluesky-social/atproto/commit/642c7ae968b0dd2bfb448aa6eba0c1fd9312d909)]:
|
8
|
+
- @atproto/sync@0.1.0
|
9
|
+
- @atproto/ozone@0.1.44
|
10
|
+
- @atproto/bsky@0.0.82
|
11
|
+
- @atproto/pds@0.4.58
|
12
|
+
|
13
|
+
## 0.3.48
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [[`325859b8b`](https://github.com/bluesky-social/atproto/commit/325859b8bff8dcfdd1eb8cabd51bffedb03aad87), [`e4d41d66f`](https://github.com/bluesky-social/atproto/commit/e4d41d66fa4757a696363f39903562458967b63d)]:
|
18
|
+
- @atproto/ozone@0.1.43
|
19
|
+
- @atproto/api@0.13.6
|
20
|
+
- @atproto/bsky@0.0.81
|
21
|
+
- @atproto/pds@0.4.57
|
22
|
+
|
3
23
|
## 0.3.47
|
4
24
|
|
5
25
|
### Patch Changes
|
package/dist/bsky.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,cAAc,eAAe,CAAA;AAE7B,qBAAa,QAAQ;IAEV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI,CAAC,QAAQ;IACjB,MAAM,EAAE,IAAI,CAAC,WAAW;IACxB,SAAS,EAAE,IAAI,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI,CAAC,SAAS;IACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;gBAN1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;WAGtB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgFvD,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAEzB;IAED,SAAS,IAAI,QAAQ;IAMrB,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
|
package/dist/bsky.js
CHANGED
@@ -35,7 +35,6 @@ const ui8 = __importStar(require("uint8arrays"));
|
|
35
35
|
const bsky = __importStar(require("@atproto/bsky"));
|
36
36
|
const api_1 = require("@atproto/api");
|
37
37
|
const crypto_1 = require("@atproto/crypto");
|
38
|
-
const bsky_1 = require("@atproto/bsky");
|
39
38
|
const lib_1 = require("@did-plc/lib");
|
40
39
|
const const_1 = require("./const");
|
41
40
|
__exportStar(require("@atproto/bsky"), exports);
|
@@ -144,10 +143,9 @@ class TestBsky {
|
|
144
143
|
service: cfg.repoProvider,
|
145
144
|
db,
|
146
145
|
idResolver: dataplane.idResolver,
|
147
|
-
background: new bsky_1.BackgroundQueue(db),
|
148
146
|
});
|
149
147
|
await server.start();
|
150
|
-
sub.
|
148
|
+
sub.start();
|
151
149
|
return new TestBsky(url, port, db, server, dataplane, bsync, sub);
|
152
150
|
}
|
153
151
|
get ctx() {
|
package/dist/bsky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAAuC;AACvC,4CAAkD;AAClD,
|
1
|
+
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAAuC;AACvC,4CAAkD;AAClD,sCAAkD;AAElD,mCAAyD;AAEzD,gDAA6B;AAE7B,MAAa,QAAQ;IACnB,YACS,GAAW,EACX,IAAY,EACZ,EAAiB,EACjB,MAAwB,EACxB,SAA+B,EAC/B,KAAqB,EACrB,GAA0B;QANjC;;;;mBAAO,GAAG;WAAQ;QAClB;;;;mBAAO,IAAI;WAAQ;QACnB;;;;mBAAO,EAAE;WAAe;QACxB;;;;mBAAO,MAAM;WAAkB;QAC/B;;;;mBAAO,SAAS;WAAsB;QACtC;;;;mBAAO,KAAK;WAAgB;QAC5B;;;;mBAAO,GAAG;WAAuB;IAChC,CAAC;IAEJ,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAe;QACjC,MAAM,cAAc,GAAG,MAAM,yBAAgB,CAAC,MAAM,EAAE,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;WAKzB,MAAM,CACjB,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,GACrC,OAAO,CAAC,WAAW,CAAC;IAwGjB,uBAAuB,CAAC,OAAO,SAAO;IAkBtC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM;IAM3B,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;;;IAWrD,YAAY,CAAC,EACjB,QAAyB,EACzB,QAAyB,GAC1B,EAAE;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;;IAWK,KAAK;CAQZ"}
|
package/dist/network.js
CHANGED
@@ -149,7 +149,7 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
149
149
|
await ozone.addAdminDid(ozoneDid);
|
150
150
|
(0, util_1.mockNetworkUtilities)(pds, bsky);
|
151
151
|
await pds.processAll();
|
152
|
-
await bsky.sub.
|
152
|
+
await bsky.sub.processAll();
|
153
153
|
await thirdPartyPds.close();
|
154
154
|
let introspect = undefined;
|
155
155
|
if (params.introspect?.port) {
|
@@ -164,9 +164,11 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
164
164
|
if (!lastSeq)
|
165
165
|
return;
|
166
166
|
while (Date.now() - start < timeout) {
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
await sub.processAll();
|
168
|
+
const runnerCursor = await sub.runner.getCursor();
|
169
|
+
// if subscription claims to be done, ensure we are at the most recent cursor from PDS, else wait to process again
|
170
|
+
// (the subscription may claim to be finished before the PDS has even emitted it's event)
|
171
|
+
if (runnerCursor && runnerCursor >= lastSeq) {
|
170
172
|
return;
|
171
173
|
}
|
172
174
|
await (0, common_web_1.wait)(5);
|
@@ -177,7 +179,6 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
177
179
|
await this.pds.processAll();
|
178
180
|
await this.ozone.processAll();
|
179
181
|
await this.processFullSubscription(timeout);
|
180
|
-
await this.bsky.sub.background.processAll();
|
181
182
|
}
|
182
183
|
async serviceHeaders(did, lxm, aud) {
|
183
184
|
const keypair = await this.pds.ctx.actorStore.keypair(did);
|
package/dist/network.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,yDAA0C;AAC1C,wDAA8B;AAC9B,oDAA0C;AAC1C,sDAAuD;AAEvD,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,mCAAmC;AACnC,mEAA6D;AAC7D,iCAA6C;AAC7C,6DAA2D;AAC3D,mCAAyC;AACzC,6CAA+C;AAE/C,MAAM,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAa,WAAY,SAAQ,yCAAoB;IACnD,YACS,GAAY,EACZ,GAAY,EACZ,IAAc,EACd,KAAgB,EAChB,UAA6B;QAEpC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QANf;;;;mBAAO,GAAG;WAAS;QACnB;;;;mBAAO,GAAG;WAAS;QACnB;;;;mBAAO,IAAI;WAAU;QACrB;;;;mBAAO,KAAK;WAAW;QACvB;;;;mBAAO,UAAU;WAAmB;IAGtC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CACjB,SAAoC,EAAE;QAEtC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAA;QACxC,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAA;QACzE,IAAA,gBAAM,EAAC,aAAa,EAAE,gCAAgC,CAAC,CAAA;QACvD,IAAA,gBAAM,EAAC,SAAS,EAAE,8BAA8B,CAAC,CAAA;QACjD,MAAM,gBAAgB,GACpB,MAAM,CAAC,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B,WAAW,CAAC,UAAU,CAAC,GAAG,QAAQ,IAAI,QAAQ,EAAE,EAAE,MAAM,CAAC,EACzD,WAAW,CACZ;SACJ,CAAA;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACxD,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QACxB,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA;QACvB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AAjLD,kCAiLC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.49",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,15 +24,16 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.13.
|
28
|
-
"@atproto/bsky": "^0.0.
|
27
|
+
"@atproto/api": "^0.13.6",
|
28
|
+
"@atproto/bsky": "^0.0.82",
|
29
29
|
"@atproto/bsync": "^0.0.5",
|
30
30
|
"@atproto/common-web": "^0.3.0",
|
31
31
|
"@atproto/crypto": "^0.4.1",
|
32
32
|
"@atproto/identity": "^0.4.1",
|
33
33
|
"@atproto/lexicon": "^0.4.1",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.44",
|
35
|
+
"@atproto/pds": "^0.4.58",
|
36
|
+
"@atproto/sync": "^0.1.0",
|
36
37
|
"@atproto/syntax": "^0.3.0",
|
37
38
|
"@atproto/xrpc-server": "^0.6.3"
|
38
39
|
},
|
package/src/bsky.ts
CHANGED
@@ -3,7 +3,6 @@ import * as ui8 from 'uint8arrays'
|
|
3
3
|
import * as bsky from '@atproto/bsky'
|
4
4
|
import { AtpAgent } from '@atproto/api'
|
5
5
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
6
|
-
import { BackgroundQueue } from '@atproto/bsky'
|
7
6
|
import { Client as PlcClient } from '@did-plc/lib'
|
8
7
|
import { BskyConfig } from './types'
|
9
8
|
import { ADMIN_PASSWORD, EXAMPLE_LABELER } from './const'
|
@@ -92,11 +91,11 @@ export class TestBsky {
|
|
92
91
|
service: cfg.repoProvider,
|
93
92
|
db,
|
94
93
|
idResolver: dataplane.idResolver,
|
95
|
-
background: new BackgroundQueue(db),
|
96
94
|
})
|
97
95
|
|
98
96
|
await server.start()
|
99
|
-
|
97
|
+
|
98
|
+
sub.start()
|
100
99
|
|
101
100
|
return new TestBsky(url, port, db, server, dataplane, bsync, sub)
|
102
101
|
}
|
package/src/network.ts
CHANGED
@@ -117,7 +117,7 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
117
117
|
|
118
118
|
mockNetworkUtilities(pds, bsky)
|
119
119
|
await pds.processAll()
|
120
|
-
await bsky.sub.
|
120
|
+
await bsky.sub.processAll()
|
121
121
|
await thirdPartyPds.close()
|
122
122
|
|
123
123
|
let introspect: IntrospectServer | undefined = undefined
|
@@ -140,9 +140,11 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
140
140
|
const lastSeq = await this.pds.ctx.sequencer.curr()
|
141
141
|
if (!lastSeq) return
|
142
142
|
while (Date.now() - start < timeout) {
|
143
|
-
|
144
|
-
|
145
|
-
|
143
|
+
await sub.processAll()
|
144
|
+
const runnerCursor = await sub.runner.getCursor()
|
145
|
+
// if subscription claims to be done, ensure we are at the most recent cursor from PDS, else wait to process again
|
146
|
+
// (the subscription may claim to be finished before the PDS has even emitted it's event)
|
147
|
+
if (runnerCursor && runnerCursor >= lastSeq) {
|
146
148
|
return
|
147
149
|
}
|
148
150
|
await wait(5)
|
@@ -154,7 +156,6 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
154
156
|
await this.pds.processAll()
|
155
157
|
await this.ozone.processAll()
|
156
158
|
await this.processFullSubscription(timeout)
|
157
|
-
await this.bsky.sub.background.processAll()
|
158
159
|
}
|
159
160
|
|
160
161
|
async serviceHeaders(did: string, lxm: string, aud?: string) {
|