@jdeighan/coffee-utils 5.0.5 → 6.0.0

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": "5.0.5",
4
+ "version": "6.0.0",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -17,14 +17,15 @@ export id = 42
17
17
  # ---------------------------------------------------------------------------
18
18
  # This is useful for debugging and easy to remove after debugging
19
19
 
20
- export LOG = (item, label, ch='=') ->
20
+ export LOG = (label, item, ch='=') ->
21
21
 
22
- if label
22
+ if item
23
23
  console.log ch.repeat(42)
24
24
  console.log "[#{label}]:"
25
25
  console.log untabify(orderedStringify(item))
26
+ console.log ch.repeat(42)
26
27
  else
27
- console.log item
28
+ console.log label
28
29
  return
29
30
 
30
31
  # ---------------------------------------------------------------------------
package/src/log_utils.js CHANGED
@@ -35,13 +35,14 @@ export var id = 42;
35
35
 
36
36
  // ---------------------------------------------------------------------------
37
37
  // This is useful for debugging and easy to remove after debugging
38
- export var LOG = function(item, label, ch = '=') {
39
- if (label) {
38
+ export var LOG = function(label, item, ch = '=') {
39
+ if (item) {
40
40
  console.log(ch.repeat(42));
41
41
  console.log(`[${label}]:`);
42
42
  console.log(untabify(orderedStringify(item)));
43
+ console.log(ch.repeat(42));
43
44
  } else {
44
- console.log(item);
45
+ console.log(label);
45
46
  }
46
47
  };
47
48