@bravostudioai/react 0.1.38 → 0.1.41

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.
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sources":["../../src/lib/logger.ts"],"sourcesContent":["/**\n * Centralized logging utility for encore-lib\n *\n * Provides conditional logging based on environment.\n * Debug logs only appear in development mode.\n */\n\nconst isDev = typeof import.meta !== 'undefined'\n ? import.meta.env?.DEV || import.meta.env?.MODE === 'development'\n : process.env.NODE_ENV === 'development';\n\n/**\n * Logger instance with environment-aware methods\n */\nexport const logger = {\n /**\n * Debug-level logging (only in development)\n * Use for detailed diagnostic information\n */\n debug: (...args: any[]) => {\n if (isDev) {\n console.debug('[encore-lib]', ...args);\n }\n },\n\n /**\n * Info-level logging (only in development)\n * Use for general informational messages\n */\n info: (...args: any[]) => {\n if (isDev) {\n console.info('[encore-lib]', ...args);\n }\n },\n\n /**\n * Warning-level logging (always shown)\n * Use for recoverable issues that need attention\n */\n warn: (...args: any[]) => {\n console.warn('[encore-lib]', ...args);\n },\n\n /**\n * Error-level logging (always shown)\n * Use for errors and exceptions\n */\n error: (...args: any[]) => {\n console.error('[encore-lib]', ...args);\n },\n};\n\nexport default logger;\n"],"names":["isDev","logger","args"],"mappings":"AAOA,MAAMA,IAAQ,OAAO,cAAgB,MACT,KACxB,QAAQ,IAAI,aAAa,eAKhBC,IAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpB,OAAO,IAAIC,MAAgB;AACzB,IAAIF,KACF,QAAQ,MAAM,gBAAgB,GAAGE,CAAI;AAAA,EAEzC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAIA,MAAgB;AACxB,IAAIF,KACF,QAAQ,KAAK,gBAAgB,GAAGE,CAAI;AAAA,EAExC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAIA,MAAgB;AACxB,YAAQ,KAAK,gBAAgB,GAAGA,CAAI;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,IAAIA,MAAgB;AACzB,YAAQ,MAAM,gBAAgB,GAAGA,CAAI;AAAA,EACvC;AACF;"}
1
+ {"version":3,"file":"logger.js","sources":["../../src/lib/logger.ts"],"sourcesContent":["/**\n * Centralized logging utility for encore-lib\n *\n * Provides conditional logging based on environment.\n * Debug logs only appear in development mode.\n */\n\nconst isDev =\n typeof import.meta !== \"undefined\"\n ? (import.meta as any).env?.DEV ||\n (import.meta as any).env?.MODE === \"development\"\n : process.env.NODE_ENV === \"development\";\n\n/**\n * Logger instance with environment-aware methods\n */\nexport const logger = {\n /**\n * Debug-level logging (only in development)\n * Use for detailed diagnostic information\n */\n debug: (...args: any[]) => {\n if (isDev) {\n console.debug(\"[encore-lib]\", ...args);\n }\n },\n\n /**\n * Info-level logging (only in development)\n * Use for general informational messages\n */\n info: (...args: any[]) => {\n if (isDev) {\n console.info(\"[encore-lib]\", ...args);\n }\n },\n\n /**\n * Warning-level logging (always shown)\n * Use for recoverable issues that need attention\n */\n warn: (...args: any[]) => {\n console.warn(\"[encore-lib]\", ...args);\n },\n\n /**\n * Error-level logging (always shown)\n * Use for errors and exceptions\n */\n error: (...args: any[]) => {\n console.error(\"[encore-lib]\", ...args);\n },\n};\n\nexport default logger;\n"],"names":["isDev","logger","args"],"mappings":"AAOA,MAAMA,IACJ,OAAO,cAAgB,MAElB,KACD,QAAQ,IAAI,aAAa,eAKlBC,IAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpB,OAAO,IAAIC,MAAgB;AACzB,IAAIF,KACF,QAAQ,MAAM,gBAAgB,GAAGE,CAAI;AAAA,EAEzC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAIA,MAAgB;AACxB,IAAIF,KACF,QAAQ,KAAK,gBAAgB,GAAGE,CAAI;AAAA,EAExC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAIA,MAAgB;AACxB,YAAQ,KAAK,gBAAgB,GAAGA,CAAI;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,IAAIA,MAAgB;AACzB,YAAQ,MAAM,gBAAgB,GAAGA,CAAI;AAAA,EACvC;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/lib/logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,eAAO,MAAM,MAAM;IACjB;;;OAGG;qBACc,GAAG,EAAE;IAMtB;;;OAGG;oBACa,GAAG,EAAE;IAMrB;;;OAGG;oBACa,GAAG,EAAE;IAIrB;;;OAGG;qBACc,GAAG,EAAE;CAGvB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/lib/logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;GAEG;AACH,eAAO,MAAM,MAAM;IACjB;;;OAGG;qBACc,GAAG,EAAE;IAMtB;;;OAGG;oBACa,GAAG,EAAE;IAMrB;;;OAGG;oBACa,GAAG,EAAE;IAIrB;;;OAGG;qBACc,GAAG,EAAE;CAGvB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const PACKAGE_VERSION = "0.1.38";
1
+ export declare const PACKAGE_VERSION = "0.1.41";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "0.1.38";
1
+ const o = "0.1.41";
2
2
  export {
3
3
  o as PACKAGE_VERSION
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = \"0.1.38\";\n"],"names":["PACKAGE_VERSION"],"mappings":"AAAO,MAAMA,IAAkB;"}
1
+ {"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = \"0.1.41\";\n"],"names":["PACKAGE_VERSION"],"mappings":"AAAO,MAAMA,IAAkB;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bravostudioai/react",
3
- "version": "0.1.38",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/src/index.d.ts",
package/src/lib/logger.ts CHANGED
@@ -5,9 +5,11 @@
5
5
  * Debug logs only appear in development mode.
