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.
- package/dist/adapters/node-identity.cjs +16 -7
- package/dist/adapters/node-identity.d.cts +1 -1
- package/dist/adapters/node-identity.d.mts +1 -1
- package/dist/adapters/node-identity.mjs +16 -7
- package/dist/adapters/threshold-identity.d.cts +1 -1
- package/dist/adapters/threshold-identity.d.mts +1 -1
- package/dist/domain/capability-grant.d.cts +1 -1
- package/dist/domain/capability-grant.d.mts +1 -1
- package/dist/domain/capability-request.d.cts +1 -1
- package/dist/domain/capability-request.d.mts +1 -1
- package/dist/domain/channel-exhausted-error.cjs +11 -0
- package/dist/domain/channel-exhausted-error.d.cts +6 -0
- package/dist/domain/channel-exhausted-error.d.mts +6 -0
- package/dist/domain/channel-exhausted-error.mjs +10 -0
- package/dist/domain/data-sync.d.cts +1 -1
- package/dist/domain/data-sync.d.mts +1 -1
- package/dist/domain/handshake.cjs +9 -0
- package/dist/domain/handshake.d.cts +2 -0
- package/dist/domain/handshake.d.mts +2 -0
- package/dist/domain/handshake.mjs +9 -1
- package/dist/domain/mesh-session.cjs +112 -48
- package/dist/domain/mesh-session.d.cts +4 -2
- package/dist/domain/mesh-session.d.mts +4 -2
- package/dist/domain/mesh-session.mjs +111 -47
- package/dist/domain/notice-board.d.cts +1 -1
- package/dist/domain/notice-board.d.mts +1 -1
- package/dist/domain/peer-advert.d.cts +1 -1
- package/dist/domain/peer-advert.d.mts +1 -1
- package/dist/domain/room-rekey.d.cts +1 -1
- package/dist/domain/room-rekey.d.mts +1 -1
- package/dist/domain/room.d.cts +1 -1
- package/dist/domain/room.d.mts +1 -1
- package/dist/domain/tokens.cjs +8 -0
- package/dist/domain/tokens.d.cts +4 -2
- package/dist/domain/tokens.d.mts +4 -2
- package/dist/domain/tokens.mjs +9 -1
- package/dist/generated/protocol.cjs +8 -8
- package/dist/generated/protocol.mjs +8 -8
- package/dist/{identity-EV-HHv_D.d.mts → identity-BioGOV9M.d.mts} +10 -1
- package/dist/{identity-B6nhlSOT.d.cts → identity-C5jq53NV.d.cts} +10 -1
- package/dist/ports/identity.cjs +13 -0
- package/dist/ports/identity.d.cts +2 -2
- package/dist/ports/identity.d.mts +2 -2
- package/dist/ports/identity.mjs +12 -1
- package/package.json +5 -1
- package/wasm-dist/wire_mesh_threshold_wasm_bg.wasm +0 -0
package/dist/ports/identity.cjs
CHANGED
|
@@ -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 {
|
|
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 {
|
|
2
|
-
export { IdentityPort };
|
|
1
|
+
import { n as IdentityKeyFault, r as IdentityPort, t as IdentityKeyError } from "../identity-BioGOV9M.mjs";
|
|
2
|
+
export { IdentityKeyError, IdentityKeyFault, IdentityPort };
|
package/dist/ports/identity.mjs
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
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.
|
|
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"
|
|
Binary file
|