@teamvibe/poller 0.1.42 → 0.1.43

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.
Files changed (2) hide show
  1. package/dist/poller.js +9 -2
  2. package/package.json +1 -1
package/dist/poller.js CHANGED
@@ -176,8 +176,15 @@ async function processMessage(received) {
176
176
  }
177
177
  if (hasSlackContext) {
178
178
  try {
179
- await sendSlackError(queueMessage, error instanceof Error ? error.message : 'Unknown error');
180
- await addReaction(queueMessage, 'x');
179
+ const errMsg = error instanceof Error ? error.message : 'Unknown error';
180
+ // Don't leak internal infra errors to Slack users
181
+ const isInternalError = errMsg.includes('ReceiptHandle') ||
182
+ errMsg.includes('ConditionalCheckFailedException') ||
183
+ errMsg.includes('visibility timeout');
184
+ if (!isInternalError) {
185
+ await sendSlackError(queueMessage, errMsg);
186
+ await addReaction(queueMessage, 'x');
187
+ }
181
188
  }
182
189
  catch (slackError) {
183
190
  sessionLog.error(`Failed to send Slack error: ${slackError}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamvibe/poller",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {