@runnerpro/backend 1.14.12 → 1.14.14

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.
@@ -201,7 +201,7 @@ const getConversationFile = (req, res, { bucket, isClient }) => __awaiter(void 0
201
201
  });
202
202
  if (!result)
203
203
  return res.status(404).send('Not found');
204
- if (result.message.mimetype.includes('video')) {
204
+ if (result.message.mimetype.includes('video') && isClient) {
205
205
  res.setHeader('Cache-Control', 'public, max-age=604800');
206
206
  res.setHeader('Expires', new Date(Date.now() + 604800000).toUTCString());
207
207
  res.send({
@@ -487,7 +487,7 @@ Sigue estas reglas estrictamente:
487
487
  **Texto Original:** ${text}
488
488
  **Texto Corregido:**
489
489
  `);
490
- textCorregido = textCorregido.replace(/^¡/g, '').replace(/^¿/g, '');
490
+ textCorregido = textCorregido.replace(/[¡¿]/g, '');
491
491
  return textCorregido;
492
492
  }
493
493
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.14.12",
3
+ "version": "1.14.14",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"