@libp2p/interface
Advanced tools
Comparing version
@@ -51,2 +51,12 @@ /** | ||
} | ||
export interface TLSCertificate { | ||
/** | ||
* The private key that corresponds to the certificate in PEM format | ||
*/ | ||
key: string; | ||
/** | ||
* The certificate chain in PEM format | ||
*/ | ||
cert: string; | ||
} | ||
/** | ||
@@ -244,2 +254,11 @@ * Data returned from a successful identify response | ||
/** | ||
* This event notifies listeners that a TLS certificate is available for use | ||
*/ | ||
'certificate:provision': CustomEvent<TLSCertificate>; | ||
/** | ||
* This event notifies listeners that a new TLS certificate is available for | ||
* use. Any previous certificate may no longer be valid. | ||
*/ | ||
'certificate:renew': CustomEvent<TLSCertificate>; | ||
/** | ||
* This event notifies listeners that the node has started | ||
@@ -246,0 +265,0 @@ * |
{ | ||
"name": "@libp2p/interface", | ||
"version": "2.2.1-f53f65d18", | ||
"version": "2.2.1-f8da60e73", | ||
"description": "The interface implemented by a libp2p node", | ||
@@ -51,11 +51,11 @@ "license": "Apache-2.0 OR MIT", | ||
"dependencies": { | ||
"@multiformats/multiaddr": "^12.2.3", | ||
"@multiformats/multiaddr": "^12.3.3", | ||
"it-pushable": "^3.2.3", | ||
"it-stream-types": "^2.0.1", | ||
"multiformats": "^13.1.0", | ||
"progress-events": "^1.0.0", | ||
"it-stream-types": "^2.0.2", | ||
"multiformats": "^13.3.1", | ||
"progress-events": "^1.0.1", | ||
"uint8arraylist": "^2.4.8" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^44.0.1" | ||
"aegir": "^45.0.5" | ||
}, | ||
@@ -62,0 +62,0 @@ "browser": { |
@@ -56,2 +56,14 @@ /** | ||
export interface TLSCertificate { | ||
/** | ||
* The private key that corresponds to the certificate in PEM format | ||
*/ | ||
key: string | ||
/** | ||
* The certificate chain in PEM format | ||
*/ | ||
cert: string | ||
} | ||
/** | ||
@@ -272,2 +284,13 @@ * Data returned from a successful identify response | ||
/** | ||
* This event notifies listeners that a TLS certificate is available for use | ||
*/ | ||
'certificate:provision': CustomEvent<TLSCertificate> | ||
/** | ||
* This event notifies listeners that a new TLS certificate is available for | ||
* use. Any previous certificate may no longer be valid. | ||
*/ | ||
'certificate:renew': CustomEvent<TLSCertificate> | ||
/** | ||
* This event notifies listeners that the node has started | ||
@@ -274,0 +297,0 @@ * |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
303208
0.39%0
-100%100
25%7505
0.51%123
-0.81%Updated
Updated
Updated