@stinkycomputing/sesame-api-client 1.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +184 -0
- package/dist/browser.cjs +21867 -0
- package/dist/browser.cjs.map +7 -0
- package/dist/browser.d.ts +16 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.mjs +21834 -0
- package/dist/browser.mjs.map +7 -0
- package/dist/command-list.d.ts +191 -0
- package/dist/command-list.d.ts.map +1 -0
- package/dist/index.cjs +22376 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +22323 -0
- package/dist/index.mjs.map +7 -0
- package/dist/logger.d.ts +25 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/proto/.gitignore +2 -0
- package/dist/proto/api.d.ts +14161 -0
- package/dist/proto/api.js +37480 -0
- package/dist/rpc-client.d.ts +97 -0
- package/dist/rpc-client.d.ts.map +1 -0
- package/dist/sesame-api-client.d.ts +94 -0
- package/dist/sesame-api-client.d.ts.map +1 -0
- package/dist/sesame-binary-protocol.d.ts +99 -0
- package/dist/sesame-binary-protocol.d.ts.map +1 -0
- package/dist/sesame-connection.d.ts +35 -0
- package/dist/sesame-connection.d.ts.map +1 -0
- package/package.json +67 -0
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logger interface for the Sesame API client
|
|
3
|
+
*/
|
|
4
|
+
export interface ILogger {
|
|
5
|
+
debug(message: string, ...args: any[]): void;
|
|
6
|
+
info(message: string, ...args: any[]): void;
|
|
7
|
+
warn(message: string, ...args: any[]): void;
|
|
8
|
+
error(message: string, ...args: any[]): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Set a custom logger implementation
|
|
12
|
+
* @param customLogger - Custom logger instance
|
|
13
|
+
*/
|
|
14
|
+
export declare function setLogger(customLogger: ILogger): void;
|
|
15
|
+
/**
|
|
16
|
+
* Get the current logger instance
|
|
17
|
+
*/
|
|
18
|
+
export declare function getLogger(): ILogger;
|
|
19
|
+
export declare const log: {
|
|
20
|
+
debug: (message: string, ...args: any[]) => void;
|
|
21
|
+
info: (message: string, ...args: any[]) => void;
|
|
22
|
+
warn: (message: string, ...args: any[]) => void;
|
|
23
|
+
error: (message: string, ...args: any[]) => void;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC9C;AA6BD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAErD;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAGD,eAAO,MAAM,GAAG;qBACG,MAAM,WAAW,GAAG,EAAE;oBACvB,MAAM,WAAW,GAAG,EAAE;oBACtB,MAAM,WAAW,GAAG,EAAE;qBACrB,MAAM,WAAW,GAAG,EAAE;CACxC,CAAC"}
|