@jdeighan/coffee-utils 11.0.41 → 11.0.43
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +3 -3
- package/src/SectionMap.coffee +2 -3
- package/src/SectionMap.js +2 -3
- package/src/utils.coffee +8 -2
- package/src/utils.js +22 -3
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jdeighan/coffee-utils",
|
3
3
|
"type": "module",
|
4
|
-
"version": "11.0.
|
4
|
+
"version": "11.0.43",
|
5
5
|
"description": "A set of utility functions for CoffeeScript",
|
6
6
|
"main": "coffee_utils.js",
|
7
7
|
"exports": {
|
@@ -48,7 +48,7 @@
|
|
48
48
|
},
|
49
49
|
"homepage": "https://github.com/johndeighan/coffee-utils#readme",
|
50
50
|
"dependencies": {
|
51
|
-
"@jdeighan/base-utils": "^1.0.
|
51
|
+
"@jdeighan/base-utils": "^1.0.5",
|
52
52
|
"cross-env": "^7.0.3",
|
53
53
|
"js-yaml": "^4.1.0",
|
54
54
|
"n-readlines": "^1.0.1",
|
@@ -56,6 +56,6 @@
|
|
56
56
|
"svelte": "^3.52.0"
|
57
57
|
},
|
58
58
|
"devDependencies": {
|
59
|
-
"@jdeighan/unit-tester": "^2.0.
|
59
|
+
"@jdeighan/unit-tester": "^2.0.63"
|
60
60
|
}
|
61
61
|
}
|
package/src/SectionMap.coffee
CHANGED
@@ -107,9 +107,8 @@ export class SectionMap
|
|
107
107
|
# an array of section or set names or literal strings
|
108
108
|
# i.e. it should NOT contain sub-arrays
|
109
109
|
|
110
|
-
|
111
|
-
|
112
|
-
else
|
110
|
+
dbgEnter "SectionMap.getBlock", desc
|
111
|
+
if ! isString(desc) && ! isArrayOfStrings(desc)
|
113
112
|
croak "Bad desc: #{OL(desc)}"
|
114
113
|
|
115
114
|
if isSectionName(desc)
|
package/src/SectionMap.js
CHANGED
@@ -131,9 +131,8 @@ export var SectionMap = class SectionMap {
|
|
131
131
|
// a set name
|
132
132
|
// an array of section or set names or literal strings
|
133
133
|
// i.e. it should NOT contain sub-arrays
|
134
|
-
|
135
|
-
|
136
|
-
} else {
|
134
|
+
dbgEnter("SectionMap.getBlock", desc);
|
135
|
+
if (!isString(desc) && !isArrayOfStrings(desc)) {
|
137
136
|
croak(`Bad desc: ${OL(desc)}`);
|
138
137
|
}
|
139
138
|
if (isSectionName(desc)) {
|
package/src/utils.coffee
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# utils.coffee
|
2
2
|
|
3
3
|
import {assert, croak} from '@jdeighan/base-utils'
|
4
|
-
import {LOG, sep_dash, sep_eq} from '@jdeighan/base-utils/log'
|
4
|
+
import {LOG, LOGVALUE, sep_dash, sep_eq} from '@jdeighan/base-utils/log'
|
5
|
+
import {
|
6
|
+
dbgEnter, dbgReturn, dbgYield, dbgResume, dbg, setDebugging,
|
7
|
+
} from '@jdeighan/base-utils/debug'
|
5
8
|
import {
|
6
9
|
undef, pass, defined, notdefined,
|
7
10
|
deepCopy, escapeStr, unescapeStr, hasChar, quoted, OL,
|
@@ -12,7 +15,10 @@ import {
|
|
12
15
|
} from '@jdeighan/base-utils/utils'
|
13
16
|
|
14
17
|
export {
|
15
|
-
|
18
|
+
assert, croak,
|
19
|
+
LOG, LOGVALUE, sep_dash, sep_eq,
|
20
|
+
dbgEnter, dbgReturn, dbgYield, dbgResume, dbg, setDebugging,
|
21
|
+
undef, pass, defined, notdefined,
|
16
22
|
deepCopy, escapeStr, unescapeStr, hasChar, quoted, OL,
|
17
23
|
isString, isNumber, isInteger, isHash, isArray, isBoolean,
|
18
24
|
isConstructor, isFunction, isRegExp, isObject, getClassName,
|
package/src/utils.js
CHANGED
@@ -9,10 +9,20 @@ import {
|
|
9
9
|
|
10
10
|
import {
|
11
11
|
LOG,
|
12
|
+
LOGVALUE,
|
12
13
|
sep_dash,
|
13
14
|
sep_eq
|
14
15
|
} from '@jdeighan/base-utils/log';
|
15
16
|
|
17
|
+
import {
|
18
|
+
dbgEnter,
|
19
|
+
dbgReturn,
|
20
|
+
dbgYield,
|
21
|
+
dbgResume,
|
22
|
+
dbg,
|
23
|
+
setDebugging
|
24
|
+
} from '@jdeighan/base-utils/debug';
|
25
|
+
|
16
26
|
import {
|
17
27
|
undef,
|
18
28
|
pass,
|
@@ -47,13 +57,22 @@ import {
|
|
47
57
|
} from '@jdeighan/base-utils/utils';
|
48
58
|
|
49
59
|
export {
|
60
|
+
assert,
|
61
|
+
croak,
|
62
|
+
LOG,
|
63
|
+
LOGVALUE,
|
64
|
+
sep_dash,
|
65
|
+
sep_eq,
|
66
|
+
dbgEnter,
|
67
|
+
dbgReturn,
|
68
|
+
dbgYield,
|
69
|
+
dbgResume,
|
70
|
+
dbg,
|
71
|
+
setDebugging,
|
50
72
|
undef,
|
51
73
|
pass,
|
52
74
|
defined,
|
53
75
|
notdefined,
|
54
|
-
LOG,
|
55
|
-
sep_dash,
|
56
|
-
sep_eq,
|
57
76
|
deepCopy,
|
58
77
|
escapeStr,
|
59
78
|
unescapeStr,
|