Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/omnichannel-chat-sdk

Package Overview
Dependencies
Maintainers
15
Versions
347
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 0.1.1-main.9a18ebe to 0.1.1-main.9b7affc

2

CHANGELOG.md

@@ -18,2 +18,4 @@ # Changelog

- Uptake [ts-jest@26.5.1](https://www.npmjs.com/package/ts-jest/v/26.5.1)
- Uptake [IC3Client@2021.03.02.1](https://comms.omnichannelengagementhub.com/release/2021.03.02.1/Scripts/SDK/SDK.min.js)
- Uptake [botframework-webchat-adapter-ic3@0.1.0-master.f4dfd7d](https://www.npmjs.com/package/botframework-webchat-adapter-ic3/v/0.1.0-master.f4dfd7d)

@@ -20,0 +22,0 @@ ### Fixed

4

lib/config/settings.d.ts

@@ -1,4 +0,4 @@

declare const ic3ClientVersion = "2020.08.24.1";
declare const webChatIC3AdapterVersion = "0.1.0-master.86ac1a0";
declare const ic3ClientVersion = "2021.03.02.1";
declare const webChatIC3AdapterVersion = "0.1.0-master.f4dfd7d";
declare const ariaTelemetryKey = "07172c8dd08d4de7a594b5b5cf81e668-92304109-4cd9-41b6-8806-714387b256e8-7337";
export { ic3ClientVersion, webChatIC3AdapterVersion, ariaTelemetryKey };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ariaTelemetryKey = exports.webChatIC3AdapterVersion = exports.ic3ClientVersion = void 0;
var ic3ClientVersion = '2020.08.24.1';
var ic3ClientVersion = '2021.03.02.1';
exports.ic3ClientVersion = ic3ClientVersion;
var webChatIC3AdapterVersion = '0.1.0-master.86ac1a0';
var webChatIC3AdapterVersion = '0.1.0-master.f4dfd7d';
exports.webChatIC3AdapterVersion = webChatIC3AdapterVersion;

@@ -8,0 +8,0 @@ var ariaTelemetryKey = '07172c8dd08d4de7a594b5b5cf81e668-92304109-4cd9-41b6-8806-714387b256e8-7337';

@@ -22,2 +22,3 @@ import IChatConfig from "./core/IChatConfig";

chatSDKConfig: IChatSDKConfig;
isInitialized: boolean;
requestId: string;

@@ -24,0 +25,0 @@ private chatToken;

@@ -73,2 +73,3 @@ "use strict";

this.chatSDKConfig = chatSDKConfig;
this.isInitialized = false;
this.requestId = ocsdk_1.uuidv4();

@@ -96,26 +97,32 @@ this.chatToken = {};

return __awaiter(this, void 0, void 0, function () {
var _a, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
var OCClient, IC3Client, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
this.scenarioMarker.startScenario(TelemetryEvent_1.default.InitializeChatSDK);
_d.label = 1;
if (this.isInitialized) {
this.scenarioMarker.completeScenario(TelemetryEvent_1.default.InitializeChatSDK);
return [2 /*return*/, this.liveChatConfig];
}
_b.label = 1;
case 1:
_d.trys.push([1, 5, , 6]);
_b.trys.push([1, 5, , 6]);
this.OCSDKProvider = ocsdk_1.SDKProvider;
_a = this;
return [4 /*yield*/, ocsdk_1.SDKProvider.getSDK(this.omnichannelConfig, {}, undefined)];
case 2:
_a.OCClient = _d.sent(); // eslint-disable-line @typescript-eslint/no-explicit-any
_b = this;
OCClient = _b.sent();
return [4 /*yield*/, this.getIC3Client()];
case 3:
_b.IC3Client = _d.sent();
IC3Client = _b.sent();
// Assign & Update flag only if all dependencies have been initialized succesfully
this.OCClient = OCClient;
this.IC3Client = IC3Client;
return [4 /*yield*/, this.getChatConfig()];
case 4:
_d.sent();
_b.sent();
this.isInitialized = true;
this.scenarioMarker.completeScenario(TelemetryEvent_1.default.InitializeChatSDK);
return [3 /*break*/, 6];
case 5:
_c = _d.sent();
_a = _b.sent();
this.scenarioMarker.failScenario(TelemetryEvent_1.default.InitializeChatSDK);

@@ -122,0 +129,0 @@ return [3 /*break*/, 6];

@@ -45,30 +45,45 @@ "use strict";

return __generator(this, function (_a) {
return [2 /*return*/, new Promise(function (resolve, reject) {
var scriptElement = document.createElement('script');
scriptElement.setAttribute('src', scriptUrl);
scriptElement.setAttribute('type', 'text/javascript');
document.head.appendChild(scriptElement);
scriptElement.addEventListener('load', function () { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, callbackOnload()];
case 1:
_a.sent();
resolve();
return [2 /*return*/];
}
});
}); });
scriptElement.addEventListener('error', function () { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, callbackError()];
case 1:
_a.sent();
reject();
return [2 /*return*/];
}
});
}); });
})];
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(void 0, void 0, void 0, function () {
var scriptElements, foundScriptElement, scriptElement;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
scriptElements = Array.from(document.getElementsByTagName('script'));
foundScriptElement = scriptElements.filter(function (scriptElement) { return scriptElement.src == scriptUrl; });
if (!foundScriptElement.length) return [3 /*break*/, 2];
return [4 /*yield*/, callbackOnload()];
case 1:
_a.sent();
return [2 /*return*/, resolve()];
case 2:
scriptElement = document.createElement('script');
scriptElement.setAttribute('src', scriptUrl);
scriptElement.setAttribute('type', 'text/javascript');
document.head.appendChild(scriptElement);
scriptElement.addEventListener('load', function () { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, callbackOnload()];
case 1:
_a.sent();
resolve();
return [2 /*return*/];
}
});
}); });
scriptElement.addEventListener('error', function () { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, callbackError()];
case 1:
_a.sent();
reject();
return [2 /*return*/];
}
});
}); });
return [2 /*return*/];
}
});
}); })];
});

@@ -75,0 +90,0 @@ });

{
"name": "@microsoft/omnichannel-chat-sdk",
"version": "0.1.1-main.9a18ebe",
"version": "0.1.1-main.9b7affc",
"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

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