wire-mesh-core 4.0.8 → 4.1.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.
Files changed (46) hide show
  1. package/dist/adapters/node-identity.cjs +16 -7
  2. package/dist/adapters/node-identity.d.cts +1 -1
  3. package/dist/adapters/node-identity.d.mts +1 -1
  4. package/dist/adapters/node-identity.mjs +16 -7
  5. package/dist/adapters/threshold-identity.d.cts +1 -1
  6. package/dist/adapters/threshold-identity.d.mts +1 -1
  7. package/dist/domain/capability-grant.d.cts +1 -1
  8. package/dist/domain/capability-grant.d.mts +1 -1
  9. package/dist/domain/capability-request.d.cts +1 -1
  10. package/dist/domain/capability-request.d.mts +1 -1
  11. package/dist/domain/channel-exhausted-error.cjs +11 -0
  12. package/dist/domain/channel-exhausted-error.d.cts +6 -0
  13. package/dist/domain/channel-exhausted-error.d.mts +6 -0
  14. package/dist/domain/channel-exhausted-error.mjs +10 -0
  15. package/dist/domain/data-sync.d.cts +1 -1
  16. package/dist/domain/data-sync.d.mts +1 -1
  17. package/dist/domain/handshake.cjs +9 -0
  18. package/dist/domain/handshake.d.cts +2 -0
  19. package/dist/domain/handshake.d.mts +2 -0
  20. package/dist/domain/handshake.mjs +9 -1
  21. package/dist/domain/mesh-session.cjs +112 -48
  22. package/dist/domain/mesh-session.d.cts +4 -2
  23. package/dist/domain/mesh-session.d.mts +4 -2
  24. package/dist/domain/mesh-session.mjs +111 -47
  25. package/dist/domain/notice-board.d.cts +1 -1
  26. package/dist/domain/notice-board.d.mts +1 -1
  27. package/dist/domain/peer-advert.d.cts +1 -1
  28. package/dist/domain/peer-advert.d.mts +1 -1
  29. package/dist/domain/room-rekey.d.cts +1 -1
  30. package/dist/domain/room-rekey.d.mts +1 -1
  31. package/dist/domain/room.d.cts +1 -1
  32. package/dist/domain/room.d.mts +1 -1
  33. package/dist/domain/tokens.cjs +8 -0
  34. package/dist/domain/tokens.d.cts +4 -2
  35. package/dist/domain/tokens.d.mts +4 -2
  36. package/dist/domain/tokens.mjs +9 -1
  37. package/dist/generated/protocol.cjs +8 -8
  38. package/dist/generated/protocol.mjs +8 -8
  39. package/dist/{identity-EV-HHv_D.d.mts → identity-BioGOV9M.d.mts} +10 -1
  40. package/dist/{identity-B6nhlSOT.d.cts → identity-C5jq53NV.d.cts} +10 -1
  41. package/dist/ports/identity.cjs +13 -0
  42. package/dist/ports/identity.d.cts +2 -2
  43. package/dist/ports/identity.d.mts +2 -2
  44. package/dist/ports/identity.mjs +12 -1
  45. package/package.json +5 -1
  46. package/wasm-dist/wire_mesh_threshold_wasm_bg.wasm +0 -0
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/ports/identity.ts
3
+ /** Thrown by an IdentityPort's verify for an identity-key it cannot use at all, as opposed to a signature that does not verify (which returns false). Any other error from a port is not a fault of the key: it is a failure of the port itself and is never to be read as a verdict about a peer. */
4
+ var IdentityKeyError = class extends Error {
5
+ fault;
6
+ constructor(fault, message, options) {
7
+ super(message, options);
8
+ this.name = "IdentityKeyError";
9
+ this.fault = fault;
10
+ }
11
+ };
12
+ //#endregion
13
+ exports.IdentityKeyError = IdentityKeyError;
@@ -1,2 +1,2 @@
1
- import { t as IdentityPort } from "../identity-B6nhlSOT.cjs";
2
- export { IdentityPort };
1
+ import { n as IdentityKeyFault, r as IdentityPort, t as IdentityKeyError } from "../identity-C5jq53NV.cjs";
2
+ export { IdentityKeyError, IdentityKeyFault, IdentityPort };
@@ -1,2 +1,2 @@
1
- import { t as IdentityPort } from "../identity-EV-HHv_D.mjs";
2
- export { IdentityPort };
1
+ import { n as IdentityKeyFault, r as IdentityPort, t as IdentityKeyError } from "../identity-BioGOV9M.mjs";
2
+ export { IdentityKeyError, IdentityKeyFault, IdentityPort };
@@ -1 +1,12 @@
1
- export {};
1
+ //#region src/ports/identity.ts
2
+ /** Thrown by an IdentityPort's verify for an identity-key it cannot use at all, as opposed to a signature that does not verify (which returns false). Any other error from a port is not a fault of the key: it is a failure of the port itself and is never to be read as a verdict about a peer. */
3
+ var IdentityKeyError = class extends Error {
4
+ fault;
5
+ constructor(fault, message, options) {
6
+ super(message, options);
7
+ this.name = "IdentityKeyError";
8
+ this.fault = fault;
9
+ }
10
+ };
11
+ //#endregion
12
+ export { IdentityKeyError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wire-mesh-core",
3
- "version": "4.0.8",
3
+ "version": "4.1.1",
4
4
  "dependencies": {
5
5
  "cbor2": "2.3.0",
6
6
  "cddl.js": "1.0.1",
@@ -86,6 +86,10 @@
86
86
  "import": "./dist/domain/capability-request.mjs",
87
87
  "require": "./dist/domain/capability-request.cjs"
88
88
  },
89
+ "./domain/channel-exhausted-error": {
90
+ "import": "./dist/domain/channel-exhausted-error.mjs",
91
+ "require": "./dist/domain/channel-exhausted-error.cjs"
92
+ },
89
93
  "./domain/coordinator-election": {
90
94
  "import": "./dist/domain/coordinator-election.mjs",
91
95
  "require": "./dist/domain/coordinator-election.cjs"