@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/echo-db",
3
- "version": "2.33.8-dev.6bc74570",
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-dev.6bc74570",
14
- "@dxos/codec-protobuf": "2.33.8-dev.6bc74570",
15
- "@dxos/credentials": "2.33.8-dev.6bc74570",
16
- "@dxos/crypto": "2.33.8-dev.6bc74570",
17
- "@dxos/debug": "2.33.8-dev.6bc74570",
18
- "@dxos/echo-protocol": "2.33.8-dev.6bc74570",
19
- "@dxos/feed-store": "2.33.8-dev.6bc74570",
20
- "@dxos/mesh-protocol": "2.33.8-dev.6bc74570",
21
- "@dxos/model-factory": "2.33.8-dev.6bc74570",
22
- "@dxos/network-manager": "2.33.8-dev.6bc74570",
23
- "@dxos/object-model": "2.33.8-dev.6bc74570",
24
- "@dxos/protocol-plugin-presence": "2.33.8-dev.6bc74570",
25
- "@dxos/protocol-plugin-replicator": "2.33.8-dev.6bc74570",
26
- "@dxos/protocols": "2.33.8-dev.6bc74570",
27
- "@dxos/random-access-multi-storage": "2.33.8-dev.6bc74570",
28
- "@dxos/util": "2.33.8-dev.6bc74570",
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.7",
38
+ "@dxos/browser-mocha": "2.33.8",
39
39
  "@dxos/eslint-plugin": "~1.0.34",
40
- "@dxos/protocols-toolchain": "2.33.7",
41
- "@dxos/testutils": "2.33.7",
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, humanize, KeyPair } from '@dxos/crypto';
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, verify
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 { createIdentityInfoMessage, createKeyAdmitMessage, createPartyGenesisMessage, KeyChain, KeyRecord, Keyring, KeyType, SignedMessage } from '@dxos/credentials';
6
- import { humanize } from '@dxos/crypto';
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';
@@ -4,7 +4,7 @@
4
4
 
5
5
  import debug from 'debug';
6
6
 
7
- import { humanize } from '@dxos/crypto';
7
+ import { humanize } from '@dxos/util';
8
8
 
9
9
  import { TimeframeClock } from '../packlets/database';
10
10
  import { PartyPipeline } from '../pipeline';