@seed-hypermedia/client 0.0.5 → 0.0.7

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.
@@ -12509,13 +12509,10 @@ type HMDraftMetaBase = {
12509
12509
  deps: string[];
12510
12510
  navigation?: HMNavigationItem[];
12511
12511
  };
12512
- export type HMDraftMeta = HMDraftMetaBase & ({
12513
- editUid: string;
12512
+ export type HMDraftMeta = HMDraftMetaBase & {
12513
+ editUid?: string;
12514
12514
  locationUid?: string;
12515
- } | {
12516
- editUid?: undefined;
12517
- locationUid: string;
12518
- });
12515
+ };
12519
12516
  export declare const HMListedDraftSchema: z.ZodEffects<z.ZodObject<{
12520
12517
  id: z.ZodString;
12521
12518
  locationUid: z.ZodOptional<z.ZodString>;
package/dist/index.mjs CHANGED
@@ -104,9 +104,11 @@ function buildUnsignedRef({
104
104
  signer: signerBytes,
105
105
  ts: BigInt(Date.now()),
106
106
  sig: new Uint8Array(64),
107
- genesisBlob: CID.parse(genesis),
108
- generation
107
+ genesisBlob: CID.parse(genesis)
109
108
  };
109
+ if (generation !== 0) {
110
+ unsigned.generation = generation;
111
+ }
110
112
  if (!bytesEqual(spaceBytes, signerBytes)) {
111
113
  unsigned.space = spaceBytes;
112
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",