@atproto/dev-env 0.5.41 → 0.5.43

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 CHANGED
@@ -1,5 +1,43 @@
1
1
  # @atproto/dev-env
2
2
 
3
+ ## 0.5.43
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8b55a4a`](https://github.com/bluesky-social/atproto/commit/8b55a4ab69c24e5038f67c479b3b9953666ea0c2), [`8bf8f6b`](https://github.com/bluesky-social/atproto/commit/8bf8f6b1faa625af9e924bec83c69ad709fc9a22), [`8b55a4a`](https://github.com/bluesky-social/atproto/commit/8b55a4ab69c24e5038f67c479b3b9953666ea0c2), [`8145a99`](https://github.com/bluesky-social/atproto/commit/8145a999e03219e846ae4773ec66f0de72939511), [`c677bf3`](https://github.com/bluesky-social/atproto/commit/c677bf393d666bd20fc89c7386448f06375aba9c), [`675953e`](https://github.com/bluesky-social/atproto/commit/675953e8c0ac5154baf7c5fd0b84aba01559a879)]:
8
+ - @atproto/pds@0.5.25
9
+ - @atproto/syntax@0.7.4
10
+ - @atproto/bsync@0.0.39
11
+ - @atproto/ozone@0.2.25
12
+ - @atproto/bsky@0.0.271
13
+ - @atproto/api@0.20.38
14
+ - @atproto/common-web@0.5.9
15
+ - @atproto/lexicon@0.7.11
16
+ - @atproto/sync@0.4.1
17
+ - @atproto/lex@0.3.4
18
+ - @atproto/xrpc-server@0.12.1
19
+ - @atproto/identity@0.5.9
20
+
21
+ ## 0.5.42
22
+
23
+ ### Patch Changes
24
+
25
+ - [#5301](https://github.com/bluesky-social/atproto/pull/5301) [`8c07338`](https://github.com/bluesky-social/atproto/commit/8c07338232aa69427aa65322a555f70e0211d6d7) Thanks [@43081j](https://github.com/43081j)! - Switch from destructured default imports to named imports of CommonJS dependencies.
26
+
27
+ - Updated dependencies [[`5a222b0`](https://github.com/bluesky-social/atproto/commit/5a222b05da5f9c0d32d41fb1c4437ea188aa2c32), [`6a3d607`](https://github.com/bluesky-social/atproto/commit/6a3d6073cb66c527b5b109242049c85c36b9658c), [`ee4a0cf`](https://github.com/bluesky-social/atproto/commit/ee4a0cf0ebb3e078a014bef882720f46aca5cb89), [`2cbbb5d`](https://github.com/bluesky-social/atproto/commit/2cbbb5d16ccb1597e0391aa674349f795b404b8b), [`d12f6ac`](https://github.com/bluesky-social/atproto/commit/d12f6ac6e2cb2590446bf9f2051287bac058c092), [`29dcbc0`](https://github.com/bluesky-social/atproto/commit/29dcbc091ca72cb9dda7a2cea846f3eb4bfcef6c), [`a8186e7`](https://github.com/bluesky-social/atproto/commit/a8186e7cdb5ea3d8a88c2e9283d742de1bc0bba6), [`d12f6ac`](https://github.com/bluesky-social/atproto/commit/d12f6ac6e2cb2590446bf9f2051287bac058c092), [`8c07338`](https://github.com/bluesky-social/atproto/commit/8c07338232aa69427aa65322a555f70e0211d6d7), [`d12f6ac`](https://github.com/bluesky-social/atproto/commit/d12f6ac6e2cb2590446bf9f2051287bac058c092)]:
28
+ - @atproto/xrpc-server@0.12.0
29
+ - @atproto/lex@0.3.3
30
+ - @atproto/syntax@0.7.3
31
+ - @atproto/bsky@0.0.270
32
+ - @atproto/api@0.20.37
33
+ - @atproto/ozone@0.2.24
34
+ - @atproto/sync@0.4.0
35
+ - @atproto/bsync@0.0.38
36
+ - @atproto/pds@0.5.24
37
+ - @atproto/common-web@0.5.8
38
+ - @atproto/lexicon@0.7.10
39
+ - @atproto/identity@0.5.8
40
+
3
41
  ## 0.5.41
4
42
 
5
43
  ### Patch Changes
package/bin.js CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- /* eslint-env node */
4
-
5
3
  // @NOTE This file exists so that pnpm can properly link the "bin" scripts when
6
4
  // the monorepo is being setup (during initial "pnpm install"), but was never
7
5
  // built.
package/dist/env.js CHANGED
@@ -1,10 +1,10 @@
1
1
  // NOTE: this file should be imported first, particularly before `@atproto/common` (for logging), to ensure that environment variables are respected in library code
2
- import dotenv from 'dotenv';
2
+ import { config } from 'dotenv';
3
3
  const env = process.env.ENV;
4
4
  if (env) {
5
- dotenv.config({ path: `./.${env}.env` });
5
+ config({ path: `./.${env}.env` });
6
6
  }
7
7
  else {
8
- dotenv.config();
8
+ config();
9
9
  }
10
10
  //# sourceMappingURL=env.js.map
package/dist/env.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,oKAAoK;AACpK,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAA;AAC3B,IAAI,GAAG,EAAE,CAAC;IACR,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AAC1C,CAAC;KAAM,CAAC;IACN,MAAM,CAAC,MAAM,EAAE,CAAA;AACjB,CAAC","sourcesContent":["// NOTE: this file should be imported first, particularly before `@atproto/common` (for logging), to ensure that environment variables are respected in library code\nimport dotenv from 'dotenv'\n\nconst env = process.env.ENV\nif (env) {\n dotenv.config({ path: `./.${env}.env` })\n} else {\n dotenv.config()\n}\n"]}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,oKAAoK;AACpK,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAA;AAC3B,IAAI,GAAG,EAAE,CAAC;IACR,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AACnC,CAAC;KAAM,CAAC;IACN,MAAM,EAAE,CAAA;AACV,CAAC","sourcesContent":["// NOTE: this file should be imported first, particularly before `@atproto/common` (for logging), to ensure that environment variables are respected in library code\nimport { config } from 'dotenv'\n\nconst env = process.env.ENV\nif (env) {\n config({ path: `./.${env}.env` })\n} else {\n config()\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"feed-gen.d.ts","sourceRoot":"","sources":["../src/feed-gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAMjC,OAAO,EAAE,KAAK,eAAe,EAAO,MAAM,cAAc,CAAA;AAIxD,qBAAa,WAAW;IASb,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,GAAG,EAAE,MAAM;IAVpB,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,iBAAiB,CAAC,CAAe;IAEzC,IAAI,SAAS,YAEZ;IAED,YACS,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,MAAM,EAGnB;IAED,OAAa,MAAM,CACjB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GACrC,OAAO,CAAC,WAAW,CAAC,CA4BtB;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAErB;IAEK,CAAC,MAAM,CAAC,YAAY,CAAC,kBAE1B;CACF"}
1
+ {"version":3,"file":"feed-gen.d.ts","sourceRoot":"","sources":["../src/feed-gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAKjC,OAAO,EAAE,KAAK,eAAe,EAAO,MAAM,cAAc,CAAA;AAIxD,qBAAa,WAAW;IASb,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,GAAG,EAAE,MAAM;IAVpB,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,iBAAiB,CAAC,CAAe;IAEzC,IAAI,SAAS,YAEZ;IAED,YACS,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,MAAM,EAGnB;IAED,OAAa,MAAM,CACjB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GACrC,OAAO,CAAC,WAAW,CAAC,CA4BtB;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAErB;IAEK,CAAC,MAAM,CAAC,YAAY,CAAC,kBAE1B;CACF"}
package/dist/feed-gen.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import events from 'node:events';
2
2
  import * as plc from '@did-plc/lib';
3
3
  import getPort from 'get-port';
4
- // eslint-disable-next-line import/default, import/no-named-as-default-member
5
- import httpTerminator from 'http-terminator';
4
+ import { createHttpTerminator } from 'http-terminator';
6
5
  import { Secp256k1Keypair } from '@atproto/crypto';
7
6
  import { app } from '@atproto/pds';
8
7
  import { InvalidRequestError, createServer } from '@atproto/xrpc-server';
@@ -14,7 +13,7 @@ export class TestFeedGen {
14
13
  this.port = port;
15
14
  this.server = server;
16
15
  this.did = did;
17
- this.terminator = httpTerminator.createHttpTerminator({ server });
16
+ this.terminator = createHttpTerminator({ server });
18
17
  }
19
18
  static async create(plcUrl, feeds) {
20
19
  const port = await getPort();
@@ -1 +1 @@
1
- {"version":3,"file":"feed-gen.js","sourceRoot":"","sources":["../src/feed-gen.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,OAAO,MAAM,UAAU,CAAA;AAC9B,6EAA6E;AAC7E,OAAO,cAAc,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAwB,GAAG,EAAE,MAAM,cAAc,CAAA;AAExD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExE,MAAM,OAAO,WAAW;IAItB,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAA;IACvC,CAAC;IAED,YACS,IAAY,E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AAE,WAAW,CAAC,CAAA;QAC1C,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC,CAAA;IAC/C,CAAC;IAED,KAAK;QACH,OAAO,CAAC,IAAI,CAAC,iBAAiB,KAAK,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,CAAA;IACjE,CAAC;IAED,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QACzB,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;IACpB,CAAC;CACF;AAED,MAAM,WAAW,GAAG,KAAK,EACvB,MAAc,EACd,IAAY,EACQ,EAAE;IACtB,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,MAAM,EAAE,CAAA;IAC/C,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACxC,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,aAAa,CAChC;QACE,IAAI,EAAE,eAAe;QACrB,mBAAmB,EAAE;YACnB,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE;SACvB;QACD,YAAY,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QAC7B,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,mBAAmB;gBACzB,QAAQ,EAAE,oBAAoB,IAAI,EAAE;aACrC;SACF;QACD,IAAI,EAAE,IAAI;KACX,EACD,OAAO,CACR,CAAA;IACD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;IACxC,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IACtC,OAAO,GAAgB,CAAA;AACzB,CAAC,CAAA","sourcesContent":["import events from 'node:events'\nimport type http from 'node:http'\nimport * as plc from '@did-plc/lib'\nimport getPort from 'get-port'\n// eslint-disable-next-line import/default, import/no-named-as-default-member\nimport httpTerminator from 'http-terminator'\nimport { Secp256k1Keypair } from '@atproto/crypto'\nimport { type SkeletonHandler, app } from '@atproto/pds'\nimport type { AtUriString, DidString } from '@atproto/syntax'\nimport { InvalidRequestError, createServer } from '@atproto/xrpc-server'\n\nexport class TestFeedGen {\n private terminator: httpTerminator.HttpTerminator\n private terminatorPromise?: Promise<void>\n\n get destroyed() {\n return this.terminatorPromise != null\n }\n\n constructor(\n public port: number,\n public server: http.Server,\n public did: string,\n ) {\n this.terminator = httpTerminator.createHttpTerminator({ server })\n }\n\n static async create(\n plcUrl: string,\n feeds: Record<string, SkeletonHandler>,\n ): Promise<TestFeedGen> {\n const port = await getPort()\n const did = await createFgDid(plcUrl, port)\n const xrpcServer = createServer()\n\n xrpcServer.add(app.bsky.feed.getFeedSkeleton, async (args) => {\n const handler = feeds[args.params.feed]\n if (!handler) {\n throw new InvalidRequestError('unknown feed', 'UnknownFeed')\n }\n return handler(args)\n })\n\n xrpcServer.add(app.bsky.feed.describeFeedGenerator, async () => {\n return {\n encoding: 'application/json' as const,\n body: {\n did: did as DidString,\n feeds: (Object.keys(feeds) as AtUriString[]).map((uri) => ({\n uri,\n })),\n },\n }\n })\n\n const httpServer = xrpcServer.listen(port)\n await events.once(httpServer, 'listening')\n return new TestFeedGen(port, httpServer, did)\n }\n\n close(): Promise<void> {\n return (this.terminatorPromise ??= this.terminator.terminate())\n }\n\n async [Symbol.asyncDispose]() {\n await this.close()\n }\n}\n\nconst createFgDid = async (\n plcUrl: string,\n port: number,\n): Promise<DidString> => {\n const keypair = await Secp256k1Keypair.create()\n const plcClient = new plc.Client(plcUrl)\n const op = await plc.signOperation(\n {\n type: 'plc_operation',\n verificationMethods: {\n atproto: keypair.did(),\n },\n rotationKeys: [keypair.did()],\n alsoKnownAs: [],\n services: {\n bsky_fg: {\n type: 'BskyFeedGenerator',\n endpoint: `http://localhost:${port}`,\n },\n },\n prev: null,\n },\n keypair,\n )\n const did = await plc.didForCreateOp(op)\n await plcClient.sendOperation(did, op)\n return did as DidString\n}\n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,GAAG,EAAE,CAAC;QAC7B,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,mBAAmB;gBACzB,QAAQ,EAAE,oBAAoB,IAAI,EAAE;aACrC;SACF;QACD,IAAI,EAAE,IAAI;KACX,EACD,OAAO,CACR,CAAA;IACD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;IACxC,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IACtC,OAAO,GAAgB,CAAA;AACzB,CAAC,CAAA","sourcesContent":["import events from 'node:events'\nimport type http from 'node:http'\nimport * as plc from '@did-plc/lib'\nimport getPort from 'get-port'\nimport { type HttpTerminator, createHttpTerminator } from 'http-terminator'\nimport { Secp256k1Keypair } from '@atproto/crypto'\nimport { type SkeletonHandler, app } from '@atproto/pds'\nimport type { AtUriString, DidString } from '@atproto/syntax'\nimport { InvalidRequestError, createServer } from '@atproto/xrpc-server'\n\nexport class TestFeedGen {\n private terminator: HttpTerminator\n private terminatorPromise?: Promise<void>\n\n get destroyed() {\n return this.terminatorPromise != null\n }\n\n constructor(\n public port: number,\n public server: http.Server,\n public did: string,\n ) {\n this.terminator = createHttpTerminator({ server })\n }\n\n static async create(\n plcUrl: string,\n feeds: Record<string, SkeletonHandler>,\n ): Promise<TestFeedGen> {\n const port = await getPort()\n const did = await createFgDid(plcUrl, port)\n const xrpcServer = createServer()\n\n xrpcServer.add(app.bsky.feed.getFeedSkeleton, async (args) => {\n const handler = feeds[args.params.feed]\n if (!handler) {\n throw new InvalidRequestError('unknown feed', 'UnknownFeed')\n }\n return handler(args)\n })\n\n xrpcServer.add(app.bsky.feed.describeFeedGenerator, async () => {\n return {\n encoding: 'application/json' as const,\n body: {\n did: did as DidString,\n feeds: (Object.keys(feeds) as AtUriString[]).map((uri) => ({\n uri,\n })),\n },\n }\n })\n\n const httpServer = xrpcServer.listen(port)\n await events.once(httpServer, 'listening')\n return new TestFeedGen(port, httpServer, did)\n }\n\n close(): Promise<void> {\n return (this.terminatorPromise ??= this.terminator.terminate())\n }\n\n async [Symbol.asyncDispose]() {\n await this.close()\n }\n}\n\nconst createFgDid = async (\n plcUrl: string,\n port: number,\n): Promise<DidString> => {\n const keypair = await Secp256k1Keypair.create()\n const plcClient = new plc.Client(plcUrl)\n const op = await plc.signOperation(\n {\n type: 'plc_operation',\n verificationMethods: {\n atproto: keypair.did(),\n },\n rotationKeys: [keypair.did()],\n alsoKnownAs: [],\n services: {\n bsky_fg: {\n type: 'BskyFeedGenerator',\n endpoint: `http://localhost:${port}`,\n },\n },\n prev: null,\n },\n keypair,\n )\n const did = await plc.didForCreateOp(op)\n await plcClient.sendOperation(did, op)\n return did as DidString\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAIjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,qBAAa,gBAAgB;IAGlB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,IAAI,CAAC,MAAM;IAH5B,OAAO,CAAC,UAAU,CAA+B;IACjD,YACS,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,IAAI,CAAC,MAAM,EAG3B;IAED,OAAa,KAAK,CAChB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,6BA+BjB;IAEK,KAAK,kBAEV;CACF"}
1
+ {"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAGjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,qBAAa,gBAAgB;IAGlB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,IAAI,CAAC,MAAM;IAH5B,OAAO,CAAC,UAAU,CAAgB;IAClC,YACS,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,IAAI,CAAC,MAAM,EAG3B;IAED,OAAa,KAAK,CAChB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,6BA+BjB;IAEK,KAAK,kBAEV;CACF"}
@@ -1,12 +1,11 @@
1
1
  import events from 'node:events';
