@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.
- package/dist/hm-types.d.ts +3 -6
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/hm-types.d.ts
CHANGED
|
@@ -12509,13 +12509,10 @@ type HMDraftMetaBase = {
|
|
|
12509
12509
|
deps: string[];
|
|
12510
12510
|
navigation?: HMNavigationItem[];
|
|
12511
12511
|
};
|
|
12512
|
-
export type HMDraftMeta = HMDraftMetaBase &
|
|
12513
|
-
editUid
|
|
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
|
}
|