mentie 0.2.30 → 0.2.31

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.
@@ -172,8 +172,7 @@ log.error = function( ...messages ) {
172
172
 
173
173
  // Check if the loglevel matches this call
174
174
  const levels = [ 'error', 'warn', 'info' ]
175
- const should_log = dev || levels.includes( env.loglevel() )
176
- if( !dev || !should_log ) return
175
+ if( dev || !should_log( levels ) ) return
177
176
 
178
177
  // Log the messages if the loglevel matches
179
178
  console.error( '🚨 ', ...messages )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mentie",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "Mentor's toolbelt",
5
5
  "type": "module",
6
6
  "main": "index.js",