@ethersphere/bee-js 6.4.0 → 6.4.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.
@@ -47,11 +47,13 @@ export async function rebroadcastTransaction(requestOptions, transactionHash) {
47
47
  * @param gasPrice Optional gas price
48
48
  */
49
49
  export async function cancelTransaction(requestOptions, transactionHash, gasPrice) {
50
+ const headers = {};
51
+ if (gasPrice) {
52
+ headers['gas-price'] = gasPrice;
53
+ }
50
54
  const response = await http(requestOptions, {
51
55
  method: 'delete',
52
- headers: {
53
- 'gas-price': gasPrice
54
- },
56
+ headers,
55
57
  url: `${transactionsEndpoint}/${transactionHash}`,
56
58
  responseType: 'json'
57
59
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-js",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@ethersphere/swarm-cid": "^0.1.0",
62
62
  "@types/readable-stream": "^2.3.13",
63
- "axios": "^1.3.4",
63
+ "axios": "^0.27.2",
64
64
  "cafe-utility": "^10.8.1",
65
65
  "elliptic": "^6.5.4",
66
66
  "fetch-blob": "2.1.2",