mentie 0.3.7 → 0.3.8

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.
@@ -81,13 +81,13 @@ env.loglevel = () => env.web_loglevel() || env.node_loglevel() || env.dev() ? 'i
81
81
  * Retrieves the log annotations set via URL parameters in a web environment.
82
82
  * @returns {Array<string>|boolean} An array of log annotations from URL parameters, or false if not set.
83
83
  */
84
- env.web_log_annotations = () => env.is_web() && new URLSearchParams( location?.search ).get( 'log_annotations' ).split( ',' ).filter( Boolean ).map( annotation => annotation.trim() )
84
+ env.web_log_annotations = () => env.is_web() && new URLSearchParams( location?.search ).get( 'log_annotations' )?.split( ',' )?.filter( Boolean )?.map( annotation => annotation?.trim() )
85
85
 
86
86
  /**
87
87
  * Retrieves the log annotations set via environment variables in a Node.js environment.
88
88
  * @returns {Array<string>|boolean} An array of log annotations from environment variables, or false if not set.
89
89
  */
90
- env.node_log_annotations = () => env.is_node() && process.env?.LOG_ANNOTATIONS?.split( ',' ).filter( Boolean ).map( annotation => annotation.trim() )
90
+ env.node_log_annotations = () => env.is_node() && process.env?.LOG_ANNOTATIONS?.split( ',' )?.filter( Boolean )?.map( annotation => annotation?.trim() )
91
91
 
92
92
  /**
93
93
  * Retrieves the effective log annotations based on the environment. Defaults to an empty array if not set.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mentie",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Mentor's toolbelt",
5
5
  "type": "module",
6
6
  "main": "index.js",