@ethersphere/bee-js 9.2.0 → 9.2.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/README.md +3 -0
- package/dist/cjs/bee.js +18 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/mjs/bee.js +18 -1
- package/dist/types/bee.d.ts +13 -0
- package/package.json +1 -1
package/dist/mjs/bee.js
CHANGED
|
@@ -1276,14 +1276,31 @@ export class Bee {
|
|
|
1276
1276
|
*
|
|
1277
1277
|
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/develop/access-the-swarm/introduction/#keep-your-data-alive)
|
|
1278
1278
|
* @see [Bee Debug API reference - `GET /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps/get)
|
|
1279
|
+
* @deprecated Use `getPostageBatches` instead
|
|
1279
1280
|
*/
|
|
1280
1281
|
async getAllPostageBatch(options) {
|
|
1281
|
-
return stamps.getAllPostageBatches(this.getRequestOptionsForCall(options));
|
|
1282
|
+
return stamps.getAllPostageBatches(this.getRequestOptionsForCall(options)); // TODO: remove in June 2025
|
|
1282
1283
|
}
|
|
1283
1284
|
/**
|
|
1284
1285
|
* Return all globally available postage batches.
|
|
1286
|
+
* @deprecated Use `getGlobalPostageBatches` instead
|
|
1285
1287
|
*/
|
|
1286
1288
|
async getAllGlobalPostageBatch(options) {
|
|
1289
|
+
return stamps.getGlobalPostageBatches(this.getRequestOptionsForCall(options)); // TODO: remove in June 2025
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Return all postage batches that belong to the node.
|
|
1293
|
+
*
|
|
1294
|
+
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/develop/access-the-swarm/introduction/#keep-your-data-alive)
|
|
1295
|
+
* @see [Bee Debug API reference - `GET /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps/get)
|
|
1296
|
+
*/
|
|
1297
|
+
async getPostageBatches(options) {
|
|
1298
|
+
return stamps.getAllPostageBatches(this.getRequestOptionsForCall(options));
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Return all globally available postage batches.
|
|
1302
|
+
*/
|
|
1303
|
+
async getGlobalPostageBatches(options) {
|
|
1287
1304
|
return stamps.getGlobalPostageBatches(this.getRequestOptionsForCall(options));
|
|
1288
1305
|
}
|
|
1289
1306
|
/**
|
package/dist/types/bee.d.ts
CHANGED
|
@@ -713,12 +713,25 @@ export declare class Bee {
|
|
|
713
713
|
*
|
|
714
714
|
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/develop/access-the-swarm/introduction/#keep-your-data-alive)
|
|
715
715
|
* @see [Bee Debug API reference - `GET /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps/get)
|
|
716
|
+
* @deprecated Use `getPostageBatches` instead
|
|
716
717
|
*/
|
|
717
718
|
getAllPostageBatch(options?: BeeRequestOptions): Promise<PostageBatch[]>;
|
|
718
719
|
/**
|
|
719
720
|
* Return all globally available postage batches.
|
|
721
|
+
* @deprecated Use `getGlobalPostageBatches` instead
|
|
720
722
|
*/
|
|
721
723
|
getAllGlobalPostageBatch(options?: BeeRequestOptions): Promise<GlobalPostageBatch[]>;
|
|
724
|
+
/**
|
|
725
|
+
* Return all postage batches that belong to the node.
|
|
726
|
+
*
|
|
727
|
+
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/develop/access-the-swarm/introduction/#keep-your-data-alive)
|
|
728
|
+
* @see [Bee Debug API reference - `GET /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps/get)
|
|
729
|
+
*/
|
|
730
|
+
getPostageBatches(options?: BeeRequestOptions): Promise<PostageBatch[]>;
|
|
731
|
+
/**
|
|
732
|
+
* Return all globally available postage batches.
|
|
733
|
+
*/
|
|
734
|
+
getGlobalPostageBatches(options?: BeeRequestOptions): Promise<GlobalPostageBatch[]>;
|
|
722
735
|
/**
|
|
723
736
|
* Return lists of all current pending transactions that the Bee made
|
|
724
737
|
*/
|