@microsoft/omnichannel-chat-sdk 1.9.6 → 1.9.7-main.9019907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var ChatSDKError_1 = require("../core/ChatSDKError");
|
4
|
-
var LiveChatVersion_1 = require("../core/LiveChatVersion");
|
5
|
-
var TelemetryEvent_1 = require("../telemetry/TelemetryEvent");
|
6
|
-
var exceptionThrowers_1 = require("../utils/exceptionThrowers");
|
7
|
-
var throwUnsupportedLiveChatVersionFailureIfApplicable = function (liveChatVersion, scenarioMarker) {
|
8
|
-
var supportedLiveChatVersions = [LiveChatVersion_1.default.V1, LiveChatVersion_1.default.V2];
|
9
|
-
if (!supportedLiveChatVersions.includes(liveChatVersion)) {
|
10
|
-
exceptionThrowers_1.default.throwUnsupportedLiveChatVersionFailure(new Error(ChatSDKError_1.ChatSDKErrorName.UnsupportedLiveChatVersion), scenarioMarker, TelemetryEvent_1.default.InitializeChatSDK);
|
11
|
-
}
|
12
|
-
};
|
13
|
-
exports.default = throwUnsupportedLiveChatVersionFailureIfApplicable;
|
14
|
-
//# sourceMappingURL=throwUnsupportedLiveChatVersionFailureIfApplicable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"throwUnsupportedLiveChatVersionFailureIfApplicable.js","sourceRoot":"","sources":["../../src/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.ts"],"names":[],"mappings":";;AAAA,qDAAwD;AACxD,2DAAsD;AAEtD,8DAAyD;AACzD,gEAA2D;AAE3D,IAAM,kDAAkD,GAAG,UAAC,eAAuB,EAAE,cAA8B;IAC/G,IAAM,yBAAyB,GAAG,CAAC,yBAAe,CAAC,EAAE,EAAE,yBAAe,CAAC,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QACtD,2BAAiB,CAAC,sCAAsC,CAAC,IAAI,KAAK,CAAC,+BAAgB,CAAC,0BAA0B,CAAC,EAAE,cAAc,EAAE,wBAAc,CAAC,iBAAiB,CAAC,CAAC;KACtK;AACL,CAAC,CAAC;AAEF,kBAAe,kDAAkD,CAAC"}
|