@jdeighan/coffee-utils 4.1.10 → 4.1.11

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": "4.1.10",
4
+ "version": "4.1.11",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -86,7 +86,10 @@ export joinBlocks = (lBlocks...) ->
86
86
 
87
87
  lNonEmptyBlocks = []
88
88
  for block in lBlocks
89
- assert isString(block), "joinBlocks(): block #{block} is not a string"
89
+ if ! isString(block)
90
+ log "NOT A BLOCK"
91
+ log 'bad block', block
92
+ process.exit()
90
93
  if nonEmpty(block)
91
94
  lNonEmptyBlocks.push block
92
95
  return lNonEmptyBlocks.join('\n')
@@ -110,7 +110,11 @@ export var joinBlocks = function(...lBlocks) {
110
110
  lNonEmptyBlocks = [];
111
111
  for (i = 0, len1 = lBlocks.length; i < len1; i++) {
112
112
  block = lBlocks[i];
113
- assert(isString(block), `joinBlocks(): block ${block} is not a string`);
113
+ if (!isString(block)) {
114
+ log("NOT A BLOCK");
115
+ log('bad block', block);
116
+ process.exit();
117
+ }
114
118
  if (nonEmpty(block)) {
115
119
  lNonEmptyBlocks.push(block);
116
120
  }