@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.
Files changed (157) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/bin.js +1 -4
  3. package/dist/bin.d.ts +1 -1
  4. package/dist/bin.d.ts.map +1 -1
  5. package/dist/bin.js +8 -10
  6. package/dist/bin.js.map +1 -1
  7. package/dist/bsky.d.ts +1 -1
  8. package/dist/bsky.d.ts.map +1 -1
  9. package/dist/bsky.js +30 -113
  10. package/dist/bsky.js.map +1 -1
  11. package/dist/bsync.d.ts +1 -1
  12. package/dist/bsync.d.ts.map +1 -1
  13. package/dist/bsync.js +7 -62
  14. package/dist/bsync.js.map +1 -1
  15. package/dist/const.js +3 -6
  16. package/dist/const.js.map +1 -1
  17. package/dist/env.js +3 -8
  18. package/dist/env.js.map +1 -1
  19. package/dist/feed-gen.js +18 -78
  20. package/dist/feed-gen.js.map +1 -1
  21. package/dist/index.d.ts +14 -14
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +16 -55
  24. package/dist/index.js.map +1 -1
  25. package/dist/introspect.d.ts +4 -4
  26. package/dist/introspect.d.ts.map +1 -1
  27. package/dist/introspect.js +8 -25
  28. package/dist/introspect.js.map +1 -1
  29. package/dist/mock/data.js +2 -5
  30. package/dist/mock/data.js.map +1 -1
  31. package/dist/mock/img/blur-hash-avatar-b64.js +1 -3
  32. package/dist/mock/img/blur-hash-avatar-b64.js.map +1 -1
  33. package/dist/mock/img/labeled-img-b64.js +1 -3
  34. package/dist/mock/img/labeled-img-b64.js.map +1 -1
  35. package/dist/mock/index.d.ts +1 -1
  36. package/dist/mock/index.d.ts.map +1 -1
  37. package/dist/mock/index.js +29 -36
  38. package/dist/mock/index.js.map +1 -1
  39. package/dist/moderator-client.d.ts +4 -3
  40. package/dist/moderator-client.d.ts.map +1 -1
  41. package/dist/moderator-client.js +2 -17
  42. package/dist/moderator-client.js.map +1 -1
  43. package/dist/network-no-appview.d.ts +5 -5
  44. package/dist/network-no-appview.d.ts.map +1 -1
  45. package/dist/network-no-appview.js +14 -33
  46. package/dist/network-no-appview.js.map +1 -1
  47. package/dist/network.d.ts +7 -7
  48. package/dist/network.d.ts.map +1 -1
  49. package/dist/network.js +39 -104
  50. package/dist/network.js.map +1 -1
  51. package/dist/ozone.d.ts +2 -2
  52. package/dist/ozone.d.ts.map +1 -1
  53. package/dist/ozone.js +30 -106
  54. package/dist/ozone.js.map +1 -1
  55. package/dist/pds.d.ts +1 -1
  56. package/dist/pds.d.ts.map +1 -1
  57. package/dist/pds.js +29 -84
  58. package/dist/pds.js.map +1 -1
  59. package/dist/plc.d.ts +1 -1
  60. package/dist/plc.d.ts.map +1 -1
  61. package/dist/plc.js +9 -64
  62. package/dist/plc.js.map +1 -1
  63. package/dist/seed/author-feed.d.ts +2 -2
  64. package/dist/seed/author-feed.d.ts.map +1 -1
  65. package/dist/seed/author-feed.js +3 -8
  66. package/dist/seed/author-feed.js.map +1 -1
  67. package/dist/seed/basic.d.ts +3 -3
  68. package/dist/seed/basic.d.ts.map +1 -1
  69. package/dist/seed/basic.js +20 -26
  70. package/dist/seed/basic.js.map +1 -1
  71. package/dist/seed/client.d.ts +1 -1
  72. package/dist/seed/client.d.ts.map +1 -1
  73. package/dist/seed/client.js +29 -157
  74. package/dist/seed/client.js.map +1 -1
  75. package/dist/seed/follows.d.ts +1 -1
  76. package/dist/seed/follows.d.ts.map +1 -1
  77. package/dist/seed/follows.js +1 -3
  78. package/dist/seed/follows.js.map +1 -1
  79. package/dist/seed/index.d.ts +10 -10
  80. package/dist/seed/index.d.ts.map +1 -1
  81. package/dist/seed/index.js +10 -39
  82. package/dist/seed/index.js.map +1 -1
  83. package/dist/seed/likes.d.ts +2 -2
  84. package/dist/seed/likes.d.ts.map +1 -1
  85. package/dist/seed/likes.js +3 -8
  86. package/dist/seed/likes.js.map +1 -1
  87. package/dist/seed/quotes.d.ts +2 -2
  88. package/dist/seed/quotes.d.ts.map +1 -1
  89. package/dist/seed/quotes.js +3 -8
  90. package/dist/seed/quotes.js.map +1 -1
  91. package/dist/seed/reposts.d.ts +2 -2
  92. package/dist/seed/reposts.d.ts.map +1 -1
  93. package/dist/seed/reposts.js +3 -8
  94. package/dist/seed/reposts.js.map +1 -1
  95. package/dist/seed/thread-v2.d.ts +30 -30
  96. package/dist/seed/thread-v2.d.ts.map +1 -1
  97. package/dist/seed/thread-v2.js +35 -48
  98. package/dist/seed/thread-v2.js.map +1 -1
  99. package/dist/seed/users-bulk.d.ts +2 -2
  100. package/dist/seed/users-bulk.d.ts.map +1 -1
  101. package/dist/seed/users-bulk.js +3 -5
  102. package/dist/seed/users-bulk.js.map +1 -1
  103. package/dist/seed/users.d.ts +2 -2
  104. package/dist/seed/users.d.ts.map +1 -1
  105. package/dist/seed/users.js +1 -3
  106. package/dist/seed/users.js.map +1 -1
  107. package/dist/seed/verifications.d.ts +2 -2
  108. package/dist/seed/verifications.d.ts.map +1 -1
  109. package/dist/seed/verifications.js +3 -5
  110. package/dist/seed/verifications.js.map +1 -1
  111. package/dist/service-profile-lexicon.d.ts +2 -2
  112. package/dist/service-profile-lexicon.d.ts.map +1 -1
  113. package/dist/service-profile-lexicon.js +2 -6
  114. package/dist/service-profile-lexicon.js.map +1 -1
  115. package/dist/service-profile-ozone.d.ts +2 -2
  116. package/dist/service-profile-ozone.d.ts.map +1 -1
  117. package/dist/service-profile-ozone.js +6 -20
  118. package/dist/service-profile-ozone.js.map +1 -1
  119. package/dist/service-profile.d.ts +1 -1
  120. package/dist/service-profile.d.ts.map +1 -1
  121. package/dist/service-profile.js +6 -25
  122. package/dist/service-profile.js.map +1 -1
  123. package/dist/types.js +1 -2
  124. package/dist/util.d.ts +3 -3
  125. package/dist/util.d.ts.map +1 -1
  126. package/dist/util.js +13 -54
  127. package/dist/util.js.map +1 -1
  128. package/package.json +25 -20
  129. package/src/bin.ts +4 -4
  130. package/src/bsky.ts +2 -2
  131. package/src/bsync.ts +1 -1
  132. package/src/index.ts +14 -14
  133. package/src/introspect.ts +4 -4
  134. package/src/mock/index.ts +11 -8
  135. package/src/moderator-client.ts +2 -1
  136. package/src/network-no-appview.ts +6 -6
  137. package/src/network.ts +11 -11
  138. package/src/ozone.ts +4 -4
  139. package/src/pds.ts +2 -2
  140. package/src/plc.ts +1 -1
  141. package/src/seed/author-feed.ts +2 -2
  142. package/src/seed/basic.ts +6 -6
  143. package/src/seed/client.ts +3 -1
  144. package/src/seed/follows.ts +1 -1
  145. package/src/seed/index.ts +10 -10
  146. package/src/seed/likes.ts +2 -2
  147. package/src/seed/quotes.ts +2 -2
  148. package/src/seed/reposts.ts +2 -2
  149. package/src/seed/thread-v2.ts +13 -9
  150. package/src/seed/users-bulk.ts +1 -1
  151. package/src/seed/users.ts +1 -1
  152. package/src/seed/verifications.ts +2 -2
  153. package/src/service-profile-lexicon.ts +2 -2
  154. package/src/service-profile-ozone.ts +2 -2
  155. package/src/service-profile.ts +1 -1
  156. package/src/util.ts +3 -3
  157. package/tsconfig.build.tsbuildinfo +1 -1
