@jdeighan/coffee-utils 4.1.11 → 4.1.12

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