db-modeling-markdown 2.0.1 → 2.1.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.
Files changed (118) hide show
  1. package/README.md +168 -164
  2. package/dist/dialects/core/dbImportProvider.d.ts +5 -5
  3. package/dist/dialects/core/dbImportProvider.js +6 -6
  4. package/dist/dialects/core/dbProvider.d.ts +34 -34
  5. package/dist/dialects/core/dbProvider.js +119 -119
  6. package/dist/dialects/core/dbProvider.js.map +1 -1
  7. package/dist/dialects/core/dbUtils.d.ts +35 -35
  8. package/dist/dialects/core/dbUtils.js +157 -158
  9. package/dist/dialects/core/dbUtils.js.map +1 -1
  10. package/dist/dialects/core/providerFactory.d.ts +7 -7
  11. package/dist/dialects/core/providerFactory.js +63 -63
  12. package/dist/dialects/core/providerFactory.js.map +1 -1
  13. package/dist/dialects/db2/db2Provider.d.ts +19 -19
  14. package/dist/dialects/db2/db2Provider.js +185 -186
  15. package/dist/dialects/db2/db2Provider.js.map +1 -1
  16. package/dist/dialects/mariadb/mariaDbImportProvider.d.ts +19 -19
  17. package/dist/dialects/mariadb/mariaDbImportProvider.js +260 -253
  18. package/dist/dialects/mariadb/mariaDbImportProvider.js.map +1 -1
  19. package/dist/dialects/mariadb/mariaDbProvider.d.ts +18 -18
  20. package/dist/dialects/mariadb/mariaDbProvider.js +152 -153
  21. package/dist/dialects/mariadb/mariaDbProvider.js.map +1 -1
  22. package/dist/dialects/mariadb/mariaDbUtil.d.ts +6 -6
  23. package/dist/dialects/mariadb/mariaDbUtil.js +22 -22
  24. package/dist/dialects/mariadb/mariaDbUtil.js.map +1 -1
  25. package/dist/dialects/mssql/msSqlProvider.d.ts +21 -21
  26. package/dist/dialects/mssql/msSqlProvider.js +264 -265
  27. package/dist/dialects/mssql/msSqlProvider.js.map +1 -1
  28. package/dist/dialects/mysql/mySqlImportProvider.d.ts +3 -3
  29. package/dist/dialects/mysql/mySqlImportProvider.js +7 -7
  30. package/dist/dialects/mysql/mySqlProvider.d.ts +3 -3
  31. package/dist/dialects/mysql/mySqlProvider.js +7 -7
  32. package/dist/dialects/oracle/oracleProvider.d.ts +35 -35
  33. package/dist/dialects/oracle/oracleProvider.js +327 -327
  34. package/dist/dialects/oracle/oracleProvider.js.map +1 -1
  35. package/dist/dialects/postgresql/postgreSqlProvider.d.ts +19 -19
  36. package/dist/dialects/postgresql/postgreSqlProvider.js +172 -173
  37. package/dist/dialects/postgresql/postgreSqlProvider.js.map +1 -1
  38. package/dist/dialects/sqlite/sqliteSqlProvider.d.ts +23 -23
  39. package/dist/dialects/sqlite/sqliteSqlProvider.js +147 -148
  40. package/dist/dialects/sqlite/sqliteSqlProvider.js.map +1 -1
  41. package/dist/index.d.ts +10 -10
  42. package/dist/index.js +9 -9
  43. package/dist/lib/code-flow/codeFlow.d.ts +37 -37
  44. package/dist/lib/code-flow/codeFlow.js +61 -61
  45. package/dist/lib/markdown-object/markdownModel.d.ts +14 -14
  46. package/dist/lib/markdown-object/markdownModel.js +12 -12
  47. package/dist/lib/markdown-object/markdownModel.js.map +1 -1
  48. package/dist/lib/markdown-object/markdownReader.d.ts +39 -39
  49. package/dist/lib/markdown-object/markdownReader.js +261 -258
  50. package/dist/lib/markdown-object/markdownReader.js.map +1 -1
  51. package/dist/lib/markdown-object/markdownWriter.d.ts +36 -36
  52. package/dist/lib/markdown-object/markdownWriter.js +224 -223
  53. package/dist/lib/markdown-object/markdownWriter.js.map +1 -1
  54. package/dist/lib/markdown-object/readerContext.d.ts +12 -12
  55. package/dist/lib/markdown-object/readerContext.js +48 -48
  56. package/dist/lib/markdown-object/readerContext.js.map +1 -1
  57. package/dist/lib/utils/fileHelper.d.ts +14 -15
  58. package/dist/lib/utils/fileHelper.js +58 -57
  59. package/dist/lib/utils/fileHelper.js.map +1 -1
  60. package/dist/lib/utils/logger.d.ts +9 -9
  61. package/dist/lib/utils/logger.js +60 -60
  62. package/dist/lib/utils/logger.js.map +1 -1
  63. package/dist/lib/utils/markdownParser.d.ts +22 -22
  64. package/dist/lib/utils/markdownParser.js +99 -95
  65. package/dist/lib/utils/markdownParser.js.map +1 -1
  66. package/dist/lib/utils/sqlHelper.d.ts +3 -3
  67. package/dist/lib/utils/sqlHelper.js +23 -23
  68. package/dist/lib/utils/sqlHelper.js.map +1 -1
  69. package/dist/lib/utils/systemHelper.d.ts +2 -2
  70. package/dist/lib/utils/systemHelper.js +6 -6
  71. package/dist/lib/utils/textFileReader.d.ts +25 -25
  72. package/dist/lib/utils/textFileReader.js +57 -57
  73. package/dist/lib/utils/textFileReader.js.map +1 -1
  74. package/dist/lib/utils/textHelper.d.ts +21 -21
  75. package/dist/lib/utils/textHelper.js +75 -71
  76. package/dist/lib/utils/textHelper.js.map +1 -1
  77. package/dist/models/databaseTypes.d.ts +33 -33
  78. package/dist/models/databaseTypes.js +37 -37
  79. package/dist/models/databaseTypes.js.map +1 -1
  80. package/dist/models/dbColumn.d.ts +43 -43
  81. package/dist/models/dbColumn.js +2 -2
  82. package/dist/models/dbDiffModel.d.ts +43 -43
  83. package/dist/models/dbDiffModel.js +2 -2
  84. package/dist/models/dbForeignKey.d.ts +33 -33
  85. package/dist/models/dbForeignKey.js +2 -2
  86. package/dist/models/dbIndex.d.ts +28 -28
  87. package/dist/models/dbIndex.js +2 -2
  88. package/dist/models/dbIndexType.d.ts +8 -8
  89. package/dist/models/dbIndexType.js +12 -12
  90. package/dist/models/dbIndexType.js.map +1 -1
  91. package/dist/models/dbModel.d.ts +10 -10
  92. package/dist/models/dbModel.js +2 -2
  93. package/dist/models/dbPrimaryKey.d.ts +16 -16
  94. package/dist/models/dbPrimaryKey.js +2 -2
  95. package/dist/models/dbTable.d.ts +49 -49
  96. package/dist/models/dbTable.js +2 -2
  97. package/dist/models/dbTableMarkdown.d.ts +35 -34
  98. package/dist/models/dbTableMarkdown.js +2 -2
  99. package/dist/resources/mariadb/procAppUpgradeDB.sql +164 -0
  100. package/dist/resources/mariadb/sql-create-table-fk.njk +10 -0
  101. package/dist/resources/mariadb/sql-create-table.njk +12 -0
  102. package/dist/resources/mariadb/sql-create-tables.njk +9 -0
  103. package/dist/resources/mariadb/sql-drop-tables.njk +10 -0
  104. package/dist/resources/mariadb/sql-drop-then-create-tables.njk +4 -0
  105. package/dist/resources/mariadb/sql-upgrade-new-table.njk +15 -0
  106. package/dist/resources/mariadb/sql-upgrade-table-fk.njk +10 -0
  107. package/dist/resources/mariadb/sql-upgrade-table.njk +41 -0
  108. package/dist/resources/mariadb/sql-upgrade-tables.njk +19 -0
  109. package/dist/services/dbOptions.d.ts +35 -35
  110. package/dist/services/dbOptions.js +17 -17
  111. package/dist/services/dbmOptions.d.ts +28 -28
  112. package/dist/services/dbmOptions.js +34 -34
  113. package/dist/services/dbmService.d.ts +87 -87
  114. package/dist/services/dbmService.js +244 -246
  115. package/dist/services/dbmService.js.map +1 -1
  116. package/package.json +29 -34
  117. package/CHANGELOG.md +0 -81
  118. package/CONTRIBUTING.md +0 -82
