saito-wasm 0.0.17 → 0.0.18

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.
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.0.12"
3
+ version = "0.0.18"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
package/pkg/node/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ab5a63a608170761/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-e4fc46f5034ac0a9/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -1481,25 +1481,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
1481
1481
  return ret;
1482
1482
  };
1483
1483
 
1484
- module.exports.__wbg_sendmessage_2a7cb3960340003f = function(arg0, arg1) {
1484
+ module.exports.__wbg_sendmessage_bc28ea49c82675ac = function(arg0, arg1) {
1485
1485
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
1486
1486
  };
1487
1487
 
1488
- module.exports.__wbg_sendmessagetoall_8e1963596d87a6c9 = function(arg0, arg1) {
1488
+ module.exports.__wbg_sendmessagetoall_5128186d0c6f7c44 = function(arg0, arg1) {
1489
1489
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
1490
1490
  };
1491
1491
 
1492
- module.exports.__wbg_connecttopeer_5f7b55d0b33d8945 = function() { return handleError(function (arg0) {
1492
+ module.exports.__wbg_connecttopeer_a5b7c0c1f322b314 = function() { return handleError(function (arg0) {
1493
1493
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
1494
1494
  return addHeapObject(ret);
1495
1495
  }, arguments) };
1496
1496
 
1497
- module.exports.__wbg_disconnectfrompeer_c4b18addc554f556 = function() { return handleError(function (arg0) {
1497
+ module.exports.__wbg_disconnectfrompeer_39f334f2d1f5df45 = function() { return handleError(function (arg0) {
1498
1498
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
1499
1499
  return addHeapObject(ret);
1500
1500
  }, arguments) };
1501
1501
 
1502
- module.exports.__wbg_fetchblockfrompeer_8c17ad7ddc49409a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1502
+ module.exports.__wbg_fetchblockfrompeer_5f8e079c86059e52 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1503
1503
  let deferred0_0;
1504
1504
  let deferred0_1;
1505
1505
  try {
@@ -1512,7 +1512,7 @@ module.exports.__wbg_fetchblockfrompeer_8c17ad7ddc49409a = function() { return h
1512
1512
  }
1513
1513
  }, arguments) };
1514
1514
 
1515
- module.exports.__wbg_writevalue_9e55c94b97509b8e = function(arg0, arg1, arg2) {
1515
+ module.exports.__wbg_writevalue_e5fefa0841689686 = function(arg0, arg1, arg2) {
1516
1516
  let deferred0_0;
1517
1517
  let deferred0_1;
1518
1518
  try {
@@ -1524,7 +1524,7 @@ module.exports.__wbg_writevalue_9e55c94b97509b8e = function(arg0, arg1, arg2) {
1524
1524
  }
1525
1525
  };
1526
1526
 
1527
- module.exports.__wbg_readvalue_0c81f78742bebea0 = function() { return handleError(function (arg0, arg1) {
1527
+ module.exports.__wbg_readvalue_cb7c63f12e2fcfc1 = function() { return handleError(function (arg0, arg1) {
1528
1528
  let deferred0_0;
1529
1529
  let deferred0_1;
1530
1530
  try {
@@ -1537,12 +1537,12 @@ module.exports.__wbg_readvalue_0c81f78742bebea0 = function() { return handleErro
1537
1537
  }
1538
1538
  }, arguments) };
1539
1539
 
1540
- module.exports.__wbg_loadblockfilelist_9accca826df805e3 = function() { return handleError(function () {
1540
+ module.exports.__wbg_loadblockfilelist_08aaeaaa82b17463 = function() { return handleError(function () {
1541
1541
  const ret = MsgHandler.load_block_file_list();
1542
1542
  return addHeapObject(ret);
1543
1543
  }, arguments) };
1544
1544
 
1545
- module.exports.__wbg_isexistingfile_60346c5e9a043ff5 = function() { return handleError(function (arg0, arg1) {
1545
+ module.exports.__wbg_isexistingfile_f833bbf4f449c4e7 = function() { return handleError(function (arg0, arg1) {
1546
1546
  let deferred0_0;
1547
1547
  let deferred0_1;
1548
1548
  try {
@@ -1555,7 +1555,7 @@ module.exports.__wbg_isexistingfile_60346c5e9a043ff5 = function() { return handl
1555
1555
  }
1556
1556
  }, arguments) };
1557
1557
 
1558
- module.exports.__wbg_removevalue_cc0b7e61fa1e8819 = function() { return handleError(function (arg0, arg1) {
1558
+ module.exports.__wbg_removevalue_c4ab7b83f813a171 = function() { return handleError(function (arg0, arg1) {
1559
1559
  let deferred0_0;
1560
1560
  let deferred0_1;
1561
1561
  try {
@@ -1568,19 +1568,19 @@ module.exports.__wbg_removevalue_cc0b7e61fa1e8819 = function() { return handleEr
1568
1568
  }
1569
1569
  }, arguments) };
1570
1570
 
1571
- module.exports.__wbg_processapicall_5feead2a6c49333c = function(arg0, arg1, arg2) {
1571
+ module.exports.__wbg_processapicall_1ae12e2f6bc1b845 = function(arg0, arg1, arg2) {
1572
1572
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1573
1573
  };
1574
1574
 
1575
- module.exports.__wbg_processapisuccess_2294422cdc32f937 = function(arg0, arg1, arg2) {
1575
+ module.exports.__wbg_processapisuccess_597da43ed8731c2f = function(arg0, arg1, arg2) {
1576
1576
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1577
1577
  };
1578
1578
 
1579
- module.exports.__wbg_processapierror_49e99c8b78279760 = function(arg0, arg1, arg2) {
1579
+ module.exports.__wbg_processapierror_a71aba96980c82ce = function(arg0, arg1, arg2) {
1580
1580
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1581
1581
  };
1582
1582
 
1583
- module.exports.__wbg_sendinterfaceevent_99ba5a26d98773f2 = function(arg0, arg1, arg2) {
1583
+ module.exports.__wbg_sendinterfaceevent_cd7f8de0e2907421 = function(arg0, arg1, arg2) {
1584
1584
  let deferred0_0;
1585
1585
  let deferred0_1;
1586
1586
  try {
@@ -1592,7 +1592,7 @@ module.exports.__wbg_sendinterfaceevent_99ba5a26d98773f2 = function(arg0, arg1,
1592
1592
  }
1593
1593
  };
1594
1594
 
1595
- module.exports.__wbg_sendblocksuccess_a6b946b45c44c52e = function(arg0, arg1, arg2) {
1595
+ module.exports.__wbg_sendblocksuccess_405274aa2f9747b3 = function(arg0, arg1, arg2) {
1596
1596
  let deferred0_0;
1597
1597
  let deferred0_1;
1598
1598
  try {
@@ -1604,15 +1604,15 @@ module.exports.__wbg_sendblocksuccess_a6b946b45c44c52e = function(arg0, arg1, ar
1604
1604
  }
1605
1605
  };
1606
1606
 
1607
- module.exports.__wbg_savewallet_43d0b07b379bb519 = function() {
1607
+ module.exports.__wbg_savewallet_7387f03066474245 = function() {
1608
1608
  MsgHandler.save_wallet();
1609
1609
  };
1610
1610
 
1611
- module.exports.__wbg_loadwallet_46802d85c0a99c4d = function() {
1611
+ module.exports.__wbg_loadwallet_0d0b6e72f2e2d24d = function() {
1612
1612
  MsgHandler.load_wallet();
1613
1613
  };
1614
1614
 
1615
- module.exports.__wbg_getmyservices_07cd9026693aca08 = function() {
1615
+ module.exports.__wbg_getmyservices_5cdd70799e488036 = function() {
1616
1616
  const ret = MsgHandler.get_my_services();
1617
1617
  _assertClass(ret, WasmPeerServiceList);
1618
1618
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.0.12",
3
+ "version": "0.0.18",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "cross-env": "^7.0.3",
13
- "node-fetch": "^3.3.0"
12
+ "node-fetch": "^3.3.0",
13
+ "cross-env": "^7.0.3"
14
14
  }
15
15
  }
@@ -1,11 +1,9 @@
1
1
  class MsgHandler {
2
2
  static send_message(peer_index, buffer) {
3
- console.debug("MsgHandler::send_message : " + peer_index);
4
3
  return global.shared_methods.send_message(peer_index, buffer);
5
4
  }
6
5
 
7
6
  static send_message_to_all(buffer, exceptions) {
8
- console.debug("MsgHandler::send_message_to_all");
9
7
  return global.shared_methods.send_message_to_all(buffer, exceptions);
10
8
  }
11
9
 
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-ab5a63a608170761/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-e4fc46f5034ac0a9/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -1511,21 +1511,21 @@ function __wbg_get_imports() {
1511
1511
  const ret = getObject(arg0) in getObject(arg1);
1512
1512
  return ret;
1513
1513
  };
1514
- imports.wbg.__wbg_sendmessage_2a7cb3960340003f = function(arg0, arg1) {
1514
+ imports.wbg.__wbg_sendmessage_bc28ea49c82675ac = function(arg0, arg1) {
1515
1515
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
1516
1516
  };
1517
- imports.wbg.__wbg_sendmessagetoall_8e1963596d87a6c9 = function(arg0, arg1) {
1517
+ imports.wbg.__wbg_sendmessagetoall_5128186d0c6f7c44 = function(arg0, arg1) {
1518
1518
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
1519
1519
  };
1520
- imports.wbg.__wbg_connecttopeer_5f7b55d0b33d8945 = function() { return handleError(function (arg0) {
1520
+ imports.wbg.__wbg_connecttopeer_a5b7c0c1f322b314 = function() { return handleError(function (arg0) {
1521
1521
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
1522
1522
  return addHeapObject(ret);
1523
1523
  }, arguments) };
1524
- imports.wbg.__wbg_disconnectfrompeer_c4b18addc554f556 = function() { return handleError(function (arg0) {
1524
+ imports.wbg.__wbg_disconnectfrompeer_39f334f2d1f5df45 = function() { return handleError(function (arg0) {
1525
1525
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
1526
1526
  return addHeapObject(ret);
1527
1527
  }, arguments) };
1528
- imports.wbg.__wbg_fetchblockfrompeer_8c17ad7ddc49409a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1528
+ imports.wbg.__wbg_fetchblockfrompeer_5f8e079c86059e52 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1529
1529
  let deferred0_0;
1530
1530
  let deferred0_1;
1531
1531
  try {
@@ -1537,7 +1537,7 @@ function __wbg_get_imports() {
1537
1537
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1538
1538
  }
1539
1539
  }, arguments) };
1540
- imports.wbg.__wbg_writevalue_9e55c94b97509b8e = function(arg0, arg1, arg2) {
1540
+ imports.wbg.__wbg_writevalue_e5fefa0841689686 = function(arg0, arg1, arg2) {
1541
1541
  let deferred0_0;
1542
1542
  let deferred0_1;
1543
1543
  try {
@@ -1548,7 +1548,7 @@ function __wbg_get_imports() {
1548
1548
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1549
1549
  }
1550
1550
  };
1551
- imports.wbg.__wbg_readvalue_0c81f78742bebea0 = function() { return handleError(function (arg0, arg1) {
1551
+ imports.wbg.__wbg_readvalue_cb7c63f12e2fcfc1 = function() { return handleError(function (arg0, arg1) {
1552
1552
  let deferred0_0;
1553
1553
  let deferred0_1;
1554
1554
  try {
@@ -1560,11 +1560,11 @@ function __wbg_get_imports() {
1560
1560
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1561
1561
  }
1562
1562
  }, arguments) };
1563
- imports.wbg.__wbg_loadblockfilelist_9accca826df805e3 = function() { return handleError(function () {
1563
+ imports.wbg.__wbg_loadblockfilelist_08aaeaaa82b17463 = function() { return handleError(function () {
1564
1564
  const ret = MsgHandler.load_block_file_list();
1565
1565
  return addHeapObject(ret);
1566
1566
  }, arguments) };
1567
- imports.wbg.__wbg_isexistingfile_60346c5e9a043ff5 = function() { return handleError(function (arg0, arg1) {
1567
+ imports.wbg.__wbg_isexistingfile_f833bbf4f449c4e7 = function() { return handleError(function (arg0, arg1) {
1568
1568
  let deferred0_0;
1569
1569
  let deferred0_1;
1570
1570
  try {
@@ -1576,7 +1576,7 @@ function __wbg_get_imports() {
1576
1576
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1577
1577
  }
1578
1578
  }, arguments) };
1579
- imports.wbg.__wbg_removevalue_cc0b7e61fa1e8819 = function() { return handleError(function (arg0, arg1) {
1579
+ imports.wbg.__wbg_removevalue_c4ab7b83f813a171 = function() { return handleError(function (arg0, arg1) {
1580
1580
  let deferred0_0;
1581
1581
  let deferred0_1;
1582
1582
  try {
@@ -1588,16 +1588,16 @@ function __wbg_get_imports() {
1588
1588
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1589
1589
  }
1590
1590
  }, arguments) };
1591
- imports.wbg.__wbg_processapicall_5feead2a6c49333c = function(arg0, arg1, arg2) {
1591
+ imports.wbg.__wbg_processapicall_1ae12e2f6bc1b845 = function(arg0, arg1, arg2) {
1592
1592
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1593
1593
  };
1594
- imports.wbg.__wbg_processapisuccess_2294422cdc32f937 = function(arg0, arg1, arg2) {
1594
+ imports.wbg.__wbg_processapisuccess_597da43ed8731c2f = function(arg0, arg1, arg2) {
1595
1595
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1596
1596
  };
1597
- imports.wbg.__wbg_processapierror_49e99c8b78279760 = function(arg0, arg1, arg2) {
1597
+ imports.wbg.__wbg_processapierror_a71aba96980c82ce = function(arg0, arg1, arg2) {
1598
1598
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1599
1599
  };
1600
- imports.wbg.__wbg_sendinterfaceevent_99ba5a26d98773f2 = function(arg0, arg1, arg2) {
1600
+ imports.wbg.__wbg_sendinterfaceevent_cd7f8de0e2907421 = function(arg0, arg1, arg2) {
1601
1601
  let deferred0_0;
1602
1602
  let deferred0_1;
1603
1603
  try {
@@ -1608,7 +1608,7 @@ function __wbg_get_imports() {
1608
1608
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1609
1609
  }
1610
1610
  };
1611
- imports.wbg.__wbg_sendblocksuccess_a6b946b45c44c52e = function(arg0, arg1, arg2) {
1611
+ imports.wbg.__wbg_sendblocksuccess_405274aa2f9747b3 = function(arg0, arg1, arg2) {
1612
1612
  let deferred0_0;
1613
1613
  let deferred0_1;
1614
1614
  try {
@@ -1619,13 +1619,13 @@ function __wbg_get_imports() {
1619
1619
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1620
1620
  }
1621
1621
  };
1622
- imports.wbg.__wbg_savewallet_43d0b07b379bb519 = function() {
1622
+ imports.wbg.__wbg_savewallet_7387f03066474245 = function() {
1623
1623
  MsgHandler.save_wallet();
1624
1624
  };
1625
- imports.wbg.__wbg_loadwallet_46802d85c0a99c4d = function() {
1625
+ imports.wbg.__wbg_loadwallet_0d0b6e72f2e2d24d = function() {
1626
1626
  MsgHandler.load_wallet();
1627
1627
  };
1628
- imports.wbg.__wbg_getmyservices_07cd9026693aca08 = function() {
1628
+ imports.wbg.__wbg_getmyservices_5cdd70799e488036 = function() {
1629
1629
  const ret = MsgHandler.get_my_services();
1630
1630
  _assertClass(ret, WasmPeerServiceList);
1631
1631
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.0.12",
3
+ "version": "0.0.18",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -1,11 +1,9 @@
1
1
  class MsgHandler {
2
2
  static send_message(peer_index, buffer) {
3
- console.debug("MsgHandler::send_message : " + peer_index);
4
3
  return global.shared_methods.send_message(peer_index, buffer);
5
4
  }
6
5
 
7
6
  static send_message_to_all(buffer, exceptions) {
8
- console.debug("MsgHandler::send_message_to_all");
9
7
  return global.shared_methods.send_message_to_all(buffer, exceptions);
10
8
  }
11
9