2
2
  import express from 'express';
3
- // eslint-disable-next-line import/default
4
- import httpTerminator from 'http-terminator';
3
+ import { createHttpTerminator } from 'http-terminator';
5
4
  export class IntrospectServer {
6
5
  constructor(port, server) {
7
6
  this.port = port;
8
7
  this.server = server;
9
- this.terminator = httpTerminator.createHttpTerminator({ server });
8
+ this.terminator = createHttpTerminator({ server });
10
9
  }
11
10
  static async start(port, plc, pds, bsync, bsky, ozone) {
12
11
  const app = express();
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.js","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM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C,CAAA;QACF,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC/B,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QACtC,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA;IACnC,CAAC;CACF","sourcesContent":["import events from 'node:events'\nimport type http from 'node:http'\nimport express from 'express'\n// eslint-disable-next-line import/default\nimport httpTerminator from 'http-terminator'\nimport type { TestBsky } from './bsky.js'\nimport type { TestBsync } from './bsync.js'\nimport type { TestOzone } from './ozone.js'\nimport type { TestPds } from './pds.js'\nimport type { TestPlc } from './plc.js'\n\nexport class IntrospectServer {\n private terminator: httpTerminator.HttpTerminator\n constructor(\n public port: number,\n public server: http.Server,\n ) {\n this.terminator = httpTerminator.createHttpTerminator({ server })\n }\n\n static async start(\n port: number,\n plc: TestPlc,\n pds: TestPds,\n bsync: TestBsync,\n bsky: TestBsky,\n ozone: TestOzone,\n ) {\n const app = express()\n app.get('/', (_req, res) => {\n res.status(200).send({\n plc: {\n url: plc.url,\n },\n pds: {\n url: pds.url,\n did: pds.ctx.cfg.service.did,\n },\n bsync: {\n url: bsync.url,\n },\n bsky: {\n url: bsky.url,\n did: bsky.ctx.cfg.serverDid,\n },\n ozone: {\n url: ozone.url,\n did: ozone.ctx.cfg.service.did,\n },\n db: {\n url: ozone.ctx.cfg.db.postgresUrl,\n },\n })\n })\n const server = app.listen(port)\n await events.once(server, 'listening')\n return new IntrospectServer(port, server)\n }\n\n async close() {\n await this.terminator.terminate()\n }\n}\n"]}
1
+ {"version":3,"file":"introspect.js","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,OAAO,MAAM,SAAS,CAAA;AAC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;QAC/B,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QACtC,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA;IACnC,CAAC;CACF","sourcesContent":["import events from 'node:events'\nimport type http from 'node:http'\nimport express from 'express'\nimport { type HttpTerminator, createHttpTerminator } from 'http-terminator'\nimport type { TestBsky } from './bsky.js'\nimport type { TestBsync } from './bsync.js'\nimport type { TestOzone } from './ozone.js'\nimport type { TestPds } from './pds.js'\nimport type { TestPlc } from './plc.js'\n\nexport class IntrospectServer {\n private terminator: HttpTerminator\n constructor(\n public port: number,\n public server: http.Server,\n ) {\n this.terminator = createHttpTerminator({ server })\n }\n\n static async start(\n port: number,\n plc: TestPlc,\n pds: TestPds,\n bsync: TestBsync,\n bsky: TestBsky,\n ozone: TestOzone,\n ) {\n const app = express()\n app.get('/', (_req, res) => {\n res.status(200).send({\n plc: {\n url: plc.url,\n },\n pds: {\n url: pds.url,\n did: pds.ctx.cfg.service.did,\n },\n bsync: {\n url: bsync.url,\n },\n bsky: {\n url: bsky.url,\n did: bsky.ctx.cfg.serverDid,\n },\n ozone: {\n url: ozone.url,\n did: ozone.ctx.cfg.service.did,\n },\n db: {\n url: ozone.ctx.cfg.db.postgresUrl,\n },\n })\n })\n const server = app.listen(port)\n await events.once(server, 'listening')\n return new IntrospectServer(port, server)\n }\n\n async close() {\n await this.terminator.terminate()\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import type { SeedClient } from './client.js';
2
- declare const _default: (sc: SeedClient) => Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
3
2
  export default _default;
3
+ declare function _default(sc: SeedClient): Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
4
4
  //# sourceMappingURL=author-feed.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"author-feed.d.ts","sourceRoot":"","sources":["../../src/seed/author-feed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU"}
1
+ {"version":3,"file":"author-feed.d.ts","sourceRoot":"","sources":["../../src/seed/author-feed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { SeedClient } from './client.js';
2
- declare const _default: (sc: SeedClient) => Promise<void>;
3
2
  export default _default;
3
+ declare function _default(sc: SeedClient): Promise<void>;
4
4
  //# sourceMappingURL=follows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"follows.d.ts","sourceRoot":"","sources":["../../src/seed/follows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU"}
1
+ {"version":3,"file":"follows.d.ts","sourceRoot":"","sources":["../../src/seed/follows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { SeedClient } from './client.js';
2
- declare const _default: (sc: SeedClient) => Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
3
2
  export default _default;
3
+ declare function _default(sc: SeedClient): Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
4
4
  //# sourceMappingURL=likes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"likes.d.ts","sourceRoot":"","sources":["../../src/seed/likes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU"}
1
+ {"version":3,"file":"likes.d.ts","sourceRoot":"","sources":["../../src/seed/likes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { SeedClient } from './client.js';
2
- declare const _default: (sc: SeedClient) => Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
3
2
  export default _default;
3
+ declare function _default(sc: SeedClient): Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
4
4
  //# sourceMappingURL=quotes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/seed/quotes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU"}
1
+ {"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/seed/quotes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { SeedClient } from './client.js';
2
- declare const _default: (sc: SeedClient) => Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
3
2
  export default _default;
3
+ declare function _default(sc: SeedClient): Promise<SeedClient<import("../network-no-appview.js").TestNetworkNoAppView>>;
4
4
  //# sourceMappingURL=reposts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reposts.d.ts","sourceRoot":"","sources":["../../src/seed/reposts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU"}
1
+ {"version":3,"file":"reposts.d.ts","sourceRoot":"","sources":["../../src/seed/reposts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { TestNetwork } from '../network.js';
2
2
  import type { SeedClient } from './client.js';
3
- declare const _default: (sc: SeedClient<TestNetwork>) => Promise<SeedClient<TestNetwork>>;
4
3
  export default _default;
4
+ declare function _default(sc: SeedClient<TestNetwork>): Promise<SeedClient<TestNetwork>>;
5
5
  //# sourceMappingURL=verifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../src/seed/verifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;6BAEnB,UAAU,CAAC,WAAW,CAAC"}
1
+ {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../src/seed/verifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;;0BAEvB,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/dev-env",
3
- "version": "0.5.41",
3
+ "version": "0.5.43",
4
4
  "license": "MIT",
5
5
  "description": "Local development environment helper for atproto development",
6
6
  "keywords": [
@@ -40,25 +40,25 @@
40
40
  "multiformats": "^13.0.0",
41
41
  "uint8arrays": "^5.0.0",
42
42
  "undici": "^8.5.0",
43
- "@atproto/api": "^0.20.36",
44
- "@atproto/bsky": "^0.0.269",
45
- "@atproto/bsync": "^0.0.37",
46
- "@atproto/common-web": "^0.5.7",
47
- "@atproto/identity": "^0.5.7",
48
- "@atproto/lexicon": "^0.7.9",
43
+ "@atproto/api": "^0.20.38",
44
+ "@atproto/bsky": "^0.0.271",
45
+ "@atproto/common-web": "^0.5.9",
49
46
  "@atproto/crypto": "^0.5.4",
50
- "@atproto/ozone": "^0.2.23",
51
- "@atproto/sync": "^0.3.15",
52
- "@atproto/lex": "^0.3.2",
53
- "@atproto/xrpc-server": "^0.11.13",
54
- "@atproto/pds": "^0.5.23",
55
- "@atproto/syntax": "^0.7.2"
47
+ "@atproto/bsync": "^0.0.39",
48
+ "@atproto/identity": "^0.5.9",
49
+ "@atproto/lex": "^0.3.4",
50
+ "@atproto/lexicon": "^0.7.11",
51
+ "@atproto/ozone": "^0.2.25",
52
+ "@atproto/pds": "^0.5.25",
53
+ "@atproto/sync": "^0.4.1",
54
+ "@atproto/syntax": "^0.7.4",
55
+ "@atproto/xrpc-server": "^0.12.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/express": "^4.17.13"
59
59
  },
60
60
  "scripts": {
61
- "build": "tsgo --build tsconfig.build.json",
61
+ "build": "tsc --build tsconfig.build.json",
62
62
  "start": "../dev-infra/with-test-redis-and-db.sh node --enable-source-maps dist/bin.js",
63
63
  "dev": "../dev-infra/with-test-redis-and-db.sh node --enable-source-maps --watch dist/bin.js"
64
64
  },
package/src/env.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  // NOTE: this file should be imported first, particularly before `@atproto/common` (for logging), to ensure that environment variables are respected in library code
2
- import dotenv from 'dotenv'
2
+ import { config } from 'dotenv'
3
3
 
4
4
  const env = process.env.ENV
5
5
  if (env) {
6
- dotenv.config({ path: `./.${env}.env` })
6
+ config({ path: `./.${env}.env` })
7
7
  } else {
8
- dotenv.config()
8
+ config()
9
9
  }
package/src/feed-gen.ts CHANGED
@@ -2,15 +2,14 @@ import events from 'node:events'
2
2
  import type http from 'node:http'
3
3
  import * as plc from '@did-plc/lib'
4
4
  import getPort from 'get-port'
5
- // eslint-disable-next-line import/default, import/no-named-as-default-member
6
- import httpTerminator from 'http-terminator'
5
+ import { type HttpTerminator, createHttpTerminator } from 'http-terminator'
7
6
  import { Secp256k1Keypair } from '@atproto/crypto'
8
7
  import { type SkeletonHandler, app } from '@atproto/pds'
9
8
  import type { AtUriString, DidString } from '@atproto/syntax'
10
9
  import { InvalidRequestError, createServer } from '@atproto/xrpc-server'
11
10
 
12
11
  export class TestFeedGen {
13
- private terminator: httpTerminator.HttpTerminator
12
+ private terminator: HttpTerminator
14
13
  private terminatorPromise?: Promise<void>
15
14
 
16
15
  get destroyed() {
@@ -22,7 +21,7 @@ export class TestFeedGen {
22
21
  public server: http.Server,
23
22
  public did: string,
24
23
  ) {
25
- this.terminator = httpTerminator.createHttpTerminator({ server })
24
+ this.terminator = createHttpTerminator({ server })
26
25
  }
27
26
 
28
27
  static async create(
package/src/introspect.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import events from 'node:events'
2
2
  import type http from 'node:http'
3
3
  import express from 'express'
4
- // eslint-disable-next-line import/default
5
- import httpTerminator from 'http-terminator'
4
+ import { type HttpTerminator, createHttpTerminator } from 'http-terminator'
6
5
  import type { TestBsky } from './bsky.js'
7
6
  import type { TestBsync } from './bsync.js'
8
7
  import type { TestOzone } from './ozone.js'
@@ -10,12 +9,12 @@ import type { TestPds } from './pds.js'
10
9
  import type { TestPlc } from './plc.js'
11
10
 
12
11
  export class IntrospectServer {
13
- private terminator: httpTerminator.HttpTerminator
12
+ private terminator: HttpTerminator
14
13
  constructor(
15
14
  public port: number,
16
15
  public server: http.Server,
17
16
  ) {
18
- this.terminator = httpTerminator.createHttpTerminator({ server })
17
+ this.terminator = createHttpTerminator({ server })
19
18
  }
20
19
 
21
20
  static async start(