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/index.js CHANGED
@@ -23,5 +23,6 @@ module.exports = {
23
23
  Generator,
24
24
  Digraph,
25
25
  flattens: flattens.flattens,
26
+ flatten: flattens.flatten,
26
27
  unflatten: unflatten.unflatten
27
28
  }
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.5.8",
67
+ "version": "7.6.0",
67
68
  "license": "ISC"
68
69
  }
package/runtime.js CHANGED
@@ -8,7 +8,7 @@ module.exports = {
8
8
  stdin: process.stdin,
9
9
  stdout: process.stdout,
10
10
  },
11
- child_process: 'wtf',
11
+ child_process: require('child_process'),
12
12
  fs,
13
13
  ArgumentParser,
14
14
  readline: require('readline'),