funkophile 0.2.5 → 1.0.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.
@@ -0,0 +1,196 @@
1
+ /* eslint-disable */
2
+ var addSorting = (function() {
3
+ 'use strict';
4
+ var cols,
5
+ currentSort = {
6
+ index: 0,
7
+ desc: false
8
+ };
9
+
10
+ // returns the summary table element
11
+ function getTable() {
12
+ return document.querySelector('.coverage-summary');
13
+ }
14
+ // returns the thead element of the summary table
15
+ function getTableHeader() {
16
+ return getTable().querySelector('thead tr');
17
+ }
18
+ // returns the tbody element of the summary table
19
+ function getTableBody() {
20
+ return getTable().querySelector('tbody');
21
+ }
22
+ // returns the th element for nth column
23
+ function getNthColumn(n) {
24
+ return getTableHeader().querySelectorAll('th')[n];
25
+ }
26
+
27
+ function onFilterInput() {
28
+ const searchValue = document.getElementById('fileSearch').value;
29
+ const rows = document.getElementsByTagName('tbody')[0].children;
30
+ for (let i = 0; i < rows.length; i++) {
31
+ const row = rows[i];
32
+ if (
33
+ row.textContent
34
+ .toLowerCase()
35
+ .includes(searchValue.toLowerCase())
36
+ ) {
37
+ row.style.display = '';
38
+ } else {
39
+ row.style.display = 'none';
40
+ }
41
+ }
42
+ }
43
+
44
+ // loads the search box
45
+ function addSearchBox() {
46
+ var template = document.getElementById('filterTemplate');
47
+ var templateClone = template.content.cloneNode(true);
48
+ templateClone.getElementById('fileSearch').oninput = onFilterInput;
49
+ template.parentElement.appendChild(templateClone);
50
+ }
51
+
52
+ // loads all columns
53
+ function loadColumns() {
54
+ var colNodes = getTableHeader().querySelectorAll('th'),
55
+ colNode,
56
+ cols = [],
57
+ col,
58
+ i;
59
+
60
+ for (i = 0; i < colNodes.length; i += 1) {
61
+ colNode = colNodes[i];
62
+ col = {
63
+ key: colNode.getAttribute('data-col'),
64
+ sortable: !colNode.getAttribute('data-nosort'),
65
+ type: colNode.getAttribute('data-type') || 'string'
66
+ };
67
+ cols.push(col);
68
+ if (col.sortable) {
69
+ col.defaultDescSort = col.type === 'number';
70
+ colNode.innerHTML =
71
+ colNode.innerHTML + '<span class="sorter"></span>';
72
+ }
73
+ }
74
+ return cols;
75
+ }
76
+ // attaches a data attribute to every tr element with an object
77
+ // of data values keyed by column name
78
+ function loadRowData(tableRow) {
79
+ var tableCols = tableRow.querySelectorAll('td'),
80
+ colNode,
81
+ col,
82
+ data = {},
83
+ i,
84
+ val;
85
+ for (i = 0; i < tableCols.length; i += 1) {
86
+ colNode = tableCols[i];
87
+ col = cols[i];
88
+ val = colNode.getAttribute('data-value');
89
+ if (col.type === 'number') {
90
+ val = Number(val);
91
+ }
92
+ data[col.key] = val;
93
+ }
94
+ return data;
95
+ }
96
+ // loads all row data
97
+ function loadData() {
98
+ var rows = getTableBody().querySelectorAll('tr'),
99
+ i;
100
+
101
+ for (i = 0; i < rows.length; i += 1) {
102
+ rows[i].data = loadRowData(rows[i]);
103
+ }
104
+ }
105
+ // sorts the table using the data for the ith column
106
+ function sortByIndex(index, desc) {
107
+ var key = cols[index].key,
108
+ sorter = function(a, b) {
109
+ a = a.data[key];
110
+ b = b.data[key];
111
+ return a < b ? -1 : a > b ? 1 : 0;
112
+ },
113
+ finalSorter = sorter,
114
+ tableBody = document.querySelector('.coverage-summary tbody'),
115
+ rowNodes = tableBody.querySelectorAll('tr'),
116
+ rows = [],
117
+ i;
118
+
119
+ if (desc) {
120
+ finalSorter = function(a, b) {
121
+ return -1 * sorter(a, b);
122
+ };
123
+ }
124
+
125
+ for (i = 0; i < rowNodes.length; i += 1) {
126
+ rows.push(rowNodes[i]);
127
+ tableBody.removeChild(rowNodes[i]);
128
+ }
129
+
130
+ rows.sort(finalSorter);
131
+
132
+ for (i = 0; i < rows.length; i += 1) {
133
+ tableBody.appendChild(rows[i]);
134
+ }
135
+ }
136
+ // removes sort indicators for current column being sorted
137
+ function removeSortIndicators() {
138
+ var col = getNthColumn(currentSort.index),
139
+ cls = col.className;
140
+
141
+ cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
142
+ col.className = cls;
143
+ }
144
+ // adds sort indicators for current column being sorted
145
+ function addSortIndicators() {
146
+ getNthColumn(currentSort.index).className += currentSort.desc
147
+ ? ' sorted-desc'
148
+ : ' sorted';
149
+ }
150
+ // adds event listeners for all sorter widgets
151
+ function enableUI() {
152
+ var i,
153
+ el,
154
+ ithSorter = function ithSorter(i) {
155
+ var col = cols[i];
156
+
157
+ return function() {
158
+ var desc = col.defaultDescSort;
159
+
160
+ if (currentSort.index === i) {
161
+ desc = !currentSort.desc;
162
+ }
163
+ sortByIndex(i, desc);
164
+ removeSortIndicators();
165
+ currentSort.index = i;
166
+ currentSort.desc = desc;
167
+ addSortIndicators();
168
+ };
169
+ };
170
+ for (i = 0; i < cols.length; i += 1) {
171
+ if (cols[i].sortable) {
172
+ // add the click event handler on the th so users
173
+ // dont have to click on those tiny arrows
174
+ el = getNthColumn(i).querySelector('.sorter').parentElement;
175
+ if (el.addEventListener) {
176
+ el.addEventListener('click', ithSorter(i));
177
+ } else {
178
+ el.attachEvent('onclick', ithSorter(i));
179
+ }
180
+ }
181
+ }
182
+ }
183
+ // adds sorting functionality to the UI
184
+ return function() {
185
+ if (!getTable()) {
186
+ return;
187
+ }
188
+ cols = loadColumns();
189
+ loadData();
190
+ addSearchBox();
191
+ addSortIndicators();
192
+ enableUI();
193
+ };
194
+ })();
195
+
196
+ window.addEventListener('load', addSorting);
File without changes
package/dev.ts ADDED
@@ -0,0 +1,26 @@
1
+ import esbuild from 'esbuild'
2
+
3
+ const ctx = await esbuild.context({
4
+ entryPoints: ['index.ts', 'funkophileHelpers.ts'],
5
+ bundle: true,
6
+ platform: 'node',
7
+ format: 'esm',
8
+ outdir: 'dist/esm',
9
+ external: [
10
+ 'bluebird',
11
+ 'fs-extra',
12
+ 'redux',
13
+ 'reselect',
14
+ 'chokidar',
15
+ 'glob',
16
+ 'http',
17
+ 'path',
18
+ 'url',
19
+ 'fs'
20
+ ],
21
+ sourcemap: true,
22
+ target: 'node18'
23
+ })
24
+
25
+ await ctx.watch()
26
+ console.log('Watching for changes...')
@@ -1,89 +1,106 @@
1
+ // funkophileHelpers.ts
1
2
  import { createSelector } from "reselect";
