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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3930,7 +3930,8 @@ async function writeIndex(instanceUrl, token, scope, id, indexSlug, entries) {
|
|
|
3930
3930
|
try {
|
|
3931
3931
|
await updateWikiPage(instanceUrl, token, scope, id, indexSlug, content);
|
|
3932
3932
|
} catch (updateErr) {
|
|
3933
|
-
if (!updateErr.message?.includes("
|
|
3933
|
+
if (!updateErr.message?.includes("not found") && !updateErr.message?.includes("404"))
|
|
3934
|
+
throw updateErr;
|
|
3934
3935
|
await createWikiPage(instanceUrl, token, scope, id, indexSlug, content);
|
|
3935
3936
|
}
|
|
3936
3937
|
}
|
|
@@ -3955,7 +3956,8 @@ async function upsertPage(instanceUrl, token, scope, id, slug, content) {
|
|
|
3955
3956
|
try {
|
|
3956
3957
|
await updateWikiPage(instanceUrl, token, scope, id, slug, content);
|
|
3957
3958
|
} catch (updateErr) {
|
|
3958
|
-
if (!updateErr.message?.includes("
|
|
3959
|
+
if (!updateErr.message?.includes("not found") && !updateErr.message?.includes("404"))
|
|
3960
|
+
throw updateErr;
|
|
3959
3961
|
await createWikiPage(instanceUrl, token, scope, id, slug, content);
|
|
3960
3962
|
}
|
|
3961
3963
|
}
|