@microsoft/ocsdk
Advanced tools
Comparing version 0.4.2-main.89772d7 to 0.4.2
@@ -6,4 +6,10 @@ # Changelog | ||
## [0.4.2] - 2023-12-06 | ||
### Added | ||
- Add `GetChatConfigFailed` telemetry event | ||
### Changed | ||
- Removal of `recursive call` in `LoggingSanitizer` as preventive measure for `stack overflow` | ||
## [0.4.1] - 2023-11-10 | ||
### Added | ||
@@ -10,0 +16,0 @@ - including changes to handle new library versions. |
@@ -41,4 +41,5 @@ export declare enum BrowserVendor { | ||
export declare enum OCSDKTelemetryEvent { | ||
GETCHATCONFIG = "GetChatConfig", | ||
GETCHATCONFIGSUCCESS = "GetChatConfigSucceeded", | ||
GETCHATCONFIGFSTARTED = "GetChatConfig", | ||
GETCHATCONFIGSUCCEDED = "GetChatConfigSucceeded", | ||
GETCHATCONFIGFAILED = "GetChatConfigFailed", | ||
GETRECONNECTABLECHATS = "GetReconnnectableChats", | ||
@@ -45,0 +46,0 @@ GETRECONNECTAVAILABILITY = "GetReconnnectableAvailability", |
@@ -70,4 +70,5 @@ "use strict"; | ||
(function (OCSDKTelemetryEvent) { | ||
OCSDKTelemetryEvent["GETCHATCONFIG"] = "GetChatConfig"; | ||
OCSDKTelemetryEvent["GETCHATCONFIGSUCCESS"] = "GetChatConfigSucceeded"; | ||
OCSDKTelemetryEvent["GETCHATCONFIGFSTARTED"] = "GetChatConfig"; | ||
OCSDKTelemetryEvent["GETCHATCONFIGSUCCEDED"] = "GetChatConfigSucceeded"; | ||
OCSDKTelemetryEvent["GETCHATCONFIGFAILED"] = "GetChatConfigFailed"; | ||
OCSDKTelemetryEvent["GETRECONNECTABLECHATS"] = "GetReconnnectableChats"; | ||
@@ -131,2 +132,2 @@ OCSDKTelemetryEvent["GETRECONNECTAVAILABILITY"] = "GetReconnnectableAvailability"; | ||
})(SDKError || (exports.SDKError = SDKError = {})); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u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SUxFRCA9IFwiU2VuZFR5cGluZ0luZGljYXRvckZhaWxlZFwiLFxuICBTRU5EVFlQSU5HSU5ESUNBVE9SU1VDQ0VFREVEID0gXCJTZW5kVHlwaW5nSW5kaWNhdG9yU3VjY2VlZGVkXCJcbn1cblxuZXhwb3J0IGVudW0gTGl2ZUNoYXRWZXJzaW9uIHtcbiAgLy8gSUMzIGxpdmUgY2hhdFxuICBWMSA9IDEsXG5cbiAgLy8gQUNTIGxpdmUgY2hhdFxuICBWMiA9IDIsXG5cbiAgVjMgPSAzXG59XG5cbmV4cG9ydCBlbnVtIFNES0Vycm9yIHtcbiAgQ2xpZW50SFRUUFRpbWVvdXRFcnJvck5hbWUgPSBcIkNsaWVudEhUVFBUaW1lb3V0RXJyb3JcIixcbiAgQ2xpZW50SFRUUFRpbWVvdXRFcnJvck1lc3NhZ2UgPSBcIlNlcnZlciB0b29rIHRvbyBsb25nIHRvIHJlc3BvbmRcIlxufVxuIl19 |
@@ -6,3 +6,3 @@ import FetchChatTokenResponse from "../Model/FetchChatTokenResponse"; | ||
export default interface ISDK { | ||
getChatConfig(requestId: string, bypassCache?: boolean): Promise<object>; | ||
getChatConfig(requestId: string, bypassCache?: boolean): Promise<object | void>; | ||
getLWIDetails(requestId: string): Promise<object>; | ||
@@ -9,0 +9,0 @@ getChatToken(requestId: string): Promise<FetchChatTokenResponse>; |
@@ -35,3 +35,3 @@ import FetchChatTokenResponse from "./Model/FetchChatTokenResponse"; | ||
*/ | ||
getChatConfig(requestId: string, bypassCache?: boolean): Promise<object>; | ||
getChatConfig(requestId: string, bypassCache?: boolean): Promise<object | void>; | ||
/** | ||
@@ -38,0 +38,0 @@ * Fetches LWI details. |
@@ -5,3 +5,6 @@ export declare class LoggingSanitizer { | ||
static stripGeolocation(data: any): void; | ||
static stripAuthenticationUserToken(headers: any): void; | ||
static stripRequestPayloadData(configObject: any): void; | ||
static stripAxiosErrorSensitiveProperties(errorObject: any): void; | ||
static stripErrorSensitiveProperties(errorObject: any): void; | ||
} |
@@ -66,52 +66,85 @@ "use strict"; | ||
}, { | ||
key: "stripErrorSensitiveProperties", | ||
value: function stripErrorSensitiveProperties(errorObject) { | ||
var _Object$keys2, | ||
_this = this; | ||
key: "stripAuthenticationUserToken", | ||
value: function stripAuthenticationUserToken(headers) { | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
if (headers) { | ||
if (Object.keys(headers).includes('AuthenticatedUserToken')) { | ||
headers['AuthenticatedUserToken'] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
if (Object.keys(headers).includes('AuthCodeNonce')) { | ||
headers['AuthCodeNonce'] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
} | ||
} | ||
}, { | ||
key: "stripRequestPayloadData", | ||
value: function stripRequestPayloadData(configObject) { | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
if (errorObject && (0, _typeof2["default"])(errorObject) === 'object' && ((_Object$keys2 = Object.keys(errorObject)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) > 0) { | ||
var _Object$keys3; | ||
if (configObject !== null && configObject !== void 0 && configObject.data) { | ||
var data; | ||
(_Object$keys3 = Object.keys(errorObject)) === null || _Object$keys3 === void 0 ? void 0 : _Object$keys3.forEach(function (key) { | ||
if (_Constants["default"].sensitiveProperties.indexOf(key) !== -1) { | ||
// remove sensitive properties from error object | ||
delete errorObject["".concat(key)]; | ||
if (typeof configObject.data === 'string') { | ||
// eslint-disable-line security/detect-object-injection | ||
try { | ||
data = JSON.parse(configObject.data); // eslint-disable-line security/detect-object-injection | ||
} catch (_unused) { | ||
data = undefined; | ||
} | ||
} | ||
if (key === 'data') { | ||
var data; | ||
if (data) { | ||
if (Object.keys(data).includes('preChatResponse')) { | ||
LoggingSanitizer.stripPreChatResponse(data.preChatResponse); | ||
} | ||
if (typeof errorObject[key] === 'string') { | ||
// eslint-disable-line security/detect-object-injection | ||
try { | ||
data = JSON.parse(errorObject[key]); // eslint-disable-line security/detect-object-injection | ||
} catch (_unused) { | ||
data = undefined; | ||
} | ||
} | ||
if (Object.keys(data).includes('customContextData')) { | ||
LoggingSanitizer.stripCustomContextDataValues(data.customContextData); | ||
} | ||
if (data) { | ||
if (Object.keys(data).includes('preChatResponse')) { | ||
LoggingSanitizer.stripPreChatResponse(data.preChatResponse); | ||
} | ||
LoggingSanitizer.stripGeolocation(data); | ||
configObject.data = JSON.stringify(data); // eslint-disable-line security/detect-object-injection | ||
} | ||
} | ||
} | ||
}, { | ||
key: "stripAxiosErrorSensitiveProperties", | ||
value: function stripAxiosErrorSensitiveProperties(errorObject) { | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
if (errorObject.isAxiosError) { | ||
var _errorObject$config, _errorObject$config3, _errorObject$response, _errorObject$response2, _errorObject$response4, _errorObject$response5; | ||
if (Object.keys(data).includes('customContextData')) { | ||
LoggingSanitizer.stripCustomContextDataValues(data.customContextData); | ||
} | ||
if (errorObject !== null && errorObject !== void 0 && (_errorObject$config = errorObject.config) !== null && _errorObject$config !== void 0 && _errorObject$config.headers) { | ||
var _errorObject$config2; | ||
LoggingSanitizer.stripGeolocation(data); | ||
errorObject[key] = JSON.stringify(data); // eslint-disable-line security/detect-object-injection | ||
} | ||
} | ||
LoggingSanitizer.stripAuthenticationUserToken(errorObject === null || errorObject === void 0 ? void 0 : (_errorObject$config2 = errorObject.config) === null || _errorObject$config2 === void 0 ? void 0 : _errorObject$config2.headers); | ||
} | ||
if (errorObject["".concat(key)] !== null && (0, _typeof2["default"])(errorObject["".concat(key)]) === 'object') { | ||
// check sensitive properties in nested error object | ||
_this.stripErrorSensitiveProperties(errorObject["".concat(key)]); | ||
if (errorObject !== null && errorObject !== void 0 && (_errorObject$config3 = errorObject.config) !== null && _errorObject$config3 !== void 0 && _errorObject$config3.data) { | ||
this.stripRequestPayloadData(errorObject === null || errorObject === void 0 ? void 0 : errorObject.config); | ||
} | ||
return; | ||
} | ||
}); | ||
if (errorObject !== null && errorObject !== void 0 && (_errorObject$response = errorObject.response) !== null && _errorObject$response !== void 0 && (_errorObject$response2 = _errorObject$response.config) !== null && _errorObject$response2 !== void 0 && _errorObject$response2.data) { | ||
var _errorObject$response3; | ||
this.stripRequestPayloadData(errorObject === null || errorObject === void 0 ? void 0 : (_errorObject$response3 = errorObject.response) === null || _errorObject$response3 === void 0 ? void 0 : _errorObject$response3.config); | ||
} | ||
if (errorObject !== null && errorObject !== void 0 && (_errorObject$response4 = errorObject.response) !== null && _errorObject$response4 !== void 0 && (_errorObject$response5 = _errorObject$response4.config) !== null && _errorObject$response5 !== void 0 && _errorObject$response5.headers) { | ||
var _errorObject$response6, _errorObject$response7; | ||
LoggingSanitizer.stripAuthenticationUserToken(errorObject === null || errorObject === void 0 ? void 0 : (_errorObject$response6 = errorObject.response) === null || _errorObject$response6 === void 0 ? void 0 : (_errorObject$response7 = _errorObject$response6.config) === null || _errorObject$response7 === void 0 ? void 0 : _errorObject$response7.headers); | ||
} | ||
} | ||
} | ||
}, { | ||
key: "stripErrorSensitiveProperties", | ||
value: function stripErrorSensitiveProperties(errorObject) { | ||
var _Object$keys2; | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
if (errorObject && (0, _typeof2["default"])(errorObject) === 'object' && ((_Object$keys2 = Object.keys(errorObject)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) > 0) { | ||
this.stripAxiosErrorSensitiveProperties(errorObject); | ||
} | ||
} | ||
}]); | ||
@@ -122,2 +155,2 @@ return LoggingSanitizer; | ||
exports.LoggingSanitizer = LoggingSanitizer; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyLnRzIl0sIm5hbWVzIjpbIkxvZ2dpbmdTYW5pdGl6ZXI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cbiAgICAgICAgICAgICAgICBkYXRhID0gSlNPTi5wYXJzZShlcnJvck9iamVjdFtrZXldKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBzZWN1cml0eS9kZXRlY3Qtb2JqZWN0LWluamVjdGlvblxuICAgICAgICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICAgICAgICBkYXRhID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygncHJlQ2hhdFJlc3BvbnNlJykpIHtcbiAgICAgICAgICAgICAgICBMb2dnaW5nU2FuaXRpemVyLnN0cmlwUHJlQ2hhdFJlc3BvbnNlKGRhdGEucHJlQ2hhdFJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygnY3VzdG9tQ29udGV4dERhdGEnKSkge1xuICAgICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBDdXN0b21Db250ZXh0RGF0YVZhbHVlcyhkYXRhLmN1c3RvbUNvbnRleHREYXRhKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBHZW9sb2NhdGlvbihkYXRhKTtcbiAgICAgICAgICAgICAgZXJyb3JPYmplY3Rba2V5XSA9IEpTT04uc3RyaW5naWZ5KGRhdGEpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGVycm9yT2JqZWN0W2Ake2tleX1gXSAhPT0gbnVsbCAmJiB0eXBlb2YgZXJyb3JPYmplY3RbYCR7a2V5fWBd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1cbn1cbiJdfQ== |
{ | ||
"name": "@microsoft/ocsdk", | ||
"version": "0.4.2-main.89772d7", | ||
"version": "0.4.2", | ||
"description": "Microsoft Omnichannel SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6055315
7030