zen-fs-config 0.5.12 → 0.5.13

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 CHANGED
@@ -876,7 +876,9 @@ var ConfigRepo = class {
876
876
  for (const tombstone of tombstones) {
877
877
  const tVersionPath = versionPathFor(tombstone.path);
878
878
  const existedOnPrimary = await this.safeExists(this.cachedFS, tombstone.path);
879
- console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on primary \u2192 ${existedOnPrimary ? "EXISTS" : "not found"}`);
879
+ if (existedOnPrimary) {
880
+ console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on primary \u2192 EXISTS`);
881
+ }
880
882
  if (existedOnPrimary) {
881
883
  try {
882
884
  await this.cachedFS.unlink(tombstone.path);
@@ -892,8 +894,8 @@ var ConfigRepo = class {
892
894
  }
893
895
  for (const [replicaId, replica] of this.replicaBackends) {
894
896
  const existed = await this.safeExists(replica.instance, tombstone.path);
895
- console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on ${replicaId} \u2192 ${existed ? "EXISTS" : "not found"}`);
896
897
  if (existed) {
898
+ console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on ${replicaId} \u2192 EXISTS`);
897
899
  try {
898
900
  await replica.instance.unlink(tombstone.path);
899
901
  console.log(`[ConfigRepo] tombstone ${tombstone.path}: deleted on ${replicaId}`);
package/dist/index.mjs CHANGED
@@ -786,7 +786,9 @@ var ConfigRepo = class {
786
786
  for (const tombstone of tombstones) {
787
787
  const tVersionPath = versionPathFor(tombstone.path);
788
788
  const existedOnPrimary = await this.safeExists(this.cachedFS, tombstone.path);
789
- console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on primary \u2192 ${existedOnPrimary ? "EXISTS" : "not found"}`);
789
+ if (existedOnPrimary) {
790
+ console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on primary \u2192 EXISTS`);
791
+ }
790
792
  if (existedOnPrimary) {
791
793
  try {
792
794
  await this.cachedFS.unlink(tombstone.path);
@@ -802,8 +804,8 @@ var ConfigRepo = class {
802
804
  }
803
805
  for (const [replicaId, replica] of this.replicaBackends) {
804
806
  const existed = await this.safeExists(replica.instance, tombstone.path);
805
- console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on ${replicaId} \u2192 ${existed ? "EXISTS" : "not found"}`);
806
807
  if (existed) {
808
+ console.log(`[ConfigRepo] tombstone check: ${tombstone.path} on ${replicaId} \u2192 EXISTS`);
807
809
  try {
808
810
  await replica.instance.unlink(tombstone.path);
809
811
  console.log(`[ConfigRepo] tombstone ${tombstone.path}: deleted on ${replicaId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "Distributed config management library built on ZenFS, zen-fs-cache, and zen-fs-sync",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",