@libp2p/auto-tls
Advanced tools
Comparing version 1.0.5 to 1.0.6-21088c519
@@ -64,2 +64,3 @@ import { ClientAuth } from '@libp2p/http-fetch/auth'; | ||
this.email = `${base36EncodedPeer}@${this.forgeDomain}`; | ||
acme.axios.defaults.headers.common['User-Agent'] = this.components.nodeInfo.userAgent; | ||
this.domainMapper = new DomainMapper(components, { | ||
@@ -275,3 +276,4 @@ ...init, | ||
headers: { | ||
'Content-Type': 'application/json' | ||
'Content-Type': 'application/json', | ||
'User-Agent': this.components.nodeInfo.userAgent | ||
}, | ||
@@ -278,0 +280,0 @@ body: JSON.stringify({ |
@@ -58,6 +58,6 @@ /** | ||
* // includes public WSS address: | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws ] | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws' ] | ||
* ``` | ||
*/ | ||
import type { PeerId, PrivateKey, ComponentLogger, Libp2pEvents, TypedEventTarget, TLSCertificate } from '@libp2p/interface'; | ||
import type { PeerId, PrivateKey, ComponentLogger, Libp2pEvents, TypedEventTarget, TLSCertificate, NodeInfo } from '@libp2p/interface'; | ||
import type { AddressManager } from '@libp2p/interface-internal'; | ||
@@ -74,2 +74,3 @@ import type { Keychain } from '@libp2p/keychain'; | ||
datastore: Datastore; | ||
nodeInfo: NodeInfo; | ||
} | ||
@@ -170,2 +171,9 @@ export interface AutoTLSInit { | ||
autoConfirmAddress?: boolean; | ||
/** | ||
* The User-Agent header sent during HTTP requests | ||
* | ||
* @default "js-libp2p/${version} node/${version}" | ||
* @deprecated Use `nodeInfo.userAgent` in the main libp2p config instead | ||
*/ | ||
userAgent?: string; | ||
} | ||
@@ -172,0 +180,0 @@ export interface AutoTLS { |
@@ -58,3 +58,3 @@ /** | ||
* // includes public WSS address: | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws ] | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws' ] | ||
* ``` | ||
@@ -61,0 +61,0 @@ */ |
{ | ||
"name": "@libp2p/auto-tls", | ||
"version": "1.0.5", | ||
"version": "1.0.6-21088c519", | ||
"description": "Automatically acquire a <peerId>.libp2p.direct TLS certificate", | ||
@@ -50,8 +50,8 @@ "license": "Apache-2.0 OR MIT", | ||
"@chainsafe/is-ip": "^2.0.2", | ||
"@libp2p/crypto": "^5.0.10", | ||
"@libp2p/crypto": "5.0.10-21088c519", | ||
"@libp2p/http-fetch": "^2.1.0", | ||
"@libp2p/interface": "^2.4.1", | ||
"@libp2p/interface-internal": "^2.2.3", | ||
"@libp2p/keychain": "^5.0.13", | ||
"@libp2p/utils": "^6.4.0", | ||
"@libp2p/interface": "2.4.1-21088c519", | ||
"@libp2p/interface-internal": "2.2.4-21088c519", | ||
"@libp2p/keychain": "5.0.13-21088c519", | ||
"@libp2p/utils": "6.5.0-21088c519", | ||
"@multiformats/multiaddr": "^12.3.3", | ||
@@ -68,4 +68,4 @@ "@multiformats/multiaddr-matcher": "^1.6.0", | ||
"devDependencies": { | ||
"@libp2p/logger": "^5.1.7", | ||
"@libp2p/peer-id": "^5.0.11", | ||
"@libp2p/logger": "5.1.7-21088c519", | ||
"@libp2p/peer-id": "5.0.11-21088c519", | ||
"aegir": "^45.0.5", | ||
@@ -72,0 +72,0 @@ "datastore-core": "^10.0.2", |
@@ -81,3 +81,3 @@ # @libp2p/auto-tls | ||
// includes public WSS address: | ||
// [ '/ip4/123.123.123.123/tcp/12345/tls/ws ] | ||
// [ '/ip4/123.123.123.123/tcp/12345/tls/ws' ] | ||
``` | ||
@@ -84,0 +84,0 @@ |
@@ -80,2 +80,3 @@ import { ClientAuth } from '@libp2p/http-fetch/auth' | ||
this.email = `${base36EncodedPeer}@${this.forgeDomain}` | ||
acme.axios.defaults.headers.common['User-Agent'] = this.components.nodeInfo.userAgent | ||
@@ -344,3 +345,4 @@ this.domainMapper = new DomainMapper(components, { | ||
headers: { | ||
'Content-Type': 'application/json' | ||
'Content-Type': 'application/json', | ||
'User-Agent': this.components.nodeInfo.userAgent | ||
}, | ||
@@ -347,0 +349,0 @@ body: JSON.stringify({ |
@@ -58,3 +58,3 @@ /** | ||
* // includes public WSS address: | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws ] | ||
* // [ '/ip4/123.123.123.123/tcp/12345/tls/ws' ] | ||
* ``` | ||
@@ -64,3 +64,3 @@ */ | ||
import { AutoTLS as AutoTLSClass } from './auto-tls.js' | ||
import type { PeerId, PrivateKey, ComponentLogger, Libp2pEvents, TypedEventTarget, TLSCertificate } from '@libp2p/interface' | ||
import type { PeerId, PrivateKey, ComponentLogger, Libp2pEvents, TypedEventTarget, TLSCertificate, NodeInfo } from '@libp2p/interface' | ||
import type { AddressManager } from '@libp2p/interface-internal' | ||
@@ -78,2 +78,3 @@ import type { Keychain } from '@libp2p/keychain' | ||
datastore: Datastore | ||
nodeInfo: NodeInfo | ||
} | ||
@@ -187,2 +188,10 @@ | ||
autoConfirmAddress?: boolean | ||
/** | ||
* The User-Agent header sent during HTTP requests | ||
* | ||
* @default "js-libp2p/${version} node/${version}" | ||
* @deprecated Use `nodeInfo.userAgent` in the main libp2p config instead | ||
*/ | ||
userAgent?: string | ||
} | ||
@@ -189,0 +198,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
98312
1702
37
1
+ Added@libp2p/crypto@5.0.10-21088c519(transitive)
+ Added@libp2p/interface@2.4.1-21088c519(transitive)
+ Added@libp2p/interface-internal@2.2.4-21088c519(transitive)
+ Added@libp2p/keychain@5.0.13-21088c519(transitive)
+ Added@libp2p/logger@5.1.7-21088c519(transitive)
+ Added@libp2p/peer-collections@6.0.16-21088c519(transitive)
+ Added@libp2p/peer-id@5.0.11-21088c519(transitive)
+ Added@libp2p/utils@6.5.0-21088c519(transitive)
- Removed@libp2p/keychain@5.0.14(transitive)