Skip to content

Commit

Permalink
deps(dev): bump aegir from 43.0.3 to 45.0.0 (#33)
Browse files Browse the repository at this point in the history
Bumps [aegir](https://github.com/ipfs/aegir) from 43.0.3 to 45.0.0.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v43.0.3...v45.0.0)

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain authored Oct 29, 2024
1 parent ee6f878 commit 8216a10
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-http-fetch.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-http-fetch)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-http-fetch/main.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-http-fetch/actions/workflows/main.yml?query=branch%3Amain)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-http-fetch/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-http-fetch/actions/workflows/js-test-and-release.yml?query=branch%3Amain)

> Implementation of the WHATWG Fetch API on libp2p streams
Expand Down Expand Up @@ -68,7 +68,7 @@ $ npm i @libp2p/http-fetch

## Browser `<script>` tag

Loading this module through a script tag will make it's exports available as `Libp2pHttpFetch` in the global namespace.
Loading this module through a script tag will make its exports available as `Libp2pHttpFetch` in the global namespace.

```html
<script src="https://unpkg.com/@libp2p/http-fetch/dist/index.min.js"></script>
Expand Down
28 changes: 22 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
},
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
Expand All @@ -29,14 +45,14 @@
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./ping.js": {
"types": "./dist/src/ping.d.ts",
"import": "./dist/src/ping.js"
},
"./auth.js": {
"types": "./dist/src/auth/auth.d.ts",
"import": "./dist/src/auth/auth.js"
},
"./ping.js": {
"types": "./dist/src/ping.d.ts",
"import": "./dist/src/ping.js"
},
"./well-known-handler.js": {
"types": "./dist/src/well-known-handler.d.ts",
"import": "./dist/src/well-known-handler.js"
Expand Down Expand Up @@ -151,9 +167,9 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/crypto": "^4.1.2",
"@libp2p/interface": "^1.2.0",
"@libp2p/interface-internal": "^1.1.0",
"@libp2p/crypto": "^4.1.2",
"@libp2p/peer-id": "^4.1.3",
"@multiformats/multiaddr": "^12.3.0",
"@multiformats/multiaddr-to-uri": "^10.1.0",
Expand All @@ -167,7 +183,7 @@
"@libp2p/interface-compliance-tests": "^5.4.1",
"@libp2p/logger": "^4.0.10",
"@libp2p/peer-id-factory": "^4.1.2",
"aegir": "^43.0.1",
"aegir": "^45.0.0",
"it-pair": "^2.0.6",
"libp2p": "^1.6.0",
"sinon-ts": "^2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/common.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as varint from 'uint8-varint'
import type { PrivateKey, PublicKey } from '@libp2p/interface'

export const PeerIDAuthScheme = 'libp2p-PeerID' as const
export const HTTPPeerIDAuthProto = '/http-peer-id-auth/1.0.0' as const
export const PeerIDAuthScheme = 'libp2p-PeerID'
export const HTTPPeerIDAuthProto = '/http-peer-id-auth/1.0.0'

export async function sign (key: PrivateKey, prefix: string, partsToSign: Array<[string, string | Uint8Array]>): Promise<Uint8Array> {
const dataToSign = genDataToSign(prefix, partsToSign)
Expand Down
5 changes: 4 additions & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"entryPoints": [
"./src/index.ts"
"./src/index.ts",
"./src/auth/auth.ts",
"./src/ping.ts",
"./src/well-known-handler.ts"
]
}

0 comments on commit 8216a10

Please sign in to comment.