Skip to content

Commit

Permalink
deps: bump aegir from 42.2.11 to 44.1.4 (#108)
Browse files Browse the repository at this point in the history
* deps: bump aegir from 42.2.11 to 44.1.4

Bumps [aegir](https://github.com/ipfs/aegir) from 42.2.11 to 44.1.4.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v42.2.11...v44.1.4)

---
updated-dependencies:
- dependency-name: aegir
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: linting errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel N <2color@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and 2color authored Oct 14, 2024
1 parent 91a6473 commit e36fbff
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"docs:no-publish": "aegir docs --publish false"
},
"devDependencies": {
"aegir": "^42.2.11",
"aegir": "^44.1.4",
"npm-run-all": "^4.1.5"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway-conformance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@libp2p/peer-id": "^4.1.2",
"@multiformats/dns": "^1.0.6",
"@sgtpooki/file-type": "^1.0.1",
"aegir": "^42.2.11",
"aegir": "^44.1.4",
"blockstore-core": "^4.4.1",
"datastore-core": "^9.2.9",
"execa": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway-conformance/src/fixtures/basic-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export async function startVerifiedFetchGateway ({ kuboGateway, serverPort, IPFS
log('Closed all connections')
server.close((err: any) => {
if (err != null) {
reject(err)
reject(err instanceof Error ? err : new Error(err))
} else {
resolve()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@helia/verified-fetch": "1.5.0",
"aegir": "^42.2.11",
"aegir": "^44.1.4",
"execa": "^9.1.0",
"fast-glob": "^3.3.2",
"ipfsd-ctl": "^14.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/verified-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@libp2p/logger": "^5.1.1",
"@sgtpooki/file-type": "^1.0.1",
"@types/sinon": "^17.0.3",
"aegir": "^42.2.11",
"aegir": "^44.1.4",
"blockstore-core": "^5.0.2",
"browser-readablestream-to-it": "^2.0.7",
"datastore-core": "^10.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/verified-fetch/src/utils/select-output-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function parseQFactor (str?: string): number {
str = str.trim()
}

if (str == null || !str.startsWith('q=')) {
if (str?.startsWith('q=') !== true) {
return 1
}

Expand Down
6 changes: 3 additions & 3 deletions packages/verified-fetch/test/utils/handle-redirects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('handle-redirects', () => {
it('should return redirect response to requested host with trailing slash when HEAD fetch fails', async () => {
const resource = 'http://ipfs.io/ipfs/bafkqabtimvwgy3yk'
const options = { headers: new Headers({ 'x-forwarded-host': 'localhost:3931' }) }
fetchStub.returns(Promise.reject(new Response(null, { status: 404 })))
fetchStub.returns(new Response(null, { status: 404 }))

const response = await getRedirectResponse({ resource, options, logger, cid, fetch: fetchStub })
expect(fetchStub.calledOnce).to.be.true()
Expand All @@ -64,7 +64,7 @@ describe('handle-redirects', () => {
it('should not return redirect response to x-forwarded-host if HEAD fetch fails', async () => {
const resource = 'http://ipfs.io/ipfs/bafkqabtimvwgy3yk/file.txt'
const options = { headers: new Headers({ 'x-forwarded-host': 'localhost:3931' }) }
fetchStub.returns(Promise.reject(new Response(null, { status: 404 })))
fetchStub.returns(new Response(null, { status: 404 }))

const response = await getRedirectResponse({ resource, options, logger, cid, fetch: fetchStub })
expect(fetchStub.calledOnce).to.be.true()
Expand All @@ -74,7 +74,7 @@ describe('handle-redirects', () => {
it('should not return redirect response to x-forwarded-host when HEAD fetch fails and trailing slash already exists', async () => {
const resource = 'http://ipfs.io/ipfs/bafkqabtimvwgy3yk/'
const options = { headers: new Headers({ 'x-forwarded-host': 'localhost:3931' }) }
fetchStub.returns(Promise.reject(new Response(null, { status: 404 })))
fetchStub.returns(new Response(null, { status: 404 }))

const response = await getRedirectResponse({ resource, options, logger, cid, fetch: fetchStub })
expect(fetchStub.calledOnce).to.be.true()
Expand Down

0 comments on commit e36fbff

Please sign in to comment.