@seed-hypermedia/client 0.0.6 → 0.0.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/dist/auto-link.d.ts +1 -1
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/auto-link.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type AutoLinkChildToParentOptions = {
|
|
|
44
44
|
account: string;
|
|
45
45
|
/** Full path of the child document (e.g. "/tests/benefits-of-cli"). */
|
|
46
46
|
path: string;
|
|
47
|
-
/** hm:// URL of the published child document (
|
|
47
|
+
/** hm:// URL of the published child document (without version). */
|
|
48
48
|
childHmUrl: string;
|
|
49
49
|
/** Signer for the parent document change. */
|
|
50
50
|
signer: HMSigner;
|
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
|
}
|