@artenx/dshb 0.1.36 → 0.1.37
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/lib/core/index.js +1 -1
- package/lib/core/sync/coordinator.js +1 -1
- package/lib/core/sync/internal-routes.js +1 -1
- package/lib/core/sync/offline-archive.js +1 -1
- package/lib/core/sync/offline-routes.js +1 -1
- package/lib/core/sync/session-routes.js +1 -1
- package/lib/core/sync/session-sync.js +1 -1
- package/lib/{session-sync-DLr_BdvN.js → session-sync-CQWx3lW9.js} +2 -3
- package/lib/session-sync-CQWx3lW9.js.map +1 -0
- package/package.json +1 -1
- package/lib/session-sync-DLr_BdvN.js.map +0 -1
package/lib/core/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { registerWorkspaceInstructionRoutes } from "./workspace-instruction-rout
|
|
|
11
11
|
import { WorkspaceBindingsStore } from "./workspace-bindings.js";
|
|
12
12
|
import { registerWorkspaceInstructionInjector } from "./workspace-instruction-context.js";
|
|
13
13
|
import { SyncPeerManager } from "./sync/peer-manager.js";
|
|
14
|
-
import { i as SyncSessionService } from "../session-sync-
|
|
14
|
+
import { i as SyncSessionService } from "../session-sync-CQWx3lW9.js";
|
|
15
15
|
import { registerSyncInternalRoutes } from "./sync/internal-routes.js";
|
|
16
16
|
import { SyncSshTransport } from "./sync/ssh-transport.js";
|
|
17
17
|
import { SyncCoordinator } from "./sync/coordinator.js";
|
|
@@ -3,7 +3,7 @@ import { syncRecordKey } from "./model.js";
|
|
|
3
3
|
import { SyncNodeManifestError } from "./node-sync.js";
|
|
4
4
|
import { SyncPeerNotFoundError } from "./peer-manager.js";
|
|
5
5
|
import { SYNC_SESSION_BUNDLE_OBJECTS_CAPABILITY, SYNC_SESSION_EVENT_TAIL_CAPABILITY, SYNC_SESSION_OBJECT_STREAM_CAPABILITY } from "./protocol.js";
|
|
6
|
-
import { c as planSessionTransfers, f as validateSyncSessionBundle, l as sessionEventListDigest, n as SyncSessionError, o as makeSyncSessionBundle, p as validateSyncSessionManifest, u as syncSessionEntryKey } from "../../session-sync-
|
|
6
|
+
import { c as planSessionTransfers, f as validateSyncSessionBundle, l as sessionEventListDigest, n as SyncSessionError, o as makeSyncSessionBundle, p as validateSyncSessionManifest, u as syncSessionEntryKey } from "../../session-sync-CQWx3lW9.js";
|
|
7
7
|
import { SyncHostKeyChallengeError } from "./host-key.js";
|
|
8
8
|
import { SyncSessionDeltaPrefixError, SyncSshProbeError } from "./ssh-transport.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isLoopbackRequest } from "../../auth/loopback.js";
|
|
2
2
|
import { SyncNodeManifestError } from "./node-sync.js";
|
|
3
3
|
import { SYNC_SESSION_BUNDLE_OBJECTS_CAPABILITY, SYNC_SESSION_EVENT_TAIL_CAPABILITY, SYNC_SESSION_MANIFEST_CAPABILITY, SYNC_SESSION_OBJECT_STREAM_CAPABILITY } from "./protocol.js";
|
|
4
|
-
import { d as validateObjectPayload, n as SyncSessionError } from "../../session-sync-
|
|
4
|
+
import { d as validateObjectPayload, n as SyncSessionError } from "../../session-sync-CQWx3lW9.js";
|
|
5
5
|
//#region src/core/sync/internal-routes.ts
|
|
6
6
|
const MAX_APPLY_BODY_BYTES = 134217728;
|
|
7
7
|
function sendJson(res, status, body) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as validateSyncSessionBundle, n as SyncSessionError } from "../../session-sync-
|
|
1
|
+
import { f as validateSyncSessionBundle, n as SyncSessionError } from "../../session-sync-CQWx3lW9.js";
|
|
2
2
|
import { SyncOfflineArchiveJournalStore } from "./offline-journal.js";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { appendFileSync, chmodSync, closeSync, createReadStream, createWriteStream, mkdirSync, mkdtempSync, openSync, readSync, readdirSync, rmSync, statSync, statfsSync, writeFileSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SyncSessionError } from "../../session-sync-
|
|
1
|
+
import { n as SyncSessionError } from "../../session-sync-CQWx3lW9.js";
|
|
2
2
|
import { SyncOfflineArchiveError } from "./offline-archive.js";
|
|
3
3
|
import { createReadStream } from "node:fs";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as estimateJsonBytes, c as planSessionTransfers, d as validateObjectPayload, f as validateSyncSessionBundle, i as SyncSessionService, l as sessionEventListDigest, n as SyncSessionError, o as makeSyncSessionBundle, p as validateSyncSessionManifest, r as SyncSessionObjectInbox, s as makeSyncSessionManifest, t as ExportObjectCache, u as syncSessionEntryKey } from "../../session-sync-
|
|
1
|
+
import { a as estimateJsonBytes, c as planSessionTransfers, d as validateObjectPayload, f as validateSyncSessionBundle, i as SyncSessionService, l as sessionEventListDigest, n as SyncSessionError, o as makeSyncSessionBundle, p as validateSyncSessionManifest, r as SyncSessionObjectInbox, s as makeSyncSessionManifest, t as ExportObjectCache, u as syncSessionEntryKey } from "../../session-sync-CQWx3lW9.js";
|
|
2
2
|
export { ExportObjectCache, SyncSessionError, SyncSessionObjectInbox, SyncSessionService, estimateJsonBytes, makeSyncSessionBundle, makeSyncSessionManifest, planSessionTransfers, sessionEventListDigest, syncSessionEntryKey, validateObjectPayload, validateSyncSessionBundle, validateSyncSessionManifest };
|
|
@@ -1079,7 +1079,6 @@ function sessionStateDigest(workspace, workspacePosition, archived, pinned) {
|
|
|
1079
1079
|
revision: workspace.revision,
|
|
1080
1080
|
contentDigest: workspace.contentDigest
|
|
1081
1081
|
},
|
|
1082
|
-
workspacePosition,
|
|
1083
1082
|
archived,
|
|
1084
1083
|
pinned
|
|
1085
1084
|
}));
|
|
@@ -2985,7 +2984,7 @@ var SyncSessionService = class SyncSessionService {
|
|
|
2985
2984
|
let contentDigest = digest;
|
|
2986
2985
|
let outputBranchId = archive?.branchId;
|
|
2987
2986
|
if (archive) {
|
|
2988
|
-
if (archive.contentDigest !== digest || archive.stateDigest !== stateDigest
|
|
2987
|
+
if (archive.contentDigest !== digest || archive.stateDigest !== stateDigest) {
|
|
2989
2988
|
const nextRevision = this.state.nextRevision(this.now());
|
|
2990
2989
|
revision = nextRevision;
|
|
2991
2990
|
const branchId = archive.contentDigest !== digest ? branchIdFor({
|
|
@@ -3398,4 +3397,4 @@ var SyncSessionService = class SyncSessionService {
|
|
|
3398
3397
|
//#endregion
|
|
3399
3398
|
export { estimateJsonBytes as a, planSessionTransfers as c, validateObjectPayload as d, validateSyncSessionBundle as f, SyncSessionService as i, sessionEventListDigest as l, SyncSessionError as n, makeSyncSessionBundle as o, validateSyncSessionManifest as p, SyncSessionObjectInbox as r, makeSyncSessionManifest as s, ExportObjectCache as t, syncSessionEntryKey as u };
|
|
3400
3399
|
|
|
3401
|
-
//# sourceMappingURL=session-sync-
|
|
3400
|
+
//# sourceMappingURL=session-sync-CQWx3lW9.js.map
|