@ideem/zsm-client-sdk 2.8.1 → 2.9.1

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/WebAuthnClient.js CHANGED
@@ -1,29 +1 @@
1
- import eventCoordinator from './EventCoordinator.js';
2
- import WebAuthnClientBase from './WebAuthnClientBase.js';
3
- import WASMRustInterface from './WASMRustInterface.js';
4
-
5
- eventCoordinator.update('WebAuthnClient');
6
-
7
- class WebAuthnClient extends WebAuthnClientBase {
8
- /**
9
- * Constructs a WebAuthnClient object by extending the WebAuthnClientBase class.
10
- * @param {Object} config - The configuration for ZSM initialization.
11
- */
12
- constructor(config) {
13
- super(config);
14
- eventCoordinator.update('WebAuthnClient', 'READY');
15
- }
16
-
17
- /**
18
- * @name getZsmApi
19
- * @description Retrieves the ZSM API instance.
20
- * @param {Object} config The configuration object for ZSM initialization.
21
- * @returns {Promise<ZSMAPI>} Resolves with the initialized ZSM API.
22
- * @overrides {function} getZsmApi (ref: WebAuthnClientBase)
23
- * @memberOf WebAuthnClient
24
- */
25
- getZsmApi = async (config) => WASMRustInterface(config);
26
- }
27
-
28
- // Export the WebAuthnClient class
29
- export default WebAuthnClient;
1
+ import t from"./EventCoordinator.js";import e from"./WebAuthnClientBase.js";import r from"./WASMRustInterface.js";t.update("WebAuthnClient");export default class extends e{constructor(e){super(e),t.update("WebAuthnClient","READY")}getZsmApi=async t=>r(t)}