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

@microsoft/ocsdk

Package Overview
Dependencies
Maintainers
5
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/ocsdk - npm Package Compare versions

Comparing version 0.3.1-main.f65f37d to 0.3.1

lib/Utils/sleep.d.ts

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Changelog

## [Unreleased]
## [0.3.1] - 2022-07-06
### Added
- Add `RequestPayload`, `RequestPath`, `RequestMethod` and `ResponseStatusCode` as log data
- Strip `Geolocation` log data
### Fix
- Stop `getchattoken` retry calls on `429`
- Fix `axiosRetry` counter
### Changed

@@ -7,0 +17,0 @@ - Rename `getQueueAvailability` to `getAgentAvailability`

1

lib/Common/Constants.d.ts

@@ -14,2 +14,3 @@ import { ChannelId } from "./Enums";

static readonly noContentStatusCode = 204;
static readonly tooManyRequestsStatusCode = 429;
static readonly sensitiveProperties: string[];

@@ -16,0 +17,0 @@ static readonly transactionid = "transaction-id";

3

lib/Common/Constants.js

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

(0, _defineProperty2["default"])(Constants, "noContentStatusCode", 204);
(0, _defineProperty2["default"])(Constants, "tooManyRequestsStatusCode", 429);
(0, _defineProperty2["default"])(Constants, "sensitiveProperties", ["AuthenticatedUserToken"]);

@@ -37,2 +38,2 @@ (0, _defineProperty2["default"])(Constants, "transactionid", "transaction-id");

(0, _defineProperty2["default"])(Constants, "hiddenContentPlaceholder", "*content hidden*");
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vQ29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbIkNvbnN0YW50cyIsIkNoYW5uZWxJZCIsIkxDVyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBOztJQUVxQkEsUzs7Ozs7aUNBQUFBLFM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ZXF1ZXN0c1N0YXR1c0NvZGUgPSA0Mjk7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgc2Vuc2l0aXZlUHJvcGVydGllcyA9IFtcIkF1dGhlbnRpY2F0ZWRVc2VyVG9rZW5cIl07XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgdHJhbnNhY3Rpb25pZCA9IFwidHJhbnNhY3Rpb24taWRcIjtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBjdXN0b21lckRpc3BsYXlOYW1lID0gXCJjdXN0b21lckRpc3BsYXlOYW1lXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyID0gXCIqY29udGVudCBoaWRkZW4qXCI7XG59XG4iXX0=

