@dxos/protocols 0.1.53-main.acf3e0d → 0.1.53-main.ada9e34

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.
@@ -9,7 +9,7 @@ import { Timeframe } from '@dxos/timeframe';
9
9
  export const substitutions = {
10
10
  'dxos.keys.PublicKey': {
11
11
  encode: (value: PublicKey) => ({ data: value.asUint8Array() }),
12
- decode: (value: any) => PublicKey.from(new Uint8Array(value.data)),
12
+ decode: (value: any) => PublicKey.from(value.data),
13
13
  },
14
14
 
15
15
  // TODO(dmaretskyi): Shouldn't be substituted to PublicKey.
@@ -27,7 +27,7 @@ export const substitutions = {
27
27
  new Timeframe(
28
28
  (vector.frames ?? [])
29
29
  .filter((frame: any) => frame.feedKey != null && frame.seq != null)
30
- .map((frame: any) => [PublicKey.from(new Uint8Array(frame.feedKey)), frame.seq]),
30
+ .map((frame: any) => [PublicKey.from(frame.feedKey), frame.seq]),
31
31
  ),
32
32
  },
33
33
  };