favalib 0.0.14 → 0.0.16

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.
Files changed (54) hide show
  1. package/build/Command/BaseCommand.d.mts +5 -5
  2. package/build/Command/CommandQueue.d.mts +1 -1
  3. package/build/Command/CommandQueue.mjs +3 -3
  4. package/build/Command/commands/AddEntryCommand.d.mts +2 -2
  5. package/build/Command/commands/AddEntryCommand.mjs +1 -1
  6. package/build/Command/commands/AddSyncDeviceCommand.d.mts +2 -2
  7. package/build/Command/commands/AddSyncDeviceCommand.mjs +2 -2
  8. package/build/Command/commands/ChangeDeviceInfoCommand.d.mts +3 -3
  9. package/build/Command/commands/ChangeDeviceInfoCommand.mjs +2 -2
  10. package/build/Command/commands/DeleteEntryCommand.d.mts +2 -2
  11. package/build/Command/commands/DeleteEntryCommand.mjs +1 -1
  12. package/build/Command/commands/UpdateEntryCommand.d.mts +2 -2
  13. package/build/Command/commands/UpdateEntryCommand.mjs +1 -1
  14. package/build/{TwoFaLib.d.mts → FavaLib.d.mts} +5 -5
  15. package/build/{TwoFaLib.mjs → FavaLib.mjs} +14 -14
  16. package/build/{TwoFALibError.d.mts → FavaLibError.d.mts} +9 -9
  17. package/build/{TwoFALibError.mjs → FavaLibError.mjs} +13 -13
  18. package/build/{TwoFaLibEvent.d.mts → FavaLibEvent.d.mts} +1 -1
  19. package/build/FavaLibEvent.mjs +9 -0
  20. package/build/{TwoFaLibMediator.d.mts → FavaLibMediator.d.mts} +3 -3
  21. package/build/{TwoFaLibMediator.mjs → FavaLibMediator.mjs} +4 -4
  22. package/build/interfaces/Entry.d.mts +3 -0
  23. package/build/interfaces/Events.d.mts +10 -10
  24. package/build/interfaces/PlatformProviders.d.mts +4 -0
  25. package/build/interfaces/Vault.d.mts +2 -2
  26. package/build/main.d.mts +5 -5
  27. package/build/main.mjs +5 -5
  28. package/build/platformProviders/browser/cryptoLib.mjs +1 -1
  29. package/build/platformProviders/browser/index.mjs +2 -0
  30. package/build/platformProviders/browser/qrCodeLib.mjs +5 -5
  31. package/build/platformProviders/node/cryptoLib.mjs +1 -1
  32. package/build/platformProviders/node/index.mjs +2 -0
  33. package/build/platformProviders/node/qrCodeLib.mjs +2 -2
  34. package/build/subclasses/CommandManager.d.mts +2 -2
  35. package/build/subclasses/CommandManager.mjs +1 -1
  36. package/build/subclasses/ExportImportManager.d.mts +2 -2
  37. package/build/subclasses/ExportImportManager.mjs +1 -1
  38. package/build/subclasses/LibraryLoader.mjs +1 -1
  39. package/build/subclasses/PersistentStorageManager.d.mts +2 -2
  40. package/build/subclasses/PersistentStorageManager.mjs +3 -3
  41. package/build/subclasses/StorageOperationsManager.d.mts +2 -2
  42. package/build/subclasses/SyncManager.d.mts +2 -2
  43. package/build/subclasses/SyncManager.mjs +11 -11
  44. package/build/subclasses/VaultDataManager.d.mts +2 -2
  45. package/build/subclasses/VaultDataManager.mjs +6 -6
  46. package/build/subclasses/VaultOperationsManager.d.mts +3 -2
  47. package/build/subclasses/VaultOperationsManager.mjs +7 -3
  48. package/build/utils/creationUtils.d.mts +7 -7
  49. package/build/utils/creationUtils.mjs +16 -17
  50. package/build/utils/exportImportUtils.mjs +18 -3
  51. package/build/utils/qrUtils.mjs +2 -2
  52. package/build/utils/syncUtils.mjs +1 -1
  53. package/package.json +2 -1
  54. package/build/TwoFaLibEvent.mjs +0 -9
@@ -1,5 +1,5 @@
1
1
  import { base64ToString } from 'uint8array-extras';
2
- import { SyncError } from '../TwoFALibError.mjs';
2
+ import { SyncError } from '../FavaLibError.mjs';
3
3
  /**
4
4
  * Decodes the initiator data from a string or QR code.
5
5
  * @param initiatorData - The initiator data to decode.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "favalib",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,6 +31,7 @@
31
31
  "@vitest/coverage-v8": "^3.1.4",
32
32
  "eslint": "^9.27.0",
33
33
  "type-fest": "^4.41.0",
34
+ "typedoc": "^0.27.8",
34
35
  "vitest": "^3.1.4",
35
36
  "vitest-websocket-mock": "^0.5.0"
36
37
  },
@@ -1,9 +0,0 @@
1
- export var TwoFaLibEvent;
2
- (function (TwoFaLibEvent) {
3
- TwoFaLibEvent["Changed"] = "changed";
4
- TwoFaLibEvent["LoadedFromLockedRepresentation"] = "loadedFromLockedRepresentation";
5
- TwoFaLibEvent["ConnectToExistingVaultFinished"] = "connectToExistingVaultFinished";
6
- TwoFaLibEvent["ConnectionToSyncServerStatusChanged"] = "connectionToSyncServerStatusChanged";
7
- TwoFaLibEvent["Log"] = "log";
8
- TwoFaLibEvent["Ready"] = "ready";
9
- })(TwoFaLibEvent || (TwoFaLibEvent = {}));