@lokative/messaging 1.1.2 → 1.1.3
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.
|
@@ -40,9 +40,10 @@ let NatsTransport = class NatsTransport {
|
|
|
40
40
|
opts.ackExplicit();
|
|
41
41
|
opts.deliverTo(durable);
|
|
42
42
|
const sub = await this.js.subscribe(subject, opts);
|
|
43
|
+
const iter = sub[Symbol.asyncIterator]();
|
|
43
44
|
const iterator = {
|
|
44
45
|
async next() {
|
|
45
|
-
const result = await
|
|
46
|
+
const result = await iter.next();
|
|
46
47
|
if (result.done)
|
|
47
48
|
return { done: true, value: undefined };
|
|
48
49
|
const msg = result.value;
|
|
@@ -37,9 +37,10 @@ let NatsTransport = class NatsTransport {
|
|
|
37
37
|
opts.ackExplicit();
|
|
38
38
|
opts.deliverTo(durable);
|
|
39
39
|
const sub = await this.js.subscribe(subject, opts);
|
|
40
|
+
const iter = sub[Symbol.asyncIterator]();
|
|
40
41
|
const iterator = {
|
|
41
42
|
async next() {
|
|
42
|
-
const result = await
|
|
43
|
+
const result = await iter.next();
|
|
43
44
|
if (result.done)
|
|
44
45
|
return { done: true, value: undefined };
|
|
45
46
|
const msg = result.value;
|