2
3
  import path from "path";
3
- export const contentsOfFiles = (selector) => {
4
- return createSelector([selector], (selected) => {
5
- if (selected === undefined || selected === null) {
6
- throw new Error(`contentsOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);
7
- }
8
- return Object.keys(selected).reduce((mm, k) => mm + (selected[k] || ""), "");
9
- });
4
+ var contentsOfFiles = (selector) => {
5
+ return createSelector([selector], (selected) => {
6
+ if (selected === void 0 || selected === null) {
7
+ throw new Error(`contentsOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);
8
+ }
9
+ const keys = Object.keys(selected);
10
+ if (keys.length === 0) {
11
+ console.warn(`\x1B[33m\x1B[1m[Funkophile]\x1B[0m contentsOfFiles: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);
12
+ return "";
13
+ }
14
+ return Object.keys(selected).reduce((mm, k) => mm + (selected[k] || ""), "");
15
+ });
10
16
  };
11
- export const contentOfFile = (selector) => {
12
- return createSelector([selector], (selected) => {
13
- if (selected === undefined || selected === null) {
14
- throw new Error(`contentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);
15
- }
16
- const keys = Object.keys(selected);
17
- if (keys.length === 0) {
18
- throw new Error(`contentOfFile: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);
19
- }
20
- return selected[keys[0]] || "";
21
- });
17
+ var contentOfFile = (selector) => {
18
+ return createSelector([selector], (selected) => {
19
+ if (selected === void 0 || selected === null) {
20
+ throw new Error(`contentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);
21
+ }
22
+ const keys = Object.keys(selected);
23
+ if (keys.length === 0) {
24
+ console.warn(`\x1B[33m\x1B[1m[Funkophile]\x1B[0m contentOfFile: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);
25
+ return "";
26
+ }
27
+ return selected[keys[0]] || "";
28
+ });
22
29
  };
23
- export const srcAndContentOfFile = (selector, key) => {
24
- return createSelector([selector], (selected) => {
25
- if (selected === undefined || selected === null) {
26
- throw new Error(`srcAndContentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);
27
- }
28
- const keys = Object.keys(selected);
29
- if (keys.length === 0) {
30
- throw new Error(`srcAndContentOfFile: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);
31
- }
32
- // Try exact match first
33
- let matchingKey = keys.find(k => k === key);
34
- // If exact match not found, try to find by resolving to absolute path
35
- if (!matchingKey) {
36
- // Try to resolve the key to an absolute path
37
- const resolvedKey = path.resolve(process.cwd(), key);
38
- matchingKey = keys.find(k => k === resolvedKey);
39
- }
40
- // If still not found, try to find by basename
41
- if (!matchingKey) {
42
- const keyBasename = path.basename(key);
43
- matchingKey = keys.find(k => path.basename(k) === keyBasename);
44
- }
45
- // If still not found, try to find by relative path
46
- if (!matchingKey) {
47
- const relativeKey = path.relative(process.cwd(), key);
48
- matchingKey = keys.find(k => {
49
- const kRelative = path.relative(process.cwd(), k);
50
- return kRelative === relativeKey;
51
- });
52
- }
53
- // If still not found, try to find by ending with the key
54
- if (!matchingKey) {
55
- matchingKey = keys.find(k => k.endsWith(key));
56
- }
57
- // If still not found, try to find by the key ending with the path
58
- if (!matchingKey) {
59
- matchingKey = keys.find(k => k.endsWith(key.replace('./', '')));
60
- }
61
- // If still not found, try to find by the key being a relative path that matches
62
- if (!matchingKey) {
63
- // Remove leading './' if present
64
- const cleanKey = key.startsWith('./') ? key.slice(2) : key;
65
- matchingKey = keys.find(k => k.endsWith(cleanKey));
66
- }
67
- if (!matchingKey) {
68
- throw new Error(`srcAndContentOfFile: key "${key}" not found in selected object. Available keys: ${keys.join(', ')}`);
69
- }
70
- return {
71
- src: matchingKey,
72
- content: selected[matchingKey],
73
- };
74
- });
30
+ var srcAndContentOfFile = (selector, key) => {
31
+ return createSelector([selector], (selected) => {
32
+ if (selected === void 0 || selected === null) {
33
+ throw new Error(`srcAndContentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);
34
+ }
35
+ const keys = Object.keys(selected);
36
+ if (keys.length === 0) {
37
+ console.warn(`\x1B[33m\x1B[1m[Funkophile]\x1B[0m srcAndContentOfFile: selected object is empty for key "${key}". No files found. This may be because the input pattern didn't match any files.`);
38
+ return {
39
+ src: key,
40
+ content: ""
41
+ };
42
+ }
43
+ let matchingKey = keys.find((k) => k === key);
44
+ if (!matchingKey) {
45
+ const resolvedKey = path.resolve(process.cwd(), key);
46
+ matchingKey = keys.find((k) => k === resolvedKey);
47
+ }
48
+ if (!matchingKey) {
49
+ const keyBasename = path.basename(key);
50
+ matchingKey = keys.find((k) => path.basename(k) === keyBasename);
51
+ }
52
+ if (!matchingKey) {
53
+ const relativeKey = path.relative(process.cwd(), key);
54
+ matchingKey = keys.find((k) => {
55
+ const kRelative = path.relative(process.cwd(), k);
56
+ return kRelative === relativeKey;
57
+ });
58
+ }
59
+ if (!matchingKey) {
60
+ matchingKey = keys.find((k) => k.endsWith(key));
61
+ }
62
+ if (!matchingKey) {
63
+ matchingKey = keys.find((k) => k.endsWith(key.replace("./", "")));
64
+ }
65
+ if (!matchingKey) {
66
+ const cleanKey = key.startsWith("./") ? key.slice(2) : key;
67
+ matchingKey = keys.find((k) => k.endsWith(cleanKey));
68
+ }
69
+ if (!matchingKey) {
70
+ console.warn(`\x1B[33m\x1B[1m[Funkophile]\x1B[0m srcAndContentOfFile: key "${key}" not found in selected object. Available keys: ${keys.join(", ")}`);
71
+ return {
72
+ src: key,
73
+ content: ""
74
+ };
75
+ }
76
+ return {
77
+ src: matchingKey,
78
+ content: selected[matchingKey]
79
+ };
80
+ });
75
81
  };
