Skip to content

Commit d1b7544

Browse files
authored
Merge pull request #32 from oleksii-donoha/main
update: new proto file, TS fixes
2 parents a7b0dda + 8a885d3 commit d1b7544

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/client.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ var PubSubApiClient = class {
750750
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
751751
* @memberof PubSubApiClient.prototype
752752
*/
753-
async subscribeFromReplayId(topicName, numRequested, replayId) {
753+
async subscribeFromReplayId(topicName, replayId, numRequested = null) {
754754
return this.#subscribe({
755755
topicName,
756756
numRequested,

dist/client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class PubSubApiClient {
4040
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
4141
* @memberof PubSubApiClient.prototype
4242
*/
43-
subscribeFromReplayId(topicName: string, numRequested?: number | null, replayId: number): Promise<EventEmitter>;
43+
subscribeFromReplayId(topicName: string, numRequested?: number | null, replayId: number): Promise<EventEmitter>;
4444
/**
4545
* Subscribes to a topic.
4646
* @param {string} topicName name of the topic that we're subscribing to

dist/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ var PubSubApiClient = class {
717717
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
718718
* @memberof PubSubApiClient.prototype
719719
*/
720-
async subscribeFromReplayId(topicName, numRequested, replayId) {
720+
async subscribeFromReplayId(topicName, replayId, numRequested = null) {
721721
return this.#subscribe({
722722
topicName,
723723
numRequested,

0 commit comments

Comments
 (0)