node-opcua-samples 2.68.1 → 2.70.0

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/bin/di_server.js CHANGED
File without changes
File without changes
@@ -1,11 +1,12 @@
1
1
  /* eslint no-process-exit: 0 */
2
2
  "use strict";
3
- const argv = require("yargs")
4
- .usage("Usage: $0 --portServer [num] --port [num] --hostname <hostname> -block")
5
- .argv;
6
3
  const net = require("net");
7
4
 
5
+ const chalk = require("chalk");
8
6
 
7
+ const argv = require("yargs")
8
+ .usage("Usage: $0 --portServer [num] --port [num] --hostname <hostname> -block")
9
+ .argv;
9
10
 
10
11
  const opcua = require("node-opcua");
11
12
 
@@ -18,8 +19,6 @@ const messageHeaderToString = require("../lib/misc/message_header").messageHeade
18
19
 
19
20
  const s = require("../lib/datamodel/structures");
20
21
 
21
- const chalk = require("chalk");
22
-
23
22
  const remote_port = parseInt(argv.port, 10) || 4841;
24
23
  const hostname = argv.hostname || "localhost";
25
24
 
@@ -42,7 +41,7 @@ TrafficAnalyser.prototype.add = function (data) {
42
41
 
43
42
  if (messageHeader.msgType === "ERR") {
44
43
 
45
- var err = new s.TCPErrorMessage();
44
+ const err = new s.TCPErrorMessage();
46
45
  err.decode(stream);
47
46
  console.log(" Error 0x" + err.statusCode.toString() + " reason:" + err.reason);
48
47
  console.log(hexDump(data));
@@ -112,6 +111,7 @@ require("net").createServer(function (socket) {
112
111
  try {
113
112
  socket.write(data);
114
113
  } catch (err) {
114
+ /** */
115
115
  }
116
116
  });
117
117
 
File without changes
File without changes
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "node-opcua-samples",
3
- "version": "2.68.1",
4
- "description": "pure nodejs OPCUA SDK - module -samples",
5
- "bin": {
6
- "simple_client": "./dist/simple_client_ts.js",
7
- "interactive_client": "./bin/interactive_client.js",
8
- "simple_server": "./bin/simple_server.js",
9
- "di_server": "./bin/di_server.js"
10
- },
11
- "scripts": {
12
- "build": "tsc -b",
13
- "pretest": "npm run certificate",
14
- "certificate": "node bin/create_certificates.js demo --dev -s",
15
- "test": "echo no test",
16
- "clean": "npx rimraf certificates"
17
- },
18
- "dependencies": {
19
- "@types/underscore": "^1.11.4",
20
- "@types/yargs": "17.0.10",
21
- "easy-table": "^1.2.0",
22
- "exit": "^0.1.2",
23
- "node-opcua": "2.68.1",
24
- "node-opcua-assert": "2.66.0",
25
- "node-opcua-pki": "^2.15.4",
26
- "node-opcua-server-configuration": "2.68.1",
27
- "sprintf-js": "^1.1.2",
28
- "treeify": "^1.1.0",
29
- "underscore": "^1.13.2",
30
- "yargs": "15.4.1"
31
- },
32
- "author": "Etienne Rossignon",
33
- "license": "MIT",
34
- "repository": {
35
- "type": "git",
36
- "url": "git://github.com/node-opcua/node-opcua.git"
37
- },
38
- "keywords": [
39
- "OPCUA",
40
- "opcua",
41
- "m2m",
42
- "iot",
43
- "opc ua",
44
- "internet of things"
45
- ],
46
- "homepage": "http://node-opcua.github.io/",
47
- "gitHead": "7bcb67b06ea755d438e91f5c143d20531497e286"
48
- }
2
+ "name": "node-opcua-samples",
3
+ "version": "2.70.0",
4
+ "description": "pure nodejs OPCUA SDK - module -samples",
5
+ "bin": {
6
+ "simple_client": "./dist/simple_client_ts.js",
7
+ "interactive_client": "./bin/interactive_client.js",
8
+ "simple_server": "./bin/simple_server.js",
9
+ "di_server": "./bin/di_server.js"
10
+ },
11
+ "dependencies": {
12
+ "@types/underscore": "^1.11.4",
13
+ "@types/yargs": "17.0.10",
14
+ "easy-table": "^1.2.0",
15
+ "exit": "^0.1.2",
16
+ "node-opcua": "2.70.0",
17
+ "node-opcua-assert": "2.66.0",
18
+ "node-opcua-pki": "^2.15.4",
19
+ "node-opcua-server-configuration": "2.70.0",
20
+ "sprintf-js": "^1.1.2",
21
+ "treeify": "^1.1.0",
22
+ "underscore": "^1.13.3",
23
+ "yargs": "15.4.1"
24
+ },
25
+ "author": "Etienne Rossignon",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git://github.com/node-opcua/node-opcua.git"
30
+ },
31
+ "keywords": [
32
+ "OPCUA",
33
+ "opcua",
34
+ "m2m",
35
+ "iot",
36
+ "opc ua",
37
+ "internet of things"
38
+ ],
39
+ "homepage": "http://node-opcua.github.io/",
40
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
41
+ "scripts": {
42
+ "build": "tsc -b",
43
+ "pretest": "npm run certificate",
44
+ "certificate": "node bin/create_certificates.js demo --dev -s",
45
+ "test": "echo no test",
46
+ "clean": "npx rimraf certificates"
47
+ }
48
+ }