@@ -1,96 +1,100 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MarkdownParser = void 0;
4
- const regexp_coder_1 = require("regexp-coder");
5
- const splitter = '|';
6
- const escaper = '\\';
7
- class MarkdownParser {
8
- /**
9
- * The splitter expression to split a markdown row to cells
10
- * `/(?<!(?:^|[^\\|])(?:\\\\|\\\|)*\\)\|/`
11
- */
12
- static markdownCellSplitterExp() {
13
- const noSplitterChar = regexp_coder_1.RegExpCoder.new().negatedSet(regexp_coder_1.RegExpCoder.encodeRegExp(splitter, true), regexp_coder_1.RegExpCoder.encodeRegExp(escaper, true));
14
- const qualifiedSplitterChar = regexp_coder_1.RegExpCoder.new().or(regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${escaper}`), regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${splitter}`));
15
- return regexp_coder_1.RegExpCoder.new()
16
- .negatedLookbehind(regexp_coder_1.RegExpCoder.encodeRegExp(splitter), new regexp_coder_1.RegExpCoder()
17
- .or('^', noSplitterChar, { group: true, notRemember: true })
18
- .join(qualifiedSplitterChar, {
19
- qualifier: '*',
20
- notRememberQualifiedItem: true,
21
- groupQualifiedItem: true,
22
- })
23
- .join(regexp_coder_1.RegExpCoder.encodeRegExp(escaper)))
24
- .toRegExp();
25
- }
26
- /**
27
- * The regular expression to match a markdown table line row.
28
- */
29
- static markdownLineRowExp() {
30
- const whitespaceAny = /\s*/;
31
- const headerLineEx = /(\s*)(:?)(-*)(:?)(\s*)/;
32
- const splitterEx = /\|/;
33
- return new regexp_coder_1.RegExpCoder()
34
- .join(whitespaceAny)
35
- .join(splitterEx, { qualifier: '?', group: true })
36
- .join(headerLineEx, splitterEx, { qualifier: '+', group: true })
37
- .join(headerLineEx, { qualifier: '?', group: true })
38
- .join(whitespaceAny)
39
- .enableMatchWhole()
40
- .toRegExp();
41
- }
42
- /**
43
- * The regular expression to match a markdown table headers or rows
44
- * `/^\s*(\|)?((\s*(([^|\\]|\\\\|\\\|)*)\s*\|)+)(\s*(([^|\\]|\\\\|\\\|)*)\s*)+\s*$/`
45
- */
46
- static markdownRowExp() {
47
- const whitespaceAny = /\s*/;
48
- const noSplitterChar = regexp_coder_1.RegExpCoder.new().negatedSet(splitter, regexp_coder_1.RegExpCoder.encodeRegExp(escaper));
49
- const qualifiedSplitterChar = regexp_coder_1.RegExpCoder.new().or(regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${escaper}`), regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${splitter}`));
50
- const cell = regexp_coder_1.RegExpCoder.new()
51
- .join(whitespaceAny)
52
- .or(noSplitterChar, qualifiedSplitterChar, { qualifier: '*', group: true })
53
- .join(whitespaceAny);
54
- return regexp_coder_1.RegExpCoder.new()
55
- .join(whitespaceAny)
56
- .join(regexp_coder_1.RegExpCoder.encodeRegExp(splitter), { qualifier: '?', notRemember: true })
57
- .join(cell, regexp_coder_1.RegExpCoder.encodeRegExp(splitter), { qualifier: '+', group: true })
58
- .join(cell, { qualifier: '+' })
59
- .join(whitespaceAny)
60
- .enableMatchWhole()
61
- .toRegExp();
62
- }
63
- static matchHeader(line) {
64
- return headerExp.exec(line);
65
- }
66
- static matchListItem(line) {
67
- return listItemExp.exec(line);
68
- }
69
- static splitTableRowToCells(line) {
70
- let values = line.split(splitterExp);
71
- if (values.length > 0 && values[0] === '') {
72
- values = values.slice(1, values.length);
73
- }
74
- if (values.length > 0 && values[values.length - 1] === '') {
75
- values = values.slice(0, values.length - 1);
76
- }
77
- values = values.map((value) => value.trim().replace(/\\(.)/g, '$1'));
78
- return values;
79
- }
80
- static testTableHeader(line) {
81
- return tableRowExp.test(line);
82
- }
83
- static testTableLine(line) {
84
- return tableLineRowExp.test(line);
85
- }
86
- static testTableRow(line) {
87
- return tableRowExp.test(line);
88
- }
89
- }
90
- exports.MarkdownParser = MarkdownParser;
91
- const headerExp = regexp_coder_1.RegExpCoder.new().join('(#+)', '\\s+', '(.*)').enableMatchWhole().toRegExp();
92
- const listItemExp = regexp_coder_1.RegExpCoder.new().join('-', '\\s+', '([^:]*)', '\\s*:\\s*', '(.*)').enableMatchWhole().toRegExp();
93
- const tableRowExp = MarkdownParser.markdownRowExp();
94
- const tableLineRowExp = MarkdownParser.markdownLineRowExp();
95
- const splitterExp = MarkdownParser.markdownCellSplitterExp();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarkdownParser = void 0;
4
+ const regexp_coder_1 = require("regexp-coder");
5
+ const splitter = '|';
6
+ const escaper = '\\';
7
+ class MarkdownParser {
8
+ /**
9
+ * The splitter expression to split a markdown row to cells
10
+ * `/(?<!(?:^|[^\\|])(?:\\\\|\\\|)*\\)\|/`
11
+ */
12
+ static markdownCellSplitterExp() {
13
+ const noSplitterChar = regexp_coder_1.RegExpCoder.new().negatedSet(regexp_coder_1.RegExpCoder.encodeRegExp(splitter, true), regexp_coder_1.RegExpCoder.encodeRegExp(escaper, true));
14
+ const qualifiedSplitterChar = regexp_coder_1.RegExpCoder.new().or(regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${escaper}`), regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${splitter}`));
15
+ return regexp_coder_1.RegExpCoder.new()
16
+ .negatedLookbehind(regexp_coder_1.RegExpCoder.encodeRegExp(splitter), new regexp_coder_1.RegExpCoder()
17
+ .or('^', noSplitterChar, { group: true, notRemember: true })
18
+ .join(qualifiedSplitterChar, {
19
+ qualifier: '*',
20
+ notRememberQualifiedItem: true,
21
+ groupQualifiedItem: true,
22
+ })
23
+ .join(regexp_coder_1.RegExpCoder.encodeRegExp(escaper)))
24
+ .toRegExp();
25
+ }
26
+ /**
27
+ * The regular expression to match a markdown table line row.
28
+ */
29
+ static markdownLineRowExp() {
30
+ const whitespaceAny = /\s*/;
31
+ const headerLineEx = /(\s*)(:?)(-*)(:?)(\s*)/;
32
+ const splitterEx = /\|/;
33
+ return new regexp_coder_1.RegExpCoder()
34
+ .join(whitespaceAny)
35
+ .join(splitterEx, { qualifier: '?', group: true })
36
+ .join(headerLineEx, splitterEx, { qualifier: '+', group: true })
37
+ .join(headerLineEx, { qualifier: '?', group: true })
38
+ .join(whitespaceAny)
39
+ .enableMatchWhole()
40
+ .toRegExp();
41
+ }
42
+ /**
43
+ * The regular expression to match a markdown table headers or rows
44
+ * `/^\s*(\|)?((\s*(([^|\\]|\\\\|\\\|)*)\s*\|)+)(\s*(([^|\\]|\\\\|\\\|)*)\s*)+\s*$/`
45
+ */
46
+ static markdownRowExp() {
47
+ const whitespaceAny = /\s*/;
48
+ const noSplitterChar = regexp_coder_1.RegExpCoder.new().negatedSet(splitter, regexp_coder_1.RegExpCoder.encodeRegExp(escaper));
49
+ const qualifiedSplitterChar = regexp_coder_1.RegExpCoder.new().or(regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${escaper}`), regexp_coder_1.RegExpCoder.encodeRegExp(`${escaper}${splitter}`));
50
+ const cell = regexp_coder_1.RegExpCoder.new()
51
+ .join(whitespaceAny)
52
+ .or(noSplitterChar, qualifiedSplitterChar, { qualifier: '*', group: true })
53
+ .join(whitespaceAny);
54
+ return regexp_coder_1.RegExpCoder.new()
55
+ .join(whitespaceAny)
56
+ .join(regexp_coder_1.RegExpCoder.encodeRegExp(splitter), { qualifier: '?', notRemember: true })
57
+ .join(cell, regexp_coder_1.RegExpCoder.encodeRegExp(splitter), { qualifier: '+', group: true })
58
+ .join(cell, { qualifier: '+' })
59
+ .join(whitespaceAny)
60
+ .enableMatchWhole()
61
+ .toRegExp();
62
+ }
63
+ static matchHeader(line) {
64
+ return headerExp.exec(line);
65
+ }
66
+ static matchListItem(line) {
67
+ return listItemExp.exec(line);
68
+ }
69
+ static splitTableRowToCells(line) {
70
+ let values = line.split(splitterExp);
71
+ if (values.length > 0 && values[0] === '') {
72
+ values = values.slice(1, values.length);
73
+ }
74
+ if (values.length > 0 && values[values.length - 1] === '') {
75
+ values = values.slice(0, values.length - 1);
76
+ }
77
+ values = values.map((value) => {
78
+ const trimmed = value.trim();
79
+ // fast path: no escaped characters to unescape
80
+ return trimmed.indexOf('\\') === -1 ? trimmed : trimmed.replace(/\\(.)/g, '$1');
81
+ });
82
+ return values;
83
+ }
84
+ static testTableHeader(line) {
85
+ return tableRowExp.test(line);
86
+ }
87
+ static testTableLine(line) {
88
+ return tableLineRowExp.test(line);
89
+ }
90
+ static testTableRow(line) {
91
+ return tableRowExp.test(line);
92
+ }
93
+ }
94
+ exports.MarkdownParser = MarkdownParser;
95
+ const headerExp = regexp_coder_1.RegExpCoder.new().join('(#+)', '\\s+', '(.*)').enableMatchWhole().toRegExp();
96
+ const listItemExp = regexp_coder_1.RegExpCoder.new().join('-', '\\s+', '([^:]*)', '\\s*:\\s*', '(.*)').enableMatchWhole().toRegExp();
97
+ const tableRowExp = MarkdownParser.markdownRowExp();
98
+ const tableLineRowExp = MarkdownParser.markdownLineRowExp();
99
+ const splitterExp = MarkdownParser.markdownCellSplitterExp();
96
100
  //# sourceMappingURL=markdownParser.js.map
@@ -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AW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC9B,CAAC;CACD;AA3GD,wCA2GC;AAED,MAAM,SAAS,GAAG,0BAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAA;AAC9F,MAAM,WAAW,GAAG,0BAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAA;AACrH,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,EAAE,CAAA;AACnD,MAAM,eAAe,GAAG,cAAc,CAAC,kBAAkB,EAAE,CAAA;AAC3D,MAAM,WAAW,GAAG,cAAc,CAAC,uBAAuB,EAAE,CAAA"}
@@ -1,3 +1,3 @@
1
- export declare class SqlHelper {
2
- static toSQL(value: any): string;
3
- }
1
+ export declare class SqlHelper {
2
+ static toSQL(value: any): string;
3
+ }
@@ -1,24 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SqlHelper = void 0;
4
- class SqlHelper {
5
- static toSQL(value) {
6
- let sSQL;
7
- const typeName = typeof value;
8
- if (typeName === 'number') {
9
- sSQL = value;
10
- }
11
- else if (typeName === 'object') {
12
- sSQL = `'${value}'`;
13
- }
14
- else if (typeName === 'boolean') {
15
- sSQL = value ? '1' : '0';
16
- }
17
- else {
18
- sSQL = `'${value.replace("'", "''")}'`;
19
- }
20
- return sSQL;
21
- }
22
- }
23
- exports.SqlHelper = SqlHelper;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SqlHelper = void 0;
4
+ class SqlHelper {
5
+ static toSQL(value) {
6
+ let sSQL;
7
+ const typeName = typeof value;
8
+ if (typeName === 'number') {
9
+ sSQL = value;
10
+ }
11
+ else if (typeName === 'object') {
12
+ sSQL = `'${value}'`;
13
+ }
14
+ else if (typeName === 'boolean') {
15
+ sSQL = value ? '1' : '0';
16
+ }
17
+ else {
18
+ sSQL = `'${value.replace("'", "''")}'`;
19
+ }
20
+ return sSQL;
21
+ }
22
+ }
23
+ exports.SqlHelper = SqlHelper;
24
24
  //# sourceMappingURL=sqlHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqlHelper.js","sourceRoot":"","sources":["../../../src/lib/utils/sqlHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;IACd,MAAM,CAAC,KAAK,CAAC,KAAU;QAC7B,IAAI,IAAY,CAAA;QAEhB,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAA;QAE7B,IAAI,QAAQ,KAAK,QAAQ,EAAE;YAC1B,IAAI,GAAG,KAAK,CAAA;SACZ;aAAM,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACjC,IAAI,GAAG,IAAI,KAAa,GAAG,CAAA;SAC3B;aAAM,IAAI,QAAQ,KAAK,SAAS,EAAE;YAClC,IAAI,GAAI,KAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;SACrC;aAAM;YACN,IAAI,GAAG,IAAK,KAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAA;SAClD;QACD,OAAO,IAAI,CAAA;IACZ,CAAC;CACD;AAjBD,8BAiBC"}
