node-opcua-certificate-manager
Advanced tools
Comparing version 2.85.0 to 2.86.0
@@ -49,3 +49,3 @@ "use strict"; | ||
const callback = args[0]; | ||
(0, node_opcua_assert_1.assert)(callback && typeof callback === 'function'); | ||
(0, node_opcua_assert_1.assert)(callback && typeof callback === "function"); | ||
return super.initialize(callback); | ||
@@ -78,3 +78,3 @@ } | ||
debugLog("checkCertificate => StatusCode = ", statusCode.toString()); | ||
if (statusCode === node_opcua_status_code_1.StatusCodes.BadCertificateUntrusted) { | ||
if (statusCode.equals(node_opcua_status_code_1.StatusCodes.BadCertificateUntrusted)) { | ||
const thumbprint = (0, node_opcua_crypto_1.makeSHA1Thumbprint)(certificateChain).toString("hex"); | ||
@@ -81,0 +81,0 @@ if (this.automaticallyAcceptUnknownCertificate) { |
{ | ||
"name": "node-opcua-certificate-manager", | ||
"version": "2.85.0", | ||
"version": "2.86.0", | ||
"description": "pure nodejs OPCUA SDK - module -client", | ||
@@ -19,7 +19,7 @@ "scripts": { | ||
"node-opcua-assert": "2.77.0", | ||
"node-opcua-crypto": "^1.12.0", | ||
"node-opcua-debug": "2.85.0", | ||
"node-opcua-object-registry": "2.85.0", | ||
"node-opcua-pki": "^2.18.4", | ||
"node-opcua-status-code": "2.85.0", | ||
"node-opcua-crypto": "^2.1.2", | ||
"node-opcua-debug": "2.86.0", | ||
"node-opcua-object-registry": "2.86.0", | ||
"node-opcua-pki": "^3.0.1", | ||
"node-opcua-status-code": "2.86.0", | ||
"thenify": "^3.3.1" | ||
@@ -29,3 +29,3 @@ }, | ||
"mocha": "^10.1.0", | ||
"node-opcua-leak-detector": "2.85.0", | ||
"node-opcua-leak-detector": "2.86.0", | ||
"rimraf": "^3.0.2", | ||
@@ -54,3 +54,3 @@ "should": "^13.2.3" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "68498fcf7b20ea9f7bd66e8529c546221daf5d52" | ||
"gitHead": "36afc46fe2c91aa5664a8c5418f4db5a354670c3" | ||
} |
@@ -12,8 +12,4 @@ /** | ||
import { | ||
Certificate, | ||
makeSHA1Thumbprint } from "node-opcua-crypto"; | ||
import { | ||
CertificateManager, | ||
CertificateManagerOptions} from "node-opcua-pki"; | ||
import { Certificate, makeSHA1Thumbprint } from "node-opcua-crypto"; | ||
import { CertificateManager, CertificateManagerOptions } from "node-opcua-pki"; | ||
import { StatusCodes } from "node-opcua-status-code"; | ||
@@ -109,3 +105,3 @@ import { StatusCode } from "node-opcua-status-code"; | ||
const callback = args[0]; | ||
assert(callback && typeof callback === 'function'); | ||
assert(callback && typeof callback === "function"); | ||
return super.initialize(callback); | ||
@@ -138,3 +134,3 @@ } | ||
debugLog("checkCertificate => StatusCode = ", statusCode.toString()); | ||
if (statusCode === StatusCodes.BadCertificateUntrusted) { | ||
if (statusCode.equals(StatusCodes.BadCertificateUntrusted)) { | ||
const thumbprint = makeSHA1Thumbprint(certificateChain).toString("hex"); | ||
@@ -141,0 +137,0 @@ if (this.automaticallyAcceptUnknownCertificate) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25204
384
+ Addedcliui@8.0.1(transitive)
+ Addednode-opcua-binary-stream@2.86.0(transitive)
+ Addednode-opcua-buffer-utils@2.86.0(transitive)
+ Addednode-opcua-crypto@2.2.0(transitive)
+ Addednode-opcua-debug@2.86.0(transitive)
+ Addednode-opcua-object-registry@2.86.0(transitive)
+ Addednode-opcua-pki@3.1.2(transitive)
+ Addednode-opcua-status-code@2.86.0(transitive)
+ Addedyargs@17.7.2(transitive)
- Removedcliui@7.0.4(transitive)
- Removednode-opcua-binary-stream@2.85.0(transitive)
- Removednode-opcua-buffer-utils@2.85.0(transitive)
- Removednode-opcua-crypto@1.12.0(transitive)
- Removednode-opcua-debug@2.85.0(transitive)
- Removednode-opcua-object-registry@2.85.0(transitive)
- Removednode-opcua-pki@2.19.1(transitive)
- Removednode-opcua-status-code@2.85.0(transitive)
- Removedyargs@17.5.1(transitive)
Updatednode-opcua-crypto@^2.1.2
Updatednode-opcua-debug@2.86.0
Updatednode-opcua-pki@^3.0.1