@ethersphere/bee-js 3.3.0 → 3.3.2-pre.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.
Files changed (91) hide show
  1. package/dist/cjs/chunk/bmt.js +7 -2
  2. package/dist/cjs/chunk/signer.js +9 -4
  3. package/dist/cjs/modules/debug/status.js +8 -8
  4. package/dist/cjs/package.json +1 -0
  5. package/dist/cjs/types/debug.js +1 -0
  6. package/dist/cjs/types/ky-options.js +8 -0
  7. package/dist/cjs/types/ky-universal/common.js +8 -0
  8. package/dist/cjs/types/ky-universal/hooks.js +8 -0
  9. package/dist/cjs/types/ky-universal/retry.js +8 -0
  10. package/dist/cjs/utils/eth.js +8 -3
  11. package/dist/cjs/utils/hash.js +7 -2
  12. package/dist/cjs/utils/stream.js +14 -5
  13. package/dist/index.browser.min.js +3 -0
  14. package/dist/index.browser.min.js.LICENSE.txt +60 -0
  15. package/dist/index.browser.min.js.map +1 -0
  16. package/dist/mjs/bee-debug.js +608 -508
  17. package/dist/mjs/bee.js +935 -836
  18. package/dist/mjs/chunk/bmt.js +34 -24
  19. package/dist/mjs/chunk/cac.js +24 -22
  20. package/dist/mjs/chunk/serialize.js +9 -9
  21. package/dist/mjs/chunk/signer.js +92 -73
  22. package/dist/mjs/chunk/soc.js +78 -66
  23. package/dist/mjs/chunk/span.js +19 -16
  24. package/dist/mjs/feed/index.js +110 -101
  25. package/dist/mjs/feed/json.js +21 -17
  26. package/dist/mjs/feed/topic.js +18 -17
  27. package/dist/mjs/feed/type.js +5 -5
  28. package/dist/mjs/index.js +7 -7
  29. package/dist/mjs/modules/bytes.js +33 -30
  30. package/dist/mjs/modules/bzz.js +80 -77
  31. package/dist/mjs/modules/chunk.js +22 -20
  32. package/dist/mjs/modules/debug/balance.js +26 -22
  33. package/dist/mjs/modules/debug/chequebook.js +84 -65
  34. package/dist/mjs/modules/debug/chunk.js +15 -13
  35. package/dist/mjs/modules/debug/connectivity.js +34 -34
  36. package/dist/mjs/modules/debug/settlements.js +14 -12
  37. package/dist/mjs/modules/debug/stamps.js +52 -47
  38. package/dist/mjs/modules/debug/states.js +16 -14
  39. package/dist/mjs/modules/debug/status.js +58 -38
  40. package/dist/mjs/modules/debug/tag.js +8 -7
  41. package/dist/mjs/modules/debug/transactions.js +31 -25
  42. package/dist/mjs/modules/feed.js +39 -33
  43. package/dist/mjs/modules/pinning.js +34 -28
  44. package/dist/mjs/modules/pss.js +18 -14
  45. package/dist/mjs/modules/soc.js +18 -15
  46. package/dist/mjs/modules/status.js +6 -5
  47. package/dist/mjs/modules/stewardship.js +13 -12
  48. package/dist/mjs/modules/tag.js +38 -30
  49. package/dist/mjs/package.json +1 -0
  50. package/dist/mjs/types/debug.js +6 -4
  51. package/dist/mjs/types/index.js +6 -2
  52. package/dist/mjs/types/ky-options.js +7 -0
  53. package/dist/mjs/types/ky-universal/common.js +7 -0
  54. package/dist/mjs/types/ky-universal/hooks.js +7 -0
  55. package/dist/mjs/types/ky-universal/retry.js +7 -0
  56. package/dist/mjs/utils/bytes.js +32 -26
  57. package/dist/mjs/utils/collection.browser.js +4 -3
  58. package/dist/mjs/utils/collection.js +47 -35
  59. package/dist/mjs/utils/collection.node.js +53 -42
  60. package/dist/mjs/utils/data.browser.js +64 -48
  61. package/dist/mjs/utils/data.js +29 -25
  62. package/dist/mjs/utils/error.js +47 -39
  63. package/dist/mjs/utils/eth.js +119 -104
  64. package/dist/mjs/utils/expose.js +9 -9
  65. package/dist/mjs/utils/file.js +22 -19
  66. package/dist/mjs/utils/hash.js +10 -5
  67. package/dist/mjs/utils/headers.js +43 -39
  68. package/dist/mjs/utils/hex.js +78 -63
  69. package/dist/mjs/utils/http.js +119 -100
  70. package/dist/mjs/utils/merge.js +26 -20
  71. package/dist/mjs/utils/pss.js +8 -6
  72. package/dist/mjs/utils/stamps.js +7 -3
  73. package/dist/mjs/utils/stream.js +107 -82
  74. package/dist/mjs/utils/tar.js +17 -14
  75. package/dist/mjs/utils/type.js +249 -209
  76. package/dist/mjs/utils/uint64.js +16 -16
  77. package/dist/mjs/utils/url.js +32 -25
  78. package/dist/types/bee-debug.d.ts +3 -3
  79. package/dist/types/modules/debug/stamps.d.ts +3 -3
  80. package/dist/types/modules/debug/status.d.ts +3 -3
  81. package/dist/types/types/debug.d.ts +1 -0
  82. package/dist/types/types/index.d.ts +2 -2
  83. package/dist/types/types/ky-options.d.ts +221 -0
  84. package/dist/types/types/ky-universal/common.d.ts +13 -0
  85. package/dist/types/types/ky-universal/hooks.d.ts +92 -0
  86. package/dist/types/types/ky-universal/retry.d.ts +38 -0
  87. package/dist/types/utils/stamps.d.ts +2 -2
  88. package/dist/types/utils/stream.d.ts +11 -8
  89. package/package.json +22 -19
  90. package/dist/index.js +0 -28326
  91. package/dist/index.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ /*! MIT License © Sindre Sorhus */
