nep-cli 0.2.4 → 0.2.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.
Files changed (2) hide show
  1. package/bin/index.js +4 -3
  2. package/package.json +2 -3
package/bin/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const { program } = require('commander');
4
4
  const { version } = require('../package.json');
@@ -17,6 +17,7 @@ const socketIo = require('socket.io');
17
17
  const fs = require ('fs');
18
18
  const zmqc = require("zeromq/v5-compat");
19
19
 
20
+
20
21
  const PORT_MASTER_INFO = 50001; // Default port for master info
21
22
  const PORT_SERVER = 50050;
22
23
 
@@ -578,7 +579,7 @@ program
578
579
  .action(async (topic, index) => {
579
580
  const ip = "127.0.0.1";
580
581
 
581
- const allowedFormats = ["json", "msgpack", "bytes", "images", "dictionary", "string"];
582
+ const allowedFormats = ["json", "msgpack", "bytes", "images", "dictionary"];
582
583
  const master_ip = "127.0.0.1";
583
584
 
584
585
  const requester = createRequester(master_ip, PORT_MASTER_INFO);
@@ -599,7 +600,7 @@ program
599
600
  open(`http://localhost:${port}/?port=${port}&topic=${encodeURIComponent(topicid)}`);
600
601
  startShowServer(port, topic, ip);
601
602
  }
602
- else if (msg_type === "json" || msg_type === "dictionary") {
603
+ else if (msg_type === "json" || msg_type === "dictionary" || msg_type === "msgpack") {
603
604
  open(`http://localhost:${port}/?port=${port}&topic=${encodeURIComponent(topicid)}`);
604
605
  startJsonServer(port, topic, ip, msg_type);
605
606
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nep-cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "main": "./lib/nep.js",
5
5
  "bin": {
6
6
  "nep": "./bin/index.js"
@@ -12,10 +12,9 @@
12
12
  "commander": "^11.0.0",
13
13
  "enquirer": "^2.4.1",
14
14
  "express": "^4.18.2",
15
- "nep-js": "^0.3.8",
15
+ "nep-js": "^0.4.0",
16
16
  "open": "7.4.2",
17
17
  "socket.io": "^4.7.2",
18
18
  "zeromq": "6.0.0-beta.19"
19
19
  }
20
20
  }
21
-