authscape 1.0.732 → 1.0.735
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/index.js +2 -2
- package/package.json +1 -1
- package/src/services/sitemapService.js +2 -2
package/index.js
CHANGED
|
@@ -9544,10 +9544,10 @@ function _generateSitemap() {
|
|
|
9544
9544
|
_context.t0 = _context["catch"](0);
|
|
9545
9545
|
console.error('AuthScape Sitemap Error:', _context.t0);
|
|
9546
9546
|
|
|
9547
|
-
// Return 500 error
|
|
9547
|
+
// Return 500 error with error details
|
|
9548
9548
|
res.statusCode = 500;
|
|
9549
9549
|
res.setHeader('Content-Type', 'text/plain');
|
|
9550
|
-
res.write(
|
|
9550
|
+
res.write("Error generating sitemap: ".concat(_context.t0.message || _context.t0));
|
|
9551
9551
|
res.end();
|
|
9552
9552
|
return _context.abrupt("return", {
|
|
9553
9553
|
props: {}
|
package/package.json
CHANGED
|
@@ -50,10 +50,10 @@ export async function generateSitemap(req, res, apiUri) {
|
|
|
50
50
|
} catch (error) {
|
|
51
51
|
console.error('AuthScape Sitemap Error:', error);
|
|
52
52
|
|
|
53
|
-
// Return 500 error
|
|
53
|
+
// Return 500 error with error details
|
|
54
54
|
res.statusCode = 500;
|
|
55
55
|
res.setHeader('Content-Type', 'text/plain');
|
|
56
|
-
res.write(
|
|
56
|
+
res.write(`Error generating sitemap: ${error.message || error}`);
|
|
57
57
|
res.end();
|
|
58
58
|
|
|
59
59
|
return {
|