@microsoft/omnichannel-chat-sdk
Advanced tools
Comparing version 0.3.0 to 0.3.1-main.5b57f35
@@ -6,2 +6,6 @@ # Changelog | ||
### Fixed | ||
- `onNewMessage` with `rehydrate` flag set to `true` crashing when `getMessages` returns `undefined` | ||
- Fix `AriaTelemetry` unable to read property `logEvent` of undefined on `React Native` | ||
## [0.3.0] - 2021-09-03 | ||
@@ -8,0 +12,0 @@ ### Added |
@@ -41,2 +41,3 @@ "use strict"; | ||
AriaTelemetry.info = function (properties, scenarioType) { | ||
var _a; | ||
if (scenarioType === void 0) { scenarioType = ScenarioType_1.default.EVENTS; } | ||
@@ -68,5 +69,6 @@ var event = { | ||
this._debug && console.log(event.properties.Event); | ||
!AriaTelemetry._disable && AriaTelemetry.logger.logEvent(event); | ||
!AriaTelemetry._disable && ((_a = AriaTelemetry.logger) === null || _a === void 0 ? void 0 : _a.logEvent(event)); | ||
}; | ||
AriaTelemetry.debug = function (properties, scenarioType) { | ||
var _a; | ||
if (scenarioType === void 0) { scenarioType = ScenarioType_1.default.EVENTS; } | ||
@@ -98,5 +100,6 @@ var event = { | ||
this._debug && console.log(event.properties.Event); | ||
!AriaTelemetry._disable && AriaTelemetry.logger.logEvent(event); | ||
!AriaTelemetry._disable && ((_a = AriaTelemetry.logger) === null || _a === void 0 ? void 0 : _a.logEvent(event)); | ||
}; | ||
AriaTelemetry.warn = function (properties, scenarioType) { | ||
var _a; | ||
if (scenarioType === void 0) { scenarioType = ScenarioType_1.default.EVENTS; } | ||
@@ -128,5 +131,6 @@ var event = { | ||
this._debug && console.log(event.properties.Event); | ||
!AriaTelemetry._disable && AriaTelemetry.logger.logEvent(event); | ||
!AriaTelemetry._disable && ((_a = AriaTelemetry.logger) === null || _a === void 0 ? void 0 : _a.logEvent(event)); | ||
}; | ||
AriaTelemetry.error = function (properties, scenarioType) { | ||
var _a; | ||
if (scenarioType === void 0) { scenarioType = ScenarioType_1.default.EVENTS; } | ||
@@ -158,5 +162,6 @@ var event = { | ||
this._debug && console.log(event.properties.Event); | ||
!AriaTelemetry._disable && AriaTelemetry.logger.logEvent(event); | ||
!AriaTelemetry._disable && ((_a = AriaTelemetry.logger) === null || _a === void 0 ? void 0 : _a.logEvent(event)); | ||
}; | ||
AriaTelemetry.log = function (properties, scenarioType) { | ||
var _a; | ||
if (scenarioType === void 0) { scenarioType = ScenarioType_1.default.EVENTS; } | ||
@@ -188,3 +193,3 @@ var event = { | ||
this._debug && console.log(event.properties.Event); | ||
!AriaTelemetry._disable && AriaTelemetry.logger.logEvent(event); | ||
!AriaTelemetry._disable && ((_a = AriaTelemetry.logger) === null || _a === void 0 ? void 0 : _a.logEvent(event)); | ||
}; | ||
@@ -191,0 +196,0 @@ Object.defineProperty(AriaTelemetry, "logger", { |
{ | ||
"name": "@microsoft/omnichannel-chat-sdk", | ||
"version": "0.3.0", | ||
"version": "0.3.1-main.5b57f35", | ||
"description": "Microsoft Omnichannel Chat SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
749517
9169