@dxos/teleport-extension-object-sync 0.8.3 → 0.8.4-main.28f8d3d

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/teleport-extension-object-sync",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-main.28f8d3d",
4
4
  "description": "Teleport extension to synchronize opaque data objects.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,6 +10,7 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
+ "source": "./src/index.ts",
13
14
  "types": "./dist/types/src/index.d.ts",
14
15
  "browser": "./dist/lib/browser/index.mjs",
15
16
  "node": "./dist/lib/node-esm/index.mjs"
@@ -24,17 +25,17 @@
24
25
  "src"
25
26
  ],
26
27
  "dependencies": {
27
- "@dxos/async": "0.8.3",
28
- "@dxos/crypto": "0.8.3",
29
- "@dxos/invariant": "0.8.3",
30
- "@dxos/log": "0.8.3",
31
- "@dxos/keys": "0.8.3",
32
- "@dxos/node-std": "0.8.3",
33
- "@dxos/protocols": "0.8.3",
34
- "@dxos/context": "0.8.3",
35
- "@dxos/random-access-storage": "0.8.3",
36
- "@dxos/teleport": "0.8.3",
37
- "@dxos/util": "0.8.3"
28
+ "@dxos/async": "0.8.4-main.28f8d3d",
29
+ "@dxos/context": "0.8.4-main.28f8d3d",
30
+ "@dxos/crypto": "0.8.4-main.28f8d3d",
31
+ "@dxos/invariant": "0.8.4-main.28f8d3d",
32
+ "@dxos/keys": "0.8.4-main.28f8d3d",
33
+ "@dxos/log": "0.8.4-main.28f8d3d",
34
+ "@dxos/node-std": "0.8.4-main.28f8d3d",
35
+ "@dxos/protocols": "0.8.4-main.28f8d3d",
36
+ "@dxos/random-access-storage": "0.8.4-main.28f8d3d",
37
+ "@dxos/teleport": "0.8.4-main.28f8d3d",
38
+ "@dxos/util": "0.8.4-main.28f8d3d"
38
39
  },
39
40
  "publishConfig": {
40
41
  "access": "public"
package/src/blob-store.ts CHANGED
@@ -97,7 +97,7 @@ export class BlobStore {
97
97
 
98
98
  @synchronized
99
99
  async set(data: Uint8Array): Promise<BlobMeta> {
100
- const id = new Uint8Array(await subtleCrypto.digest('SHA-256', data));
100
+ const id = new Uint8Array(await subtleCrypto.digest('SHA-256', data as Uint8Array<ArrayBuffer>));
101
101
  const bitfield = BitField.ones(data.length / DEFAULT_CHUNK_SIZE);
102
102
 
103
103
  const meta: BlobMeta = {
@@ -4,7 +4,8 @@
4
4
 
5
5
  // TODO(wittjosiah): This is preventing this suite from running in browser.
6
6
  import { randomBytes } from 'node:crypto';
7
- import { onTestFinished, describe, expect, test } from 'vitest';
7
+
8
+ import { describe, expect, onTestFinished, test } from 'vitest';
8
9
 
9
10
  import { Context } from '@dxos/context';
10
11
  import { StorageType, createStorage } from '@dxos/random-access-storage';
package/src/blob-sync.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { trackLeaks, Trigger, Mutex } from '@dxos/async';
6
- import { cancelWithContext, Context } from '@dxos/context';
5
+ import { Mutex, Trigger, trackLeaks } from '@dxos/async';
6
+ import { Context, cancelWithContext } from '@dxos/context';
7
7
  import { invariant } from '@dxos/invariant';
8
8
  import { PublicKey } from '@dxos/keys';
9
9
  import { log } from '@dxos/log';