node-opcua-server-configuration 2.67.1 → 2.69.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.
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/clientTools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/clientTools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAoD"}
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,qCAAqC;AACrC,6DAA2C;AAC3C,mFAAiE;AACjE,+DAA6C;AAE7C,+EAA6D;AAC7D,gFAA8D;AAC9D,4EAA0D;AAC1D,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qCAAqC;AACrC,6DAA2C;AAC3C,mFAAiE;AACjE,+DAA6C;AAE7C,+EAA6D;AAC7D,gFAA8D;AAC9D,4EAA0D;AAC1D,8DAA4C"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  /**
3
4
  * @module node-opcua-server-configuration-server
4
5
  */
@@ -49,7 +49,7 @@ function certificateMatchesPrivateKeyPEM(certificate, privateKey) {
49
49
  const initialBuffer = Buffer.from("Lorem Ipsum");
50
50
  const encryptedBuffer = (0, node_opcua_crypto_1.publicEncrypt_long)(initialBuffer, certificate, 256, 11);
51
51
  const decryptedBuffer = (0, node_opcua_crypto_1.privateDecrypt_long)(encryptedBuffer, privateKey, 256);
52
- return initialBuffer.toString("ascii") === decryptedBuffer.toString("ascii");
52
+ return initialBuffer.toString("utf-8") === decryptedBuffer.toString("utf-8");
53
53
  }
54
54
  function certificateMatchesPrivateKey(certificate, privateKey) {
55
55
  const certificatePEM = (0, node_opcua_crypto_1.toPem)(certificate, "CERTIFICATE");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-server-configuration",
3
- "version": "2.67.1",
3
+ "version": "2.69.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -server",
5
5
  "scripts": {
6
6
  "build": "tsc -b",
@@ -11,36 +11,36 @@
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "dependencies": {
14
- "memfs": "^3.4.1",
15
- "node-opcua-address-space": "2.67.1",
14
+ "memfs": "^3.4.4",
15
+ "node-opcua-address-space": "2.69.0",
16
16
  "node-opcua-assert": "2.66.0",
17
- "node-opcua-basic-types": "2.67.0",
18
- "node-opcua-certificate-manager": "2.67.0",
19
- "node-opcua-client": "2.67.1",
17
+ "node-opcua-basic-types": "2.69.0",
18
+ "node-opcua-certificate-manager": "2.69.0",
19
+ "node-opcua-client": "2.69.0",
20
20
  "node-opcua-constants": "2.67.0",
21
21
  "node-opcua-crypto": "^1.10.0",
22
- "node-opcua-data-model": "2.67.0",
23
- "node-opcua-debug": "2.67.0",
24
- "node-opcua-file-transfer": "2.67.1",
22
+ "node-opcua-data-model": "2.69.0",
23
+ "node-opcua-debug": "2.69.0",
24
+ "node-opcua-file-transfer": "2.69.0",
25
25
  "node-opcua-hostname": "2.67.0",
26
- "node-opcua-nodeid": "2.67.0",
26
+ "node-opcua-nodeid": "2.69.0",
27
27
  "node-opcua-nodesets": "2.66.0",
28
28
  "node-opcua-pki": "^2.15.4",
29
- "node-opcua-pseudo-session": "2.67.1",
30
- "node-opcua-secure-channel": "2.67.1",
31
- "node-opcua-server": "2.67.1",
32
- "node-opcua-service-translate-browse-path": "2.67.0",
33
- "node-opcua-status-code": "2.67.0",
34
- "node-opcua-types": "2.67.0",
35
- "node-opcua-variant": "2.67.0",
29
+ "node-opcua-pseudo-session": "2.69.0",
30
+ "node-opcua-secure-channel": "2.69.0",
31
+ "node-opcua-server": "2.69.0",
32
+ "node-opcua-service-translate-browse-path": "2.69.0",
33
+ "node-opcua-status-code": "2.69.0",
34
+ "node-opcua-types": "2.69.0",
35
+ "node-opcua-variant": "2.69.0",
36
36
  "rimraf": "^3.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "node-opcua-binary-stream": "2.67.0",
40
- "node-opcua-data-value": "2.67.0",
41
- "node-opcua-leak-detector": "2.67.0",
39
+ "node-opcua-binary-stream": "2.69.0",
40
+ "node-opcua-data-value": "2.69.0",
41
+ "node-opcua-leak-detector": "2.69.0",
42
42
  "should": "^13.2.3",
43
- "sinon": "^13.0.1"
43
+ "sinon": "^14.0.0"
44
44
  },
45
45
  "author": "Etienne Rossignon",
46
46
  "license": "MIT",
@@ -57,5 +57,5 @@
57
57
  "internet of things"
58
58
  ],
59
59
  "homepage": "http://node-opcua.github.io/",
60
- "gitHead": "e6ea08f7a92fdf27240c5ed1bb567c6630eaf863"
60
+ "gitHead": "6c88d05e8c82ce4bc9c8af9f0a8eb6136f31d2ce"
61
61
  }
@@ -61,7 +61,7 @@ function certificateMatchesPrivateKeyPEM(certificate: CertificatePEM, privateKey
61
61
  const initialBuffer = Buffer.from("Lorem Ipsum");
62
62
  const encryptedBuffer = publicEncrypt_long(initialBuffer, certificate, 256, 11);
63
63
  const decryptedBuffer = privateDecrypt_long(encryptedBuffer, privateKey, 256);
64
- return initialBuffer.toString("ascii") === decryptedBuffer.toString("ascii");
64
+ return initialBuffer.toString("utf-8") === decryptedBuffer.toString("utf-8");
65
65
  }
66
66
 
67
67
  export function certificateMatchesPrivateKey(certificate: Certificate, privateKey: PrivateKey): boolean {