opencode-gitlab-dap 1.15.9 → 1.15.10

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.cjs CHANGED
@@ -4089,7 +4089,8 @@ async function writeIndex(instanceUrl, token, scope, id, indexSlug, entries) {
4089
4089
  try {
4090
4090
  await updateWikiPage(instanceUrl, token, scope, id, indexSlug, content);
4091
4091
  } catch (updateErr) {
4092
- if (!updateErr.message?.includes("404")) throw updateErr;
4092
+ if (!updateErr.message?.includes("not found") && !updateErr.message?.includes("404"))
4093
+ throw updateErr;
4093
4094
  await createWikiPage(instanceUrl, token, scope, id, indexSlug, content);
4094
4095
  }
4095
4096
  }
@@ -4114,7 +4115,8 @@ async function upsertPage(instanceUrl, token, scope, id, slug, content) {
4114
4115
  try {
4115
4116
  await updateWikiPage(instanceUrl, token, scope, id, slug, content);
4116
4117
  } catch (updateErr) {
4117
- if (!updateErr.message?.includes("404")) throw updateErr;
4118
+ if (!updateErr.message?.includes("not found") && !updateErr.message?.includes("404"))
4119
+ throw updateErr;
4118
4120
  await createWikiPage(instanceUrl, token, scope, id, slug, content);
4119
4121
  }
4120
4122
  }