@pagopa/io-react-native-cie 1.3.3 → 1.3.4

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.
@@ -5,11 +5,12 @@ import { z } from 'zod';
5
5
  /**
6
6
  * Represent the log mode for the CIE SDK
7
7
  *
8
- * - `localFile`: Logs are saved to a local file on the device for later retrieval.
9
- * - `console`: Logs are output to the console for real-time monitoring.
10
- * - `disabled`: Disables all logging
8
+ * - 'ENABLED': Logs are enabled and will be printed using the standard print function.
9
+ * - `FILE`: Logs are saved to a local file on the device, allowing for later retrieval and analysis.
10
+ * - `CONSOLE`: Logs are output to the system console for real-time monitoring.
11
+ * - `DISABLED`: Disables all logging
11
12
  *
12
13
  * **Note**: Logging is only supported on iOS. On Android, setting the log mode will throw an error.
13
14
  */
14
- export const LogMode = z.enum(['localFile', 'console', 'disabled']);
15
+ export const LogMode = z.enum(['ENABLED', 'FILE', 'CONSOLE', 'DISABLED']);
15
16
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["z","LogMode","enum"],"sourceRoot":"../../../src","sources":["logger/types.ts"],"mappings":";;AAAA,SAASA,CAAC,QAAQ,KAAK;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,OAAO,GAAGD,CAAC,CAACE,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["z","LogMode","enum"],"sourceRoot":"../../../src","sources":["logger/types.ts"],"mappings":";;AAAA,SAASA,CAAC,QAAQ,KAAK;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,OAAO,GAAGD,CAAC,CAACE,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC","ignoreList":[]}
@@ -2,12 +2,13 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Represent the log mode for the CIE SDK
4
4
  *
5
- * - `localFile`: Logs are saved to a local file on the device for later retrieval.
6
- * - `console`: Logs are output to the console for real-time monitoring.
7
- * - `disabled`: Disables all logging
5
+ * - 'ENABLED': Logs are enabled and will be printed using the standard print function.
6
+ * - `FILE`: Logs are saved to a local file on the device, allowing for later retrieval and analysis.
7
+ * - `CONSOLE`: Logs are output to the system console for real-time monitoring.
8
+ * - `DISABLED`: Disables all logging
8
9
  *
9
10
  * **Note**: Logging is only supported on iOS. On Android, setting the log mode will throw an error.
10
11
  */
11
- export declare const LogMode: z.ZodEnum<["localFile", "console", "disabled"]>;
12
+ export declare const LogMode: z.ZodEnum<["ENABLED", "FILE", "CONSOLE", "DISABLED"]>;
12
13
  export type LogMode = z.infer<typeof LogMode>;
13
14
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/logger/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,iDAA+C,CAAC;AAEpE,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/logger/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,uDAAqD,CAAC;AAE1E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-cie",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Native support for CIE",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",
@@ -3,12 +3,13 @@ import { z } from 'zod';
3
3
  /**
4
4
  * Represent the log mode for the CIE SDK
5
5
  *
6
- * - `localFile`: Logs are saved to a local file on the device for later retrieval.
7
- * - `console`: Logs are output to the console for real-time monitoring.
8
- * - `disabled`: Disables all logging
6
+ * - 'ENABLED': Logs are enabled and will be printed using the standard print function.
7
+ * - `FILE`: Logs are saved to a local file on the device, allowing for later retrieval and analysis.
8
+ * - `CONSOLE`: Logs are output to the system console for real-time monitoring.
9
+ * - `DISABLED`: Disables all logging
9
10
  *
10
11
  * **Note**: Logging is only supported on iOS. On Android, setting the log mode will throw an error.
11
12
  */
12
- export const LogMode = z.enum(['localFile', 'console', 'disabled']);
13
+ export const LogMode = z.enum(['ENABLED', 'FILE', 'CONSOLE', 'DISABLED']);
13
14
 
14
15
  export type LogMode = z.infer<typeof LogMode>;