@jdeighan/coffee-utils 4.1.9 → 4.1.10

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.9",
4
+ "version": "4.1.10",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -20,7 +20,8 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "cls && rm -f ./src/*.js && coffee -c ./src",
23
- "pretest": "npm run build && rm -f ./test/*.js && rm -f ./test/*.coffee && cielo -fq ./test",
23
+ "old_pretest": "npm run build && rm -f ./test/*.js && rm -f ./test/*.coffee && cielo -fq ./test",
24
+ "pretest": "cls && coffee -c .",
24
25
  "test": "ava ./test/*.test.js",
25
26
  "prefinaltest": "npm run pretest",
26
27
  "finaltest": "cross-env FINALTEST=yes ava ./test/*.test.js"
@@ -86,7 +86,7 @@ export joinBlocks = (lBlocks...) ->
86
86
 
87
87
  lNonEmptyBlocks = []
88
88
  for block in lBlocks
89
- assert isString(block), "joinBlocks(): block is not a string"
89
+ assert isString(block), "joinBlocks(): block #{block} is not a string"
90
90
  if nonEmpty(block)
91
91
  lNonEmptyBlocks.push block
92
92
  return lNonEmptyBlocks.join('\n')
@@ -110,7 +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
- assert(isString(block), "joinBlocks(): block is not a string");
113
+ assert(isString(block), `joinBlocks(): block ${block} is not a string`);
114
114
  if (nonEmpty(block)) {
115
115
  lNonEmptyBlocks.push(block);
116
116
  }