node-opcua-server-configuration 2.58.0 → 2.62.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.
@@ -27,10 +27,10 @@ import {
27
27
  } from "node-opcua-crypto";
28
28
  import { CertificateAuthority } from "node-opcua-pki";
29
29
  import { OPCUACertificateManager } from "node-opcua-certificate-manager";
30
+ import { TrustListDataType } from "node-opcua-types";
30
31
 
31
32
  import { CertificateType } from "../source";
32
33
  import { ClientPushCertificateManagement } from "../source/clientTools";
33
- import { TrustListDataType } from "node-opcua-types";
34
34
 
35
35
  const endpointUrl = "opc.tcp://localhost:48010";
36
36
 
@@ -39,13 +39,13 @@ function dumpCertificateInfo(certificate: Certificate) {
39
39
  const i = exploreCertificate(certificate);
40
40
  console.log(" serial number : ", i.tbsCertificate.serialNumber);
41
41
  console.log(" subject : ");
42
- for (let [k, v] of Object.entries(i.tbsCertificate.subject)) {
42
+ for (const [k, v] of Object.entries(i.tbsCertificate.subject)) {
43
43
  console.log(` ${k.padEnd(18)}: ${v}`);
44
44
  }
45
45
  console.log(" notBefore : ", i.tbsCertificate.validity.notBefore);
46
46
  console.log(" notAfter : ", i.tbsCertificate.validity.notAfter);
47
47
  console.log(" issuer : ");
48
- for (let [k, v] of Object.entries(i.tbsCertificate.issuer)) {
48
+ for (const [k, v] of Object.entries(i.tbsCertificate.issuer)) {
49
49
  console.log(` ${k.padEnd(18)}: ${v}`);
50
50
  }
51
51
  console.log(" signature algo : ", i.signatureAlgorithm);
@@ -143,7 +143,10 @@ async function addApplicationCertificate(session: IBasicSession) {
143
143
  await trustList.addCertificate(certificate, true);
144
144
  }
145
145
 
146
- async function addApplicationIssuerCertificateAndCRL(session: IBasicSession) {}
146
+ async function addApplicationIssuerCertificateAndCRL(session: IBasicSession) {
147
+ /**
148
+ */
149
+ }
147
150
  async function replaceServerCertificate(session: IBasicSession, caAuthority: CertificateAuthority) {
148
151
  const certificateAutorityhPath = path.join(caAuthority.location);
149
152
  const caCertificate = await readCertificate(caAuthority.caCertificate);
@@ -21,8 +21,8 @@ function installCertificateExpirationAlarm(addressSpace) {
21
21
  browseName: "ServerCertificateAlarm",
22
22
  conditionSource: null,
23
23
  eventSourceOf: server,
24
- inputNode: node_opcua_nodeid_1.NodeId.nullNodeId,
25
- normalState: node_opcua_nodeid_1.NodeId.nullNodeId
24
+ inputNode: new node_opcua_nodeid_1.NodeId(),
25
+ normalState: new node_opcua_nodeid_1.NodeId()
26
26
  };
27
27
  const data = {};
28
28
  const alarm = node_opcua_address_space_1.UACertificateExpirationAlarmImpl.instantiate(namespace, options, data);
@@ -1 +1 @@
1
- {"version":3,"file":"install_CertificateAlarm.js","sourceRoot":"","sources":["../../source/server/install_CertificateAlarm.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,uEAIkC;AAClC,uDAI0B;AAC1B,yDAE2B;AAC3B,2DAA8C;AAE9C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,qBAAqB,CAAC,CAAC;AAEtD,SAAgB,iCAAiC,CAAC,YAA0B;;IAExE,QAAQ,CAAC,mCAAmC,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;IAEtD,MAAM,SAAS,GAAG,YAAY,CAAC,eAAe,EAAE,CAAC;IAEjD,MAAM,8BAA8B,GAAG,YAAY,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAEpG,MAAM,OAAO,GAAG;QACZ,UAAU,EAAE,wBAAwB;QACpC,eAAe,EAAE,IAAI;QACrB,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE,0BAAM,CAAC,UAAU;QAC5B,WAAW,EAAE,0BAAM,CAAC,UAAU;KACjC,CAAC;IACF,MAAM,IAAI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EjD,MAAM,8BAA8B,GAAG,YAAY,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAEpG,MAAM,OAAO,GAAG;QACZ,UAAU,EAAE,wBAAwB;QACpC,eAAe,EAAE,IAAI;QACrB,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE,IAAI,0BAAM,EAAE;QACvB,WAAW,EAAE,IAAI,0BAAM,EAAE;KAC5B,CAAC;IACF,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,MAAM,KAAK,GAAG,2DAAgC,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACrF,wFAAwF;IACxF,KAAK,CAAC,aAAa,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjC,MAAA,KAAK,CAAC,eAAe,0CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvC,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAC,QAAQ,EAAE,6BAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAC,QAAQ,EAAE,6BAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAEpF,CAAC;AA3BD,8EA2BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-server-configuration",
3
- "version": "2.58.0",
3
+ "version": "2.62.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -server",
5
5
  "scripts": {
6
6
  "build": "tsc -b",
@@ -12,35 +12,35 @@
12
12
  "types": "./dist/index.d.ts",
13
13
  "dependencies": {
14
14
  "memfs": "^3.3.0",
15
- "node-opcua-address-space": "2.58.0",
15
+ "node-opcua-address-space": "2.62.0",
16
16
  "node-opcua-assert": "2.55.0",
17
- "node-opcua-basic-types": "2.57.0",
18
- "node-opcua-certificate-manager": "2.57.0",
19
- "node-opcua-client": "2.58.0",
17
+ "node-opcua-basic-types": "2.61.0",
18
+ "node-opcua-certificate-manager": "2.61.0",
19
+ "node-opcua-client": "2.62.0",
20
20
  "node-opcua-constants": "2.52.0",
21
21
  "node-opcua-crypto": "^1.7.4",
22
- "node-opcua-data-model": "2.57.0",
23
- "node-opcua-debug": "2.55.0",
24
- "node-opcua-file-transfer": "2.58.0",
22
+ "node-opcua-data-model": "2.61.0",
23
+ "node-opcua-debug": "2.61.0",
24
+ "node-opcua-file-transfer": "2.62.0",
25
25
  "node-opcua-hostname": "2.55.0",
26
- "node-opcua-nodeid": "2.55.0",
26
+ "node-opcua-nodeid": "2.61.0",
27
27
  "node-opcua-nodesets": "2.57.0",
28
- "node-opcua-pki": "^2.12.0",
29
- "node-opcua-pseudo-session": "2.57.0",
30
- "node-opcua-secure-channel": "2.57.0",
31
- "node-opcua-server": "2.58.0",
32
- "node-opcua-service-translate-browse-path": "2.57.0",
28
+ "node-opcua-pki": "^2.12.1",
29
+ "node-opcua-pseudo-session": "2.62.0",
30
+ "node-opcua-secure-channel": "2.62.0",
31
+ "node-opcua-server": "2.62.0",
32
+ "node-opcua-service-translate-browse-path": "2.62.0",
33
33
  "node-opcua-status-code": "2.56.0",
34
- "node-opcua-types": "2.57.0",
35
- "node-opcua-variant": "2.57.0",
34
+ "node-opcua-types": "2.62.0",
35
+ "node-opcua-variant": "2.62.0",
36
36
  "rimraf": "^3.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "node-opcua-binary-stream": "2.55.0",
40
- "node-opcua-data-value": "2.57.0",
41
- "node-opcua-leak-detector": "2.56.0",
40
+ "node-opcua-data-value": "2.62.0",
41
+ "node-opcua-leak-detector": "2.61.0",
42
42
  "should": "^13.2.3",
43
- "sinon": "^11.1.2"
43
+ "sinon": "^12.0.1"
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": "a5d0c4ddd44eda6a4710afd6d98f9b16033a95b0"
60
+ "gitHead": "92d7093bc0275f4849f0342e74ee3d50c0d976d3"
61
61
  }
@@ -34,8 +34,8 @@ export function installCertificateExpirationAlarm(addressSpace: AddressSpace) {
34
34
  browseName: "ServerCertificateAlarm",
35
35
  conditionSource: null,
36
36
  eventSourceOf: server,
37
- inputNode: NodeId.nullNodeId,
38
- normalState: NodeId.nullNodeId
37
+ inputNode: new NodeId(),
38
+ normalState: new NodeId()
39
39
  };
40
40
  const data = {};
41
41
  const alarm = UACertificateExpirationAlarmImpl.instantiate(namespace, options, data);