@jdeighan/coffee-utils 7.0.46 → 7.0.47

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.46",
4
+ "version": "7.0.47",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -52,6 +52,6 @@
52
52
  "svelte": "^3.48.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@jdeighan/unit-tester": "^2.0.2"
55
+ "@jdeighan/unit-tester": "^2.0.3"
56
56
  }
57
57
  }
package/src/DataStores.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // DataStores.coffee
3
3
  import pathlib from 'path';
4
4
 
package/src/arrow.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // arrow.coffee
3
3
  export var vbar = '│'; // unicode 2502
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // block_utils.coffee
3
3
  import fs from 'fs';
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // browser_utils.coffee
3
3
  var audio;
4
4
 
package/src/call_stack.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // call_stack.coffee
3
3
  var doDebugStack;
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // coffee_utils.coffee
3
3
  var LOG, getCallers,
4
4
  indexOf = [].indexOf;
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // debug_utils.coffee
3
3
  var adjustStack, doDebugDebug, reMethod, resetDebugging, shouldLogFunc, shouldLogString, stack;
4
4
 
package/src/fs_utils.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // fs_utils.coffee
3
3
  var isSystemDir;
4
4
 
@@ -38,6 +38,15 @@ export indentLevel = (line) ->
38
38
  lMatches = line.match(/^\t*/)
39
39
  return lMatches[0].length
40
40
 
41
+ # ---------------------------------------------------------------------------
42
+ # isUndented - true iff indentLevel(line) == 0
43
+
44
+ export isUndented = (line) ->
45
+
46
+ assert isString(line), "non-string #{OL(line)}"
47
+ lMatches = line.match(/^\t*/)
48
+ return (lMatches[0].length == 0)
49
+
41
50
  # ---------------------------------------------------------------------------
42
51
  # indented - add indentation to each string in a block
43
52
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // indent_utils.coffee
3
3
  import {
4
4
  assert,
@@ -50,6 +50,15 @@ export var indentLevel = function(line) {
50
50
  return lMatches[0].length;
51
51
  };
52
52
 
53
+ // ---------------------------------------------------------------------------
54
+ // isUndented - true iff indentLevel(line) == 0
55
+ export var isUndented = function(line) {
56
+ var lMatches;
57
+ assert(isString(line), `non-string ${OL(line)}`);
58
+ lMatches = line.match(/^\t*/);
59
+ return lMatches[0].length === 0;
60
+ };
61
+
53
62
  // ---------------------------------------------------------------------------
54
63
  // indented - add indentation to each string in a block
55
64
  export var indented = function(input, level = 1) {
package/src/log_utils.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // log_utils.coffee
3
3
  var escReplacer, fixStr, loaded, maxOneLine, putBlock, putstr;
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // server_utils.coffee
3
3
  import getline from 'readline-sync';
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // svelte_utils.coffee
3
3
  import {
4
4
  assert,
package/src/taml.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by CoffeeScript 2.6.1
1
+ // Generated by CoffeeScript 2.7.0
2
2
  // taml.coffee
3
3
  var squote;
4
4