Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-certificate-manager

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-certificate-manager - npm Package Compare versions

Comparing version 2.85.0 to 2.86.0

4

dist/certificate_manager.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc