node-opcua-samples 2.186.6 → 2.186.7

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.
@@ -3,7 +3,9 @@ const fs = require("fs");
3
3
  const path = require("path");
4
4
  const util = require("util");
5
5
  const treeify = require("treeify");
6
- const chalk = require("chalk");
6
+ // .default: chalk 6 is ESM-only, so require() hands back the module namespace
7
+ // object rather than the instance, and every chalk.<style>() would be undefined.
8
+ const chalk = require("chalk").default;
7
9
  const Table = require("easy-table");
8
10
  const {
9
11
  ApplicationType,
package/bin/di_server.cjs CHANGED
@@ -2,7 +2,9 @@
2
2
  "use strict";
3
3
  const path = require("path");
4
4
  const os = require("os");
5
- const chalk = require("chalk");
5
+ // .default: chalk 6 is ESM-only, so require() hands back the module namespace
6
+ // object rather than the instance, and every chalk.<style>() would be undefined.
7
+ const chalk = require("chalk").default;
6
8
  const {
7
9
  OPCUAServer,
8
10
  Variant,
@@ -44,7 +46,9 @@ function w(str, width) {
44
46
  return (str || "").toString().padEnd(width).substring(0, width);
45
47
  }
46
48
 
47
- const envPaths = require("env-paths");
49
+ // .default: env-paths is ESM-only, so require() hands back the module namespace
50
+ // object rather than the function itself.
51
+ const envPaths = require("env-paths").default;
48
52
  const config = envPaths("NodeOPCUA-DI-Server").config;
49
53
  const pkiFolder = path.join(config, "PKI");
50
54
 
@@ -5,7 +5,9 @@ const fs = require("node:fs");
5
5
  const path = require("node:path");
6
6
  const os = require("node:os");
7
7
  const readline = require("node:readline");
8
- const chalk = require("chalk");
8
+ // .default: chalk 6 is ESM-only, so require() hands back the module namespace
9
+ // object rather than the instance, and every chalk.<style>() would be undefined.
10
+ const chalk = require("chalk").default;
9
11
  const treeify = require("treeify");
10
12
  const { sprintf } = require("sprintf-js");
11
13
 
@@ -5,9 +5,13 @@ const path = require("path");
5
5
  const fs = require("fs");
6
6
  const os = require("os");
7
7
  const assert = require("assert");
8
- const chalk = require("chalk");
8
+ // .default: chalk 6 is ESM-only, so require() hands back the module namespace
9
+ // object rather than the instance, and every chalk.<style>() would be undefined.
10
+ const chalk = require("chalk").default;
9
11
  const commandLineArgs = require("command-line-args");
10
- const envPaths = require("env-paths");
12
+ // .default: env-paths is ESM-only, so require() hands back the module namespace
13
+ // object rather than the function itself.
14
+ const envPaths = require("env-paths").default;
11
15
  const bcrypt = require("bcryptjs");
12
16
 
13
17
  const {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-samples",
3
3
  "type": "module",
4
- "version": "2.186.6",
4
+ "version": "2.186.7",
5
5
  "description": "pure nodejs OPCUA SDK - module samples",
6
6
  "bin": {
7
7
  "simple_client": "./bin/client_example.cjs",
@@ -24,22 +24,22 @@
24
24
  "@types/command-line-usage": "5.0.4",
25
25
  "@types/underscore": "1.13.0",
26
26
  "bcryptjs": "3.0.3",
27
- "chalk": "4.1.2",
27
+ "chalk": "6.0.1",
28
28
  "command-line-args": "6.0.2",
29
29
  "command-line-usage": "7.0.4",
30
30
  "easy-table": "^1.2.0",
31
- "env-paths": "2.2.1",
32
- "node-opcua": "2.186.4",
33
- "node-opcua-address-space": "2.186.4",
34
- "node-opcua-address-space-for-conformance-testing": "2.186.4",
35
- "node-opcua-assert": "2.184.0",
36
- "node-opcua-client-proxy": "2.186.4",
37
- "node-opcua-crypto": "6.0.0",
38
- "node-opcua-packet-analyzer": "2.186.1",
39
- "node-opcua-pki": "7.0.0",
40
- "node-opcua-server-configuration": "2.186.6",
41
- "node-opcua-utils": "2.186.1",
42
- "node-opcua-vendor-diagnostic": "2.186.4",
31
+ "env-paths": "4.0.0",
32
+ "node-opcua": "2.186.7",
33
+ "node-opcua-address-space": "2.186.7",
34
+ "node-opcua-address-space-for-conformance-testing": "2.186.7",
35
+ "node-opcua-assert": "2.186.7",
36
+ "node-opcua-client-proxy": "2.186.7",
37
+ "node-opcua-crypto": "6.1.2",
38
+ "node-opcua-packet-analyzer": "2.186.7",
39
+ "node-opcua-pki": "7.0.1",
40
+ "node-opcua-server-configuration": "2.186.7",
41
+ "node-opcua-utils": "2.186.7",
42
+ "node-opcua-vendor-diagnostic": "2.186.7",
43
43
  "sprintf-js": "^1.1.3",
44
44
  "treeify": "^1.1.0"
45
45
  },
@@ -58,7 +58,7 @@
58
58
  "internet of things"
59
59
  ],
60
60
  "homepage": "http://node-opcua.github.io/",
61
- "gitHead": "79ae0117bb878f9a8fbb96ddb3acb59f247796e0",
61
+ "gitHead": "8a4f79f3ff854bf6bed6dce299ad56809093aa5b",
62
62
  "files": [
63
63
  "dist"
64
64
  ]