@jdeighan/coffee-utils 7.0.25 → 7.0.26

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.25",
4
+ "version": "7.0.26",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -84,7 +84,7 @@ export truncateBlock = (str, numLines) ->
84
84
  export joinBlocks = (lBlocks...) ->
85
85
 
86
86
  lNonEmptyBlocks = []
87
- for block in lBlocks
87
+ for block in lBlocks.flat(999)
88
88
  assert isString(block), "joinBlocks(): #{block} is not a string"
89
89
  if nonEmpty(block)
90
90
  lNonEmptyBlocks.push block
@@ -101,10 +101,11 @@ export var truncateBlock = function(str, numLines) {
101
101
 
102
102
  // ---------------------------------------------------------------------------
103
103
  export var joinBlocks = function(...lBlocks) {
104
- var block, i, lNonEmptyBlocks, len1;
104
+ var block, i, lNonEmptyBlocks, len1, ref;
105
105
  lNonEmptyBlocks = [];
106
- for (i = 0, len1 = lBlocks.length; i < len1; i++) {
107
- block = lBlocks[i];
106
+ ref = lBlocks.flat(999);
107
+ for (i = 0, len1 = ref.length; i < len1; i++) {
108
+ block = ref[i];
108
109
  assert(isString(block), `joinBlocks(): ${block} is not a string`);
109
110
  if (nonEmpty(block)) {
110
111
  lNonEmptyBlocks.push(block);