@microsoft/ocsdk
Advanced tools
Comparing version 0.4.1-main.127976d to 0.4.1-main.3ea0706
@@ -6,2 +6,10 @@ # Changelog | ||
### Added | ||
- including changes to handle new library versions. | ||
### Security | ||
- Uptake [axios@1.6.1](https://www.npmjs.com/package/axios/v/1.6.1) | ||
- Uptake [ts-loader@8.4.0](https://www.npmjs.com/package/ts-loader/v/8.4.0) | ||
- Uptake [typescript@4.9.5](https://www.npmjs.com/package/typescript/v/4.9.5) | ||
## [0.4.0] - 2023-07-05 | ||
@@ -8,0 +16,0 @@ ### Added |
@@ -1,2 +0,2 @@ | ||
export declare type RequestTimeoutConfig = { | ||
export type RequestTimeoutConfig = { | ||
[key: string]: number; | ||
@@ -3,0 +3,0 @@ getChatConfig: number; |
@@ -21,4 +21,2 @@ "use strict"; | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _EventNames = _interopRequireDefault(require("./Common/EventNames")); | ||
@@ -39,3 +37,3 @@ | ||
if ((typeof window === "undefined" ? "undefined" : (0, _typeof2["default"])(window)) === undefined) { | ||
if (!window) { | ||
throw new Error("window object not found"); | ||
@@ -46,2 +44,3 @@ } // Check existence of global objects to avoid overwrite/clashing | ||
if (!("Microsoft" in window)) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
window.Microsoft = {}; | ||
@@ -69,2 +68,2 @@ } | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJnbG9iYWwiLCJ3aW5kb3ciLCJ1bmRlZmluZWQiLCJFcnJvciIsIk1pY3Jvc29mdCIsIkNSTSIsIk9tbmljaGFubmVsIiwiU0RLIiwiU0RLUHJvdmlkZXIiLCJVdGlsIiwidXVpZHY0IiwiZG9jdW1lbnQiLCJFdmVudE1hbmFnZXIiLCJyYWlzZUN1c3RvbUV2ZW50IiwiRXZlbnROYW1lcyIs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4gIGlmICghKFwiU0RLXCIgaW4gd2luZG93Lk1pY3Jvc29mdC5DUk0uT21uaWNoYW5uZWwpKSB7XG4gICAgd2luZG93Lk1pY3Jvc29mdC5DUk0uT21uaWNoYW5uZWwuU0RLID0ge1xuICAgICAgU0RLUHJvdmlkZXIsXG4gICAgICBVdGlsOiB7XG4gICAgICAgIHV1aWR2NFxuICAgICAgfVxuICAgIH07XG4gIH1cblxuICB3aW5kb3cuZG9jdW1lbnQgJiYgRXZlbnRNYW5hZ2VyLnJhaXNlQ3VzdG9tRXZlbnQoRXZlbnROYW1lcy5PQ1NES0xPQUQpO1xufSkoKTtcbiJdfQ== |
@@ -11,4 +11,4 @@ import FetchChatTokenResponse from "../Model/FetchChatTokenResponse"; | ||
sessionClose(requestId: string): Promise<void>; | ||
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<object>; | ||
getReconnectAvailability(reconnectId: string): Promise<object>; | ||
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<object | void>; | ||
getReconnectAvailability(reconnectId: string): Promise<object | void>; | ||
submitPostChatResponse(requestId: string, postChatResponse: object): Promise<void>; | ||
@@ -15,0 +15,0 @@ getSurveyInviteLink(surveyOwnerId: string, surveyInviteAPIRequestBody: object): Promise<object>; |
@@ -52,3 +52,3 @@ import FetchChatTokenResponse from "./Model/FetchChatTokenResponse"; | ||
*/ | ||
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<ReconnectMappingRecord>; | ||
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<ReconnectMappingRecord | void>; | ||
/** | ||
@@ -58,3 +58,3 @@ * Fetches the reconnectable chats from omnichannel from the given user information in JWT token(claim name: sub). | ||
*/ | ||
getReconnectAvailability(reconnectId: string): Promise<ReconnectAvailability>; | ||
getReconnectAvailability(reconnectId: string): Promise<ReconnectAvailability | void>; | ||
/** | ||
@@ -61,0 +61,0 @@ * |
{ | ||
"name": "@microsoft/ocsdk", | ||
"version": "0.4.1-main.127976d", | ||
"version": "0.4.1-main.3ea0706", | ||
"description": "Microsoft Omnichannel SDK", | ||
@@ -52,4 +52,4 @@ "files": [ | ||
"prettier": "^1.19.1", | ||
"ts-loader": "^6.2.2", | ||
"typescript": "^3.9.10", | ||
"ts-loader": "^8.4.0", | ||
"typescript": "^4.9.5", | ||
"webpack": "^4.46.0", | ||
@@ -63,4 +63,4 @@ "webpack-cli": "^3.3.12", | ||
"@types/node": "^12.20.26", | ||
"axios": "^0.21.4" | ||
"axios": "^1.6.1" | ||
} | ||
} |
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
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
6021323
183
6981
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.21.4(transitive)
Updatedaxios@^1.6.1