@jdeighan/coffee-utils 7.0.20 → 7.0.21

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.20",
4
+ "version": "7.0.21",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -7,7 +7,7 @@ import NReadLines from 'n-readlines'
7
7
 
8
8
  import {
9
9
  assert, undef, pass, rtrim, error, isEmpty, nonEmpty,
10
- isString, isArray, isRegExp, isFunction, croak,
10
+ isString, isArray, isRegExp, isFunction, croak, OL,
11
11
  } from '@jdeighan/coffee-utils'
12
12
  import {log, LOG} from '@jdeighan/coffee-utils/log'
13
13
  import {debug} from '@jdeighan/coffee-utils/debug'
@@ -349,7 +349,8 @@ export parseSource = (source) ->
349
349
  # --- NOTE: source may be a file URL, e.g. import.meta.url
350
350
 
351
351
  debug "enter parseSource()"
352
- assert isString(source), "parseSource(): source not a string"
352
+ assert isString(source),\
353
+ "parseSource(): source not a string: #{OL(source)}"
353
354
  if source == 'unit test'
354
355
  croak "A source of 'unit test' is deprecated"
355
356
  if source.match(/^file\:\/\//)
package/src/fs_utils.js CHANGED
@@ -22,7 +22,8 @@ import {
22
22
  isArray,
23
23
  isRegExp,
24
24
  isFunction,
25
- croak
25
+ croak,
26
+ OL
26
27
  } from '@jdeighan/coffee-utils';
27
28
 
28
29
  import {
@@ -410,7 +411,7 @@ export var parseSource = function(source) {
410
411
  // }
411
412
  // --- NOTE: source may be a file URL, e.g. import.meta.url
412
413
  debug("enter parseSource()");
413
- assert(isString(source), "parseSource(): source not a string");
414
+ assert(isString(source), `parseSource(): source not a string: ${OL(source)}`);
414
415
  if (source === 'unit test') {
415
416
  croak("A source of 'unit test' is deprecated");
416
417
  }