Skip to content

Commit

Permalink
Merge branch 'main' into http-logger-stack-trace
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Oct 23, 2023
2 parents f60e2dc + 995b42e commit 2e4ecf5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/dev-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@atproto/xrpc-server": "workspace:^",
"@did-plc/lib": "^0.0.1",
"@did-plc/server": "^0.0.1",
"axios": "^0.27.2",
"better-sqlite3": "^7.6.2",
"chalk": "^5.0.1",
"dotenv": "^16.0.3",
Expand Down
5 changes: 3 additions & 2 deletions packages/dev-env/src/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import axios from 'axios'
import { IdResolver } from '@atproto/identity'
import { TestPds } from './pds'
import { TestBsky } from './bsky'
Expand Down Expand Up @@ -39,8 +40,8 @@ export const mockResolvers = (idResolver: IdResolver, pds: TestPds) => {

const url = `${pds.url}/.well-known/atproto-did`
try {
const res = await fetch(url, { headers: { host: handle } })
return await res.text()
const res = await axios.get(url, { headers: { host: handle } })
return res.data
} catch (err) {
return undefined
}
Expand Down
2 changes: 2 additions & 0 deletions packages/dev-infra/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ get_container_id() {
exit 1
fi

# first line of jq normalizes for docker compose breaking change, see docker/compose#10958
docker compose -f $compose_file ps --format json --status running \
| jq -sc '.[] | if type=="array" then .[] else . end' | jq -s \
| jq -r '.[]? | select(.Service == "'${service}'") | .ID'
}

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2e4ecf5

Please sign in to comment.