1
+ {"version":3,"file":"sqlHelper.js","sourceRoot":"","sources":["../../../src/lib/utils/sqlHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;IACd,MAAM,CAAC,KAAK,CAAC,KAAU;QAC7B,IAAI,IAAY,CAAA;QAEhB,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAA;QAE7B,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC3B,IAAI,GAAG,KAAK,CAAA;QACb,CAAC;aAAM,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAClC,IAAI,GAAG,IAAI,KAAa,GAAG,CAAA;QAC5B,CAAC;aAAM,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,IAAI,GAAI,KAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;QACtC,CAAC;aAAM,CAAC;YACP,IAAI,GAAG,IAAK,KAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAA;QACnD,CAAC;QACD,OAAO,IAAI,CAAA;IACZ,CAAC;CACD;AAjBD,8BAiBC"}
@@ -1,2 +1,2 @@
1
- export declare class SystemHelper {
2
- }
1
+ export declare class SystemHelper {
2
+ }
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SystemHelper = void 0;
4
- class SystemHelper {
5
- }
6
- exports.SystemHelper = SystemHelper;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SystemHelper = void 0;
4
+ class SystemHelper {
5
+ }
6
+ exports.SystemHelper = SystemHelper;
7
7
  //# sourceMappingURL=systemHelper.js.map
@@ -1,25 +1,25 @@
1
- /**
2
- * Provide functions to read a text file by lines
3
- */
4
- export declare class TextFileReader {
5
- private lines;
6
- private position;
7
- /**
8
- * The current position
9
- */
10
- getPosition(): number;
11
- hasMore(steps?: number): boolean;
12
- get length(): number;
13
- /**
14
- * Move the position with steps
15
- * @param steps the steps of the position move
16
- */
17
- move(steps?: number): void;
18
- open(path: string): void;
19
- /**
20
- * Peak a line without position change.
21
- * @param steps the steps relative to the current position.
22
- */
23
- peak(steps?: number): string | null;
24
- read(): string | null;
25
- }
1
+ /**
2
+ * Provide functions to read a text file by lines
3
+ */
4
+ export declare class TextFileReader {
5
+ private lines;
6
+ private position;
7
+ /**
8
+ * The current position
9
+ */
10
+ getPosition(): number;
11
+ hasMore(steps?: number): boolean;
12
+ get length(): number;
13
+ /**
14
+ * Move the position with steps
15
+ * @param steps the steps of the position move
16
+ */
17
+ move(steps?: number): void;
18
+ open(path: string): void;
19
+ /**
20
+ * Peak a line without position change.
21
+ * @param steps the steps relative to the current position.
22
+ */
23
+ peak(steps?: number): string | null;
24
+ read(): string | null;
25
+ }
@@ -1,58 +1,58 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextFileReader = void 0;
4
- const fileHelper_1 = require("./fileHelper");
5
- const textHelper_1 = require("./textHelper");
6
- /**
7
- * Provide functions to read a text file by lines
8
- */
9
- class TextFileReader {
10
- constructor() {
11
- this.lines = [];
12
- this.position = -1;
13
- }
14
- /**
15
- * The current position
16
- */
17
- getPosition() {
18
- return this.position;
19
- }
20
- hasMore(steps = 0) {
21
- return this.position + steps < this.lines.length - 1;
22
- }
23
- get length() {
24
- return this.lines.length;
25
- }
26
- /**
27
- * Move the position with steps
28
- * @param steps the steps of the position move
29
- */
30
- move(steps = 1) {
31
- this.position += steps;
32
- }
33
- open(path) {
34
- const content = fileHelper_1.FileHelper.readFileSync(path);
35
- this.lines = textHelper_1.TextHelper.splitToLines(content);
36
- this.position = -1;
37
- }
38
- /**
39
- * Peak a line without position change.
40
- * @param steps the steps relative to the current position.
41
- */
42
- peak(steps = 1) {
43
- if (this.position + steps < this.length - 1) {
44
- return this.lines[this.position + steps];
45
- }
46
- return null;
47
- }
48
- read() {
49
- if (this.position < this.length - 1) {
50
- this.position += 1;
51
- const line = this.lines[this.position];
52
- return line;
53
- }
54
- return null;
55
- }
56
- }
57
- exports.TextFileReader = TextFileReader;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextFileReader = void 0;
4
+ const fileHelper_1 = require("./fileHelper");
5
+ const textHelper_1 = require("./textHelper");
6
+ /**
7
+ * Provide functions to read a text file by lines
8
+ */
9
+ class TextFileReader {
10
+ constructor() {
11
+ this.lines = [];
12
+ this.position = -1;
13
+ }
14
+ /**
15
+ * The current position
16
+ */
17
+ getPosition() {
18
+ return this.position;
19
+ }
20
+ hasMore(steps = 0) {
21
+ return this.position + steps < this.lines.length - 1;
22
+ }
23
+ get length() {
24
+ return this.lines.length;
25
+ }
26
+ /**
27
+ * Move the position with steps
28
+ * @param steps the steps of the position move
29
+ */
30
+ move(steps = 1) {
31
+ this.position += steps;
32
+ }
33
+ open(path) {
34
+ const content = fileHelper_1.FileHelper.readFileSync(path);
35
+ this.lines = textHelper_1.TextHelper.splitToLines(content);
36
+ this.position = -1;
37
+ }
38
+ /**
39
+ * Peak a line without position change.
40
+ * @param steps the steps relative to the current position.
41
+ */
42
+ peak(steps = 1) {
43
+ if (this.position + steps < this.length - 1) {
44
+ return this.lines[this.position + steps];
45
+ }
46
+ return null;
47
+ }
48
+ read() {
49
+ if (this.position < this.length - 1) {
50
+ this.position += 1;
51
+ const line = this.lines[this.position];
52
+ return line;
53
+ }
54
+ return null;
55
+ }
56
+ }
57
+ exports.TextFileReader = TextFileReader;
58
58
  //# sourceMappingURL=textFileReader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textFileReader.js","sourceRoot":"","sources":["../../../src/lib/utils/textFileReader.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,6CAAyC;AAEzC;;GAEG;AACH,MAAa,cAAc;IAA3B;QACS,UAAK,GAAa,EAAE,CAAA;QAEpB,aAAQ,GAAW,CAAC,CAAC,CAAA;IAkD9B,CAAC;IAhDA;;OAEG;IACI,WAAW;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAA;IACrB,CAAC;IAEM,OAAO,CAAC,QAAgB,CAAC;QAC/B,OAAO,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;IACrD,CAAC;IAED,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAA;IACzB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,QAAgB,CAAC;QAC5B,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAA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C;IAED,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAA;IACzB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,QAAgB,CAAC;QAC5B,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAA;IACvB,CAAC;IAEM,IAAI,CAAC,IAAY;QACvB,MAAM,OAAO,GAAG,uBAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAC7C,IAAI,CAAC,KAAK,GAAG,uBAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC7C,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAA;IACnB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,QAAgB,CAAC;QAC5B,IAAI,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAA;QACzC,CAAC;QACD,OAAO,IAAI,CAAA;IACZ,CAAC;IAEM,IAAI;QACV,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAA;YAClB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QACZ,CAAC;QACD,OAAO,IAAI,CAAA;IACZ,CAAC;CACD;AArDD,wCAqDC"}
@@ -1,21 +1,21 @@
1
- export declare class TextHelper {
2
- static splitToLines(str: string): string[];
3
- static width(str: string): number;
4
- static padEnd(str: string, maxLen: number, fileString?: string): string;
5
- /**
6
- * encode a text to a markdown text
7
- * - end of line
8
- * @param str text
9
- * @returns the markdown text
10
- */
11
- static encodeMarkdown(str: string): string;
12
- /**
13
- * decode a text to a markdown text
14
- * - end of line
15
- * @param str the markdown text
16
- * @returns the decoded text
17
- */
18
- static decodeMarkdown(str: string): string;
19
- private static encodeReplacer;
20
- private static decodeReplacer;
21
- }
1
+ export declare class TextHelper {
2
+ static splitToLines(str: string): string[];
3
+ static width(str: string): number;
4
+ static padEnd(str: string, maxLen: number, fileString?: string): string;
5
+ /**
6
+ * encode a text to a markdown text
7
+ * - end of line
8
+ * @param str text
9
+ * @returns the markdown text
10
+ */
11
+ static encodeMarkdown(str: string): string;
12
+ /**
13
+ * decode a text to a markdown text
14
+ * - end of line
15
+ * @param str the markdown text
16
+ * @returns the decoded text
17
+ */
18
+ static decodeMarkdown(str: string): string;
19
+ private static encodeReplacer;
20
+ private static decodeReplacer;
21
+ }