@interncom/diplomatic 0.0.66 → 0.0.68
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/README.md +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -11489,6 +11489,7 @@ var DiplomaticClient = class {
|
|
|
11489
11489
|
this.hostKeyPair.publicKey,
|
|
11490
11490
|
"tok123"
|
|
11491
11491
|
);
|
|
11492
|
+
await this.store.setLastFetchedAt(/* @__PURE__ */ new Date(0));
|
|
11492
11493
|
await this.store.setHostURL(hostURL);
|
|
11493
11494
|
await this.store.setHostID(hostID);
|
|
11494
11495
|
this.emitUpdate();
|
|
@@ -11543,11 +11544,11 @@ var DiplomaticClient = class {
|
|
|
11543
11544
|
const { hostURL, hostKeyPair } = this;
|
|
11544
11545
|
const resp = await api_default.listDeltas(hostURL, begin, hostKeyPair);
|
|
11545
11546
|
for (const item of resp.deltas) {
|
|
11547
|
+
await this.store.dequeueUpload(item.sha256);
|
|
11546
11548
|
if (await this.store.hasOp(item.sha256)) {
|
|
11547
11549
|
continue;
|
|
11548
11550
|
}
|
|
11549
11551
|
await this.store.enqueueDownload(item.sha256, item.recordedAt);
|
|
11550
|
-
await this.store.dequeueUpload(item.sha256);
|
|
11551
11552
|
this.emitXferUpdate();
|
|
11552
11553
|
}
|
|
11553
11554
|
await this.store.setLastFetchedAt(new Date(resp.fetchedAt));
|