node-opcua-samples 2.67.0 → 2.68.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.
@@ -44,7 +44,7 @@ let curNodeCompletion = [];
44
44
 
45
45
  function save_endpoint_history(callback) {
46
46
  if (endpoints_history.length > 0) {
47
- fs.writeFileSync(endpoints_history_file, endpoints_history.join("\n"), "ascii");
47
+ fs.writeFileSync(endpoints_history_file, endpoints_history.join("\n"), "utf-8");
48
48
  }
49
49
  if (callback) {
50
50
  callback();
@@ -63,7 +63,7 @@ let lines = [];
63
63
 
64
64
 
65
65
  if (fs.existsSync(endpoints_history_file)) {
66
- lines = fs.readFileSync(endpoints_history_file, "ascii");
66
+ lines = fs.readFileSync(endpoints_history_file, "utf-8");
67
67
  endpoints_history = lines.split(/\r\n|\n/);
68
68
  }
69
69
 
@@ -118,7 +118,7 @@ rl.prompt();
118
118
 
119
119
  function save_history(callback) {
120
120
  const history_uniq = _.uniq(rl.history);
121
- fs.writeFileSync(history_file, history_uniq.join("\n"), "ascii");
121
+ fs.writeFileSync(history_file, history_uniq.join("\n"), "utf-8");
122
122
  callback();
123
123
  }
124
124
 
@@ -297,7 +297,7 @@ function colorize(value) {
297
297
  if (rl.history) {
298
298
 
299
299
  if (fs.existsSync(history_file)) {
300
- lines = fs.readFileSync(history_file, "ascii");
300
+ lines = fs.readFileSync(history_file, "utf-8");
301
301
  lines = lines.split(/\r\n|\n/);
302
302
  }
303
303
  if (lines.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-samples",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -samples",
5
5
  "bin": {
6
6
  "simple_client": "./dist/simple_client_ts.js",
@@ -20,10 +20,10 @@
20
20
  "@types/yargs": "17.0.10",
21
21
  "easy-table": "^1.2.0",
22
22
  "exit": "^0.1.2",
23
- "node-opcua": "2.67.0",
23
+ "node-opcua": "2.68.0",
24
24
  "node-opcua-assert": "2.66.0",
25
25
  "node-opcua-pki": "^2.15.4",
26
- "node-opcua-server-configuration": "2.67.0",
26
+ "node-opcua-server-configuration": "2.68.0",
27
27
  "sprintf-js": "^1.1.2",
28
28
  "treeify": "^1.1.0",
29
29
  "underscore": "^1.13.2",
@@ -44,5 +44,5 @@
44
44
  "internet of things"
45
45
  ],
46
46
  "homepage": "http://node-opcua.github.io/",
47
- "gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e"
47
+ "gitHead": "363b466440d0910acddd0cde2c37792ce4724d76"
48
48
  }