2
+
3
+ /**
4
+ * @license
5
+ * web-streams-polyfill v4.0.0-beta.1
6
+ * Copyright 2021 Mattias Buelens, Diwank Singh Tomer and other contributors.
7
+ * This code is released under the MIT license.
8
+ * SPDX-License-Identifier: MIT
9
+ */
10
+
11
+ /**
12
+ * Function that converts Node's Readable into WHATWG ReadableStream
13
+ *
14
+ * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js
15
+ * Because it uses forked web-streams-polyfill that are outdated.
16
+ *
17
+ * @author https://github.com/gwicke
18
+ * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE
19
+ * @param nodeStream
20
+ */
21
+
22
+ /**
23
+ * Function that converts WHATWG ReadableStream into Node's Readable
24
+ *
25
+ * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js
26
+ * Because it uses forked web-streams-polyfill that is outdated.
27
+ *
28
+ * **Warning!**
29
+ * If you want to use this function in browser you have to polyfill `stream` package with your bundler.
30
+ *
31
+ * @author https://github.com/gwicke
32
+ * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE
33
+ * @param webStream
34
+ * @param options
35
+ */
36
+
37
+ /**
38
+ * Function that deep merges objects
39
+ *
40
+ * @copyright https://github.com/sindresorhus/ky/blob/b3c9e88fa49d50150dbb6e6b771b4af56cb40c98/source/utils/merge.ts
41
+ * @licence MIT
42
+ * @param sources
43
+ */
44
+
45
+ /**
46
+ * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js
47
+ * Because it uses forked web-streams-polyfill that are outdated.
48
+ *
49
+ * @author https://github.com/gwicke
50
+ * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE
51
+ */
52
+
53
+ /**
54
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
55
+ *
56
+ * @version 0.8.0
57
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
58
+ * @copyright Chen, Yi-Cyuan 2015-2018
59
+ * @license MIT
60
+ */