6
6
  */
7
7
 
8
- const isDev = typeof import.meta !== 'undefined'
9
- ? import.meta.env?.DEV || import.meta.env?.MODE === 'development'
10
- : process.env.NODE_ENV === 'development';
8
+ const isDev =
9
+ typeof import.meta !== "undefined"
10
+ ? (import.meta as any).env?.DEV ||
11
+ (import.meta as any).env?.MODE === "development"
12
+ : process.env.NODE_ENV === "development";
11
13
 
12
14
  /**
13
15
  * Logger instance with environment-aware methods
@@ -19,7 +21,7 @@ export const logger = {
19
21
  */
20
22
  debug: (...args: any[]) => {
21
23
  if (isDev) {
22
- console.debug('[encore-lib]', ...args);
24
+ console.debug("[encore-lib]", ...args);
23
25
  }
24
26
  },
25
27
 
@@ -29,7 +31,7 @@ export const logger = {
29
31
  */
30
32
  info: (...args: any[]) => {
31
33
  if (isDev) {
32
- console.info('[encore-lib]', ...args);
34
+ console.info("[encore-lib]", ...args);
33
35
  }
34
36
  },
35
37
 
@@ -38,7 +40,7 @@ export const logger = {
38
40
  * Use for recoverable issues that need attention
39
41
  */
40
42
  warn: (...args: any[]) => {
41
- console.warn('[encore-lib]', ...args);
43
+ console.warn("[encore-lib]", ...args);
42
44
  },
43
45
 
44
46
  /**
@@ -46,7 +48,7 @@ export const logger = {
46
48
  * Use for errors and exceptions
47
49
  */
48
50
  error: (...args: any[]) => {
49
- console.error('[encore-lib]', ...args);
51
+ console.error("[encore-lib]", ...args);
50
52
  },
51
53
  };
52
54
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = "0.1.38";
1
+ export const PACKAGE_VERSION = "0.1.41";