New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/omnichannel-chat-sdk

Package Overview
Dependencies
Maintainers
0
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/omnichannel-chat-sdk - npm Package Compare versions

Comparing version 1.9.3-main.2c3e007 to 1.9.3-main.81cb938

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

### Changed
- Log `error` object on failures on sending message and send typing
## [1.9.2] - 2024-06-25

@@ -9,0 +13,0 @@

32

lib/core/messaging/ACSClient.js

@@ -374,3 +374,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var sendMessageRequest, sendMessageOptions, error_6;
var sendMessageRequest, sendMessageOptions, error_6, exceptionDetails;
return __generator(this, function (_e) {

@@ -400,3 +400,9 @@ switch (_e.label) {

error_6 = _e.sent();
(_d = this.logger) === null || _d === void 0 ? void 0 : _d.failScenario(ACSClientEvent.SendMessage);
exceptionDetails = {
response: 'SendMessageFailed',
errorObject: "" + error_6
};
(_d = this.logger) === null || _d === void 0 ? void 0 : _d.failScenario(ACSClientEvent.SendMessage, {
ExceptionDetails: JSON.stringify(exceptionDetails)
});
throw new Error('SendMessageFailed');

@@ -411,18 +417,24 @@ case 4: return [2 /*return*/];

return __awaiter(this, void 0, void 0, function () {
var _e;
return __generator(this, function (_f) {
switch (_f.label) {
var error_7, exceptionDetails;
return __generator(this, function (_e) {
switch (_e.label) {
case 0:
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.startScenario(ACSClientEvent.SendTyping);
_f.label = 1;
_e.label = 1;
case 1:
_f.trys.push([1, 3, , 4]);
_e.trys.push([1, 3, , 4]);
return [4 /*yield*/, ((_b = this.chatThreadClient) === null || _b === void 0 ? void 0 : _b.sendTypingNotification())];
case 2:
_f.sent();
_e.sent();
(_c = this.logger) === null || _c === void 0 ? void 0 : _c.completeScenario(ACSClientEvent.SendTyping);
return [3 /*break*/, 4];
case 3:
_e = _f.sent();
(_d = this.logger) === null || _d === void 0 ? void 0 : _d.failScenario(ACSClientEvent.SendTyping);
error_7 = _e.sent();
exceptionDetails = {
response: 'SendTypingFailed',
errorObject: "" + error_7
};
(_d = this.logger) === null || _d === void 0 ? void 0 : _d.failScenario(ACSClientEvent.SendTyping, {
ExceptionDetails: JSON.stringify(exceptionDetails)
});
throw new Error('SendTypingFailed');

@@ -429,0 +441,0 @@ case 4: return [2 /*return*/];

{
"name": "@microsoft/omnichannel-chat-sdk",
"version": "1.9.3-main.2c3e007",
"version": "1.9.3-main.81cb938",
"description": "Microsoft Omnichannel Chat SDK",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc