@jdeighan/coffee-utils 4.1.10 → 4.1.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/block_utils.coffee +4 -1
- package/src/block_utils.js +5 -1
package/package.json
CHANGED
package/src/block_utils.coffee
CHANGED
@@ -86,7 +86,10 @@ export joinBlocks = (lBlocks...) ->
|
|
86
86
|
|
87
87
|
lNonEmptyBlocks = []
|
88
88
|
for block in lBlocks
|
89
|
-
|
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')
|
package/src/block_utils.js
CHANGED
@@ -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
|
-
|
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
|
}
|