@ethersphere/bee-js 6.0.0-pre.1 → 6.0.0-pre.2

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.
@@ -1,5 +1,4 @@
1
1
  import { wrapBytesWithHelpers } from "../utils/bytes.js";
2
- import { prepareData } from "../utils/data.js";
3
2
  import { extractUploadHeaders } from "../utils/headers.js";
4
3
  import { http } from "../utils/http.js";
5
4
  import { makeTagUid } from "../utils/type.js";
@@ -17,7 +16,7 @@ export async function upload(requestOptions, data, postageBatchId, options) {
17
16
  url: endpoint,
18
17
  method: 'post',
19
18
  responseType: 'json',
20
- data: await prepareData(data),
19
+ data,
21
20
  headers: {
22
21
  'content-type': 'application/octet-stream',
23
22
  ...extractUploadHeaders(postageBatchId, options)
@@ -1,5 +1,4 @@
1
1
  import WebSocket from 'isomorphic-ws';
2
- import { prepareData } from "../utils/data.js";
3
2
  import { extractUploadHeaders } from "../utils/headers.js";
4
3
  import { http } from "../utils/http.js";
5
4
  const endpoint = 'pss';
@@ -18,7 +17,7 @@ export async function send(requestOptions, topic, target, data, postageBatchId,
18
17
  await http(requestOptions, {
19
18
  method: 'post',
20
19
  url: `${endpoint}/send/${topic}/${target}`,
21
- data: await prepareData(data),
20
+ data,
22
21
  responseType: 'json',
23
22
  params: {
24
23
  recipient
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-js",
3
- "version": "6.0.0-pre.1",
3
+ "version": "6.0.0-pre.2",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",