@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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.downloadReadable = exports.download = exports.upload = void 0;
4
4
  const bytes_1 = require("../utils/bytes");
5
- const data_1 = require("../utils/data");
6
5
  const headers_1 = require("../utils/headers");
7
6
  const http_1 = require("../utils/http");
8
7
  const type_1 = require("../utils/type");
@@ -20,7 +19,7 @@ async function upload(requestOptions, data, postageBatchId, options) {
20
19
  url: endpoint,
21
20
  method: 'post',
22
21
  responseType: 'json',
23
- data: await (0, data_1.prepareData)(data),
22
+ data,
24
23
  headers: {
25
24
  'content-type': 'application/octet-stream',
26
25
  ...(0, headers_1.extractUploadHeaders)(postageBatchId, options),
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.subscribe = exports.send = void 0;
7
7
  const isomorphic_ws_1 = __importDefault(require("isomorphic-ws"));
8
- const data_1 = require("../utils/data");
9
8
  const headers_1 = require("../utils/headers");
10
9
  const http_1 = require("../utils/http");
11
10
  const endpoint = 'pss';
@@ -24,7 +23,7 @@ async function send(requestOptions, topic, target, data, postageBatchId, recipie
24
23
  await (0, http_1.http)(requestOptions, {
25
24
  method: 'post',
26
25
  url: `${endpoint}/send/${topic}/${target}`,
27
- data: await (0, data_1.prepareData)(data),
26
+ data,
28
27
  responseType: 'json',
29
28
  params: { recipient },
30
29
  headers: (0, headers_1.extractUploadHeaders)(postageBatchId),