Commit ace79b5 for mammothjs

commit ace79b54bd2f673a236a82c06ba82b468f4347ca
Author: Michael Williamson <mike@zwobble.org>
Date:   Wed Sep 16 22:53:11 2026 +0100

    Use .catch() instead of .caught() on promises

diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 19ef3b0..f6e8bd5 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -201,7 +201,7 @@ function DocumentConversion(options, comments) {
         return function(image, messages) {
             return promises.attempt(function() {
                 return convertImage(image, messages);
-            }).caught(function(error) {
+            }).catch(function(error) {
                 messages.push(results.error(error));
                 return [];
             });
diff --git a/lib/docx/files.js b/lib/docx/files.js
index cb8655c..0d1adb9 100644
--- a/lib/docx/files.js
+++ b/lib/docx/files.js
@@ -26,7 +26,7 @@ function Files(options) {

     function read(uri, encoding) {
         return resolveUri(uri).then(function(path) {
-            return readFile(path, encoding).caught(function(error) {
+            return readFile(path, encoding).catch(function(error) {
                 var message = "could not open external image: '" + uri + "' (document directory: '" + base + "')\n" + error.message;
                 return promises.reject(new Error(message));
             });