@dxos/echo-db 2.33.8-dev.6bc74570 → 2.33.8
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/echo.test.js +10 -10
- package/dist/src/echo.test.js.map +1 -1
- package/dist/src/halo/halo.d.ts.map +1 -1
- package/dist/src/halo/halo.js +2 -1
- package/dist/src/halo/halo.js.map +1 -1
- package/dist/src/parties/party-factory.d.ts.map +1 -1
- package/dist/src/parties/party-factory.js +2 -2
- package/dist/src/parties/party-factory.js.map +1 -1
- package/dist/src/parties/party-manager.test.js +7 -6
- package/dist/src/parties/party-manager.test.js.map +1 -1
- package/dist/src/protocol/identity-credentials.d.ts.map +1 -1
- package/dist/src/protocol/identity-credentials.js +2 -2
- package/dist/src/protocol/identity-credentials.js.map +1 -1
- package/dist/src/snapshots/snapshot-generator.js +2 -2
- package/dist/src/snapshots/snapshot-generator.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -20
- package/src/echo.test.ts +1 -1
- package/src/halo/halo.ts +3 -1
- package/src/parties/party-factory.ts +1 -1
- package/src/parties/party-manager.test.ts +3 -2
- package/src/protocol/identity-credentials.ts +5 -2
- package/src/snapshots/snapshot-generator.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/echo-db",
|
|
3
|
-
"version": "2.33.8
|
|
3
|
+
"version": "2.33.8",
|
|
4
4
|
"description": "ECHO database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"src"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dxos/async": "2.33.8
|
|
14
|
-
"@dxos/codec-protobuf": "2.33.8
|
|
15
|
-
"@dxos/credentials": "2.33.8
|
|
16
|
-
"@dxos/crypto": "2.33.8
|
|
17
|
-
"@dxos/debug": "2.33.8
|
|
18
|
-
"@dxos/echo-protocol": "2.33.8
|
|
19
|
-
"@dxos/feed-store": "2.33.8
|
|
20
|
-
"@dxos/mesh-protocol": "2.33.8
|
|
21
|
-
"@dxos/model-factory": "2.33.8
|
|
22
|
-
"@dxos/network-manager": "2.33.8
|
|
23
|
-
"@dxos/object-model": "2.33.8
|
|
24
|
-
"@dxos/protocol-plugin-presence": "2.33.8
|
|
25
|
-
"@dxos/protocol-plugin-replicator": "2.33.8
|
|
26
|
-
"@dxos/protocols": "2.33.8
|
|
27
|
-
"@dxos/random-access-multi-storage": "2.33.8
|
|
28
|
-
"@dxos/util": "2.33.8
|
|
13
|
+
"@dxos/async": "2.33.8",
|
|
14
|
+
"@dxos/codec-protobuf": "2.33.8",
|
|
15
|
+
"@dxos/credentials": "2.33.8",
|
|
16
|
+
"@dxos/crypto": "2.33.8",
|
|
17
|
+
"@dxos/debug": "2.33.8",
|
|
18
|
+
"@dxos/echo-protocol": "2.33.8",
|
|
19
|
+
"@dxos/feed-store": "2.33.8",
|
|
20
|
+
"@dxos/mesh-protocol": "2.33.8",
|
|
21
|
+
"@dxos/model-factory": "2.33.8",
|
|
22
|
+
"@dxos/network-manager": "2.33.8",
|
|
23
|
+
"@dxos/object-model": "2.33.8",
|
|
24
|
+
"@dxos/protocol-plugin-presence": "2.33.8",
|
|
25
|
+
"@dxos/protocol-plugin-replicator": "2.33.8",
|
|
26
|
+
"@dxos/protocols": "2.33.8",
|
|
27
|
+
"@dxos/random-access-multi-storage": "2.33.8",
|
|
28
|
+
"@dxos/util": "2.33.8",
|
|
29
29
|
"base-x": "~3.0.9",
|
|
30
30
|
"buffer-json-encoding": "^1.0.2",
|
|
31
31
|
"debug": "^4.3.3",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"pify": "~5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@dxos/browser-mocha": "2.33.
|
|
38
|
+
"@dxos/browser-mocha": "2.33.8",
|
|
39
39
|
"@dxos/eslint-plugin": "~1.0.34",
|
|
40
|
-
"@dxos/protocols-toolchain": "2.33.
|
|
41
|
-
"@dxos/testutils": "2.33.
|
|
40
|
+
"@dxos/protocols-toolchain": "2.33.8",
|
|
41
|
+
"@dxos/testutils": "2.33.8",
|
|
42
42
|
"@types/columnify": "^1.5.1",
|
|
43
43
|
"@types/debug": "^4.1.7",
|
|
44
44
|
"@types/faker": "^5.5.1",
|
package/src/echo.test.ts
CHANGED
|
@@ -11,9 +11,9 @@ import { latch, promiseTimeout, waitForCondition } from '@dxos/async';
|
|
|
11
11
|
import {
|
|
12
12
|
defaultSecretProvider, defaultSecretValidator, generateSeedPhrase, keyPairFromSeedPhrase
|
|
13
13
|
} from '@dxos/credentials';
|
|
14
|
-
import { humanize } from '@dxos/crypto';
|
|
15
14
|
import { ObjectModel } from '@dxos/object-model';
|
|
16
15
|
import { afterTest } from '@dxos/testutils';
|
|
16
|
+
import { humanize } from '@dxos/util';
|
|
17
17
|
|
|
18
18
|
import { ECHO } from './echo';
|
|
19
19
|
import { Contact } from './halo';
|
package/src/halo/halo.ts
CHANGED
|
@@ -7,11 +7,12 @@ import debug from 'debug';
|
|
|
7
7
|
|
|
8
8
|
import { synchronized } from '@dxos/async';
|
|
9
9
|
import { KeyRecord, Keyring, KeyType, SecretProvider } from '@dxos/credentials';
|
|
10
|
-
import { createKeyPair,
|
|
10
|
+
import { createKeyPair, KeyPair } from '@dxos/crypto';
|
|
11
11
|
import { raise } from '@dxos/debug';
|
|
12
12
|
import { ModelFactory } from '@dxos/model-factory';
|
|
13
13
|
import { NetworkManager } from '@dxos/network-manager';
|
|
14
14
|
import { PublicKey } from '@dxos/protocols';
|
|
15
|
+
import { humanize } from '@dxos/util';
|
|
15
16
|
|
|
16
17
|
import { ResultSet } from '../api';
|
|
17
18
|
import { InvitationAuthenticator, InvitationDescriptor, InvitationOptions } from '../invitations';
|
|
@@ -225,6 +226,7 @@ export class HALO {
|
|
|
225
226
|
*/
|
|
226
227
|
async createInvitation (authenticationDetails: InvitationAuthenticator, options?: InvitationOptions) {
|
|
227
228
|
assert(this.identity?.halo, 'HALO not initialized.');
|
|
229
|
+
|
|
228
230
|
return this.identity.halo.createInvitation(authenticationDetails, options);
|
|
229
231
|
}
|
|
230
232
|
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
SecretProvider,
|
|
14
14
|
wrapMessage
|
|
15
15
|
} from '@dxos/credentials';
|
|
16
|
-
import { humanize } from '@dxos/crypto';
|
|
17
16
|
import { failUndefined, raise, timed } from '@dxos/debug';
|
|
18
17
|
import { createFeedWriter, FeedMessage, PartyKey, PartySnapshot, Timeframe } from '@dxos/echo-protocol';
|
|
19
18
|
import { ModelFactory } from '@dxos/model-factory';
|
|
20
19
|
import { NetworkManager } from '@dxos/network-manager';
|
|
21
20
|
import { ObjectModel } from '@dxos/object-model';
|
|
22
21
|
import { PublicKey } from '@dxos/protocols';
|
|
22
|
+
import { humanize } from '@dxos/util';
|
|
23
23
|
|
|
24
24
|
import {
|
|
25
25
|
createDataPartyAdmissionMessages,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
} from '@dxos/credentials';
|
|
20
20
|
import {
|
|
21
21
|
createKeyPair,
|
|
22
|
-
humanize,
|
|
23
22
|
randomBytes,
|
|
24
23
|
sign,
|
|
25
|
-
SIGNATURE_LENGTH,
|
|
24
|
+
SIGNATURE_LENGTH,
|
|
25
|
+
verify
|
|
26
26
|
} from '@dxos/crypto';
|
|
27
27
|
import { checkType } from '@dxos/debug';
|
|
28
28
|
import { codec, EchoEnvelope, Timeframe } from '@dxos/echo-protocol';
|
|
@@ -33,6 +33,7 @@ import { ObjectModel } from '@dxos/object-model';
|
|
|
33
33
|
import { PublicKey } from '@dxos/protocols';
|
|
34
34
|
import { createStorage, StorageType } from '@dxos/random-access-multi-storage';
|
|
35
35
|
import { afterTest, testTimeout } from '@dxos/testutils';
|
|
36
|
+
import { humanize } from '@dxos/util';
|
|
36
37
|
|
|
37
38
|
import { defaultInvitationAuthenticator, OfflineInvitationClaimer } from '../invitations';
|
|
38
39
|
import { Item } from '../packlets/database';
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
createIdentityInfoMessage, createKeyAdmitMessage, createPartyGenesisMessage,
|
|
7
|
+
KeyChain, KeyRecord, Keyring, KeyType, SignedMessage
|
|
8
|
+
} from '@dxos/credentials';
|
|
9
|
+
import { humanize } from '@dxos/util';
|
|
7
10
|
|
|
8
11
|
import { ContactManager, Preferences } from '../halo';
|
|
9
12
|
import { CredentialsSigner } from './credentials-signer';
|