@jdeighan/coffee-utils 7.0.35 → 7.0.36

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jdeighan/coffee-utils",
3
3
  "type": "module",
4
- "version": "7.0.35",
4
+ "version": "7.0.36",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -176,12 +176,12 @@ export debug = (lArgs...) ->
176
176
  switch type
177
177
  when 'enter'
178
178
  log label, hOptions
179
- if item
179
+ if (nArgs==2)
180
180
  # --- don't repeat the label
181
181
  logItem undef, item, hOptions
182
182
  when 'return'
183
183
  log label, hOptions
184
- if item?
184
+ if (nArgs==2)
185
185
  # --- don't repeat the label
186
186
  logItem undef, item, hOptions
187
187
  when 'string'
@@ -186,14 +186,14 @@ export var debug = function(...lArgs) {
186
186
  switch (type) {
187
187
  case 'enter':
188
188
  log(label, hOptions);
189
- if (item) {
189
+ if (nArgs === 2) {
190
190
  // --- don't repeat the label
191
191
  logItem(undef, item, hOptions);
192
192
  }
193
193
  break;
194
194
  case 'return':
195
195
  log(label, hOptions);
196
- if (item != null) {
196
+ if (nArgs === 2) {
197
197
  // --- don't repeat the label
198
198
  logItem(undef, item, hOptions);
199
199
  }