@ibgib/ts-gib 0.5.29 → 0.5.31

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.
@@ -1,213 +1,4 @@
1
- import { readdir, open } from 'node:fs/promises';
2
- import { pathToFileURL } from 'node:url';
3
- import { statSync } from 'node:fs';
4
- import * as pathUtils from 'path';
5
- import { pretty } from '@ibgib/helper-gib/dist/helpers/utils-helper.mjs';
6
- import { getGlobalRespecGib } from '@ibgib/helper-gib/dist/respec-gib/respec-gib.mjs';
7
- // #region settings
8
- /**
9
- * This is how I enable/disable verbose logging. Do with it what you will.
10
- */
11
- const logalot = false;
12
- /** set this to the root of the respecs to look at */
13
- const RESPEC_ROOT_DIR_RELATIVE_TO_BASE = './dist';
14
- /** change this to suit your naming convention */
15
- const RESPEC_FILE_REG_EXP = /^.+respec\.mjs$/;
16
- // const RESPEC_FILE_REG_EXP = /^.*respec-gib.respec\.mjs$/;
17
- // if (respecPath.includes('respec-gib.respec.mjs')) {
18
- /**
19
- * If on, will first load a file and see if there is an extra respecful
20
- * `respecfully`/`ifWe` block. Use these if you want to focus on a single or
21
- * subset of respecs.
22
- *
23
- * If there are no extra respecful blocks found in an entire file, that file
24
- * will be skipped.
25
- *
26
- * Note: this only is a flag to search through respec files.
27
- */
28
- const LOOK_FOR_EXTRA_RESPEC = true;
29
- /**
30
- * The names of the functions that indicate that we want to focus on just those
31
- * blocks.
32
- *
33
- * ATOW, for first run implementation here, I am implementing it such that it
34
- * will filter out files that don't have these indicators. The respec files that
35
- * do have these will execute fully, but the output will only include these
36
- * particular blocks.
37
- */
38
- const EXTRA_RESPEC_FUNCTION_NAMES = ['await respecfullyDear', 'ifWeMight'];
39
- // #endregion settings
40
- // #region 1. get respec paths
41
- const basePath = process.cwd();
42
- const srcPath = pathUtils.join(basePath, RESPEC_ROOT_DIR_RELATIVE_TO_BASE);
43
- if (logalot) {
44
- console.log(`cwd: ${process.cwd()}`);
45
- }
46
- if (logalot) {
47
- console.log(`basePath: ${basePath}`);
48
- }
49
- if (logalot) {
50
- console.log(`srcPath: ${srcPath}`);
51
- }
52
- const respecGib = getGlobalRespecGib();
53
- const allRespecPaths = await getRespecFileFullPaths(srcPath, []);
54
- if (logalot) {
55
- console.log(`allRespecPaths: ${allRespecPaths} (I: f5182a455375a8cf2aa6e1127a082423)`);
56
- }
57
- let filteredRespecPaths = undefined;
58
- if (LOOK_FOR_EXTRA_RESPEC) {
59
- const hasExtraRespecPromises = allRespecPaths.map(async (respecPath) => {
60
- const hasExtra = await respecFileHasExtraRespec(respecPath);
61
- return [respecPath, hasExtra];
62
- });
63
- const resPathHasExtraTuples = await Promise.all(hasExtraRespecPromises);
64
- filteredRespecPaths = resPathHasExtraTuples
65
- .filter(([_respecPath, hasExtra]) => hasExtra)
66
- .map(([respecPath, _hasExtra]) => respecPath);
67
- // if there are no files that have extra respec then we do all files
68
- if (filteredRespecPaths.length === 0) {
69
- if (logalot) {
70
- console.log(`filteredRespecPaths is empty. doing allRespecPaths found (I: b98f54656899646025eecb4c028ab523)`);
71
- }
72
- filteredRespecPaths = allRespecPaths.concat();
73
- }
74
- else {
75
- console.log(`filteredRespecPaths for extra respec: ${filteredRespecPaths} (I: b98f54656899646025eecb4c028ab523)`);
76
- respecGib.extraRespecOnly = true;
77
- }
78
- }
79
- // #endregion 1. get respec paths
80
- respecGib.allRespecPaths = allRespecPaths;
81
- respecGib.filteredRespecPaths = filteredRespecPaths;
82
- const respecPaths = filteredRespecPaths ?? allRespecPaths;
83
- respecGib.respecPaths = respecPaths;
84
- if (logalot) {
85
- console.log(`respecPaths found:\n${respecPaths}`);
86
- }
87
- // #region 2. execute paths' respective respecs
88
- // for now, we'll do sequentially, but in the future we could conceivable farm
89
- // these out to other node processes, or at least Promise.all
90
- for (let i = 0; i < respecPaths.length; i++) {
91
- const respecPath = respecPaths[i];
92
- if (logalot) {
93
- console.log(respecPath);
94
- }
95
- const respecPathUrl = pathToFileURL(respecPath).href;
96
- const esm = await import(respecPathUrl);
97
- if (logalot) {
98
- console.log(pretty(Object.keys(esm)));
99
- }
100
- }
101
- const skippedRespecPathCount = respecGib.allRespecPaths.length - respecGib.respecPaths.length;
102
- if (skippedRespecPathCount > 0) {
103
- console.log('');
104
- console.error('\x1b[33m%s\x1b[0m', `${skippedRespecPathCount} respec files completely skipped.`); // yellow
105
- }
106
- if (respecGib.ifWeBlocksSkipped > 0) {
107
- console.log('');
108
- console.error('\x1b[33m%s\x1b[0m', `${respecGib.ifWeBlocksSkipped} ifWe blocks ran but skipped reporting`); // yellow
109
- }
110
- if (respecGib.errorMsgs.length === 0) {
111
- console.log('');
112
- console.error('\x1b[32m%s\x1b[0m', `💚💚 nothing but respec 💚💚`); // green
113
- }
114
- else {
115
- console.log('');
116
- console.error('\x1b[31m%s\x1b[0m', `💔💔 DISrespec found 💔💔`); // red
117
- for (const errorMsg of respecGib.errorMsgs) {
118
- console.error('\x1b[31m%s\x1b[0m', errorMsg); // red
119
- }
120
- }
121
- // #endregion 2. execute paths' respective respecs
122
- // #region helper functions
123
- /**
124
- * builds a list of respec file paths, recursively traversing subdirectories
125
- * starting from `dirPath`.
126
- *
127
- * @param dirPath a full path corresponding to a directory
128
- * @param found respec paths already found (used in recursive calls)
129
- * @returns list of all respec paths according to the respec regexp constant {@link RESPEC_FILE_REG_EXP}
130
- */
131
- async function getRespecFileFullPaths(dirPath, found) {
132
- const lc = `[${getRespecFileFullPaths.name}][${dirPath}]`;
133
- try {
134
- if (logalot) {
135
- console.log(`${lc} starting... (I: 16026290523925f79ba1933847e2a623)`);
136
- }
137
- found ??= [];
138
- const children = await readdir(dirPath);
139
- if (logalot) {
140
- for (let i = 0; i < children.length; i++) {
141
- console.log(children[i]);
142
- }
143
- }
144
- const files = [];
145
- const dirs = [];
146
- children.forEach(name => {
147
- const fullPath = pathUtils.join(dirPath, name);
148
- const stat = statSync(fullPath);
149
- if (stat.isDirectory()) {
150
- // symbolic link could create a loop
151
- if (!stat.isSymbolicLink()) {
152
- dirs.push(fullPath);
153
- }
154
- }
155
- else if (!!name.match(RESPEC_FILE_REG_EXP)) {
156
- files.push(fullPath);
157
- }
158
- });
159
- found = found.concat(files);
160
- for (let i = 0; i < dirs.length; i++) {
161
- const subfound = await getRespecFileFullPaths(dirs[i], found);
162
- found = found.concat(subfound);
163
- }
164
- return Array.from(new Set(found)); // unique
165
- }
166
- catch (error) {
167
- console.error(`${lc} ${error.message}`);
168
- throw error;
169
- }
170
- finally {
171
- if (logalot) {
172
- console.log(`${lc} complete.`);
173
- }
174
- }
175
- }
176
- /**
177
- * Searches through the file (without importing it) for extra respecful
178
- * functions.
179
- *
180
- * @param respecPath
181
- * @returns true if extra respecful functions found in file
182
- */
183
- async function respecFileHasExtraRespec(respecPath) {
184
- const lc = `[${respecFileHasExtraRespec.name}]`;
185
- try {
186
- if (logalot) {
187
- console.log(`${lc} starting... (I: 61f3221917ba77175efa305b14defc23)`);
188
- }
189
- const file = await open(respecPath);
190
- for await (const line of file.readLines()) {
191
- const hasExtraRespecInLine = EXTRA_RESPEC_FUNCTION_NAMES.some(fnName => {
192
- if (line.includes(`${fnName}(`)) {
193
- return true;
194
- }
195
- });
196
- if (hasExtraRespecInLine) {
197
- return true;
198
- }
199
- }
200
- return false;
201
- }
202
- catch (error) {
203
- console.error(`${lc} ${error.message}`);
204
- throw error;
205
- }
206
- finally {
207
- if (logalot) {
208
- console.log(`${lc} complete.`);
209
- }
210
- }
211
- }
212
- // #endregion helper functions
1
+ import { RespecNodeRunner } from '@ibgib/helper-gib/dist/respec-gib/respec-node-runner.mjs';
2
+ const runner = new RespecNodeRunner();
3
+ await runner.run();
213
4
  //# sourceMappingURL=respec-gib.node.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"respec-gib.node.mjs","sourceRoot":"","sources":["../src/respec-gib.node.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,M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I,wBAAwB,CAAC,IAAI,GAAG,CAAC;IAChD,IAAI,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,oDAAoD,CAAC,CAAC;QAAC,CAAC;QACxF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACxC,MAAM,oBAAoB,GACtB,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBACtC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC;oBAAC,OAAO,IAAI,CAAC;gBAAC,CAAC;YACrD,CAAC,CAAC,CAAC;YACP,IAAI,oBAAoB,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACxC,MAAM,KAAK,CAAC;IAChB,CAAC;YAAS,CAAC;QACP,IAAI,OAAO,EAAE,CAAC;YAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAAC,CAAC;IACpD,CAAC;AACL,CAAC;AAED,8BAA8B"}
