@leofcoin/peernet 0.14.15 → 0.14.17

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,7 +1,7 @@
1
1
  "use strict";
2
2
  (self["webpackChunk_leofcoin_peernet"] = self["webpackChunk_leofcoin_peernet"] || []).push([[228],{
3
3
 
4
- /***/ 9347:
4
+ /***/ 347:
5
5
  /***/ (function(__unused_webpack_module, exports) {
6
6
 
7
7
 
@@ -28,7 +28,7 @@ function _interopNamespace(e) {
28
28
  var PubSub__default = /*#__PURE__*/_interopDefaultLegacy(PubSub);
29
29
  var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
30
30
 
31
- const BufferToUint8Array = () => {
31
+ const BufferToUint8Array = data => {
32
32
  if (data.type === 'Buffer') {
33
33
  data = new Uint8Array(data.data);
34
34
  }
@@ -360,7 +360,7 @@ var codecs = {
360
360
  },
361
361
  // chat message
362
362
  'chat-message': {
363
- codec: parseInt('636d', 16),
363
+ codec: parseInt('70636d', 16),
364
364
  hashAlg: 'dbl-keccak-256',
365
365
  },
366
366
  'peernet-file' : {
@@ -26,7 +26,7 @@ function _interopNamespace(e) {
26
26
 
27
27
  var PubSub__default = /*#__PURE__*/_interopDefaultLegacy(PubSub);
28
28
 
29
- const BufferToUint8Array = () => {
29
+ const BufferToUint8Array = data => {
30
30
  if (data.type === 'Buffer') {
31
31
  data = new Uint8Array(data.data);
32
32
  }
@@ -358,7 +358,7 @@ var codecs = {
358
358
  },
359
359
  // chat message
360
360
  'chat-message': {
361
- codec: parseInt('636d', 16),
361
+ codec: parseInt('70636d', 16),
362
362
  hashAlg: 'dbl-keccak-256',
363
363
  },
364
364
  'peernet-file' : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.14.15",
3
+ "version": "0.14.17",
4
4
  "description": "",
5
5
  "source": "src/peernet.js",
6
6
  "main": "dist/commonjs/peernet.js",
@@ -2,7 +2,7 @@ import fetch from 'node-fetch'
2
2
 
3
3
  import { Codec } from '@leofcoin/codec-format-interface'
4
4
 
5
- export const BufferToUint8Array = () => {
5
+ export const BufferToUint8Array = data => {
6
6
  if (data.type === 'Buffer') {
7
7
  data = new Uint8Array(data.data)
8
8
  }