quote-observer 1.3.3 → 1.3.5

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/api/index.js CHANGED
File without changes
package/cmd/index.js CHANGED
File without changes
package/cmd/ma.js CHANGED
@@ -54,7 +54,7 @@ function marginal_value(datas) {
54
54
 
55
55
  const padding = [
56
56
  16,
57
- 16,
57
+ 20,
58
58
  15,
59
59
  15,
60
60
  15,
@@ -72,7 +72,7 @@ const pad = (items) => {
72
72
  }).join('');
73
73
  };
74
74
 
75
- const LINE = new Array(120).fill('=').join('');
75
+ const LINE = new Array(124).fill('=').join('');
76
76
 
77
77
  const STOCKS_MAP = new Map();
78
78
  function holding(code) {
package/fetch/index.js CHANGED
File without changes
package/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * @Author: kael
5
5
  * @Date: 2020-08-05 11:04:09
6
6
  * @Last Modified by: kael
7
- * @Last Modified time: 2020-11-11 10:31:24
7
+ * @Last Modified time: 2021-11-29 15:14:17
8
8
  */
9
9
 
10
10
  global.MARKET = {};
@@ -23,8 +23,10 @@ program
23
23
  program.parse(process.argv);
24
24
  global.config.args = program.opts();
25
25
 
26
+ // https://stackoverflow.com/questions/62499125/how-to-clear-terminal-and-scroll-back-in-nodejs
26
27
  console.reset = function () {
27
- return process.stdout.write('\033c\n');
28
+ process.stdout.write('\u001b[3J\u001b[1J');
29
+ console.clear();
28
30
  };
29
31
 
30
32
  cmd.ma();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quote-observer",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "quote observer",
5
5
  "main": "index.js",
6
6
  "scripts": {