@seed-hypermedia/client 0.0.6 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -2
  2. package/package.json +1 -1
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.6",
3
+ "version": "0.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",