Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
Expand Up @@ -6224,9 +6224,7 @@
delete payload.data;
}
else if ('action' in payload && payload.action === 'interval') {
// @ts-expect-error This is `interval` object which should have `hereNowRefresh` field.
payload['hereNowRefresh'] = (_a = payload.here_now_refresh) !== null && _a !== void 0 ? _a : false;
// @ts-expect-error Keeping only human-readable keys.
payload.hereNowRefresh = (_a = payload.here_now_refresh) !== null && _a !== void 0 ? _a : false;
delete payload.here_now_refresh;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class PubNub extends pubnub_common_1.PubNubCore {
if (process.env.CRYPTO_MODULE !== 'disabled')
cryptography = new node_2.default();
// Setup transport provider.
const transport = new node_transport_1.NodeTransport(configuration.keepAlive, configuration.keepAliveSettings);
const transport = new node_transport_1.NodeTransport(configuration.keepAlive, configuration.keepAliveSettings, clientConfiguration.logVerbosity);
const transportMiddleware = new middleware_1.PubNubMiddleware({
clientConfiguration,
tokenManager,
Expand Down
2 changes: 1 addition & 1 deletion lib/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5952,7 +5952,7 @@ declare namespace PubNub {
*/
status?: string;
/**
* Channel's membership type.
* Channel's member type.
*/
type?: string;
/**
Expand Down
6 changes: 5 additions & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ class PubNub extends PubNubCore<string | ArrayBuffer | Buffer | Readable, PubNub
if (process.env.CRYPTO_MODULE !== 'disabled') cryptography = new NodeCryptography();

// Setup transport provider.
const transport = new NodeTransport(configuration.keepAlive, configuration.keepAliveSettings);
const transport = new NodeTransport(
configuration.keepAlive,
configuration.keepAliveSettings,
clientConfiguration.logVerbosity!,
);
const transportMiddleware = new PubNubMiddleware({
clientConfiguration,
tokenManager,
Expand Down
3 changes: 1 addition & 2 deletions test/integration/endpoints/subscribe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('subscribe endpoints', () => {
// @ts-expect-error Force override default value.
useRequestId: false,
autoNetworkDetection: false,
logVerbosity: true,
});
pubnubWithFiltering = new PubNub({
subscribeKey: 'mySubKey',
Expand Down Expand Up @@ -203,7 +202,7 @@ describe('subscribe endpoints', () => {
});
});

it('supports timetoken', (done) => {
it.only('supports timetoken', (done) => {
const scope0 = utils
.createNock()
.get('/v2/subscribe/mySubKey/c1/0')
Expand Down