node-opcua-pki 6.3.0 → 6.4.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.
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +199 -152
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +199 -152
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/readme.md +24 -7
package/dist/index.d.mts
CHANGED
|
@@ -182,12 +182,17 @@ declare enum CertificateManagerState {
|
|
|
182
182
|
declare class CertificateManager {
|
|
183
183
|
untrustUnknownCertificate: boolean;
|
|
184
184
|
state: CertificateManagerState;
|
|
185
|
+
/** @deprecated Use {@link folderPollingInterval} instead (typo fix). */
|
|
185
186
|
folderPoolingInterval: number;
|
|
187
|
+
/** Interval in milliseconds for file-system polling (when enabled). */
|
|
188
|
+
get folderPollingInterval(): number;
|
|
189
|
+
set folderPollingInterval(value: number);
|
|
186
190
|
readonly keySize: KeySize;
|
|
187
191
|
private readonly location;
|
|
188
192
|
private readonly _watchers;
|
|
189
193
|
private _readCertificatesCalled;
|
|
190
194
|
private readonly _filenameToHash;
|
|
195
|
+
private _initializingPromise?;
|
|
191
196
|
private readonly _thumbs;
|
|
192
197
|
constructor(options: CertificateManagerOptions);
|
|
193
198
|
get configFile(): string;
|
|
@@ -246,6 +251,16 @@ declare class CertificateManager {
|
|
|
246
251
|
* calling this method.
|
|
247
252
|
*/
|
|
248
253
|
dispose(): Promise<void>;
|
|
254
|
+
/**
|
|
255
|
+
* Force a full re-scan of all PKI folders, rebuilding
|
|
256
|
+
* the in-memory `_thumbs` index from scratch.
|
|
257
|
+
*
|
|
258
|
+
* Call this after external processes have modified the
|
|
259
|
+
* PKI folders (e.g. via `writeTrustList` or CLI tools)
|
|
260
|
+
* to ensure the CertificateManager sees the latest
|
|
261
|
+
* state without waiting for file-system events.
|
|
262
|
+
*/
|
|
263
|
+
reloadCertificates(): Promise<void>;
|
|
249
264
|
protected withLock2<T>(action: () => Promise<T>): Promise<T>;
|
|
250
265
|
/**
|
|
251
266
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -182,12 +182,17 @@ declare enum CertificateManagerState {
|
|
|
182
182
|
declare class CertificateManager {
|
|
183
183
|
untrustUnknownCertificate: boolean;
|
|
184
184
|
state: CertificateManagerState;
|
|
185
|
+
/** @deprecated Use {@link folderPollingInterval} instead (typo fix). */
|
|
185
186
|
folderPoolingInterval: number;
|
|
187
|
+
/** Interval in milliseconds for file-system polling (when enabled). */
|
|
188
|
+
get folderPollingInterval(): number;
|
|
189
|
+
set folderPollingInterval(value: number);
|
|
186
190
|
readonly keySize: KeySize;
|
|
187
191
|
private readonly location;
|
|
188
192
|
private readonly _watchers;
|
|
189
193
|
private _readCertificatesCalled;
|
|
190
194
|
private readonly _filenameToHash;
|
|
195
|
+
private _initializingPromise?;
|
|
191
196
|
private readonly _thumbs;
|
|
192
197
|
constructor(options: CertificateManagerOptions);
|
|
193
198
|
get configFile(): string;
|
|
@@ -246,6 +251,16 @@ declare class CertificateManager {
|
|
|
246
251
|
* calling this method.
|
|
247
252
|
*/
|
|
248
253
|
dispose(): Promise<void>;
|
|
254
|
+
/**
|
|
255
|
+
* Force a full re-scan of all PKI folders, rebuilding
|
|
256
|
+
* the in-memory `_thumbs` index from scratch.
|
|
257
|
+
*
|
|
258
|
+
* Call this after external processes have modified the
|
|
259
|
+
* PKI folders (e.g. via `writeTrustList` or CLI tools)
|
|
260
|
+
* to ensure the CertificateManager sees the latest
|
|
261
|
+
* state without waiting for file-system events.
|
|
262
|
+
*/
|
|
263
|
+
reloadCertificates(): Promise<void>;
|
|
249
264
|
protected withLock2<T>(action: () => Promise<T>): Promise<T>;
|
|
250
265
|
/**
|
|
251
266
|
*
|