Skip to content

Commit

Permalink
lib/dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Feb 5, 2024
1 parent 2fd360e commit 5ac554e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 23 deletions.
15 changes: 4 additions & 11 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
Expand Up @@ -2534,9 +2534,6 @@
PNAccessManagerAudit: 'PNAccessManagerAudit',
PNAccessManagerRevokeToken: 'PNAccessManagerRevokeToken',
//
// subscription utilities
PNHandshakeOperation: 'PNHandshakeOperation',
PNReceiveMessagesOperation: 'PNReceiveMessagesOperation',
};

/* */
Expand Down Expand Up @@ -2565,17 +2562,13 @@
return latencies;
};
default_1.prototype.startLatencyMeasure = function (operationType, identifier) {
if (operationType === OPERATIONS.PNSubscribeOperation ||
OPERATIONS.PNReceiveMessagesOperation ||
!identifier) {
if (operationType === OPERATIONS.PNSubscribeOperation || !identifier) {
return;
}
this._trackedLatencies[identifier] = Date.now();
};
default_1.prototype.stopLatencyMeasure = function (operationType, identifier) {
if (operationType === OPERATIONS.PNSubscribeOperation ||
OPERATIONS.PNReceiveMessagesOperation ||
!identifier) {
if (operationType === OPERATIONS.PNSubscribeOperation || !identifier) {
return;
}
var endpointName = this._endpointName(operationType);
Expand Down Expand Up @@ -6727,7 +6720,7 @@
});

var endpoint$1 = {
getOperation: function () { return OPERATIONS.PNHandshakeOperation; },
getOperation: function () { return OPERATIONS.PNSubscribeOperation; },
validateParams: function (_, params) {
if (!(params === null || params === void 0 ? void 0 : params.channels) && !(params === null || params === void 0 ? void 0 : params.channelGroups)) {
return 'channels and channleGroups both should not be empty';
Expand Down Expand Up @@ -6766,7 +6759,7 @@
};

var endpoint = {
getOperation: function () { return OPERATIONS.PNReceiveMessagesOperation; },
getOperation: function () { return OPERATIONS.PNSubscribeOperation; },
validateParams: function (_, params) {
if (!(params === null || params === void 0 ? void 0 : params.channels) && !(params === null || params === void 0 ? void 0 : params.channelGroups)) {
return 'channels and channleGroups both should not be empty';
Expand Down
2 changes: 1 addition & 1 deletion dist/web/pubnub.min.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions lib/core/components/telemetry_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ var default_1 = /** @class */ (function () {
return latencies;
};
default_1.prototype.startLatencyMeasure = function (operationType, identifier) {
if (operationType === operations_1.default.PNSubscribeOperation ||
operations_1.default.PNReceiveMessagesOperation ||
!identifier) {
if (operationType === operations_1.default.PNSubscribeOperation || !identifier) {
return;
}
this._trackedLatencies[identifier] = Date.now();
};
default_1.prototype.stopLatencyMeasure = function (operationType, identifier) {
if (operationType === operations_1.default.PNSubscribeOperation ||
operations_1.default.PNReceiveMessagesOperation ||
!identifier) {
if (operationType === operations_1.default.PNSubscribeOperation || !identifier) {
return;
}
var endpointName = this._endpointName(operationType);
Expand Down
3 changes: 0 additions & 3 deletions lib/core/constants/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,4 @@ exports.default = {
PNAccessManagerAudit: 'PNAccessManagerAudit',
PNAccessManagerRevokeToken: 'PNAccessManagerRevokeToken',
//
// subscription utilities
PNHandshakeOperation: 'PNHandshakeOperation',
PNReceiveMessagesOperation: 'PNReceiveMessagesOperation',
};
2 changes: 1 addition & 1 deletion lib/core/endpoints/subscriptionUtils/handshake.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var operations_1 = __importDefault(require("../../constants/operations"));
var utils_1 = __importDefault(require("../../utils"));
var endpoint = {
getOperation: function () { return operations_1.default.PNHandshakeOperation; },
getOperation: function () { return operations_1.default.PNSubscribeOperation; },
validateParams: function (_, params) {
if (!(params === null || params === void 0 ? void 0 : params.channels) && !(params === null || params === void 0 ? void 0 : params.channelGroups)) {
return 'channels and channleGroups both should not be empty';
Expand Down
2 changes: 1 addition & 1 deletion lib/core/endpoints/subscriptionUtils/receiveMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var operations_1 = __importDefault(require("../../constants/operations"));
var utils_1 = __importDefault(require("../../utils"));
var endpoint = {
getOperation: function () { return operations_1.default.PNReceiveMessagesOperation; },
getOperation: function () { return operations_1.default.PNSubscribeOperation; },
validateParams: function (_, params) {
if (!(params === null || params === void 0 ? void 0 : params.channels) && !(params === null || params === void 0 ? void 0 : params.channelGroups)) {
return 'channels and channleGroups both should not be empty';
Expand Down

0 comments on commit 5ac554e

Please sign in to comment.