node-opcua-certificate-manager
Advanced tools
Comparing version 2.32.0 to 2.33.0
@@ -42,3 +42,3 @@ import { Certificate } from "node-opcua-crypto"; | ||
static registry: ObjectRegistry; | ||
isShared: boolean; | ||
referenceCounter: number; | ||
automaticallyAcceptUnknownCertificate: boolean; | ||
@@ -45,0 +45,0 @@ constructor(options: OPCUACertificateManagerOptions); |
@@ -43,3 +43,3 @@ "use strict"; | ||
super(_options); | ||
this.isShared = false; | ||
this.referenceCounter = 0; | ||
this.automaticallyAcceptUnknownCertificate = !!options.automaticallyAcceptUnknownCertificate; | ||
@@ -60,3 +60,3 @@ } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!this.isShared) { | ||
if (this.referenceCounter === 0) { | ||
if (this.initialized) { | ||
@@ -68,2 +68,5 @@ // OPCUACertificateManager.registry.unregister(this); | ||
} | ||
else { | ||
this.referenceCounter--; | ||
} | ||
}); | ||
@@ -70,0 +73,0 @@ } |
@@ -5,1 +5,2 @@ /** | ||
export * from "./certificate_manager"; | ||
export * from "./make_subject"; |
@@ -17,2 +17,3 @@ "use strict"; | ||
__exportStar(require("./certificate_manager"), exports); | ||
__exportStar(require("./make_subject"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "node-opcua-certificate-manager", | ||
"version": "2.32.0", | ||
"version": "2.33.0", | ||
"description": "pure nodejs OPCUA SDK - module -client", | ||
@@ -60,3 +60,3 @@ "scripts": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "0837f665b683c6a891d495ae8cf6f701e4a8450e" | ||
"gitHead": "6f8b408a6dc55a12711fb20775d5e0f69aff5347" | ||
} |
@@ -77,3 +77,3 @@ /** | ||
public static registry = new ObjectRegistry({}); | ||
public isShared: boolean; | ||
public referenceCounter: number; | ||
public automaticallyAcceptUnknownCertificate: boolean; | ||
@@ -95,3 +95,3 @@ /* */ | ||
this.isShared = false; | ||
this.referenceCounter = 0; | ||
@@ -113,3 +113,3 @@ this.automaticallyAcceptUnknownCertificate = !!options.automaticallyAcceptUnknownCertificate; | ||
public async dispose(): Promise<void> { | ||
if (!this.isShared) { | ||
if (this.referenceCounter === 0) { | ||
if (this.initialized) { | ||
@@ -120,2 +120,4 @@ // OPCUACertificateManager.registry.unregister(this); | ||
this.initialized = false; | ||
} else { | ||
this.referenceCounter--; | ||
} | ||
@@ -122,0 +124,0 @@ } |
@@ -5,1 +5,2 @@ /** | ||
export * from "./certificate_manager"; | ||
export * from "./make_subject"; |
Sorry, the diff of this file is not supported yet
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
25599
17
399