@muhkoo/connect 0.12.0-alpha.0 → 0.12.1-alpha.0
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/server/index.js
CHANGED
|
@@ -3235,7 +3235,7 @@ function base64UrlDecode(s) {
|
|
|
3235
3235
|
* expect (and isn't serving a stale cached bundle). Keep this in sync with
|
|
3236
3236
|
* `package.json` `version`.
|
|
3237
3237
|
*/
|
|
3238
|
-
const VERSION = "0.12.
|
|
3238
|
+
const VERSION = "0.12.1-alpha.0";
|
|
3239
3239
|
|
|
3240
3240
|
/**
|
|
3241
3241
|
* `HttpClient` — the one place the unified {@link Client} talks to the
|
|
@@ -9025,7 +9025,12 @@ class Space {
|
|
|
9025
9025
|
const hashes = manifest.chunks.flatMap((c) => c.shardHashes);
|
|
9026
9026
|
if (hashes.length === 0)
|
|
9027
9027
|
return;
|
|
9028
|
-
|
|
9028
|
+
// `manifestId` is what lets the platform tell two copies of the same
|
|
9029
|
+
// bytes apart. Without it the reference ledger keys on content, so the
|
|
9030
|
+
// second copy takes no reference and releasing either frees shards the
|
|
9031
|
+
// other still needs — silent data loss. Sent on BOTH commit and release,
|
|
9032
|
+
// because a release has to reproduce the key its commit took.
|
|
9033
|
+
const body = JSON.stringify({ hashes, bytes: manifest.size, manifestId: manifest.id });
|
|
9029
9034
|
for (let attempt = 0; attempt < 3; attempt++) {
|
|
9030
9035
|
try {
|
|
9031
9036
|
const res = await this.deps.fetch(`${this.deps.httpBaseUrl}/api/storage/${action}`, {
|