@fairfox/polly 0.20.1 → 0.21.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/src/background/index.js.map +7 -7
- package/dist/src/background/message-router.js.map +7 -7
- package/dist/src/elysia/index.d.ts +2 -0
- package/dist/src/elysia/index.js +177 -17
- package/dist/src/elysia/index.js.map +8 -5
- package/dist/src/elysia/peer-repo-plugin.d.ts +79 -0
- package/dist/src/elysia/signaling-server-plugin.d.ts +121 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/index.js +1731 -2
- package/dist/src/index.js.map +31 -13
- package/dist/src/shared/adapters/index.js.map +6 -6
- package/dist/src/shared/lib/_client-only.d.ts +38 -0
- package/dist/src/shared/lib/access.d.ts +124 -0
- package/dist/src/shared/lib/blob-ref.d.ts +72 -0
- package/dist/src/shared/lib/context-helpers.js.map +7 -7
- package/dist/src/shared/lib/crdt-specialised.d.ts +129 -0
- package/dist/src/shared/lib/crdt-state.d.ts +86 -0
- package/dist/src/shared/lib/encryption.d.ts +117 -0
- package/dist/src/shared/lib/mesh-network-adapter.d.ts +130 -0
- package/dist/src/shared/lib/mesh-signaling-client.d.ts +85 -0
- package/dist/src/shared/lib/mesh-state.d.ts +102 -0
- package/dist/src/shared/lib/mesh-webrtc-adapter.d.ts +132 -0
- package/dist/src/shared/lib/message-bus.js.map +7 -7
- package/dist/src/shared/lib/migrate-primitive.d.ts +100 -0
- package/dist/src/shared/lib/pairing.d.ts +170 -0
- package/dist/src/shared/lib/peer-relay-adapter.d.ts +80 -0
- package/dist/src/shared/lib/peer-repo-server.d.ts +83 -0
- package/dist/src/shared/lib/peer-state.d.ts +117 -0
- package/dist/src/shared/lib/primitive-registry.d.ts +88 -0
- package/dist/src/shared/lib/resource.js.map +4 -4
- package/dist/src/shared/lib/revocation.d.ts +126 -0
- package/dist/src/shared/lib/schema-version.d.ts +129 -0
- package/dist/src/shared/lib/signing.d.ts +118 -0
- package/dist/src/shared/lib/state.js.map +4 -4
- package/dist/src/shared/state/app-state.js.map +5 -5
- package/dist/tools/init/src/cli.js.map +1 -1
- package/dist/tools/quality/src/index.js +177 -0
- package/dist/tools/quality/src/index.js.map +10 -0
- package/dist/tools/test/src/adapters/index.js.map +2 -2
- package/dist/tools/test/src/browser/harness.d.ts +80 -0
- package/dist/tools/test/src/browser/index.d.ts +32 -0
- package/dist/tools/test/src/browser/index.js +243 -0
- package/dist/tools/test/src/browser/index.js.map +10 -0
- package/dist/tools/test/src/browser/run.d.ts +26 -0
- package/dist/tools/test/src/index.js.map +2 -2
- package/dist/tools/verify/specs/tla/MeshState.cfg +21 -0
- package/dist/tools/verify/specs/tla/MeshState.tla +247 -0
- package/dist/tools/verify/specs/tla/PeerState.cfg +27 -0
- package/dist/tools/verify/specs/tla/PeerState.tla +238 -0
- package/dist/tools/verify/specs/tla/README.md +27 -3
- package/dist/tools/verify/src/cli.js.map +8 -8
- package/dist/tools/visualize/src/cli.js.map +7 -7
- package/package.json +47 -5
package/dist/src/index.d.ts
CHANGED
|
@@ -6,14 +6,50 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { ExtensionAdapters } from "./shared/adapters";
|
|
8
8
|
export { createChromeAdapters } from "./shared/adapters";
|
|
9
|
+
export type { Access, AccessPredicate, PeerIdentity } from "./shared/lib/access";
|
|
10
|
+
export { and, anyOfPeers, anyone, groupAccess, nobody, not, onlyPeer, or, ownerAccess, publicAccess, readOnlyExcept, } from "./shared/lib/access";
|
|
11
|
+
export type { BlobRef, CreateBlobRefArgs } from "./shared/lib/blob-ref";
|
|
12
|
+
export { computeBlobHash, createBlobRef, isBlobRef } from "./shared/lib/blob-ref";
|
|
9
13
|
export { checkPostconditions, checkPreconditions, clearConstraints, isRuntimeConstraintsEnabled, registerConstraint, registerConstraints, } from "./shared/lib/constraints";
|
|
10
14
|
export type { ContextConfig } from "./shared/lib/context-helpers";
|
|
11
15
|
export { createContext, runInContext } from "./shared/lib/context-helpers";
|
|
12
16
|
export type { BackgroundHelpers, ContentScriptHelpers, DevToolsHelpers, OptionsHelpers, PopupHelpers, SidePanelHelpers, } from "./shared/lib/context-specific-helpers";
|
|
17
|
+
export type { CounterDoc, CrdtCounterOptions, CrdtListOptions, CrdtTextOptions, ListDoc, SpecialisedPrimitive, TextDoc, } from "./shared/lib/crdt-specialised";
|
|
18
|
+
export { $crdtCounter, $crdtList, $crdtText } from "./shared/lib/crdt-specialised";
|
|
19
|
+
export type { CrdtPrimitive, CrdtStateOptions } from "./shared/lib/crdt-state";
|
|
20
|
+
export { $crdtState } from "./shared/lib/crdt-state";
|
|
21
|
+
export type { EncryptedEnvelope, SealedBytes, } from "./shared/lib/encryption";
|
|
22
|
+
export { decrypt, decryptOrThrow, EncryptionError, encrypt, generateDocumentKey, KEY_BYTES as ENCRYPTION_KEY_BYTES, NONCE_BYTES as ENCRYPTION_NONCE_BYTES, TAG_BYTES as ENCRYPTION_TAG_BYTES, } from "./shared/lib/encryption";
|
|
13
23
|
export { ConnectionError, ErrorHandler, ExtensionError, HandlerError, TimeoutError, } from "./shared/lib/errors";
|
|
24
|
+
export type { MeshKeyring, MeshNetworkAdapterOptions, } from "./shared/lib/mesh-network-adapter";
|
|
25
|
+
export { DEFAULT_MESH_KEY_ID, MeshNetworkAdapter, } from "./shared/lib/mesh-network-adapter";
|
|
26
|
+
export type { MeshSignalingClientOptions, SignalingMessage as MeshSignalingMessage, } from "./shared/lib/mesh-signaling-client";
|
|
27
|
+
export { MeshSignalingClient } from "./shared/lib/mesh-signaling-client";
|
|
28
|
+
export type { MeshStateOptions } from "./shared/lib/mesh-state";
|
|
29
|
+
export { $meshCounter, $meshList, $meshState, $meshText, configureMeshState, resetMeshState, } from "./shared/lib/mesh-state";
|
|
30
|
+
export type { MeshWebRTCAdapterOptions } from "./shared/lib/mesh-webrtc-adapter";
|
|
31
|
+
export { DEFAULT_ICE_SERVERS, MeshWebRTCAdapter } from "./shared/lib/mesh-webrtc-adapter";
|
|
14
32
|
export { getMessageBus, MessageBus } from "./shared/lib/message-bus";
|
|
33
|
+
export type { MigratableState } from "./shared/lib/migrate-primitive";
|
|
34
|
+
export { MigrationError, migratePrimitive } from "./shared/lib/migrate-primitive";
|
|
35
|
+
export type { CreatePairingTokenOptions, PairingToken, } from "./shared/lib/pairing";
|
|
36
|
+
export { applyPairingToken, createPairingToken, createPairingTokenWithFreshIdentity, DEFAULT_PAIRING_TTL_MS, decodePairingToken, encodePairingToken, isPairingTokenExpired, PAIRING_NONCE_BYTES, PAIRING_TOKEN_VERSION, PairingError, parsePairingToken, serialisePairingToken, } from "./shared/lib/pairing";
|
|
37
|
+
export type { CreatePeerStateClientOptions, PeerRelayConnectionState, PeerStateClient, } from "./shared/lib/peer-relay-adapter";
|
|
38
|
+
export { createPeerStateClient } from "./shared/lib/peer-relay-adapter";
|
|
39
|
+
export type { CreatePeerRepoServerOptions, PeerRepoServer, } from "./shared/lib/peer-repo-server";
|
|
40
|
+
export { createPeerRepoServer } from "./shared/lib/peer-repo-server";
|
|
41
|
+
export type { PeerCounterOptions, PeerListOptions, PeerStateOptions, PeerTextOptions, } from "./shared/lib/peer-state";
|
|
42
|
+
export { $peerCounter, $peerList, $peerState, $peerText, configurePeerState, resetPeerState, } from "./shared/lib/peer-state";
|
|
43
|
+
export type { PrimitiveKind } from "./shared/lib/primitive-registry";
|
|
44
|
+
export { PrimitiveCollisionError } from "./shared/lib/primitive-registry";
|
|
15
45
|
export type { Resource, ResourceOptions, ResourceStatus } from "./shared/lib/resource";
|
|
16
46
|
export { $resource } from "./shared/lib/resource";
|
|
47
|
+
export type { CreateRevocationOptions, RevocationRecord, } from "./shared/lib/revocation";
|
|
48
|
+
export { applyRevocation, createRevocation, decodeRevocation, encodeRevocation, REVOCATION_MAGIC, REVOCATION_RECORD_VERSION, RevocationError, revokePeerLocally, } from "./shared/lib/revocation";
|
|
49
|
+
export type { Migration, Migrations, OpVersionCheck, VersionedDoc, } from "./shared/lib/schema-version";
|
|
50
|
+
export { assertOpVersion, checkOpVersion, getDocVersion, SCHEMA_VERSION_FIELD, SchemaVersionError, } from "./shared/lib/schema-version";
|
|
51
|
+
export type { SignedEnvelope, SigningKeyPair } from "./shared/lib/signing";
|
|
52
|
+
export { generateSigningKeyPair, PUBLIC_KEY_BYTES as SIGNING_PUBLIC_KEY_BYTES, SECRET_KEY_BYTES as SIGNING_SECRET_KEY_BYTES, SIGNATURE_BYTES as SIGNING_SIGNATURE_BYTES, SigningError, sign, signingKeyPairFromSecret, verify, } from "./shared/lib/signing";
|
|
17
53
|
export { $persistedState, $sharedState, $state, $syncedState } from "./shared/lib/state";
|
|
18
54
|
export type { TestCase, TestSuite } from "./shared/lib/test-helpers";
|
|
19
55
|
export { createTestSuite, quickTest, TestRunner } from "./shared/lib/test-helpers";
|