@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 CHANGED
@@ -37,4 +37,4 @@ export default function App() {
37
37
 
38
38
  ## Development
39
39
 
40
- To deploy npm package: `npm run build && npm run tsc && npm publish --public`.
40
+ To deploy npm package, from the `web` dir, run: `npm run build && npm run tsc && npm publish --public`.
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interncom/diplomatic",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "type": "module",
5
5
  "description": "Secure sync layer",
6
6
  "main": "dist/index.mjs",