UNPKG

podchat-browser

Version:

Javascript SDK to use POD's Chat Service - Browser Only

79 lines (76 loc) 2.39 kB
const deprecatedString = { turnOffVideoCall: { deprecationDate: "", methodName: "turnOffVideoCall", replacementString: "" }, turnOnVideoCall: { deprecationDate: "", methodName: "turnOnVideoCall", replacementString: "" }, muteCallParticipants: { deprecationDate: "", methodName: "muteCallParticipants", replacementString: "" }, unMuteCallParticipants: { deprecationDate: "", methodName: "unMuteCallParticipants", replacementString: "" }, uploadFile: { deprecationDate: "21/5/2024", methodName: "uploadFile", replacementString: "" }, uploadImage: { deprecationDate: "21/5/2024", methodName: "uploadImage", replacementString: "" }, getFile: { deprecationDate: "", methodName: "getFile", replacementString: "" }, getImage: { deprecationDate: "", methodName: "getImage", replacementString: "" }, deleteCacheDatabases: { deprecationDate: "26/6/2023", methodName: "deleteCacheDatabases", replacementString: "" }, startCacheDatabases: { deprecationDate: "26/6/2023", methodName: "startCacheDatabases", replacementString: "" }, clearCacheDatabasesOfUser: { deprecationDate: "26/6/2023", methodName: "clearCacheDatabasesOfUser", replacementString: "" }, deliver: { deprecationDate: "21/5/2024", methodName: "deliver", replacementString: "" }, getMessageDeliveredList: { deprecationDate: "21/5/2024", methodName: "getMessageDeliveredList", replacementString: "" }, changeActiveTypeCode: { deprecationDate: "5/1/2024", methodName: "changeActiveTypeCode", replacementString: "" } } function printIsDeprecate(key) { console.warn("||| Method: " + deprecatedString[key].methodName + " is deprecated! " + (deprecatedString[key].replacementString ? (" use " + deprecatedString[key].replacementString + "instead. ") : "") + (deprecatedString[key].deprecationDate ? " Deprecation Date: " + deprecatedString[key].deprecationDate : "")); } export {printIsDeprecate, deprecatedString}