@revenuecat/purchases-js 1.13.2 → 1.14.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/dist/Purchases.es.d.ts +15 -0
- package/dist/Purchases.es.js +4389 -4426
- package/dist/Purchases.umd.js +80 -80
- package/package.json +2 -2
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -261,6 +261,15 @@ export declare interface HttpConfig {
|
|
|
261
261
|
proxyURL?: string;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Custom log handler function type. Allows you to handle SDK log messages
|
|
266
|
+
* with your own logging system.
|
|
267
|
+
* @param logLevel - The log level of the message
|
|
268
|
+
* @param message - The log message
|
|
269
|
+
* @public
|
|
270
|
+
*/
|
|
271
|
+
export declare type LogHandler = (logLevel: LogLevel, message: string) => void;
|
|
272
|
+
|
|
264
273
|
/**
|
|
265
274
|
* Possible levels to log in the console.
|
|
266
275
|
* @public
|
|
@@ -854,6 +863,12 @@ export declare class Purchases {
|
|
|
854
863
|
* @param logLevel - LogLevel to set.
|
|
855
864
|
*/
|
|
856
865
|
static setLogLevel(logLevel: LogLevel): void;
|
|
866
|
+
/**
|
|
867
|
+
* Set a custom log handler to handle SDK log messages with your own logging system.
|
|
868
|
+
* If set to null, the SDK will use the default console logging.
|
|
869
|
+
* @param handler - LogHandler function or null to use default console logging.
|
|
870
|
+
*/
|
|
871
|
+
static setLogHandler(handler: LogHandler | null): void;
|
|
857
872
|
/**
|
|
858
873
|
* Meant to be used by RevenueCat hybrids SDKS only.
|
|
859
874
|
* @experimental
|