@huddly/sdk-interfaces
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -12,5 +12,6 @@ /** | ||
DARTFISH_PID = 65, | ||
L1_PID = 1001, | ||
BASE_PID = 47710 | ||
BASE_PID = 47710, | ||
L1_PID = 81000011, | ||
S1_PID = 81000014 | ||
} | ||
export default HuddlyHex; |
@@ -15,6 +15,7 @@ "use strict"; | ||
HuddlyHex[HuddlyHex["DARTFISH_PID"] = 65] = "DARTFISH_PID"; | ||
HuddlyHex[HuddlyHex["L1_PID"] = 1001] = "L1_PID"; | ||
HuddlyHex[HuddlyHex["BASE_PID"] = 47710] = "BASE_PID"; | ||
HuddlyHex[HuddlyHex["L1_PID"] = 81000011] = "L1_PID"; | ||
HuddlyHex[HuddlyHex["S1_PID"] = 81000014] = "S1_PID"; | ||
})(HuddlyHex || (HuddlyHex = {})); | ||
exports.default = HuddlyHex; | ||
//# sourceMappingURL=HuddlyHex.js.map |
@@ -18,3 +18,2 @@ /// <reference types="node" /> | ||
withSubscribe<T>(subscribeMessages: string[], fn: () => Promise<T>, shouldAwaitUnsubscribe?: boolean): Promise<T>; | ||
asyncFileTransfer(command: any, data: Buffer, timeout?: number): Promise<any>; | ||
getProductInfo(): Promise<any>; | ||
@@ -24,3 +23,2 @@ setProductInfo(newProdInfoData: any): Promise<void>; | ||
getCameraInfo(): Promise<any>; | ||
getErrorLogLegacy(timeout: number): Promise<any>; | ||
getErrorLog(timeout: number, retry?: number, allowLegacy?: boolean): Promise<any>; | ||
@@ -27,0 +25,0 @@ eraseErrorLog(timeout: number): Promise<void>; |
export default interface ILogger { | ||
info(message: string): void; | ||
debug(message: string): void; | ||
warn(message: string): void; | ||
error(message: string, stackTrace?: any): void; | ||
info(message: string, component?: string): void; | ||
debug(message: string, component?: string): void; | ||
warn(message: string, component?: string): void; | ||
error(message: string, stackTrace?: any, component?: string): void; | ||
} |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (Logger.customLogger) { | ||
Logger.customLogger.warn(message); | ||
Logger.customLogger.warn(message, component); | ||
return; | ||
@@ -53,3 +53,3 @@ } | ||
if (Logger.customLogger) { | ||
Logger.customLogger.info(message); | ||
Logger.customLogger.info(message, component); | ||
return; | ||
@@ -63,3 +63,3 @@ } | ||
if (Logger.customLogger) { | ||
Logger.customLogger.debug(message); | ||
Logger.customLogger.debug(message, component); | ||
return; | ||
@@ -73,3 +73,3 @@ } | ||
if (Logger.customLogger) { | ||
Logger.customLogger.error(message, stackTrace); | ||
Logger.customLogger.error(message, stackTrace, component); | ||
return; | ||
@@ -76,0 +76,0 @@ } |
{ | ||
"name": "@huddly/sdk-interfaces", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Module for describing the Huddly SDK using interfaces", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
66283
90