76
- export const srcAndContentOfFiles = (selector) => {
77
- return createSelector([selector], (selected) => {
78
- if (selected === undefined || selected === null) {
79
- throw new Error(`srcAndContentOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);
80
- }
81
- const keys = Object.keys(selected);
82
- return keys.map((key) => {
83
- return {
84
- src: key,
85
- content: selected[key],
86
- };
87
- });
82
+ var srcAndContentOfFiles = (selector) => {
83
+ return createSelector([selector], (selected) => {
84
+ if (selected === void 0 || selected === null) {
85
+ throw new Error(`srcAndContentOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);
86
+ }
87
+ const keys = Object.keys(selected);
88
+ if (keys.length === 0) {
89
+ console.warn(`\x1B[33m\x1B[1m[Funkophile]\x1B[0m srcAndContentOfFiles: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);
90
+ return [];
91
+ }
92
+ return keys.map((key) => {
93
+ return {
94
+ src: key,
95
+ content: selected[key]
96
+ };
88
97
  });
98
+ });
99
+ };
100
+ export {
101
+ contentOfFile,
102
+ contentsOfFiles,
103
+ srcAndContentOfFile,
104
+ srcAndContentOfFiles
89
105
  };
106
+ //# sourceMappingURL=funkophileHelpers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../funkophileHelpers.ts"],
4
+ "sourcesContent": ["import { createSelector } from \"reselect\";\nimport path from \"path\";\n\nexport const contentsOfFiles = (selector) => {\n return createSelector([selector], (selected) => {\n if (selected === undefined || selected === null) {\n throw new Error(`contentsOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);\n }\n const keys = Object.keys(selected);\n if (keys.length === 0) {\n console.warn(`\\u001b[33m\\u001b[1m[Funkophile]\\u001b[0m contentsOfFiles: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);\n return \"\";\n }\n return Object.keys(selected).reduce((mm, k) => mm + (selected[k] || \"\"), \"\");\n });\n};\n\nexport const contentOfFile = (selector) => {\n return createSelector([selector], (selected) => {\n if (selected === undefined || selected === null) {\n throw new Error(`contentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);\n }\n const keys = Object.keys(selected);\n if (keys.length === 0) {\n console.warn(`\\u001b[33m\\u001b[1m[Funkophile]\\u001b[0m contentOfFile: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);\n return \"\";\n }\n return selected[keys[0]] || \"\";\n });\n};\n\nexport const srcAndContentOfFile = (selector, key: string) => {\n return createSelector([selector], (selected) => {\n if (selected === undefined || selected === null) {\n throw new Error(`srcAndContentOfFile: selected is ${selected}. Make sure the selector is pointing to valid state.`);\n }\n \n const keys = Object.keys(selected);\n if (keys.length === 0) {\n // Return a default object with empty content instead of throwing\n console.warn(`\\u001b[33m\\u001b[1m[Funkophile]\\u001b[0m srcAndContentOfFile: selected object is empty for key \"${key}\". No files found. This may be because the input pattern didn't match any files.`);\n return {\n src: key,\n content: '',\n };\n }\n \n // Try exact match first\n let matchingKey = keys.find(k => k === key);\n \n // If exact match not found, try to find by resolving to absolute path\n if (!matchingKey) {\n // Try to resolve the key to an absolute path\n const resolvedKey = path.resolve(process.cwd(), key);\n matchingKey = keys.find(k => k === resolvedKey);\n }\n \n // If still not found, try to find by basename\n if (!matchingKey) {\n const keyBasename = path.basename(key);\n matchingKey = keys.find(k => path.basename(k) === keyBasename);\n }\n \n // If still not found, try to find by relative path\n if (!matchingKey) {\n const relativeKey = path.relative(process.cwd(), key);\n matchingKey = keys.find(k => {\n const kRelative = path.relative(process.cwd(), k);\n return kRelative === relativeKey;\n });\n }\n \n // If still not found, try to find by ending with the key\n if (!matchingKey) {\n matchingKey = keys.find(k => k.endsWith(key));\n }\n \n // If still not found, try to find by the key ending with the path\n if (!matchingKey) {\n matchingKey = keys.find(k => k.endsWith(key.replace('./', '')));\n }\n \n // If still not found, try to find by the key being a relative path that matches\n if (!matchingKey) {\n // Remove leading './' if present\n const cleanKey = key.startsWith('./') ? key.slice(2) : key;\n matchingKey = keys.find(k => k.endsWith(cleanKey));\n }\n \n if (!matchingKey) {\n console.warn(`\\u001b[33m\\u001b[1m[Funkophile]\\u001b[0m srcAndContentOfFile: key \"${key}\" not found in selected object. Available keys: ${keys.join(', ')}`);\n return {\n src: key,\n content: '',\n };\n }\n \n return {\n src: matchingKey,\n content: selected[matchingKey],\n };\n });\n};\n\nexport const srcAndContentOfFiles = (selector) => {\n return createSelector([selector], (selected) => {\n if (selected === undefined || selected === null) {\n throw new Error(`srcAndContentOfFiles: selected is ${selected}. Make sure the selector is pointing to valid state.`);\n }\n const keys = Object.keys(selected);\n if (keys.length === 0) {\n console.warn(`\\u001b[33m\\u001b[1m[Funkophile]\\u001b[0m srcAndContentOfFiles: selected object is empty. No files found. This may be because the input pattern didn't match any files.`);\n return [];\n }\n return keys.map((key) => {\n return {\n src: key,\n content: selected[key],\n };\n });\n });\n};\n"],
5
+ "mappings": ";AAAA,SAAS,sBAAsB;AAC/B,OAAO,UAAU;AAEV,IAAM,kBAAkB,CAAC,aAAa;AAC3C,SAAO,eAAe,CAAC,QAAQ,GAAG,CAAC,aAAa;AAC9C,QAAI,aAAa,UAAa,aAAa,MAAM;AAC/C,YAAM,IAAI,MAAM,gCAAgC,QAAQ,sDAAsD;AAAA,IAChH;AACA,UAAM,OAAO,OAAO,KAAK,QAAQ;AACjC,QAAI,KAAK,WAAW,GAAG;AACrB,cAAQ,KAAK,6JAAmK;AAChL,aAAO;AAAA,IACT;AACA,WAAO,OAAO,KAAK,QAAQ,EAAE,OAAO,CAAC,IAAI,MAAM,MAAM,SAAS,CAAC,KAAK,KAAK,EAAE;AAAA,EAC7E,CAAC;AACH;AAEO,IAAM,gBAAgB,CAAC,aAAa;AACzC,SAAO,eAAe,CAAC,QAAQ,GAAG,CAAC,aAAa;AAC9C,QAAI,aAAa,UAAa,aAAa,MAAM;AAC/C,YAAM,IAAI,MAAM,8BAA8B,QAAQ,sDAAsD;AAAA,IAC9G;AACA,UAAM,OAAO,OAAO,KAAK,QAAQ;AACjC,QAAI,KAAK,WAAW,GAAG;AACrB,cAAQ,KAAK,2JAAiK;AAC9K,aAAO;AAAA,IACT;AACA,WAAO,SAAS,KAAK,CAAC,CAAC,KAAK;AAAA,EAC9B,CAAC;AACH;AAEO,IAAM,sBAAsB,CAAC,UAAU,QAAgB;AAC5D,SAAO,eAAe,CAAC,QAAQ,GAAG,CAAC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