@adobe/helix-admin-support 3.1.23 → 3.1.25

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.1.25](https://github.com/adobe/helix-admin-support/compare/v3.1.24...v3.1.25) (2025-02-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#363](https://github.com/adobe/helix-admin-support/issues/363)) ([cf33d32](https://github.com/adobe/helix-admin-support/commit/cf33d32341ce875edb05ef1ecd34f6d829f9c94d))
7
+
8
+ ## [3.1.24](https://github.com/adobe/helix-admin-support/compare/v3.1.23...v3.1.24) (2025-01-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * log intermediate progress with debug level ([#362](https://github.com/adobe/helix-admin-support/issues/362)) ([8da8e0b](https://github.com/adobe/helix-admin-support/commit/8da8e0b57689d65183b0b82df8373d2230810a92))
14
+
1
15
  ## [3.1.23](https://github.com/adobe/helix-admin-support/compare/v3.1.22...v3.1.23) (2025-01-28)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "3.1.23",
3
+ "version": "3.1.25",
4
4
  "description": "Helix Admin Support Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -108,7 +108,7 @@ export class BatchedQueueClient {
108
108
  const endMinTime = Date.now() + minTime * 1000;
109
109
  const endMaxTime = Date.now() + maxTime * 1000;
110
110
 
111
- log.info(`starting polling loop on ${this.inQueue} during ${minTime}s and ${maxMessages} max message.`);
111
+ log.info(`started polling loop on ${this.inQueue} during ${minTime}s and ${maxMessages} max message...`);
112
112
 
113
113
  let maybeMore = false;
114
114
  while (messages.length < maxMessages) {
@@ -152,7 +152,7 @@ export class BatchedQueueClient {
152
152
  let deleted = 0;
153
153
  while (messages.length) {
154
154
  const batch = messages.splice(0, 10);
155
- log.info(`deleting ${batch.length} messages from ${this.inQueue}...`);
155
+ log.debug(`deleting ${batch.length} messages from ${this.inQueue}...`);
156
156
  // eslint-disable-next-line no-await-in-loop
157
157
  const result = await sqs.send(new DeleteMessageBatchCommand({
158
158
  QueueUrl: this.inQueue,
@@ -166,8 +166,9 @@ export class BatchedQueueClient {
166
166
  log.warn(`failed to delete ${Failed.length} from queue.`);
167
167
  }
168
168
  deleted += Successful.length;
169
- log.info(`deleted. ${deleted}/${total} from ${this.inQueue} done.`);
169
+ log.debug(`deleted. ${deleted}/${total} from ${this.inQueue} done.`);
170
170
  }
171
+ log.info(`deleted ${deleted} messages from queue ${this.inQueue}`);
171
172
  }
172
173
 
173
174
  /**
@@ -187,7 +188,7 @@ export class BatchedQueueClient {
187
188
  Key: swapKey,
188
189
  }));
189
190
  const swapS3Url = `s3://${this.swapBucket}/${swapKey}`;
190
- log.info(`[${key}]message serialized to ${swapS3Url}`);
191
+ log.debug(`[${key}]message serialized to ${swapS3Url}`);
191
192
  const newBody = {
192
193
  owner,
193
194
  repo,
@@ -239,7 +240,7 @@ export class BatchedQueueClient {
239
240
  batchSize += size + 20;
240
241
  } else if (batch.length === 0) {
241
242
  // message doesn't fit in any batch - serializing to s3
242
- log.info(`[${msg.MessageGroupId}] message too big: ${hsize(size)}. serializing to s3...`);
243
+ log.debug(`[${msg.MessageGroupId}] message too big: ${hsize(size)}. serializing to s3...`);
243
244
  // eslint-disable-next-line no-await-in-loop
244
245
  msg = await this.serialize(msg);
245
246
  size = Buffer.from(JSON.stringify(msg), 'utf8').length;
@@ -247,14 +248,14 @@ export class BatchedQueueClient {
247
248
  batchSize += size + 20;
248
249
  } else {
249
250
  // put message back
250
- log.info(`[${msg.MessageGroupId}] message too big: ${hsize(size)}. sending current batch...`);
251
+ log.debug(`[${msg.MessageGroupId}] message too big: ${hsize(size)}. sending current batch...`);
251
252
  messages.unshift(msg);
252
253
  send = true;
253
254
  }
254
255
 
255
256
  // if the size limit or the num-messages limit is reached, or of we are done, send the batch
256
257
  if (send || batch.length === 10 || messages.length === 0) {
257
- log.info(`sending ${batch.length} messages to ${this.outQueue}...`);
258
+ log.debug(`sending ${batch.length} messages to ${this.outQueue}...`);
258
259
  const input = {
259
260
  QueueUrl: this.outQueue,
260
261
  Entries: batch.map((data, idx) => ({
@@ -271,7 +272,7 @@ export class BatchedQueueClient {
271
272
  }
272
273
  sent += Successful.length;
273
274
  messageIds.push(...Successful.map(({ MessageId }) => MessageId));
274
- log.info(`sent. ${sent}/${total} (${hsize(batchSize)} to ${this.outQueue} done.`);
275
+ log.debug(`sent. ${sent}/${total} (${hsize(batchSize)} to ${this.outQueue} done.`);
275
276
  } catch (e) {
276
277
  // eslint-disable-next-line no-await-in-loop
277
278
  const s3Url = await this.storeUndeliverable(input);