@atproto/dev-env 0.4.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/bin.js +1 -4
- package/dist/bin.d.ts +1 -1
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +8 -10
- package/dist/bin.js.map +1 -1
- package/dist/bsky.d.ts +1 -1
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +30 -113
- package/dist/bsky.js.map +1 -1
- package/dist/bsync.d.ts +1 -1
- package/dist/bsync.d.ts.map +1 -1
- package/dist/bsync.js +7 -62
- package/dist/bsync.js.map +1 -1
- package/dist/const.js +3 -6
- package/dist/const.js.map +1 -1
- package/dist/env.js +3 -8
- package/dist/env.js.map +1 -1
- package/dist/feed-gen.js +18 -78
- package/dist/feed-gen.js.map +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -55
- package/dist/index.js.map +1 -1
- package/dist/introspect.d.ts +4 -4
- package/dist/introspect.d.ts.map +1 -1
- package/dist/introspect.js +8 -25
- package/dist/introspect.js.map +1 -1
- package/dist/mock/data.js +2 -5
- package/dist/mock/data.js.map +1 -1
- package/dist/mock/img/blur-hash-avatar-b64.js +1 -3
- package/dist/mock/img/blur-hash-avatar-b64.js.map +1 -1
- package/dist/mock/img/labeled-img-b64.js +1 -3
- package/dist/mock/img/labeled-img-b64.js.map +1 -1
- package/dist/mock/index.d.ts +1 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +29 -36
- package/dist/mock/index.js.map +1 -1
- package/dist/moderator-client.d.ts +4 -3
- package/dist/moderator-client.d.ts.map +1 -1
- package/dist/moderator-client.js +2 -17
- package/dist/moderator-client.js.map +1 -1
- package/dist/network-no-appview.d.ts +5 -5
- package/dist/network-no-appview.d.ts.map +1 -1
- package/dist/network-no-appview.js +14 -33
- package/dist/network-no-appview.js.map +1 -1
- package/dist/network.d.ts +7 -7
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +39 -104
- package/dist/network.js.map +1 -1
- package/dist/ozone.d.ts +2 -2
- package/dist/ozone.d.ts.map +1 -1
- package/dist/ozone.js +30 -106
- package/dist/ozone.js.map +1 -1
- package/dist/pds.d.ts +1 -1
- package/dist/pds.d.ts.map +1 -1
- package/dist/pds.js +29 -84
- package/dist/pds.js.map +1 -1
- package/dist/plc.d.ts +1 -1
- package/dist/plc.d.ts.map +1 -1
- package/dist/plc.js +9 -64
- package/dist/plc.js.map +1 -1
- package/dist/seed/author-feed.d.ts +2 -2
- package/dist/seed/author-feed.d.ts.map +1 -1
- package/dist/seed/author-feed.js +3 -8
- package/dist/seed/author-feed.js.map +1 -1
- package/dist/seed/basic.d.ts +3 -3
- package/dist/seed/basic.d.ts.map +1 -1
- package/dist/seed/basic.js +20 -26
- package/dist/seed/basic.js.map +1 -1
- package/dist/seed/client.d.ts +1 -1
- package/dist/seed/client.d.ts.map +1 -1
- package/dist/seed/client.js +29 -157
- package/dist/seed/client.js.map +1 -1
- package/dist/seed/follows.d.ts +1 -1
- package/dist/seed/follows.d.ts.map +1 -1
- package/dist/seed/follows.js +1 -3
- package/dist/seed/follows.js.map +1 -1
- package/dist/seed/index.d.ts +10 -10
- package/dist/seed/index.d.ts.map +1 -1
- package/dist/seed/index.js +10 -39
- package/dist/seed/index.js.map +1 -1
- package/dist/seed/likes.d.ts +2 -2
- package/dist/seed/likes.d.ts.map +1 -1
- package/dist/seed/likes.js +3 -8
- package/dist/seed/likes.js.map +1 -1
- package/dist/seed/quotes.d.ts +2 -2
- package/dist/seed/quotes.d.ts.map +1 -1
- package/dist/seed/quotes.js +3 -8
- package/dist/seed/quotes.js.map +1 -1
- package/dist/seed/reposts.d.ts +2 -2
- package/dist/seed/reposts.d.ts.map +1 -1
- package/dist/seed/reposts.js +3 -8
- package/dist/seed/reposts.js.map +1 -1
- package/dist/seed/thread-v2.d.ts +30 -30
- package/dist/seed/thread-v2.d.ts.map +1 -1
- package/dist/seed/thread-v2.js +35 -48
- package/dist/seed/thread-v2.js.map +1 -1
- package/dist/seed/users-bulk.d.ts +2 -2
- package/dist/seed/users-bulk.d.ts.map +1 -1
- package/dist/seed/users-bulk.js +3 -5
- package/dist/seed/users-bulk.js.map +1 -1
- package/dist/seed/users.d.ts +2 -2
- package/dist/seed/users.d.ts.map +1 -1
- package/dist/seed/users.js +1 -3
- package/dist/seed/users.js.map +1 -1
- package/dist/seed/verifications.d.ts +2 -2
- package/dist/seed/verifications.d.ts.map +1 -1
- package/dist/seed/verifications.js +3 -5
- package/dist/seed/verifications.js.map +1 -1
- package/dist/service-profile-lexicon.d.ts +2 -2
- package/dist/service-profile-lexicon.d.ts.map +1 -1
- package/dist/service-profile-lexicon.js +2 -6
- package/dist/service-profile-lexicon.js.map +1 -1
- package/dist/service-profile-ozone.d.ts +2 -2
- package/dist/service-profile-ozone.d.ts.map +1 -1
- package/dist/service-profile-ozone.js +6 -20
- package/dist/service-profile-ozone.js.map +1 -1
- package/dist/service-profile.d.ts +1 -1
- package/dist/service-profile.d.ts.map +1 -1
- package/dist/service-profile.js +6 -25
- package/dist/service-profile.js.map +1 -1
- package/dist/types.js +1 -2
- package/dist/util.d.ts +3 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +13 -54
- package/dist/util.js.map +1 -1
- package/package.json +25 -20
- package/src/bin.ts +4 -4
- package/src/bsky.ts +2 -2
- package/src/bsync.ts +1 -1
- package/src/index.ts +14 -14
- package/src/introspect.ts +4 -4
- package/src/mock/index.ts +11 -8
- package/src/moderator-client.ts +2 -1
- package/src/network-no-appview.ts +6 -6
- package/src/network.ts +11 -11
- package/src/ozone.ts +4 -4
- package/src/pds.ts +2 -2
- package/src/plc.ts +1 -1
- package/src/seed/author-feed.ts +2 -2
- package/src/seed/basic.ts +6 -6
- package/src/seed/client.ts +3 -1
- package/src/seed/follows.ts +1 -1
- package/src/seed/index.ts +10 -10
- package/src/seed/likes.ts +2 -2
- package/src/seed/quotes.ts +2 -2
- package/src/seed/reposts.ts +2 -2
- package/src/seed/thread-v2.ts +13 -9
- package/src/seed/users-bulk.ts +1 -1
- package/src/seed/users.ts +1 -1
- package/src/seed/verifications.ts +2 -2
- package/src/service-profile-lexicon.ts +2 -2
- package/src/service-profile-ozone.ts +2 -2
- package/src/service-profile.ts +1 -1
- package/src/util.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/mock/index.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
AtpAgent,
|
|
3
|
+
COM_ATPROTO_MODERATION,
|
|
4
|
+
ToolsOzoneQueueCreateQueue,
|
|
5
|
+
} from '@atproto/api'
|
|
3
6
|
import { Database } from '@atproto/bsky'
|
|
4
7
|
import { AtUri, AtUriString } from '@atproto/syntax'
|
|
5
|
-
import { EXAMPLE_LABELER, RecordRef, TestNetwork } from '../index'
|
|
6
|
-
import { postTexts, replyTexts } from './data'
|
|
7
|
-
import blurHashB64 from './img/blur-hash-avatar-b64'
|
|
8
|
-
import labeledImgB64 from './img/labeled-img-b64'
|
|
8
|
+
import { EXAMPLE_LABELER, RecordRef, TestNetwork } from '../index.js'
|
|
9
|
+
import { postTexts, replyTexts } from './data.js'
|
|
10
|
+
import blurHashB64 from './img/blur-hash-avatar-b64.js'
|
|
11
|
+
import labeledImgB64 from './img/labeled-img-b64.js'
|
|
9
12
|
|
|
10
13
|
// NOTE
|
|
11
14
|
// deterministic date generator
|
|
@@ -127,7 +130,7 @@ export async function generateMockSetup(env: TestNetwork) {
|
|
|
127
130
|
headers: await adminHeaders('tools.ozone.queue.createQueue'),
|
|
128
131
|
})
|
|
129
132
|
} catch (err) {
|
|
130
|
-
if (!(err instanceof ConflictingQueueError)) {
|
|
133
|
+
if (!(err instanceof ToolsOzoneQueueCreateQueue.ConflictingQueueError)) {
|
|
131
134
|
throw err
|
|
132
135
|
}
|
|
133
136
|
}
|
|
@@ -623,7 +626,7 @@ export async function generateMockSetup(env: TestNetwork) {
|
|
|
623
626
|
await setVerifier(env.bsky.db, alice.assertDid)
|
|
624
627
|
|
|
625
628
|
// @TODO These are useful when testing complex threads, but don't need to be enabled all the time. We could make it configurable.
|
|
626
|
-
// import * as seedThreadV2 from '../seed/thread-v2'
|
|
629
|
+
// import * as seedThreadV2 from '../seed/thread-v2.js'
|
|
627
630
|
// const sc = env.getSeedClient()
|
|
628
631
|
// await seedThreadV2.simple(sc)
|
|
629
632
|
// await seedThreadV2.long(sc)
|
package/src/moderator-client.ts
CHANGED
|
@@ -2,13 +2,14 @@ import {
|
|
|
2
2
|
AtpAgent,
|
|
3
3
|
ToolsOzoneModerationDefs,
|
|
4
4
|
ToolsOzoneModerationEmitEvent as EmitModerationEvent,
|
|
5
|
+
ToolsOzoneModerationGetReporterStats as _GetReporterStats, // includes types for getReporterStats()
|
|
5
6
|
ToolsOzoneModerationQueryEvents as QueryModerationEvents,
|
|
6
7
|
ToolsOzoneModerationQueryStatuses as QueryModerationStatuses,
|
|
7
8
|
ToolsOzoneReportQueryReports as QueryModerationReports,
|
|
8
9
|
ToolsOzoneSettingRemoveOptions,
|
|
9
10
|
ToolsOzoneSettingUpsertOption,
|
|
10
11
|
} from '@atproto/api'
|
|
11
|
-
import { TestOzone } from './ozone'
|
|
12
|
+
import { TestOzone } from './ozone.js'
|
|
12
13
|
|
|
13
14
|
type TakeActionInput = EmitModerationEvent.InputSchema
|
|
14
15
|
type QueryStatusesParams = QueryModerationStatuses.QueryParams
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SkeletonHandler } from '@atproto/pds'
|
|
2
|
-
import { TestFeedGen } from './feed-gen'
|
|
3
|
-
import { TestPds } from './pds'
|
|
4
|
-
import { TestPlc } from './plc'
|
|
5
|
-
import { SeedClient } from './seed/client'
|
|
6
|
-
import { TestServerParams } from './types'
|
|
7
|
-
import { mockNetworkUtilities } from './util'
|
|
2
|
+
import { TestFeedGen } from './feed-gen.js'
|
|
3
|
+
import { TestPds } from './pds.js'
|
|
4
|
+
import { TestPlc } from './plc.js'
|
|
5
|
+
import { SeedClient } from './seed/client.js'
|
|
6
|
+
import { TestServerParams } from './types.js'
|
|
7
|
+
import { mockNetworkUtilities } from './util.js'
|
|
8
8
|
|
|
9
9
|
export class TestNetworkNoAppView {
|
|
10
10
|
feedGens: TestFeedGen[] = []
|
package/src/network.ts
CHANGED
|
@@ -3,17 +3,17 @@ import getPort from 'get-port'
|
|
|
3
3
|
import * as uint8arrays from 'uint8arrays'
|
|
4
4
|
import { wait } from '@atproto/common-web'
|
|
5
5
|
import { createServiceJwt } from '@atproto/xrpc-server'
|
|
6
|
-
import { TestBsky } from './bsky'
|
|
7
|
-
import { EXAMPLE_LABELER } from './const'
|
|
8
|
-
import { IntrospectServer } from './introspect'
|
|
9
|
-
import { TestNetworkNoAppView } from './network-no-appview'
|
|
10
|
-
import { TestOzone } from './ozone'
|
|
11
|
-
import { TestPds } from './pds'
|
|
12
|
-
import { TestPlc } from './plc'
|
|
13
|
-
import { LexiconAuthorityProfile } from './service-profile-lexicon'
|
|
14
|
-
import { OzoneServiceProfile } from './service-profile-ozone'
|
|
15
|
-
import { TestServerParams } from './types'
|
|
16
|
-
import { mockNetworkUtilities } from './util'
|
|
6
|
+
import { TestBsky } from './bsky.js'
|
|
7
|
+
import { EXAMPLE_LABELER } from './const.js'
|
|
8
|
+
import { IntrospectServer } from './introspect.js'
|
|
9
|
+
import { TestNetworkNoAppView } from './network-no-appview.js'
|
|
10
|
+
import { TestOzone } from './ozone.js'
|
|
11
|
+
import { TestPds } from './pds.js'
|
|
12
|
+
import { TestPlc } from './plc.js'
|
|
13
|
+
import { LexiconAuthorityProfile } from './service-profile-lexicon.js'
|
|
14
|
+
import { OzoneServiceProfile } from './service-profile-ozone.js'
|
|
15
|
+
import { TestServerParams } from './types.js'
|
|
16
|
+
import { mockNetworkUtilities } from './util.js'
|
|
17
17
|
|
|
18
18
|
const ADMIN_USERNAME = 'admin'
|
|
19
19
|
const ADMIN_PASSWORD = 'admin-pass'
|
package/src/ozone.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { AtpAgent } from '@atproto/api'
|
|
|
5
5
|
import { Keypair, Secp256k1Keypair } from '@atproto/crypto'
|
|
6
6
|
import * as ozone from '@atproto/ozone'
|
|
7
7
|
import { createServiceJwt } from '@atproto/xrpc-server'
|
|
8
|
-
import { ADMIN_PASSWORD, EXAMPLE_LABELER } from './const'
|
|
9
|
-
import { ModeratorClient } from './moderator-client'
|
|
10
|
-
import { DidAndKey, OzoneConfig } from './types'
|
|
11
|
-
import { createDidAndKey } from './util'
|
|
8
|
+
import { ADMIN_PASSWORD, EXAMPLE_LABELER } from './const.js'
|
|
9
|
+
import { ModeratorClient } from './moderator-client.js'
|
|
10
|
+
import { DidAndKey, OzoneConfig } from './types.js'
|
|
11
|
+
import { createDidAndKey } from './util.js'
|
|
12
12
|
|
|
13
13
|
export class TestOzone {
|
|
14
14
|
constructor(
|
package/src/pds.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { Secp256k1Keypair, randomStr } from '@atproto/crypto'
|
|
|
8
8
|
import { Client } from '@atproto/lex'
|
|
9
9
|
import * as pds from '@atproto/pds'
|
|
10
10
|
import { createSecretKeyObject } from '@atproto/pds'
|
|
11
|
-
import { ADMIN_PASSWORD, EXAMPLE_LABELER, JWT_SECRET } from './const'
|
|
12
|
-
import { PdsConfig } from './types'
|
|
11
|
+
import { ADMIN_PASSWORD, EXAMPLE_LABELER, JWT_SECRET } from './const.js'
|
|
12
|
+
import { PdsConfig } from './types.js'
|
|
13
13
|
|
|
14
14
|
export class TestPds {
|
|
15
15
|
constructor(
|
package/src/plc.ts
CHANGED
package/src/seed/author-feed.ts
CHANGED
package/src/seed/basic.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TestBsky } from '../bsky'
|
|
2
|
-
import { EXAMPLE_LABELER } from '../const'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { SeedClient } from './client'
|
|
6
|
-
import usersSeed from './users'
|
|
1
|
+
import { TestBsky } from '../bsky.js'
|
|
2
|
+
import { EXAMPLE_LABELER } from '../const.js'
|
|
3
|
+
import { TestNetworkNoAppView } from '../network-no-appview.js'
|
|
4
|
+
import { TestNetwork } from '../network.js'
|
|
5
|
+
import { SeedClient } from './client.js'
|
|
6
|
+
import usersSeed from './users.js'
|
|
7
7
|
|
|
8
8
|
export default async (
|
|
9
9
|
sc: SeedClient<TestNetwork | TestNetworkNoAppView>,
|
package/src/seed/client.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises'
|
|
2
2
|
import path from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
3
4
|
import { CID } from 'multiformats/cid'
|
|
4
5
|
import {
|
|
5
6
|
AppBskyActorProfile,
|
|
@@ -17,7 +18,7 @@ import {
|
|
|
17
18
|
import { CidString, Client } from '@atproto/lex'
|
|
18
19
|
import { BlobRef } from '@atproto/lexicon'
|
|
19
20
|
import { AtUri, AtUriString, DidString } from '@atproto/syntax'
|
|
20
|
-
import { TestNetworkNoAppView } from '../network-no-appview'
|
|
21
|
+
import { TestNetworkNoAppView } from '../network-no-appview.js'
|
|
21
22
|
|
|
22
23
|
// Makes it simple to create data via the XRPC client,
|
|
23
24
|
// and keeps track of all created data in memory for convenience.
|
|
@@ -26,6 +27,7 @@ let AVATAR_IMG: Uint8Array | undefined
|
|
|
26
27
|
|
|
27
28
|
// AVATAR_PATH is defined in a non-CWD-dependant way, so this works
|
|
28
29
|
// for any consumer of this package, even outside the atproto repo.
|
|
30
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
29
31
|
const AVATAR_PATH = path.resolve(
|
|
30
32
|
__dirname,
|
|
31
33
|
'../../assets/key-portrait-small.jpg',
|
package/src/seed/follows.ts
CHANGED
package/src/seed/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './client'
|
|
1
|
+
export * from './client.js'
|
|
2
2
|
|
|
3
|
-
export { default as authorFeedSeed } from './author-feed'
|
|
4
|
-
export { default as basicSeed } from './basic'
|
|
5
|
-
export { default as followsSeed } from './follows'
|
|
6
|
-
export { default as likesSeed } from './likes'
|
|
7
|
-
export { default as quotesSeed } from './quotes'
|
|
8
|
-
export { default as repostsSeed } from './reposts'
|
|
9
|
-
export { default as usersBulkSeed } from './users-bulk'
|
|
10
|
-
export { default as usersSeed } from './users'
|
|
11
|
-
export { default as verificationsSeed } from './verifications'
|
|
3
|
+
export { default as authorFeedSeed } from './author-feed.js'
|
|
4
|
+
export { default as basicSeed } from './basic.js'
|
|
5
|
+
export { default as followsSeed } from './follows.js'
|
|
6
|
+
export { default as likesSeed } from './likes.js'
|
|
7
|
+
export { default as quotesSeed } from './quotes.js'
|
|
8
|
+
export { default as repostsSeed } from './reposts.js'
|
|
9
|
+
export { default as usersBulkSeed } from './users-bulk.js'
|
|
10
|
+
export { default as usersSeed } from './users.js'
|
|
11
|
+
export { default as verificationsSeed } from './verifications.js'
|
package/src/seed/likes.ts
CHANGED
package/src/seed/quotes.ts
CHANGED
package/src/seed/reposts.ts
CHANGED
package/src/seed/thread-v2.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AppBskyFeedPost } from '@atproto/api'
|
|
2
2
|
import type { DatabaseSchema } from '@atproto/bsky'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { RecordRef, SeedClient } from './client'
|
|
3
|
+
import { TestNetworkNoAppView } from '../network-no-appview.js'
|
|
4
|
+
import { TestNetwork } from '../network.js'
|
|
5
|
+
import { RecordRef, SeedClient } from './client.js'
|
|
6
6
|
|
|
7
7
|
type User = {
|
|
8
8
|
id: string
|
|
@@ -107,8 +107,10 @@ const rootReplyFnBuilder = <T extends TestNetworkNoAppView>(
|
|
|
107
107
|
)
|
|
108
108
|
posts[breadcrumbs] = reply
|
|
109
109
|
// Await for this post to be processed before replying to it.
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
if (replyCb) {
|
|
111
|
+
await sc.network.processAll()
|
|
112
|
+
await replyCb(rootReplyFnBuilder(sc, root, reply.ref, breadcrumbs, posts))
|
|
113
|
+
}
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
|
|
@@ -139,10 +141,12 @@ const createThread = async <T extends TestNetworkNoAppView>(
|
|
|
139
141
|
overrides,
|
|
140
142
|
)
|
|
141
143
|
// Await for this post to be processed before replying to it.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
if (replyCb) {
|
|
145
|
+
await sc.network.processAll()
|
|
146
|
+
await replyCb(
|
|
147
|
+
rootReplyFnBuilder(sc, root.ref, root.ref, breadcrumbs, replies),
|
|
148
|
+
)
|
|
149
|
+
}
|
|
146
150
|
return { root, replies }
|
|
147
151
|
}
|
|
148
152
|
|
package/src/seed/users-bulk.ts
CHANGED
package/src/seed/users.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INVALID_HANDLE } from '@atproto/syntax'
|
|
2
|
-
import { TestNetwork } from '../network'
|
|
3
|
-
import { SeedClient } from './client'
|
|
2
|
+
import { TestNetwork } from '../network.js'
|
|
3
|
+
import { SeedClient } from './client.js'
|
|
4
4
|
|
|
5
5
|
export default async (sc: SeedClient<TestNetwork>) => {
|
|
6
6
|
const labelerDid = sc.network.bsky.ctx.cfg.modServiceDid
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LexiconDoc } from '@atproto/lexicon'
|
|
2
|
-
import { TestPds } from './pds'
|
|
3
|
-
import { ServiceProfile } from './service-profile'
|
|
2
|
+
import { TestPds } from './pds.js'
|
|
3
|
+
import { ServiceProfile } from './service-profile.js'
|
|
4
4
|
|
|
5
5
|
const LEXICONS: readonly LexiconDoc[] = [
|
|
6
6
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
2
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
|
3
|
-
import { TestPds } from './pds'
|
|
3
|
+
import { TestPds } from './pds.js'
|
|
4
4
|
import {
|
|
5
5
|
ServiceMigrationOptions,
|
|
6
6
|
ServiceProfile,
|
|
7
7
|
ServiceUserDetails,
|
|
8
|
-
} from './service-profile'
|
|
8
|
+
} from './service-profile.js'
|
|
9
9
|
|
|
10
10
|
export class OzoneServiceProfile extends ServiceProfile {
|
|
11
11
|
static async create(
|
package/src/service-profile.ts
CHANGED
package/src/util.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as plc from '@did-plc/lib'
|
|
|
2
2
|
import { request } from 'undici'
|
|
3
3
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
|
4
4
|
import { IdResolver } from '@atproto/identity'
|
|
5
|
-
import { TestBsky } from './bsky'
|
|
6
|
-
import { TestPds } from './pds'
|
|
7
|
-
import { DidAndKey } from './types'
|
|
5
|
+
import { TestBsky } from './bsky.js'
|
|
6
|
+
import { TestPds } from './pds.js'
|
|
7
|
+
import { DidAndKey } from './types.js'
|
|
8
8
|
|
|
9
9
|
export const mockNetworkUtilities = (pds: TestPds, bsky?: TestBsky) => {
|
|
10
10
|
mockResolvers(pds.ctx.idResolver, pds)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/bin.ts","./src/bsky.ts","./src/bsync.ts","./src/const.ts","./src/env.ts","./src/feed-gen.ts","./src/index.ts","./src/introspect.ts","./src/moderator-client.ts","./src/network-no-appview.ts","./src/network.ts","./src/ozone.ts","./src/pds.ts","./src/plc.ts","./src/service-profile-lexicon.ts","./src/service-profile-ozone.ts","./src/service-profile.ts","./src/types.ts","./src/util.ts","./src/mock/data.ts","./src/mock/index.ts","./src/mock/img/blur-hash-avatar-b64.ts","./src/mock/img/labeled-img-b64.ts","./src/seed/author-feed.ts","./src/seed/basic.ts","./src/seed/client.ts","./src/seed/follows.ts","./src/seed/index.ts","./src/seed/likes.ts","./src/seed/quotes.ts","./src/seed/reposts.ts","./src/seed/thread-v2.ts","./src/seed/users-bulk.ts","./src/seed/users.ts","./src/seed/verifications.ts"],"version":"
|
|
1
|
+
{"root":["./src/bin.ts","./src/bsky.ts","./src/bsync.ts","./src/const.ts","./src/env.ts","./src/feed-gen.ts","./src/index.ts","./src/introspect.ts","./src/moderator-client.ts","./src/network-no-appview.ts","./src/network.ts","./src/ozone.ts","./src/pds.ts","./src/plc.ts","./src/service-profile-lexicon.ts","./src/service-profile-ozone.ts","./src/service-profile.ts","./src/types.ts","./src/util.ts","./src/mock/data.ts","./src/mock/index.ts","./src/mock/img/blur-hash-avatar-b64.ts","./src/mock/img/labeled-img-b64.ts","./src/seed/author-feed.ts","./src/seed/basic.ts","./src/seed/client.ts","./src/seed/follows.ts","./src/seed/index.ts","./src/seed/likes.ts","./src/seed/quotes.ts","./src/seed/reposts.ts","./src/seed/thread-v2.ts","./src/seed/users-bulk.ts","./src/seed/users.ts","./src/seed/verifications.ts"],"version":"6.0.3"}
|