1
+ {"version":3,"file":"respec-gib.node.mjs","sourceRoot":"","sources":["../src/respec-gib.node.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAE5F,MAAM,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;AACtC,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibgib/ts-gib",
3
- "version": "0.5.29",
3
+ "version": "0.5.31",
4
4
  "description": "ibgib library with low-level graphing-related substrate functionality, e.g. creating raw ibgibs and transformations. node19+ needed for heavily-used webcrypto hashing isomorphically consumed in node and browsers (apps).",
5
5
  "repository": {
6
6
  "url": "https://gitlab.com/ibgib/ts-gib",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "main": "dist/index.mjs",
14
14
  "scripts": {
15
- "clean": "node node_modules/@ibgib/helper-gib/tools/clean.js ./dist",
15
+ "clean": "node ../../node_modules/@ibgib/helper-gib/tools/clean.js ./dist",
16
16
  "build": "npm run clean && tsc -b tsconfig.json --force",
17
17
  "build:test": "npm run clean && tsc -b tsconfig.test.json --force",
18
18
  "build:test:noclean": "tsc -b tsconfig.test.json --force",
@@ -51,9 +51,7 @@
51
51
  ],
52
52
  "author": "William Raiford",
53
53
  "license": "ISC",
54
- "devDependencies": {
55
- "@types/node": "^20.2.1"
56
- },
54
+ "devDependencies": {},
57
55
  "engines": {
58
56
  "node": ">=19.0.0"
59
57
  },
@@ -61,6 +59,6 @@
61
59
  "access": "public"
62
60
  },
63
61
  "dependencies": {
64
- "@ibgib/helper-gib": "^0.0.33"
62
+ "@ibgib/helper-gib": "^0.0.35"
65
63
  }
66
64
  }
@@ -1,201 +1,4 @@
1
- import { readdir, open } from 'node:fs/promises';
2
- import { pathToFileURL } from 'node:url';
3
- import { statSync } from 'node:fs';
4
- import * as pathUtils from 'path';
1
+ import { RespecNodeRunner } from '@ibgib/helper-gib/dist/respec-gib/respec-node-runner.mjs';
5
2
 
6
- import { pretty } from '@ibgib/helper-gib/dist/helpers/utils-helper.mjs';
7
- import { getGlobalRespecGib } from '@ibgib/helper-gib/dist/respec-gib/respec-gib.mjs';
8
-
9
- // #region settings
10
- /**
11
- * This is how I enable/disable verbose logging. Do with it what you will.
12
- */
13
- const logalot = false;
14
-
15
- /** set this to the root of the respecs to look at */
16
- const RESPEC_ROOT_DIR_RELATIVE_TO_BASE = './dist';
17
-
18
- /** change this to suit your naming convention */
19
- const RESPEC_FILE_REG_EXP = /^.+respec\.mjs$/;
20
- // const RESPEC_FILE_REG_EXP = /^.*respec-gib.respec\.mjs$/;
21
- // if (respecPath.includes('respec-gib.respec.mjs')) {
22
-
23
- /**
24
- * If on, will first load a file and see if there is an extra respecful
25
- * `respecfully`/`ifWe` block. Use these if you want to focus on a single or
26
- * subset of respecs.
27
- *
28
- * If there are no extra respecful blocks found in an entire file, that file
29
- * will be skipped.
30
- *
31
- * Note: this only is a flag to search through respec files.
32
- */
33
- const LOOK_FOR_EXTRA_RESPEC = true;
34
- /**
35
- * The names of the functions that indicate that we want to focus on just those
36
- * blocks.
37
- *
38
- * ATOW, for first run implementation here, I am implementing it such that it
39
- * will filter out files that don't have these indicators. The respec files that
40
- * do have these will execute fully, but the output will only include these
41
- * particular blocks.
42
- */
43
- const EXTRA_RESPEC_FUNCTION_NAMES: string[] = ['await respecfullyDear', 'ifWeMight'];
44
-
45
- // #endregion settings
46
-
47
- // #region 1. get respec paths
48
-
49
- const basePath = process.cwd();
50
- const srcPath = pathUtils.join(basePath, RESPEC_ROOT_DIR_RELATIVE_TO_BASE);
51
-
52
- if (logalot) { console.log(`cwd: ${process.cwd()}`); }
53
- if (logalot) { console.log(`basePath: ${basePath}`); }
54
- if (logalot) { console.log(`srcPath: ${srcPath}`); }
55
-
56
-
57
- const respecGib = getGlobalRespecGib();
58
- const allRespecPaths = await getRespecFileFullPaths(srcPath, []);
59
-
60
- if (logalot) { console.log(`allRespecPaths: ${allRespecPaths} (I: f5182a455375a8cf2aa6e1127a082423)`); }
61
- let filteredRespecPaths: string[] | undefined = undefined;
62
-
63
- if (LOOK_FOR_EXTRA_RESPEC) {
64
- const hasExtraRespecPromises = allRespecPaths.map(async respecPath => {
65
- const hasExtra = await respecFileHasExtraRespec(respecPath);
66
- return [respecPath, hasExtra] as [string, boolean];
67
- });
68
- const resPathHasExtraTuples = await Promise.all(hasExtraRespecPromises);
69
- filteredRespecPaths = resPathHasExtraTuples
70
- .filter(([_respecPath, hasExtra]) => hasExtra)
71
- .map(([respecPath, _hasExtra]) => respecPath);
72
-
73
- // if there are no files that have extra respec then we do all files
74
- if (filteredRespecPaths.length === 0) {
75
- if (logalot) { console.log(`filteredRespecPaths is empty. doing allRespecPaths found (I: b98f54656899646025eecb4c028ab523)`); }
76
- filteredRespecPaths = allRespecPaths.concat();
77
- } else {
78
- console.log(`filteredRespecPaths for extra respec: ${filteredRespecPaths} (I: b98f54656899646025eecb4c028ab523)`);
79
- respecGib.extraRespecOnly = true;
80
- }
81
- }
82
-
83
- // #endregion 1. get respec paths
84
-
85
- respecGib.allRespecPaths = allRespecPaths;
86
- respecGib.filteredRespecPaths = filteredRespecPaths;
87
- const respecPaths = filteredRespecPaths ?? allRespecPaths;
88
- respecGib.respecPaths = respecPaths;
89
- if (logalot) { console.log(`respecPaths found:\n${respecPaths}`); }
90
-
91
- // #region 2. execute paths' respective respecs
92
-
93
- // for now, we'll do sequentially, but in the future we could conceivable farm
94
- // these out to other node processes, or at least Promise.all
95
-
96
- for (let i = 0; i < respecPaths.length; i++) {
97
- const respecPath = respecPaths[i];
98
- if (logalot) { console.log(respecPath); }
99
- const respecPathUrl = pathToFileURL(respecPath).href;
100
- const esm = await import(respecPathUrl);
101
- if (logalot) { console.log(pretty(Object.keys(esm))); }
102
- }
103
-
104
- const skippedRespecPathCount = respecGib.allRespecPaths.length - respecGib.respecPaths.length;
105
- if (skippedRespecPathCount > 0) {
106
- console.log('');
107
- console.error('\x1b[33m%s\x1b[0m', `${skippedRespecPathCount} respec files completely skipped.`); // yellow
108
- }
109
- if (respecGib.ifWeBlocksSkipped > 0) {
110
- console.log('');
111
- console.error('\x1b[33m%s\x1b[0m', `${respecGib.ifWeBlocksSkipped} ifWe blocks ran but skipped reporting`); // yellow
112
- }
113
-
114
- if (respecGib.errorMsgs.length === 0) {
115
- console.log('');
116
- console.error('\x1b[32m%s\x1b[0m', `💚💚 nothing but respec 💚💚`); // green
117
- } else {
118
- console.log('');
119
- console.error('\x1b[31m%s\x1b[0m', `💔💔 DISrespec found 💔💔`); // red
120
- for (const errorMsg of respecGib.errorMsgs) {
121
- console.error('\x1b[31m%s\x1b[0m', errorMsg); // red
122
- }
123
- }
124
-
125
- // #endregion 2. execute paths' respective respecs
126
-
127
- // #region helper functions
128
-
129
- /**
130
- * builds a list of respec file paths, recursively traversing subdirectories
131
- * starting from `dirPath`.
132
- *
133
- * @param dirPath a full path corresponding to a directory
134
- * @param found respec paths already found (used in recursive calls)
135
- * @returns list of all respec paths according to the respec regexp constant {@link RESPEC_FILE_REG_EXP}
136
- */
137
- async function getRespecFileFullPaths(dirPath: string, found: string[]): Promise<string[]> {
138
- const lc = `[${getRespecFileFullPaths.name}][${dirPath}]`;
139
- try {
140
- if (logalot) { console.log(`${lc} starting... (I: 16026290523925f79ba1933847e2a623)`); }
141
- found ??= [];
142
- const children = await readdir(dirPath);
143
- if (logalot) { for (let i = 0; i < children.length; i++) { console.log(children[i]); } }
144
- const files: string[] = [];
145
- const dirs: string[] = [];
146
- children.forEach(name => {
147
- const fullPath = pathUtils.join(dirPath, name);
148
- const stat = statSync(fullPath);
149
- if (stat.isDirectory()) {
150
- // symbolic link could create a loop
151
- if (!stat.isSymbolicLink()) { dirs.push(fullPath); }
152
- } else if (!!name.match(RESPEC_FILE_REG_EXP)) {
153
- files.push(fullPath);
154
- }
155
- });
156
-
157
- found = found.concat(files);
158
- for (let i = 0; i < dirs.length; i++) {
159
- const subfound = await getRespecFileFullPaths(dirs[i], found);
160
- found = found.concat(subfound);
161
- }
162
- return Array.from(new Set(found)); // unique
163
- } catch (error) {
164
- console.error(`${lc} ${error.message}`);
165
- throw error;
166
- } finally {
167
- if (logalot) { console.log(`${lc} complete.`); }
168
- }
169
- }
170
-
171
- /**
172
- * Searches through the file (without importing it) for extra respecful
173
- * functions.
174
- *
175
- * @param respecPath
176
- * @returns true if extra respecful functions found in file
177
- */
178
- async function respecFileHasExtraRespec(respecPath: string): Promise<boolean> {
179
- const lc = `[${respecFileHasExtraRespec.name}]`;
180
- try {
181
- if (logalot) { console.log(`${lc} starting... (I: 61f3221917ba77175efa305b14defc23)`); }
182
- const file = await open(respecPath);
183
- for await (const line of file.readLines()) {
184
- const hasExtraRespecInLine =
185
- EXTRA_RESPEC_FUNCTION_NAMES.some(fnName => {
186
- if (line.includes(`${fnName}(`)) { return true; }
187
- });
188
- if (hasExtraRespecInLine) {
189
- return true;
190
- }
191
- }
192
- return false;
193
- } catch (error) {
194
- console.error(`${lc} ${error.message}`);
195
- throw error;
196
- } finally {
197
- if (logalot) { console.log(`${lc} complete.`); }
198
- }
199
- }
200
-
201
- // #endregion helper functions
3
+ const runner = new RespecNodeRunner();
4
+ await runner.run();
@@ -1,45 +0,0 @@
1
- # Details
2
-
3
- Date : 2024-07-02 16:01:47
4
-
5
- Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
6
-
7
- Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
8
-
9
- [Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
10
-
11
- ## Files
12
- | filename | language | code | comment | blank | total |
13
- | :--- | :--- | ---: | ---: | ---: | ---: |
14
- | [CHANGELOG.md](/CHANGELOG.md) | Markdown | 164 | 0 | 28 | 192 |
15
- | [README.md](/README.md) | Markdown | 429 | 0 | 118 | 547 |
16
- | [package-lock.json](/package-lock.json) | JSON | 57 | 0 | 1 | 58 |
17
- | [package.json](/package.json) | JSON | 66 | 0 | 1 | 67 |
18
- | [src/V1/constants.mts](/src/V1/constants.mts) | TypeScript | 8 | 42 | 2 | 52 |
19
- | [src/V1/factory.mts](/src/V1/factory.mts) | TypeScript | 101 | 18 | 8 | 127 |
20
- | [src/V1/factory.respec.mts](/src/V1/factory.respec.mts) | TypeScript | 129 | 15 | 22 | 166 |
21
- | [src/V1/index.mts](/src/V1/index.mts) | TypeScript | 5 | 0 | 1 | 6 |
22
- | [src/V1/sha256v1.mts](/src/V1/sha256v1.mts) | TypeScript | 110 | 30 | 6 | 146 |
23
- | [src/V1/sha256v1.respec.mts](/src/V1/sha256v1.respec.mts) | TypeScript | 180 | 31 | 21 | 232 |
24
- | [src/V1/transforms/fork.mts](/src/V1/transforms/fork.mts) | TypeScript | 73 | 19 | 14 | 106 |
25
- | [src/V1/transforms/fork.spec.mts](/src/V1/transforms/fork.spec.mts) | TypeScript | 275 | 86 | 53 | 414 |
26
- | [src/V1/transforms/index.mts](/src/V1/transforms/index.mts) | TypeScript | 4 | 0 | 1 | 5 |
27
- | [src/V1/transforms/mut8.mts](/src/V1/transforms/mut8.mts) | TypeScript | 139 | 80 | 21 | 240 |
28
- | [src/V1/transforms/mut8.spec.mts](/src/V1/transforms/mut8.spec.mts) | TypeScript | 448 | 87 | 123 | 658 |
29
- | [src/V1/transforms/rel8.mts](/src/V1/transforms/rel8.mts) | TypeScript | 134 | 24 | 20 | 178 |
30
- | [src/V1/transforms/rel8.spec.mts](/src/V1/transforms/rel8.spec.mts) | TypeScript | 380 | 99 | 79 | 558 |
31
- | [src/V1/transforms/transform-helper.mts](/src/V1/transforms/transform-helper.mts) | TypeScript | 153 | 90 | 22 | 265 |
32
- | [src/V1/transforms/transform-helper.spec.mts](/src/V1/transforms/transform-helper.spec.mts) | TypeScript | 28 | 11 | 8 | 47 |
33
- | [src/V1/types.mts](/src/V1/types.mts) | TypeScript | 39 | 129 | 4 | 172 |
34
- | [src/V1/v1-helper.mts](/src/V1/v1-helper.mts) | TypeScript | 50 | 36 | 11 | 97 |
35
- | [src/V1/validate-helper.mts](/src/V1/validate-helper.mts) | TypeScript | 191 | 105 | 35 | 331 |
36
- | [src/V1/validate-helper.respec.mts](/src/V1/validate-helper.respec.mts) | TypeScript | 123 | 19 | 13 | 155 |
37
- | [src/helper.mts](/src/helper.mts) | TypeScript | 49 | 22 | 6 | 77 |
38
- | [src/helper.respec.mts](/src/helper.respec.mts) | TypeScript | 49 | 2 | 12 | 63 |
39
- | [src/index.mts](/src/index.mts) | TypeScript | 3 | 0 | 1 | 4 |
40
- | [src/respec-gib.node.mts](/src/respec-gib.node.mts) | TypeScript | 119 | 53 | 28 | 200 |
41
- | [src/types.mts](/src/types.mts) | TypeScript | 62 | 210 | 2 | 274 |
42
- | [tsconfig.json](/tsconfig.json) | JSON with Comments | 17 | 0 | 1 | 18 |
43
- | [tsconfig.test.json](/tsconfig.test.json) | JSON | 11 | 1 | 1 | 13 |
44
-
45
- [Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
@@ -1,15 +0,0 @@
1
- # Diff Details
2
-
3
- Date : 2024-07-02 16:01:47
4
-
5
- Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
6
-
7
- Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
8
-
9
- [Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
10
-
11
- ## Files
12
- | filename | language | code | comment | blank | total |
13
- | :--- | :--- | ---: | ---: | ---: | ---: |
14
-
15
- [Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
@@ -1,2 +0,0 @@
1
- "filename", "language", "", "comment", "blank", "total"
2
- "Total", "-", , 0, 0, 0
@@ -1,19 +0,0 @@
1
- # Diff Summary
2
-
3
- Date : 2024-07-02 16:01:47
4
-
5
- Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
6
-
7
- Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
8
-
9
- [Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
10
-
11
- ## Languages
12
- | language | files | code | comment | blank | total |
13
- | :--- | ---: | ---: | ---: | ---: | ---: |
14
-
15
- ## Directories
16
- | path | files | code | comment | blank | total |
17
- | :--- | ---: | ---: | ---: | ---: | ---: |
18
-
19
- [Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
@@ -1,22 +0,0 @@
1
- Date : 2024-07-02 16:01:47
2
- Directory : /home/wraiford/ibgib/ibgib/libs/ts-gib
3
- Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
4
-
5
- Languages
6
- +----------+------------+------------+------------+------------+------------+
7
- | language | files | code | comment | blank | total |
8
- +----------+------------+------------+------------+------------+------------+
9
- +----------+------------+------------+------------+------------+------------+
10
-
11
- Directories
12
- +------+------------+------------+------------+------------+------------+
13
- | path | files | code | comment | blank | total |
14
- +------+------------+------------+------------+------------+------------+
15
- +------+------------+------------+------------+------------+------------+
16
-
17
- Files
18
- +----------+----------+------------+------------+------------+------------+
19
- | filename | language | code | comment | blank | total |
20
- +----------+----------+------------+------------+------------+------------+
21
- | Total | | 0 | 0 | 0 | 0 |
22
- +----------+----------+------------+------------+------------+------------+
@@ -1,32 +0,0 @@
1
- "filename", "language", "JSON", "TypeScript", "Markdown", "JSON with Comments", "comment", "blank", "total"
2
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md", "Markdown", 0, 0, 164, 0, 0, 28, 192
3
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/README.md", "Markdown", 0, 0, 429, 0, 0, 118, 547
4
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json", "JSON", 57, 0, 0, 0, 0, 1, 58
5
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/package.json", "JSON", 66, 0, 0, 0, 0, 1, 67
6
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts", "TypeScript", 0, 8, 0, 0, 42, 2, 52
7
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts", "TypeScript", 0, 101, 0, 0, 18, 8, 127
8
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts", "TypeScript", 0, 129, 0, 0, 15, 22, 166
9
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts", "TypeScript", 0, 5, 0, 0, 0, 1, 6
10
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts", "TypeScript", 0, 110, 0, 0, 30, 6, 146
11
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts", "TypeScript", 0, 180, 0, 0, 31, 21, 232
12
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts", "TypeScript", 0, 73, 0, 0, 19, 14, 106
13
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts", "TypeScript", 0, 275, 0, 0, 86, 53, 414
14
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts", "TypeScript", 0, 4, 0, 0, 0, 1, 5
15
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts", "TypeScript", 0, 139, 0, 0, 80, 21, 240
16
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts", "TypeScript", 0, 448, 0, 0, 87, 123, 658
17
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts", "TypeScript", 0, 134, 0, 0, 24, 20, 178
18
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts", "TypeScript", 0, 380, 0, 0, 99, 79, 558
19
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts", "TypeScript", 0, 153, 0, 0, 90, 22, 265
20
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts", "TypeScript", 0, 28, 0, 0, 11, 8, 47
21
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts", "TypeScript", 0, 39, 0, 0, 129, 4, 172
22
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts", "TypeScript", 0, 50, 0, 0, 36, 11, 97
23
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts", "TypeScript", 0, 191, 0, 0, 105, 35, 331
24
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts", "TypeScript", 0, 123, 0, 0, 19, 13, 155
25
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts", "TypeScript", 0, 49, 0, 0, 22, 6, 77
26
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts", "TypeScript", 0, 49, 0, 0, 2, 12, 63
27
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts", "TypeScript", 0, 3, 0, 0, 0, 1, 4
28
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts", "TypeScript", 0, 119, 0, 0, 53, 28, 200
29
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts", "TypeScript", 0, 62, 0, 0, 210, 2, 274
30
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json", "JSON with Comments", 0, 0, 0, 17, 0, 1, 18
31
- "/home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json", "JSON", 11, 0, 0, 0, 1, 1, 13
32
- "Total", "-", 134, 2852, 593, 17, 1209, 663, 5468
@@ -1 +0,0 @@
1
- {"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/package.json":{"language":"JSON","code":66,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts":{"language":"TypeScript","code":62,"comment":210,"blank":2},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts":{"language":"TypeScript","code":39,"comment":129,"blank":4},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts":{"language":"TypeScript","code":110,"comment":30,"blank":6},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts":{"language":"TypeScript","code":50,"comment":36,"blank":11},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/README.md":{"language":"Markdown","code":429,"comment":0,"blank":118},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts":{"language":"TypeScript","code":191,"comment":105,"blank":35},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts":{"language":"TypeScript","code":49,"comment":2,"blank":12},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts":{"language":"TypeScript","code":180,"comment":31,"blank":21},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts":{"language":"TypeScript","code":101,"comment":18,"blank":8},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts":{"language":"TypeScript","code":139,"comment":80,"blank":21},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts":{"language":"TypeScript","code":8,"comment":42,"blank":2},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts":{"language":"TypeScript","code":134,"comment":24,"blank":20},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts":{"language":"TypeScript","code":73,"comment":19,"blank":14},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts":{"language":"TypeScript","code":153,"comment":90,"blank":22},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts":{"language":"TypeScript","code":123,"comment":19,"blank":13},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts":{"language":"TypeScript","code":129,"comment":15,"blank":22},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts":{"language":"TypeScript","code":28,"comment":11,"blank":8},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts":{"language":"TypeScript","code":4,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts":{"language":"TypeScript","code":5,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts":{"language":"TypeScript","code":119,"comment":53,"blank":28},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts":{"language":"TypeScript","code":49,"comment":22,"blank":6},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts":{"language":"TypeScript","code":3,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts":{"language":"TypeScript","code":380,"comment":99,"blank":79},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts":{"language":"TypeScript","code":275,"comment":86,"blank":53},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json":{"language":"JSON with Comments","code":17,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json":{"language":"JSON","code":57,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts":{"language":"TypeScript","code":448,"comment":87,"blank":123},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json":{"language":"JSON","code":11,"comment":1,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md":{"language":"Markdown","code":164,"comment":0,"blank":28}}
@@ -1,30 +0,0 @@
1
- # Summary
2
-
3
- Date : 2024-07-02 16:01:47
4
-
5
- Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
6
-
7
- Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
8
-
9
- Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
10
-
11
- ## Languages
12
- | language | files | code | comment | blank | total |
13
- | :--- | ---: | ---: | ---: | ---: | ---: |
14
- | TypeScript | 24 | 2,852 | 1,208 | 513 | 4,573 |
15
- | Markdown | 2 | 593 | 0 | 146 | 739 |
16
- | JSON | 3 | 134 | 1 | 3 | 138 |
17
- | JSON with Comments | 1 | 17 | 0 | 1 | 18 |
18
-
19
- ## Directories
20
- | path | files | code | comment | blank | total |
21
- | :--- | ---: | ---: | ---: | ---: | ---: |
22
- | . | 30 | 3,596 | 1,209 | 663 | 5,468 |
23
- | . (Files) | 6 | 744 | 1 | 150 | 895 |
24
- | src | 24 | 2,852 | 1,208 | 513 | 4,573 |
25
- | src (Files) | 5 | 282 | 287 | 49 | 618 |
26
- | src/V1 | 19 | 2,570 | 921 | 464 | 3,955 |
27
- | src/V1 (Files) | 10 | 936 | 425 | 123 | 1,484 |
28
- | src/V1/transforms | 9 | 1,634 | 496 | 341 | 2,471 |
29
-
30
- Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
@@ -1,63 +0,0 @@
1
- Date : 2024-07-02 16:01:47
2
- Directory : /home/wraiford/ibgib/ibgib/libs/ts-gib
3
- Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
4
-
5
- Languages
6
- +--------------------+------------+------------+------------+------------+------------+
7
- | language | files | code | comment | blank | total |
8
- +--------------------+------------+------------+------------+------------+------------+
9
- | TypeScript | 24 | 2,852 | 1,208 | 513 | 4,573 |
10
- | Markdown | 2 | 593 | 0 | 146 | 739 |
11
- | JSON | 3 | 134 | 1 | 3 | 138 |
12
- | JSON with Comments | 1 | 17 | 0 | 1 | 18 |
13
- +--------------------+------------+------------+------------+------------+------------+
14
-
15
- Directories
16
- +------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
17
- | path | files | code | comment | blank | total |
18
- +------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
19
- | . | 30 | 3,596 | 1,209 | 663 | 5,468 |
20
- | . (Files) | 6 | 744 | 1 | 150 | 895 |
21
- | src | 24 | 2,852 | 1,208 | 513 | 4,573 |
22
- | src (Files) | 5 | 282 | 287 | 49 | 618 |
23
- | src/V1 | 19 | 2,570 | 921 | 464 | 3,955 |
24
- | src/V1 (Files) | 10 | 936 | 425 | 123 | 1,484 |
25
- | src/V1/transforms | 9 | 1,634 | 496 | 341 | 2,471 |
26
- +------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
27
-
28
- Files
29
- +------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
30
- | filename | language | code | comment | blank | total |
31
- +------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
32
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md | Markdown | 164 | 0 | 28 | 192 |
33
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/README.md | Markdown | 429 | 0 | 118 | 547 |
34
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json | JSON | 57 | 0 | 1 | 58 |
35
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/package.json | JSON | 66 | 0 | 1 | 67 |
36
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts | TypeScript | 8 | 42 | 2 | 52 |
37
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts | TypeScript | 101 | 18 | 8 | 127 |
38
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts | TypeScript | 129 | 15 | 22 | 166 |
39
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts | TypeScript | 5 | 0 | 1 | 6 |
40
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts | TypeScript | 110 | 30 | 6 | 146 |
41
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts | TypeScript | 180 | 31 | 21 | 232 |
42
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts | TypeScript | 73 | 19 | 14 | 106 |
43
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts | TypeScript | 275 | 86 | 53 | 414 |
44
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts | TypeScript | 4 | 0 | 1 | 5 |
45
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts | TypeScript | 139 | 80 | 21 | 240 |
46
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts | TypeScript | 448 | 87 | 123 | 658 |
47
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts | TypeScript | 134 | 24 | 20 | 178 |
48
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts | TypeScript | 380 | 99 | 79 | 558 |
49
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts | TypeScript | 153 | 90 | 22 | 265 |
50
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts | TypeScript | 28 | 11 | 8 | 47 |
51
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts | TypeScript | 39 | 129 | 4 | 172 |
52
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts | TypeScript | 50 | 36 | 11 | 97 |
53
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts | TypeScript | 191 | 105 | 35 | 331 |
54
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts | TypeScript | 123 | 19 | 13 | 155 |
55
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts | TypeScript | 49 | 22 | 6 | 77 |
56
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts | TypeScript | 49 | 2 | 12 | 63 |
57
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts | TypeScript | 3 | 0 | 1 | 4 |
58
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts | TypeScript | 119 | 53 | 28 | 200 |
59
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts | TypeScript | 62 | 210 | 2 | 274 |
60
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json | JSON with Comments | 17 | 0 | 1 | 18 |
61
- | /home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json | JSON | 11 | 1 | 1 | 13 |
62
- | Total | | 3,596 | 1,209 | 663 | 5,468 |
63
- +------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+