theprogrammablemind 7.5.8 → 7.6.0
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/client.js +589 -345
- package/index.js +1 -0
- package/lines.js +3 -3
- package/package.json +2 -1
- package/runtime.js +1 -1
- package/src/config.js +699 -325
- package/src/flatten.js +9 -1
- package/src/generators.js +2 -2
- package/src/helpers.js +38 -10
- package/src/project.js +81 -0
- package/src/semantics.js +8 -3
package/index.js
CHANGED
package/lines.js
CHANGED
@@ -10,12 +10,12 @@ class Lines {
|
|
10
10
|
}
|
11
11
|
|
12
12
|
// will wrap to next line within the column
|
13
|
-
setElement (row, column, value) {
|
13
|
+
setElement (row, column, value, fullWidth = false) {
|
14
14
|
const values = value.toString().split('\n')
|
15
15
|
if (column >= this.widths.length) {
|
16
|
-
throw "Column out of range."
|
16
|
+
throw new Error("Column out of range.")
|
17
17
|
}
|
18
|
-
const width = this.widths[column]
|
18
|
+
const width = fullWidth ? value.length: this.widths[column]
|
19
19
|
let index = 0
|
20
20
|
for (value of values) {
|
21
21
|
while (value.length > 0) {
|
package/package.json
CHANGED
@@ -46,6 +46,7 @@
|
|
46
46
|
"src/digraph.js",
|
47
47
|
"src/digraph_internal.js",
|
48
48
|
"src/generators.js",
|
49
|
+
"src/project.js",
|
49
50
|
"src/semantics.js"
|
50
51
|
],
|
51
52
|
"author": "dev@thinktelligence.com",
|
@@ -63,6 +64,6 @@
|
|
63
64
|
"json-stable-stringify": "^1.0.1",
|
64
65
|
"node-fetch": "^2.6.1"
|
65
66
|
},
|
66
|
-
"version": "7.
|
67
|
+
"version": "7.6.0",
|
67
68
|
"license": "ISC"
|
68
69
|
}
|