package/src/mock/index.ts CHANGED
@@ -1,11 +1,14 @@
1
- import { AtpAgent, COM_ATPROTO_MODERATION } from '@atproto/api'
2
- import { ConflictingQueueError } from '@atproto/api/dist/client/types/tools/ozone/queue/createQueue'
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)
@@ -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
@@ -1,7 +1,7 @@
1
1
  import { Client as PlcClient } from '@did-plc/lib'
2
2
  import * as plc from '@did-plc/server'
3
3
  import getPort from 'get-port'
4
- import { PlcConfig } from './types'
4
+ import { PlcConfig } from './types.js'
5
5
 
6
6
  export class TestPlc {
7
7
  constructor(
@@ -1,5 +1,5 @@
1
- import basicSeed from './basic'
2
- import { SeedClient } from './client'
1
+ import basicSeed from './basic.js'
2
+ import { SeedClient } from './client.js'
3
3
 
4
4
  export default async (sc: SeedClient) => {
5
5
  await basicSeed(sc)
package/src/seed/basic.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { TestBsky } from '../bsky'
2
- import { EXAMPLE_LABELER } from '../const'
3
- import { TestNetwork } from '../network'
4
- import { TestNetworkNoAppView } from '../network-no-appview'
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>,
@@ -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',
@@ -1,4 +1,4 @@
1
- import { SeedClient } from './client'
1
+ import { SeedClient } from './client.js'
2
2
 
3
3
  export default async (sc: SeedClient) => {
4
4
  await sc.createAccount('alice', users.alice)
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
@@ -1,5 +1,5 @@
1
- import basicSeed from './basic'
2
- import { SeedClient } from './client'
1
+ import basicSeed from './basic.js'
2
+ import { SeedClient } from './client.js'
3
3
 
4
4
  export default async (sc: SeedClient) => {
5
5
  await basicSeed(sc)
@@ -1,5 +1,5 @@
1
- import { default as basicSeed } from './basic'
2
- import { SeedClient } from './client'
1
+ import { default as basicSeed } from './basic.js'
2
+ import { SeedClient } from './client.js'
3
3
 
4
4
  export default async (sc: SeedClient) => {
5
5
  await basicSeed(sc)
@@ -1,5 +1,5 @@
1
- import basicSeed from './basic'
2
- import { SeedClient } from './client'
1
+ import basicSeed from './basic.js'
2
+ import { SeedClient } from './client.js'
3
3
 
4
4
  export default async (sc: SeedClient) => {
5
5
  await basicSeed(sc)
@@ -1,8 +1,8 @@
1
1
  import { AppBskyFeedPost } from '@atproto/api'
2
2
  import type { DatabaseSchema } from '@atproto/bsky'
3
- import { TestNetwork } from '../network'
4
- import { TestNetworkNoAppView } from '../network-no-appview'
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
- replyCb && (await sc.network.processAll())
111
- await replyCb?.(rootReplyFnBuilder(sc, root, reply.ref, breadcrumbs, posts))
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
- replyCb && (await sc.network.processAll())
143
- await replyCb?.(
144
- rootReplyFnBuilder(sc, root.ref, root.ref, breadcrumbs, replies),
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
 
@@ -1,5 +1,5 @@
1
1
  import { chunkArray } from '@atproto/common-web'
2
- import { SeedClient } from './client'
2
+ import { SeedClient } from './client.js'
3
3
 
4
4
  export default async (sc: SeedClient, max = Infinity) => {
5
5
  // @TODO when these are run in parallel, seem to get an intermittent
package/src/seed/users.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SeedClient } from './client'
1
+ import { SeedClient } from './client.js'
2
2
 
3
3
  export default async (sc: SeedClient) => {
4
4
  await sc.createAccount('alice', users.alice)
@@ -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(
@@ -1,6 +1,6 @@
1
1
  import { AtpAgent } from '@atproto/api'
2
2
  import { DidString } from '@atproto/lex'
3
- import { TestPds } from './pds'
3
+ import { TestPds } from './pds.js'
4
4
 
5
5
  export type ServiceUserDetails = {
6
6
  email: string
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":"5.8.2"}
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"}