@ethersphere/bee-js 2.1.1 → 3.0.0
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/CHANGELOG.md +17 -0
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/src/bee.d.ts +2 -46
- package/dist/src/types/debug.d.ts +2 -0
- package/package.json +5 -3
- package/dist/src/modules/stamps.d.ts +0 -4
package/dist/src/bee.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FeedType } from './feed/type';
|
|
2
2
|
import { EthAddress } from './utils/eth';
|
|
3
|
-
import { AllTagsOptions, Collection,
|
|
4
|
-
import type { Tag, FileData, Reference, UploadOptions, PublicKey, AddressPrefix, PssMessageHandler, PssSubscription, CollectionUploadOptions, FileUploadOptions, Data, Signer, FeedReader, FeedWriter, SOCWriter, SOCReader, Topic, BeeOptions, JsonFeedOptions, AnyJson, Pin,
|
|
3
|
+
import { AllTagsOptions, Collection, Readable, RequestOptions, UploadResult } from './types';
|
|
4
|
+
import type { Tag, FileData, Reference, UploadOptions, PublicKey, AddressPrefix, PssMessageHandler, PssSubscription, CollectionUploadOptions, FileUploadOptions, Data, Signer, FeedReader, FeedWriter, SOCWriter, SOCReader, Topic, BeeOptions, JsonFeedOptions, AnyJson, Pin, BatchId } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* The main component that abstracts operations available on the main Bee API.
|
|
7
7
|
*
|
|
@@ -448,50 +448,6 @@ export declare class Bee {
|
|
|
448
448
|
* @see [Bee docs - Chunk Types](https://docs.ethswarm.org/docs/dapps-on-swarm/chunk-types#single-owner-chunks)
|
|
449
449
|
*/
|
|
450
450
|
makeSOCWriter(signer?: Signer | Uint8Array | string, options?: RequestOptions): SOCWriter;
|
|
451
|
-
/**
|
|
452
|
-
* Creates new postage batch from the funds that the node has available in its Ethereum account.
|
|
453
|
-
*
|
|
454
|
-
* For better understanding what each parameter means and what are the optimal values please see
|
|
455
|
-
* [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive).
|
|
456
|
-
*
|
|
457
|
-
* **WARNING: THIS CREATES TRANSACTIONS THAT SPENDS MONEY**
|
|
458
|
-
* **Warning! Not allowed when node is in Gateway mode!**
|
|
459
|
-
*
|
|
460
|
-
* @param amount Amount that represents the value per chunk, has to be greater or equal zero.
|
|
461
|
-
* @param depth Logarithm of the number of chunks that can be stamped with the batch.
|
|
462
|
-
* @param options Options for creation of postage batch and request options
|
|
463
|
-
* @throws BeeArgumentError when negative amount or depth is specified
|
|
464
|
-
* @throws TypeError if non-integer value is passed to amount or depth
|
|
465
|
-
*
|
|
466
|
-
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)
|
|
467
|
-
* @see [Bee API reference - `POST /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps~1{amount}~1{depth}/post)
|
|
468
|
-
* @deprecated Use DebugBee for postage batch management
|
|
469
|
-
*/
|
|
470
|
-
createPostageBatch(amount: NumberString, depth: number, options?: PostageBatchOptions): Promise<BatchId>;
|
|
471
|
-
/**
|
|
472
|
-
* Return details for specific postage batch.
|
|
473
|
-
*
|
|
474
|
-
* **Warning! Not allowed when node is in Gateway mode!**
|
|
475
|
-
*
|
|
476
|
-
* @param postageBatchId Batch ID
|
|
477
|
-
* @param options Options that affects the request behavior
|
|
478
|
-
*
|
|
479
|
-
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)
|
|
480
|
-
* @see [Bee API reference - `GET /stamps/${id}`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps~1{id}/get)
|
|
481
|
-
* @deprecated Use DebugBee for postage batch management
|
|
482
|
-
*/
|
|
483
|
-
getPostageBatch(postageBatchId: BatchId | string, options?: RequestOptions): Promise<PostageBatch>;
|
|
484
|
-
/**
|
|
485
|
-
* Return all postage batches that has the node available.
|
|
486
|
-
*
|
|
487
|
-
* **Warning! Not allowed when node is in Gateway mode!**
|
|
488
|
-
*
|
|
489
|
-
* @param options Options that affects the request behavior
|
|
490
|
-
* @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)
|
|
491
|
-
* @see [Bee API reference - `GET /stamps`](https://docs.ethswarm.org/api/#tag/Postage-Stamps/paths/~1stamps/get)
|
|
492
|
-
* @deprecated Use DebugBee for postage batch management
|
|
493
|
-
*/
|
|
494
|
-
getAllPostageBatch(options?: RequestOptions): Promise<PostageBatch[]>;
|
|
495
451
|
/**
|
|
496
452
|
* Ping the Bee node to see if there is a live Bee node on the given URL.
|
|
497
453
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethersphere/bee-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Javascript client for Bee",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bee",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"./dist/index.min.js": "./dist/index.browser.min.js",
|
|
28
28
|
"data": "data.browser"
|
|
29
29
|
},
|
|
30
|
-
"files": [
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
31
33
|
"types": "dist/src/index.d.ts",
|
|
32
34
|
"scripts": {
|
|
33
35
|
"prepublishOnly": "rimraf dist && npm run compile:types && npm run compile:browser --env mode=production && npm run compile:node --env mode=production",
|
|
@@ -116,6 +118,6 @@
|
|
|
116
118
|
"engines": {
|
|
117
119
|
"node": ">=12.0.0",
|
|
118
120
|
"npm": ">=6.0.0",
|
|
119
|
-
"bee": "1.
|
|
121
|
+
"bee": "1.4.0-8fa696a8"
|
|
120
122
|
}
|
|
121
123
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BatchId, Ky, NumberString, PostageBatch, PostageBatchOptions } from '../types';
|
|
2
|
-
export declare function getAllPostageBatches(ky: Ky): Promise<PostageBatch[]>;
|
|
3
|
-
export declare function getPostageBatch(ky: Ky, postageBatchId: BatchId): Promise<PostageBatch>;
|
|
4
|
-
export declare function createPostageBatch(ky: Ky, amount: NumberString, depth: number, options?: PostageBatchOptions): Promise<BatchId>;
|