@@ -6,2 +6,6 @@ export default interface IAxiosRetryOptions {

retries: number | 0;
/**
* Whether to retry on 429 HTTP status code response
*/
retryOn429?: boolean | true;
}
export default interface ISDKConfiguration {
[key: string]: number | string | boolean | undefined;
/**

@@ -7,6 +8,10 @@ * Number of times a getchattoken request is retried.

/**
* Time in milliseconds between two successive getchattoken retry requests.
* Time in milliseconds between getchattoken retry axios requests.
*/
getChatTokenTimeBetweenRetriesOnFailure: number;
/**
* Whether to retry on getchattoken 429 HTTP status code response.
*/
getChatTokenRetryOn429: boolean;
/**
* Maximum number of request retries before failing.

@@ -13,0 +18,0 @@ */

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -8,2 +10,6 @@ value: true

var _Constants = _interopRequireDefault(require("../Common/Constants"));
var _sleep = _interopRequireDefault(require("./sleep"));
/**

@@ -17,4 +23,12 @@ * Custom handler for HTTP calls with Axios. Handler allows to retry HTTP calls if failed.

// eslint-disable-line @typescript-eslint/explicit-module-boundary-types
var retryInterval = 1000; // 1 second interval between retries
// Default values
if (axiosRetryOptions.retryOn429 === undefined || axiosRetryOptions.retryOn429 === null) {
axiosRetryOptions.retryOn429 = true;
}
var retries = axiosRetryOptions.retries;
var currentTry = 0; // Method to intercepts responses within range of 2xx
var currentTry = 1; // Executed as soon as after 1st try
// Method to intercepts responses within range of 2xx

@@ -24,6 +38,12 @@ var onSuccess = undefined; // Method to intercepts responses outside range of 2xx

var onError = function onError(error) {
var config = error.config; // If we have no information of the request to retry
var config = error.config,
response = error.response; // If we have no information of the request to retry
if (!config) {
return Promise.reject(error);
} // Stop retry on 429 if set
if (response && response.status === _Constants["default"].tooManyRequestsStatusCode && axiosRetryOptions.retryOn429 === false) {
return Promise.reject(error);
} // Retry request if below threshold

@@ -37,3 +57,5 @@

return new Promise(function (resolve) {
return resolve(axios(config));
return (0, _sleep["default"])(retryInterval).then(function () {
return resolve(axios(config));
});
});

@@ -45,3 +67,3 @@ }

axios.interceptors.response.use(onSuccess, onError);
axios.interceptors.response.use(onSuccess, onError); // Intercept response before returning
};

@@ -51,2 +73,2 @@

exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9heGlvc1JldHJ5LnRzIl0sIm5hbWVzIjpbImF4aW9zUmV0cnkiLCJheGlvcyIsImF4aW9zUmV0cnlPcHRpb25zIiwicmV0cmllcyIsImN1cnJlbnRUcnkiLCJvblN1Y2Nlc3MiLCJ1bmRlZmluZWQiLCJvbkVycm9yIiwiZXJyb3IiLCJjb25maWciLCJQcm9taXNlIiwicmVqZWN0Iiwic2hvdWxkUmV0cnkiLCJyZXNvbHZlIiwiaW50ZXJjZXB0b3JzIiwicmVzcG9uc2UiLCJ1c2UiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFNQSxVQUFVLEdBQUcsU0FBYkEsVUFBYSxDQUFDQyxLQUFELEVBQXVCQyxpQkFBdkIsRUFBaUU7QUFBRTtBQUNwRixNQUFRQ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F1ZXN0IHRvIHJldHJ5XG4gICAgaWYgKCFjb25maWcpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChlcnJvcik7XG4gICAgfVxuXG4gICAgLy8gU3RvcCByZXRyeSBvbiA0MjkgaWYgc2V0XG4gICAgaWYgKHJlc3BvbnNlICYmIHJlc3BvbnNlLnN0YXR1cyA9PT0gQ29uc3RhbnRzLnRvb01hbnlSZXF1ZXN0c1N0YXR1c0NvZGUgJiYgYXhpb3NSZXRyeU9wdGlvbnMucmV0cnlPbjQyOSA9PT0gZmFsc2UpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChlcnJvcik7XG4gICAgfVxuXG4gICAgLy8gUmV0cnkgcmVxdWVzdCBpZiBiZWxvdyB0aHJlc2hvbGRcbiAgICBjb25zdCBzaG91bGRSZXRyeSA9IGN1cnJlbnRUcnkgPCByZXRyaWVzO1xuXG4gICAgaWYgKHNob3VsZFJldHJ5KSB7XG4gICAgICBjdXJyZW50VHJ5Kys7XG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUpID0+IHNsZWVwKHJldHJ5SW50ZXJ2YWwgYXMgbnVtYmVyfCAxMDAwKS50aGVuKCgpID0+IHJlc29sdmUoYXhpb3MoY29uZmlnKSkpKTtcbiAgICB9XG5cbiAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QoZXJyb3IpO1xuICB9O1xuXG4gIGF4aW9zLmludGVyY2VwdG9ycy5yZXNwb25zZS51c2Uob25TdWNjZXNzLCBvbkVycm9yKTsgLy8gSW50ZXJjZXB0IHJlc3BvbnNlIGJlZm9yZSByZXR1cm5pbmdcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGF4aW9zUmV0cnk7XG4iXX0=

@@ -26,6 +26,6 @@ "use strict";

Object.keys(customContextData).forEach(function (key) {
if (customContextData && customContextData[key]) {
if (customContextData && customContextData["".concat(key)]) {
var obj = {
"key": key,
"value": customContextData[key]
"value": customContextData["".concat(key)]
};

@@ -58,2 +58,2 @@ tempArr.push(obj);

exports.CustomContextData = CustomContextData;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9DdXN0b21Db250ZXh0RGF0YS50cyJdLCJuYW1lcyI6WyJDdXN0b21Db250ZXh0RGF0YSIsImN1c3RvbUNvbnRleHREYXRhIiwidGVtcEFyciIsIkFycmF5IiwiT2JqZWN0Iiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJvYmoiLCJwdXNoIiwic29ydCIsImEiLCJiIiwia2V5QSIsInRvVXBwZXJDYXNlIiwia2V5QiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztJQUFhQSxpQjs7Ozs7OztXQUNYO0FBQ0Esa0JBQW1CQyxpQkFBbkIsRUFBbUU7QUFDakU7QUFDQSxVQUFNQyxPQUFPLEdBQUcsSUFBSUMsS0FBSixFQUFoQjtBQUVFQyxNQUFBQSxNQUFNLENBQUNDLElBQVAsQ0FBWUosaUJBQVosRUFBK0JLLE9BQS9CLENBQXVDLFVBQUFDLEdBQUcsRUFBSTtBQUM1QyxZQUFJTixpQkFBaUIsSUFBSUEsaUJBQWlCLENBQUNNLEdBQUQsQ0FBMUMsRUFBaUQ7QUFDN0MsY0FBTUMsR0FBRyxHQUFHO0FBQUMsbUJBQU1ELEdBQVA7QUFBWSxxQkFBU04saUJBQWlCLENBQUNNLEdBQUQ7QUFBdEMsV0FBWjtBQUNBTCxVQUFBQSxPQUFPLENBQUNPLElBQVIsQ0FBYUQsR0FBYjtBQUNIO0FBQ0YsT0FMRCxFQUorRCxDQVcvRDs7QUFDQU4sTUFBQUEsT0FBTyxDQUFDUSxJQUFSLENBQWEsVUFBQ0MsQ0FBRCxFQUFTQyxDQUFULEVBQW9CO0FBQy9CLFlBQU1DLElBQUksR0FBR0YsQ0FBQyxDQUFDSixHQUFGLENBQU1PLFdBQU4sRUFBYixDQUQrQixDQU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AvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICAgICAgdGVtcEFyci5zb3J0KChhOiBhbnksIGI6IGFueSkgPT4ge1xuICAgICAgICBjb25zdCBrZXlBID0gYS5rZXkudG9VcHBlckNhc2UoKTsgLy8gaWdub3JlIHVwcGVyIGFuZCBsb3dlcmNhc2VcbiAgICAgICAgY29uc3Qga2V5QiA9IGIua2V5LnRvVXBwZXJDYXNlKCk7IC8vIGlnbm9yZSB1cHBlciBhbmQgbG93ZXJjYXNlXG4gICAgICAgIGlmIChrZXlBIDwga2V5Qikge1xuICAgICAgICAgIHJldHVybiAtMTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoa2V5QSA+IGtleUIpIHtcbiAgICAgICAgICByZXR1cm4gMTtcbiAgICAgICAgfSBcbiAgICAgICAgcmV0dXJuIDA7XG4gICAgICB9KTtcbiAgICByZXR1cm4gdGVtcEFycjtcbiAgfVxufVxuXG5cbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9DdXN0b21Db250ZXh0RGF0YS50cyJdLCJuYW1lcyI6WyJDdXN0b21Db250ZXh0RGF0YSIsImN1c3RvbUNvbnRleHREYXRhIiwidGVtcEFyciIsIkFycmF5IiwiT2JqZWN0Iiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJvYmoiLCJwdXNoIiwic29ydCIsImEiLCJiIiwia2V5QSIsInRvVXBwZXJDYXNlIiwia2V5QiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztJQUFhQSxpQjs7Ozs7OztXQUNYO0FBQ0Esa0JBQW1CQyxpQkFBbkIsRUFBb0U7QUFDbEU7QUFDQSxVQUFNQyxPQUFPLEdBQUcsSUFBSUMsS0FBSixFQUFoQjtBQUVFQyxNQUFBQSxNQUFNLENBQUN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bUNvbnRleHREYXRhOiB7IFtrZXk6IHN0cmluZ106IGFueSB9KSA6IGFueSB7XG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbiAgICBjb25zdCB0ZW1wQXJyID0gbmV3IEFycmF5PGFueT4oKTtcblxuICAgICAgT2JqZWN0LmtleXMoY3VzdG9tQ29udGV4dERhdGEpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgaWYgKGN1c3RvbUNvbnRleHREYXRhICYmIGN1c3RvbUNvbnRleHREYXRhW2Ake2tleX1gXSkge1xuICAgICAgICAgICAgY29uc3Qgb2JqID0ge1wia2V5XCI6IGtleSwgXCJ2YWx1ZVwiOiBjdXN0b21Db250ZXh0RGF0YVtgJHtrZXl9YF19O1xuICAgICAgICAgICAgdGVtcEFyci5wdXNoKG9iaik7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuXG4gICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICAgICAgdGVtcEFyci5zb3J0KChhOiBhbnksIGI6IGFueSkgPT4ge1xuICAgICAgICBjb25zdCBrZXlBID0gYS5rZXkudG9VcHBlckNhc2UoKTsgLy8gaWdub3JlIHVwcGVyIGFuZCBsb3dlcmNhc2VcbiAgICAgICAgY29uc3Qga2V5QiA9IGIua2V5LnRvVXBwZXJDYXNlKCk7IC8vIGlnbm9yZSB1cHBlciBhbmQgbG93ZXJjYXNlXG4gICAgICAgIGlmIChrZXlBIDwga2V5Qikge1xuICAgICAgICAgIHJldHVybiAtMTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoa2V5QSA+IGtleUIpIHtcbiAgICAgICAgICByZXR1cm4gMTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gMDtcbiAgICAgIH0pO1xuICAgIHJldHVybiB0ZW1wQXJyO1xuICB9XG59XG5cblxuIl19
export declare class LoggingSanitizer {
static stripCustomContextDataValues(customContextData: any): void;
static stripPreChatResponse(preChatResponse: any): void;
static stripGeolocation(data: any): void;
static stripErrorSensitiveProperties(errorObject: any): void;
}

@@ -48,2 +48,14 @@ "use strict";

}, {
key: "stripGeolocation",
value: function stripGeolocation(data) {
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
if (Object.keys(data).includes('longitude')) {
data['longitude'] = _Constants["default"].hiddenContentPlaceholder;
}
if (Object.keys(data).includes('latitude')) {
data['latitude'] = _Constants["default"].hiddenContentPlaceholder;
}
}
}, {
key: "stripErrorSensitiveProperties",

@@ -85,2 +97,3 @@ value: function stripErrorSensitiveProperties(errorObject) {

LoggingSanitizer.stripGeolocation(data);
errorObject[key] = JSON.stringify(data); // eslint-disable-line security/detect-object-injection

@@ -104,2 +117,2 @@ }

exports.LoggingSanitizer = LoggingSanitizer;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyLnRzIl0sIm5hbWVzIjpbIkxvZ2dpbmdTYW5pdGl6ZXIiLCJjdXN0b21Db250ZXh0RGF0YSIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiY29udGV4dEtleSIsInZhbHVlIiwiQ29uc3RhbnRzIiwiaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyIiwicHJlQ2hhdFJlc3BvbnNlIiwicmVzcG9uc2VLZXkiLCJlcnJvck9iamVjdCIsImxlbmd0aCIsImtleSIsInNlbnNpdGl2ZVByb3BlcnRpZXMiLCJpbmRleE9mIiwiZGF0YSIsIkpTT04iLCJwYXJzZSIsInVuZGVmaW5lZCIsImluY2x1ZGVzIiwic3RyaXBQcmVDaGF0UmVzcG9uc2UiLCJzdHJpcEN1c3RvbUNvbnRleHREYXRhVmFsdWVzIiwic3RyaW5naWZ5Iiw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ERhdGEpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGVycm9yT2JqZWN0W2tleV0gPSBKU09OLnN0cmluZ2lmeShkYXRhKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBzZWN1cml0eS9kZXRlY3Qtb2JqZWN0LWluamVjdGlvblxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChlcnJvck9iamVjdFtgJHtrZXl9YF0gIT09IG51bGwgJiYgdHlwZW9mIGVycm9yT2JqZWN0W2Ake2tleX1gXSA9PT0gJ29iamVjdCcpIHtcbiAgICAgICAgICAgIC8vIGNoZWNrIHNlbnNpdGl2ZSBwcm9wZXJ0aWVzIGluIG5lc3RlZCBlcnJvciBvYmplY3RcbiAgICAgICAgICAgIHRoaXMuc3RyaXBFcnJvclNlbnNpdGl2ZVByb3BlcnRpZXMoZXJyb3JPYmplY3RbYCR7a2V5fWBdKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyLnRzIl0sIm5hbWVzIjpbIkxvZ2dpbmdTYW5pdGl6ZXIiLCJjdXN0b21Db250ZXh0RGF0YSIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiY29udGV4dEtleSIsInZhbHVlIiwiQ29uc3RhbnRzIiwiaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyIiwicHJlQ2hhdFJlc3BvbnNlIiwicmVzcG9uc2VLZXkiLCJkYXRhIiwiaW5jbHVkZXMiLCJlcnJvck9iamVjdCIsImxlbmd0aCIsImtleSIsInNlbnNpdGl2ZVByb3BlcnRpZXMiLCJpbmRleE9mIiwiSlNPTiIsInBhcnNlIiwidW5kZWZpbmVkIiwic3RyaXB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oQ29uc3RhbnRzLnNlbnNpdGl2ZVByb3BlcnRpZXMuaW5kZXhPZihrZXkpICE9PSAtMSkge1xuICAgICAgICAgICAgLy8gcmVtb3ZlIHNlbnNpdGl2ZSBwcm9wZXJ0aWVzIGZyb20gZXJyb3Igb2JqZWN0XG4gICAgICAgICAgICBkZWxldGUgZXJyb3JPYmplY3RbYCR7a2V5fWBdO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChrZXkgPT09ICdkYXRhJykge1xuICAgICAgICAgICAgbGV0IGRhdGE7XG4gICAgICAgICAgICBpZiAodHlwZW9mIGVycm9yT2JqZWN0W2tleV0gPT09ICdzdHJpbmcnKSB7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICBkYXRhID0gSlNPTi5wYXJzZShlcnJvck9iamVjdFtrZXldKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBzZWN1cml0eS9kZXRlY3Qtb2JqZWN0LWluamVjdGlvblxuICAgICAgICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICAgICAgICBkYXRhID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygncHJlQ2hhdFJlc3BvbnNlJykpIHtcbiAgICAgICAgICAgICAgICBMb2dnaW5nU2FuaXRpemVyLnN0cmlwUHJlQ2hhdFJlc3BvbnNlKGRhdGEucHJlQ2hhdFJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygnY3VzdG9tQ29udGV4dERhdGEnKSkge1xuICAgICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBDdXN0b21Db250ZXh0RGF0YVZhbHVlcyhkYXRhLmN1c3RvbUNvbnRleHREYXRhKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBHZW9sb2NhdGlvbihkYXRhKTtcbiAgICAgICAgICAgICAgZXJyb3JPYmplY3Rba2V5XSA9IEpTT04uc3RyaW5naWZ5KGRhdGEpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGVycm9yT2JqZWN0W2Ake2tleX1gXSAhPT0gbnVsbCAmJiB0eXBlb2YgZXJyb3JPYmplY3RbYCR7a2V5fWBdID09PSAnb2JqZWN0Jykge1xuICAgICAgICAgICAgLy8gY2hlY2sgc2Vuc2l0aXZlIHByb3BlcnRpZXMgaW4gbmVzdGVkIGVycm9yIG9iamVjdFxuICAgICAgICAgICAgdGhpcy5zdHJpcEVycm9yU2Vuc2l0aXZlUHJvcGVydGllcyhlcnJvck9iamVjdFtgJHtrZXl9YF0pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cbiAgfVxufVxuIl19
{
"name": "@microsoft/ocsdk",
"version": "0.3.1-main.f65f37d",
"version": "0.3.1",
"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

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