wao 0.23.3 → 0.23.5

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/cjs/hyperbeam.js CHANGED
@@ -51,10 +51,10 @@ var HyperBEAM = exports["default"] = /*#__PURE__*/function () {
51
51
  cwd: (0, _path.resolve)(import.meta.dirname, cwd)
52
52
  });
53
53
  this.hbeam.stdout.on("data", function (chunk) {
54
- return console.log(chunk);
54
+ return console.log(chunk.toString());
55
55
  });
56
56
  this.hbeam.stderr.on("data", function (err) {
57
- return console.error(err);
57
+ return console.error(err.toString());
58
58
  });
59
59
  this.hbeam.on("error", function (err) {
60
60
  return console.error("failed to start process: ".concat(err));
@@ -95,7 +95,7 @@ var HyperBEAM = exports["default"] = /*#__PURE__*/function () {
95
95
  var _faff = (0, _ramda.isNil)(this.faff) ? "" : ", faff_allow_list => [ ".concat((0, _ramda.map)(function (addr) {
96
96
  return "<<\"".concat(addr, "\">>");
97
97
  })(this.faff).join(", "), " ]");
98
- var _on = this.simplePay ? ", on => #{ <<\"request\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"simple-pay@1.0\">>, <<\"ledger-device\">> => <<\"simple-pay@1.0\">> }, <<\"response\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"simple-pay@1.0\">>, <<\"ledger-device\">> => <<\"simple-pay@1.0\">> } }" : ", on => #{ <<\"request\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"faff@1.0\">>, <<\"ledger-device\">> => <<\"faff@1.0\">> }, <<\"response\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"faff@1.0\">>, <<\"ledger-device\">> => <<\"faff@1.0\">> } }";
98
+ var _on = this.simplePay ? ", on => #{ <<\"request\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"simple-pay@1.0\">>, <<\"ledger-device\">> => <<\"simple-pay@1.0\">> }, <<\"response\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"simple-pay@1.0\">>, <<\"ledger-device\">> => <<\"simple-pay@1.0\">> } }" : !(0, _ramda.isNil)(this.faff) ? ", on => #{ <<\"request\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"faff@1.0\">>, <<\"ledger-device\">> => <<\"faff@1.0\">> }, <<\"response\">> => #{ <<\"device\">> => <<\"p4@1.0\">>, <<\"pricing-device\">> => <<\"faff@1.0\">>, <<\"ledger-device\">> => <<\"faff@1.0\">> } }" : "";
99
99
  return !legacy ? "hb:start_mainnet(#{ ".concat(_port).concat(_gateway).concat(_wallet).concat(_store).concat(_on, " }).") : "hb:start_mainnet(#{ ".concat(_port).concat(_gateway).concat(_wallet).concat(_store).concat(_faff).concat(_bundler).concat(_routes).concat(_on).concat(_p4_non_chargeable).concat(_operator).concat(_spp, " }).");
100
100
  }
101
101
  }, {
package/esm/hyperbeam.js CHANGED
@@ -31,8 +31,8 @@ export default class HyperBEAM {
31
31
  cwd: resolve(import.meta.dirname, cwd),
32
32
  }
33
33
  )
34
- this.hbeam.stdout.on("data", chunk => console.log(chunk))
35
- this.hbeam.stderr.on("data", err => console.error(err))
34
+ this.hbeam.stdout.on("data", chunk => console.log(chunk.toString()))
35
+ this.hbeam.stderr.on("data", err => console.error(err.toString()))
36
36
  this.hbeam.on("error", err =>
37
37
  console.error(`failed to start process: ${err}`)
38
38
  )
@@ -72,7 +72,9 @@ export default class HyperBEAM {
72
72
  : `, faff_allow_list => [ ${map(addr => `<<"${addr}">>`)(this.faff).join(", ")} ]`
73
73
  const _on = this.simplePay
74
74
  ? `, on => #{ <<"request">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"simple-pay@1.0">>, <<"ledger-device">> => <<"simple-pay@1.0">> }, <<"response">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"simple-pay@1.0">>, <<"ledger-device">> => <<"simple-pay@1.0">> } }`
75
- : `, on => #{ <<"request">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"faff@1.0">>, <<"ledger-device">> => <<"faff@1.0">> }, <<"response">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"faff@1.0">>, <<"ledger-device">> => <<"faff@1.0">> } }`
75
+ : !isNil(this.faff)
76
+ ? `, on => #{ <<"request">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"faff@1.0">>, <<"ledger-device">> => <<"faff@1.0">> }, <<"response">> => #{ <<"device">> => <<"p4@1.0">>, <<"pricing-device">> => <<"faff@1.0">>, <<"ledger-device">> => <<"faff@1.0">> } }`
77
+ : ""
76
78
  return !legacy
77
79
  ? `hb:start_mainnet(#{ ${_port}${_gateway}${_wallet}${_store}${_on} }).`
78
80
  : `hb:start_mainnet(#{ ${_port}${_gateway}${_wallet}${_store}${_faff}${_bundler}${_routes}${_on}${_p4_non_chargeable}${_operator}${_spp} }).`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.23.3",
3
+ "version": "0.23.5",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"