theprogrammablemind_4wp 7.5.8-beta.8 → 7.5.8-beta.80

Sign up to get free protection for your applications and to get access to all the features.
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
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-beta.8",
67
+ "version": "7.5.8-beta.80",
67
68
  "license": "ISC"
68
69
  }
package/runtime.js CHANGED
@@ -6,7 +6,9 @@ module.exports = {
6
6
  stdout: "Should not be called in the browser",
7
7
  },
8
8
  child_process: "Should not be called in the browser",
9
- fs: "Should not be called in the browser",
9
+ fs: {
10
+ existsSync: () => false,
11
+ },
10
12
  ArgumentParser: "Should not be called in the browser",
11
13
  readline: "Should not be called in the browser",
12
14
  jsonDiff: "Should not be called in the browser",