@tinycloud/cli 1.2.6-beta.2 → 1.2.6-beta.4
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/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +23 -8
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -5787,7 +5787,14 @@ function createReplicationEventSink(profileRoot, options) {
|
|
|
5787
5787
|
`);
|
|
5788
5788
|
} else if (event.type === "replication.sync") {
|
|
5789
5789
|
const pending = event.pendingCleared === void 0 ? "" : ` pendingCleared:${event.pendingCleared}`;
|
|
5790
|
-
|
|
5790
|
+
const origin = event.origin === void 0 ? "" : ` origin:${event.origin}`;
|
|
5791
|
+
process.stderr.write(`[replication] sync ${event.replica} ${event.outcome}${event.code ? ` ${event.code}` : ""}${pending}${origin}
|
|
5792
|
+
`);
|
|
5793
|
+
} else if (event.type === "replication.grant") {
|
|
5794
|
+
process.stderr.write(`[replication] grant ${event.replicaId} ${event.action}${event.code ? ` ${event.code}` : ""}${event.effectiveExpiresAt ? ` effectiveExpiresAt:${event.effectiveExpiresAt}` : ""}
|
|
5795
|
+
`);
|
|
5796
|
+
} else if (event.type === "replication.lifecycle") {
|
|
5797
|
+
process.stderr.write(`[replication] lifecycle ${event.action}${event.reason ? ` ${event.reason}` : ""}${event.gate ? ` gate:${event.gate}` : ""}${event.code ? ` ${event.code}` : ""}${event.remaining === void 0 ? "" : ` remaining:${event.remaining}`}
|
|
5791
5798
|
`);
|
|
5792
5799
|
}
|
|
5793
5800
|
}
|