@helia/interface 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/blocks.d.ts +1 -1
- package/package.json +2 -2
- package/src/blocks.ts +1 -1
package/dist/src/blocks.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface BlockRetrievalOptions<ProgressEvents extends ProgressEvent<any,
|
|
|
44
44
|
/**
|
|
45
45
|
* A function that blockBrokers should call prior to returning a block to ensure it can maintain control
|
|
46
46
|
* of the block request flow. e.g. TrustedGatewayBlockBroker will use this to ensure that the block
|
|
47
|
-
* is valid from one of the gateways before assuming
|
|
47
|
+
* is valid from one of the gateways before assuming its work is done. If the block is not valid, it should try another gateway
|
|
48
48
|
* and WILL consider the gateway that returned the invalid blocks completely unreliable.
|
|
49
49
|
*/
|
|
50
50
|
validateFn?(block: Uint8Array): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interface",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "The Helia API",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/interface#readme",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"progress-events": "^1.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"aegir": "^
|
|
82
|
+
"aegir": "^44.0.1"
|
|
83
83
|
},
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
package/src/blocks.ts
CHANGED
|
@@ -84,7 +84,7 @@ export interface BlockRetrievalOptions <ProgressEvents extends ProgressEvent<any
|
|
|
84
84
|
/**
|
|
85
85
|
* A function that blockBrokers should call prior to returning a block to ensure it can maintain control
|
|
86
86
|
* of the block request flow. e.g. TrustedGatewayBlockBroker will use this to ensure that the block
|
|
87
|
-
* is valid from one of the gateways before assuming
|
|
87
|
+
* is valid from one of the gateways before assuming its work is done. If the block is not valid, it should try another gateway
|
|
88
88
|
* and WILL consider the gateway that returned the invalid blocks completely unreliable.
|
|
89
89
|
*/
|
|
90
90
|
validateFn?(block: Uint8Array): Promise<void>
|