vona-module-a-queue 5.0.17 → 5.0.19

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.
@@ -1,4 +1,5 @@
1
- import { BeanQueueBase, IQueueExecute, IQueuePushOptions, Queue } from 'vona-module-a-queue';
1
+ import type { IQueueExecute, IQueuePushOptions } from 'vona-module-a-queue';
2
+ import { BeanQueueBase, Queue } from 'vona-module-a-queue';
2
3
 
3
4
  export type TypeQueue<%=argv.beanNameCapitalize%>JobData = unknown;
4
5
 
package/dist/index.js CHANGED
@@ -239,7 +239,10 @@ let ServiceQueue = (_dec$2 = Service(), _dec2$2 = BeanInfo({
239
239
  async _queueEventsReady(queueQueue) {
240
240
  if (queueQueue.queueEventsReady) return;
241
241
  await queueQueue.queueEvents.waitUntilReady();
242
- await sleep(this.scope.config.queueEvents.waitUntilReady);
242
+ const waitUntilReady = this.scope.config.queueEvents.waitUntilReady;
243
+ if (waitUntilReady) {
244
+ await sleep(waitUntilReady);
245
+ }
243
246
  queueQueue.queueEventsReady = true;
244
247
  }
245
248
  _combineQueueKey(info) {
@@ -59,7 +59,7 @@ export interface IDecoratorQueueOptions extends IOnionOptionsEnable {
59
59
  }
60
60
  declare module 'vona-module-a-onion' {
61
61
  interface BeanOnion {
62
- queue: ServiceOnion<IDecoratorQueueOptions, keyof IQueueRecord>;
62
+ queue: ServiceOnion<IQueueRecord>;
63
63
  }
64
64
  }
65
65
  declare module 'vona' {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-queue",
3
3
  "type": "module",
4
- "version": "5.0.17",
4
+ "version": "5.0.19",
5
5
  "title": "a-queue",
6
6
  "vonaModule": {
7
7
  "dependencies": {},