filehound 2.0.0-beta.2 → 2.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.
Files changed (212) hide show
  1. package/README.md +39 -11
  2. package/dist/arrays.d.ts +1 -0
  3. package/dist/arrays.js +4 -0
  4. package/dist/file.d.ts +108 -0
  5. package/dist/file.js +184 -0
  6. package/dist/filehound.d.ts +356 -0
  7. package/dist/filehound.js +498 -0
  8. package/dist/files.d.ts +4 -0
  9. package/dist/files.js +37 -0
  10. package/dist/filetype.d.ts +10 -0
  11. package/dist/filetype.js +9 -0
  12. package/dist/index.d.ts +5 -0
  13. package/dist/index.js +6 -0
  14. package/dist/matchers.d.ts +324 -0
  15. package/dist/matchers.js +419 -0
  16. package/dist/walker/async.d.ts +4 -0
  17. package/dist/walker/async.js +237 -0
  18. package/dist/walker/heap.d.ts +7 -0
  19. package/dist/walker/heap.js +49 -0
  20. package/dist/walker/sync.d.ts +4 -0
  21. package/dist/walker/sync.js +66 -0
  22. package/dist/walker/walk.d.ts +33 -0
  23. package/dist/walker/walk.js +80 -0
  24. package/package.json +45 -48
  25. package/.github/stale.yml +0 -42
  26. package/.travis.yml +0 -8
  27. package/.vscode/launch.json +0 -21
  28. package/.vscode/settings.json +0 -3
  29. package/CONTRIBUTING.md +0 -8
  30. package/_config.yml +0 -1
  31. package/coverage/coverage.raw.json +0 -1
  32. package/coverage/lcov-report/arrays.ts.html +0 -98
  33. package/coverage/lcov-report/base.css +0 -212
  34. package/coverage/lcov-report/filehound.ts.html +0 -2078
  35. package/coverage/lcov-report/files.ts.html +0 -260
  36. package/coverage/lcov-report/functions.ts.html +0 -122
  37. package/coverage/lcov-report/index.html +0 -132
  38. package/coverage/lcov-report/prettify.css +0 -1
  39. package/coverage/lcov-report/prettify.js +0 -1
  40. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  41. package/coverage/lcov-report/sorter.js +0 -158
  42. package/coverage/lcov.info +0 -378
  43. package/dist/src/arrays.js +0 -15
  44. package/dist/src/arrays.js.map +0 -1
  45. package/dist/src/asyncWalker.js +0 -59
  46. package/dist/src/asyncWalker.js.map +0 -1
  47. package/dist/src/bind.js +0 -15
  48. package/dist/src/bind.js.map +0 -1
  49. package/dist/src/filehound.js +0 -597
  50. package/dist/src/filehound.js.map +0 -1
  51. package/dist/src/files.js +0 -60
  52. package/dist/src/files.js.map +0 -1
  53. package/dist/src/matcher.js +0 -51
  54. package/dist/src/matcher.js.map +0 -1
  55. package/dist/src/syncWalker.js +0 -47
  56. package/dist/src/syncWalker.js.map +0 -1
  57. package/dist/src/walkAsync.js +0 -33
  58. package/dist/src/walkAsync.js.map +0 -1
  59. package/dist/src/walkSync.js +0 -21
  60. package/dist/src/walkSync.js.map +0 -1
  61. package/dist/src/walker/walk.js +0 -68
  62. package/dist/src/walker/walk.js.map +0 -1
  63. package/dist/src/walker/walkAsync.js +0 -33
  64. package/dist/src/walker/walkAsync.js.map +0 -1
  65. package/dist/src/walker/walkSync.js +0 -21
  66. package/dist/src/walker/walkSync.js.map +0 -1
  67. package/dist/test/filehound.js +0 -872
  68. package/dist/test/filehound.js.map +0 -1
  69. package/dist/test/files.js +0 -29
  70. package/dist/test/files.js.map +0 -1
  71. package/docconfig/jsdoc.json +0 -26
  72. package/docconfig/template/LICENSE +0 -61
  73. package/docconfig/template/README.md +0 -86
  74. package/docconfig/template/package.json +0 -22
  75. package/docconfig/template/publish.js +0 -676
  76. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.eot +0 -0
  77. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.svg +0 -1830
  78. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.woff +0 -0
  79. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  80. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  81. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  82. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.eot +0 -0
  83. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.svg +0 -1830
  84. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.woff +0 -0
  85. package/docconfig/template/static/fonts/OpenSans-Light-webfont.eot +0 -0
  86. package/docconfig/template/static/fonts/OpenSans-Light-webfont.svg +0 -1831
  87. package/docconfig/template/static/fonts/OpenSans-Light-webfont.woff +0 -0
  88. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  89. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  90. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  91. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.eot +0 -0
  92. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.svg +0 -1831
  93. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.woff +0 -0
  94. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
  95. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  96. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  97. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
  98. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  99. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  100. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  101. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  102. package/docconfig/template/static/scripts/linenumber.js +0 -25
  103. package/docconfig/template/static/scripts/prettify/Apache-License-2.0.txt +0 -202
  104. package/docconfig/template/static/scripts/prettify/lang-css.js +0 -2
  105. package/docconfig/template/static/scripts/prettify/prettify.js +0 -28
  106. package/docconfig/template/static/styles/jsdoc-default.css +0 -605
  107. package/docconfig/template/static/styles/prettify-jsdoc.css +0 -111
  108. package/docconfig/template/static/styles/prettify-tomorrow.css +0 -132
  109. package/docconfig/template/tmpl/augments.tmpl +0 -10
  110. package/docconfig/template/tmpl/container.tmpl +0 -183
  111. package/docconfig/template/tmpl/details.tmpl +0 -143
  112. package/docconfig/template/tmpl/example.tmpl +0 -2
  113. package/docconfig/template/tmpl/examples.tmpl +0 -13
  114. package/docconfig/template/tmpl/exceptions.tmpl +0 -32
  115. package/docconfig/template/tmpl/layout.tmpl +0 -47
  116. package/docconfig/template/tmpl/mainpage.tmpl +0 -10
  117. package/docconfig/template/tmpl/members.tmpl +0 -38
  118. package/docconfig/template/tmpl/method.tmpl +0 -105
  119. package/docconfig/template/tmpl/params.tmpl +0 -124
  120. package/docconfig/template/tmpl/properties.tmpl +0 -108
  121. package/docconfig/template/tmpl/returns.tmpl +0 -19
  122. package/docconfig/template/tmpl/source.tmpl +0 -8
  123. package/docconfig/template/tmpl/tutorial.tmpl +0 -19
  124. package/docconfig/template/tmpl/type.tmpl +0 -7
  125. package/docs/FileHound.html +0 -3079
  126. package/docs/FileHound_modified.html +0 -245
  127. package/docs/_config.yml +0 -1
  128. package/docs/filehound.js.html +0 -697
  129. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  130. package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
  131. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  132. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  133. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  134. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  135. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  136. package/docs/fonts/OpenSans-Italic-webfont.svg +0 -1830
  137. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  138. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  139. package/docs/fonts/OpenSans-Light-webfont.svg +0 -1831
  140. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  141. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  142. package/docs/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  143. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  144. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  145. package/docs/fonts/OpenSans-Regular-webfont.svg +0 -1831
  146. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  147. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  148. package/docs/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  149. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  150. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  151. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  152. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  153. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  154. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  155. package/docs/global.html +0 -288
  156. package/docs/index.html +0 -154
  157. package/docs/scripts/linenumber.js +0 -25
  158. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  159. package/docs/scripts/prettify/lang-css.js +0 -2
  160. package/docs/scripts/prettify/prettify.js +0 -28
  161. package/docs/styles/jsdoc-default.css +0 -605
  162. package/docs/styles/prettify-jsdoc.css +0 -111
  163. package/docs/styles/prettify-tomorrow.css +0 -132
  164. package/docs.md +0 -164
  165. package/index.js +0 -1
  166. package/issue_template.md +0 -6
  167. package/test/filehound.ts +0 -1076
  168. package/test/files.ts +0 -29
  169. package/test/fixtures/custom/failed.txt +0 -0
  170. package/test/fixtures/custom/passed.txt +0 -0
  171. package/test/fixtures/deeplyNested/c.json +0 -0
  172. package/test/fixtures/deeplyNested/d.json +0 -0
  173. package/test/fixtures/deeplyNested/mydir/e.json +0 -0
  174. package/test/fixtures/deeplyNested/mydir/mydir2/f.json +0 -0
  175. package/test/fixtures/deeplyNested/mydir/mydir2/mydir3/mydir4/failed.json +0 -0
  176. package/test/fixtures/deeplyNested/mydir/mydir2/mydir3/z.json +0 -0
  177. package/test/fixtures/deeplyNested/mydir/mydir2/y.json +0 -0
  178. package/test/fixtures/deeplyNestedWithHiddenDir/c.json +0 -0
  179. package/test/fixtures/deeplyNestedWithHiddenDir/d.json +0 -0
  180. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/e.json +0 -0
  181. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/f.json +0 -0
  182. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/mydir4/.mydir5/.keep +0 -0
  183. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/mydir4/failed.json +0 -0
  184. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/z.json +0 -0
  185. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/y.json +0 -0
  186. package/test/fixtures/ext/Dummy.java +0 -0
  187. package/test/fixtures/ext/Dumpy.go +0 -0
  188. package/test/fixtures/ext/dummy.json +0 -0
  189. package/test/fixtures/ext/dummy.txt +0 -0
  190. package/test/fixtures/justFiles/a.json +0 -0
  191. package/test/fixtures/justFiles/b.json +0 -0
  192. package/test/fixtures/justFiles/dummy.txt +0 -0
  193. package/test/fixtures/mixed/a.json +0 -0
  194. package/test/fixtures/mixed/aabbcc.json +0 -0
  195. package/test/fixtures/mixed/ab.json +0 -0
  196. package/test/fixtures/mixed/z.json +0 -0
  197. package/test/fixtures/nested/.hidden1/bad.txt +0 -0
  198. package/test/fixtures/nested/c.json +0 -0
  199. package/test/fixtures/nested/d.json +0 -0
  200. package/test/fixtures/nested/mydir/e.json +0 -0
  201. package/test/fixtures/sizes/10b.txt +0 -0
  202. package/test/fixtures/sizes/1b.txt +0 -0
  203. package/test/fixtures/sizes/1k.txt +0 -0
  204. package/test/fixtures/sizes/2k.txt +0 -0
  205. package/test/fixtures/visibility/.hidden/.hidden.json +0 -0
  206. package/test/fixtures/visibility/.hidden/visible.json +0 -3
  207. package/test/fixtures/visibility/.hidden.json +0 -3
  208. package/test/fixtures/visibility/visible/.hidden.json +0 -3
  209. package/test/fixtures/visibility/visible.json +0 -3
  210. package/test/mocha.opts +0 -4
  211. package/tsconfig.json +0 -16
  212. package/tslint.json +0 -44
@@ -1,158 +0,0 @@
1
- var addSorting = (function () {
2
- "use strict";
3
- var cols,
4
- currentSort = {
5
- index: 0,
6
- desc: false
7
- };
8
-
9
- // returns the summary table element
10
- function getTable() { return document.querySelector('.coverage-summary'); }
11
- // returns the thead element of the summary table
12
- function getTableHeader() { return getTable().querySelector('thead tr'); }
13
- // returns the tbody element of the summary table
14
- function getTableBody() { return getTable().querySelector('tbody'); }
15
- // returns the th element for nth column
16
- function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
17
-
18
- // loads all columns
19
- function loadColumns() {
20
- var colNodes = getTableHeader().querySelectorAll('th'),
21
- colNode,
22
- cols = [],
23
- col,
24
- i;
25
-
26
- for (i = 0; i < colNodes.length; i += 1) {
27
- colNode = colNodes[i];
28
- col = {
29
- key: colNode.getAttribute('data-col'),
30
- sortable: !colNode.getAttribute('data-nosort'),
31
- type: colNode.getAttribute('data-type') || 'string'
32
- };
33
- cols.push(col);
34
- if (col.sortable) {
35
- col.defaultDescSort = col.type === 'number';
36
- colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
37
- }
38
- }
39
- return cols;
40
- }
41
- // attaches a data attribute to every tr element with an object
42
- // of data values keyed by column name
43
- function loadRowData(tableRow) {
44
- var tableCols = tableRow.querySelectorAll('td'),
45
- colNode,
46
- col,
47
- data = {},
48
- i,
49
- val;
50
- for (i = 0; i < tableCols.length; i += 1) {
51
- colNode = tableCols[i];
52
- col = cols[i];
53
- val = colNode.getAttribute('data-value');
54
- if (col.type === 'number') {
55
- val = Number(val);
56
- }
57
- data[col.key] = val;
58
- }
59
- return data;
60
- }
61
- // loads all row data
62
- function loadData() {
63
- var rows = getTableBody().querySelectorAll('tr'),
64
- i;
65
-
66
- for (i = 0; i < rows.length; i += 1) {
67
- rows[i].data = loadRowData(rows[i]);
68
- }
69
- }
70
- // sorts the table using the data for the ith column
71
- function sortByIndex(index, desc) {
72
- var key = cols[index].key,
73
- sorter = function (a, b) {
74
- a = a.data[key];
75
- b = b.data[key];
76
- return a < b ? -1 : a > b ? 1 : 0;
77
- },
78
- finalSorter = sorter,
79
- tableBody = document.querySelector('.coverage-summary tbody'),
80
- rowNodes = tableBody.querySelectorAll('tr'),
81
- rows = [],
82
- i;
83
-
84
- if (desc) {
85
- finalSorter = function (a, b) {
86
- return -1 * sorter(a, b);
87
- };
88
- }
89
-
90
- for (i = 0; i < rowNodes.length; i += 1) {
91
- rows.push(rowNodes[i]);
92
- tableBody.removeChild(rowNodes[i]);
93
- }
94
-
95
- rows.sort(finalSorter);
96
-
97
- for (i = 0; i < rows.length; i += 1) {
98
- tableBody.appendChild(rows[i]);
99
- }
100
- }
101
- // removes sort indicators for current column being sorted
102
- function removeSortIndicators() {
103
- var col = getNthColumn(currentSort.index),
104
- cls = col.className;
105
-
106
- cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
107
- col.className = cls;
108
- }
109
- // adds sort indicators for current column being sorted
110
- function addSortIndicators() {
111
- getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
112
- }
113
- // adds event listeners for all sorter widgets
114
- function enableUI() {
115
- var i,
116
- el,
117
- ithSorter = function ithSorter(i) {
118
- var col = cols[i];
119
-
120
- return function () {
121
- var desc = col.defaultDescSort;
122
-
123
- if (currentSort.index === i) {
124
- desc = !currentSort.desc;
125
- }
126
- sortByIndex(i, desc);
127
- removeSortIndicators();
128
- currentSort.index = i;
129
- currentSort.desc = desc;
130
- addSortIndicators();
131
- };
132
- };
133
- for (i =0 ; i < cols.length; i += 1) {
134
- if (cols[i].sortable) {
135
- // add the click event handler on the th so users
136
- // dont have to click on those tiny arrows
137
- el = getNthColumn(i).querySelector('.sorter').parentElement;
138
- if (el.addEventListener) {
139
- el.addEventListener('click', ithSorter(i));
140
- } else {
141
- el.attachEvent('onclick', ithSorter(i));
142
- }
143
- }
144
- }
145
- }
146
- // adds sorting functionality to the UI
147
- return function () {
148
- if (!getTable()) {
149
- return;
150
- }
151
- cols = loadColumns();
152
- loadData(cols);
153
- addSortIndicators();
154
- enableUI();
155
- };
156
- })();
157
-
158
- window.addEventListener('load', addSorting);
@@ -1,378 +0,0 @@
1
- TN:
2
- SF:/Users/spragn01/workspace/node/filehound/src/arrays.ts
3
- FN:3,copy
4
- FN:7,from
5
- FNF:2
6
- FNH:2
7
- FNDA:62,copy
8
- FNDA:74,from
9
- DA:1,1
10
- DA:3,1
11
- DA:4,62
12
- DA:7,1
13
- DA:8,74
14
- DA:10,71
15
- LF:6
16
- LH:6
17
- BRDA:8,0,0,3
18
- BRDA:8,0,1,71
19
- BRF:2
20
- BRH:2
21
- end_of_record
22
- TN:
23
- SF:/Users/spragn01/workspace/node/filehound/src/filehound.ts
24
- FN:12,isDefined
25
- FN:16,flatten
26
- FN:20,getFilename
27
- FN:24,isRegExpMatch
28
- FN:25,(anonymous_4)
29
- FN:30,cleanExtension
30
- FN:48,(anonymous_6)
31
- FN:72,(anonymous_7)
32
- FN:90,(anonymous_8)
33
- FN:112,(anonymous_9)
34
- FN:113,(anonymous_10)
35
- FN:137,(anonymous_11)
36
- FN:138,(anonymous_12)
37
- FN:163,(anonymous_13)
38
- FN:164,(anonymous_14)
39
- FN:188,(anonymous_15)
40
- FN:211,(anonymous_16)
41
- FN:234,(anonymous_17)
42
- FN:256,(anonymous_18)
43
- FN:258,(anonymous_19)
44
- FN:296,(anonymous_20)
45
- FN:299,(anonymous_21)
46
- FN:323,(anonymous_22)
47
- FN:324,(anonymous_23)
48
- FN:349,(anonymous_24)
49
- FN:372,(anonymous_25)
50
- FN:380,(anonymous_26)
51
- FN:381,(anonymous_27)
52
- FN:406,(anonymous_28)
53
- FN:428,(anonymous_29)
54
- FN:429,(anonymous_30)
55
- FN:452,(anonymous_31)
56
- FN:474,(anonymous_32)
57
- FN:496,(anonymous_33)
58
- FN:497,(anonymous_34)
59
- FN:521,(anonymous_35)
60
- FN:552,(anonymous_36)
61
- FN:561,(anonymous_37)
62
- FN:565,(anonymous_38)
63
- FN:586,(anonymous_39)
64
- FN:597,(anonymous_40)
65
- FN:602,(anonymous_41)
66
- FN:608,(anonymous_42)
67
- FN:616,(anonymous_43)
68
- FN:620,(anonymous_44)
69
- FN:628,(anonymous_45)
70
- FN:633,(anonymous_46)
71
- FN:636,(anonymous_47)
72
- FN:643,(anonymous_48)
73
- FN:650,(anonymous_49)
74
- FN:662,(anonymous_50)
75
- FNF:51
76
- FNH:51
77
- FNDA:197,isDefined
78
- FNDA:264,flatten
79
- FNDA:131,getFilename
80
- FNDA:8,isRegExpMatch
81
- FNDA:28,(anonymous_4)
82
- FNDA:8,cleanExtension
83
- FNDA:61,(anonymous_6)
84
- FNDA:61,(anonymous_7)
85
- FNDA:1,(anonymous_8)
86
- FNDA:3,(anonymous_9)
87
- FNDA:15,(anonymous_10)
88
- FNDA:3,(anonymous_11)
89
- FNDA:15,(anonymous_12)
90
- FNDA:3,(anonymous_13)
91
- FNDA:15,(anonymous_14)
92
- FNDA:44,(anonymous_15)
93
- FNDA:61,(anonymous_16)
94
- FNDA:6,(anonymous_17)
95
- FNDA:6,(anonymous_18)
96
- FNDA:8,(anonymous_19)
97
- FNDA:6,(anonymous_20)
98
- FNDA:20,(anonymous_21)
99
- FNDA:10,(anonymous_22)
100
- FNDA:37,(anonymous_23)
101
- FNDA:1,(anonymous_24)
102
- FNDA:1,(anonymous_25)
103
- FNDA:7,(anonymous_26)
104
- FNDA:64,(anonymous_27)
105
- FNDA:4,(anonymous_28)
106
- FNDA:2,(anonymous_29)
107
- FNDA:9,(anonymous_30)
108
- FNDA:2,(anonymous_31)
109
- FNDA:4,(anonymous_32)
110
- FNDA:1,(anonymous_33)
111
- FNDA:1,(anonymous_34)
112
- FNDA:4,(anonymous_35)
113
- FNDA:55,(anonymous_36)
114
- FNDA:2,(anonymous_37)
115
- FNDA:55,(anonymous_38)
116
- FNDA:3,(anonymous_39)
117
- FNDA:137,(anonymous_40)
118
- FNDA:137,(anonymous_41)
119
- FNDA:58,(anonymous_42)
120
- FNDA:58,(anonymous_43)
121
- FNDA:3,(anonymous_44)
122
- FNDA:58,(anonymous_45)
123
- FNDA:56,(anonymous_46)
124
- FNDA:113,(anonymous_47)
125
- FNDA:99,(anonymous_48)
126
- FNDA:259,(anonymous_49)
127
- FNDA:62,(anonymous_50)
128
- DA:1,1
129
- DA:2,1
130
- DA:3,1
131
- DA:4,1
132
- DA:6,1
133
- DA:7,1
134
- DA:8,1
135
- DA:9,1
136
- DA:10,1
137
- DA:13,197
138
- DA:17,264
139
- DA:21,131
140
- DA:25,8
141
- DA:26,28
142
- DA:31,8
143
- DA:32,3
144
- DA:34,5
145
- DA:49,61
146
- DA:50,61
147
- DA:51,61
148
- DA:52,61
149
- DA:53,61
150
- DA:54,61
151
- DA:55,61
152
- DA:56,61
153
- DA:73,61
154
- DA:91,1
155
- DA:92,1
156
- DA:113,3
157
- DA:114,15
158
- DA:115,15
159
- DA:117,3
160
- DA:138,3
161
- DA:139,15
162
- DA:140,15
163
- DA:142,3
164
- DA:164,3
165
- DA:165,15
166
- DA:166,15
167
- DA:168,3
168
- DA:189,44
169
- DA:190,44
170
- DA:212,61
171
- DA:213,61
172
- DA:235,6
173
- DA:257,6
174
- DA:258,6
175
- DA:259,8
176
- DA:261,6
177
- DA:297,6
178
- DA:299,6
179
- DA:300,20
180
- DA:302,6
181
- DA:324,10
182
- DA:325,37
183
- DA:326,37
184
- DA:328,10
185
- DA:350,1
186
- DA:351,1
187
- DA:373,1
188
- DA:381,7
189
- DA:382,64
190
- DA:384,7
191
- DA:407,4
192
- DA:408,4
193
- DA:429,2
194
- DA:430,9
195
- DA:432,2
196
- DA:453,2
197
- DA:454,2
198
- DA:475,4
199
- DA:476,4
200
- DA:497,1
201
- DA:498,1
202
- DA:500,1
203
- DA:522,4
204
- DA:523,4
205
- DA:553,55
206
- DA:555,55
207
- DA:556,55
208
- DA:558,55
209
- DA:562,2
210
- DA:563,1
211
- DA:566,55
212
- DA:587,3
213
- DA:589,3
214
- DA:591,3
215
- DA:598,137
216
- DA:599,135
217
- DA:603,137
218
- DA:609,58
219
- DA:610,58
220
- DA:611,4
221
- DA:613,54
222
- DA:617,58
223
- DA:621,3
224
- DA:622,3
225
- DA:623,3
226
- DA:624,3
227
- DA:625,3
228
- DA:629,58
229
- DA:630,58
230
- DA:631,58
231
- DA:633,56
232
- DA:634,56
233
- DA:636,53
234
- DA:637,113
235
- DA:639,53
236
- DA:644,99
237
- DA:646,90
238
- DA:649,90
239
- DA:651,259
240
- DA:652,38
241
- DA:654,38
242
- DA:656,221
243
- DA:663,62
244
- DA:667,62
245
- DA:671,1
246
- LF:118
247
- LH:118
248
- BRDA:31,0,0,3
249
- BRDA:31,0,1,5
250
- BRDA:599,1,0,135
251
- BRDA:599,1,1,23
252
- BRDA:604,2,0,137
253
- BRDA:604,2,1,125
254
- BRDA:604,2,2,16
255
- BRDA:610,3,0,4
256
- BRDA:610,3,1,54
257
- BRDA:625,4,0,1
258
- BRDA:625,4,1,2
259
- BRDA:634,5,0,3
260
- BRDA:634,5,1,53
261
- BRDA:644,6,0,7
262
- BRDA:644,6,1,90
263
- BRDA:647,7,0,7
264
- BRDA:647,7,1,83
265
- BRDA:651,8,0,38
266
- BRDA:651,8,1,221
267
- BRDA:652,9,0,31
268
- BRDA:652,9,1,7
269
- BRDA:664,10,0,4
270
- BRDA:664,10,1,58
271
- BRF:23
272
- BRH:23
273
- end_of_record
274
- TN:
275
- SF:/Users/spragn01/workspace/node/filehound/src/files.ts
276
- FN:5,flatten
277
- FN:9,hasParent
278
- FN:14,getParent
279
- FN:18,getRoot
280
- FN:24,getSubDirectories
281
- FN:28,(anonymous_5)
282
- FN:33,findSubDirectories
283
- FN:35,(anonymous_7)
284
- FN:41,notSubDirectory
285
- FN:42,(anonymous_9)
286
- FN:47,isSubDirectory
287
- FN:58,reducePaths
288
- FNF:12
289
- FNH:12
290
- FNDA:14,flatten
291
- FNDA:158,hasParent
292
- FNDA:130,getParent
293
- FNDA:159,getRoot
294
- FNDA:14,getSubDirectories
295
- FNDA:42,(anonymous_5)
296
- FNDA:5,findSubDirectories
297
- FNDA:14,(anonymous_7)
298
- FNDA:7,notSubDirectory
299
- FNDA:16,(anonymous_9)
300
- FNDA:28,isSubDirectory
301
- FNDA:58,reducePaths
302
- DA:1,1
303
- DA:2,1
304
- DA:3,1
305
- DA:6,14
306
- DA:10,158
307
- DA:11,158
308
- DA:15,130
309
- DA:18,1
310
- DA:19,159
311
- DA:28,14
312
- DA:29,42
313
- DA:33,1
314
- DA:34,5
315
- DA:36,14
316
- DA:41,1
317
- DA:42,7
318
- DA:43,16
319
- DA:47,1
320
- DA:48,28
321
- DA:49,28
322
- DA:50,132
323
- DA:51,2
324
- DA:53,130
325
- DA:55,26
326
- DA:58,1
327
- DA:59,58
328
- DA:60,53
329
- DA:63,5
330
- DA:64,5
331
- LF:29
332
- LH:29
333
- BRDA:11,0,0,158
334
- BRDA:11,0,1,158
335
- BRDA:11,0,2,144
336
- BRDA:20,1,0,0
337
- BRDA:20,1,1,159
338
- BRDA:29,2,0,42
339
- BRDA:29,2,1,28
340
- BRDA:50,3,0,2
341
- BRDA:50,3,1,130
342
- BRDA:59,4,0,53
343
- BRDA:59,4,1,5
344
- BRF:11
345
- BRH:10
346
- end_of_record
347
- TN:
348
- SF:/Users/spragn01/workspace/node/filehound/src/functions.ts
349
- FN:3,negate
350
- FN:4,(anonymous_1)
351
- FN:9,compose
352
- FN:12,(anonymous_3)
353
- FNF:4
354
- FNH:4
355
- FNDA:12,negate
356
- FNDA:81,(anonymous_1)
357
- FNDA:58,compose
358
- FNDA:301,(anonymous_3)
359
- DA:1,1
360
- DA:3,1
361
- DA:4,12
362
- DA:5,81
363
- DA:9,1
364
- DA:10,58
365
- DA:12,58
366
- DA:13,301
367
- DA:14,301
368
- DA:15,208
369
- DA:17,301
370
- LF:11
371
- LH:11
372
- BRDA:10,0,0,0
373
- BRDA:10,0,1,58
374
- BRDA:15,1,0,208
375
- BRDA:15,1,1,206
376
- BRF:4
377
- BRH:3
378
- end_of_record
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const _ = require("lodash");
4
- function copy(value) {
5
- return _.cloneDeep(value);
6
- }
7
- exports.copy = copy;
8
- function from(args) {
9
- if (_.isArray(args[0])) {
10
- return args[0];
11
- }
12
- return Array.prototype.slice.call(args);
13
- }
14
- exports.from = from;
15
- //# sourceMappingURL=arrays.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrays.js","sourceRoot":"","sources":["../../src/arrays.ts"],"names":[],"mappings":";;AAAA,4BAA4B;AAE5B,cAAwB,KAAQ;IAC9B,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAFD,oBAEC;AAED,cAAqB,IAAc;IACjC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;QACtB,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;KAChB;IACD,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AALD,oBAKC"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- function flatten(a, b) {
12
- return a.concat(b);
13
- }
14
- class AsyncWalker {
15
- constructor(root) {
16
- this.root = root;
17
- this.tracked = [];
18
- this.directoriesOnly = false;
19
- }
20
- dirnames(directoriesOnly) {
21
- this.directoriesOnly = directoriesOnly;
22
- return this;
23
- }
24
- skipOn(skipDir) {
25
- this.skipDir = skipDir;
26
- return this;
27
- }
28
- search(path, filter) {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- if (this.skipDir(path)) {
31
- return [];
32
- }
33
- return path.getFiles()
34
- .map((file) => __awaiter(this, void 0, void 0, function* () {
35
- if (yield file.isDirectory()) {
36
- if (!this.skipDir(file)) {
37
- this.tracked.push(file);
38
- }
39
- return this.search(file, filter);
40
- }
41
- return file;
42
- }))
43
- .reduce(flatten, [])
44
- .filter(filter);
45
- });
46
- }
47
- walk(filter) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- this.tracked = [];
50
- const files = yield this.search(this.root, filter);
51
- if (this.directoriesOnly) {
52
- return this.tracked.filter(filter);
53
- }
54
- return files;
55
- });
56
- }
57
- }
58
- exports.AsyncWalker = AsyncWalker;
59
- //# sourceMappingURL=asyncWalker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncWalker.js","sourceRoot":"","sources":["../../src/asyncWalker.ts"],"names":[],"mappings":";;;;;;;;;;AAEA,iBAAiB,CAAS,EAAE,CAAS;IACnC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AAED;IAME,YAAY,IAAU;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC/B,CAAC;IAEM,QAAQ,CAAC,eAAe;QAC7B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,OAAO;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAEa,MAAM,CAAC,IAAU,EAAE,MAA8B;;YAC7D,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACvB,MAAM,CAAC,EAAE,CAAC;YACZ,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;iBACnB,GAAG,CAAC,CAAO,IAAU,EAAE,EAAE;gBACxB,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;oBAC7B,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;wBACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAC1B,CAAC;oBACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACnC,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC;YACd,CAAC,CAAA,CAAC;iBACD,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;iBACnB,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;KAAA;IAEY,IAAI,CAAC,MAA8B;;YAC9C,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACnD,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;gBACzB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YACD,MAAM,CAAC,KAAK,CAAC;QACf,CAAC;KAAA;CACF;AAjDD,kCAiDC"}
package/dist/src/bind.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function isMethod(propertyName, value) {
4
- return propertyName !== 'constructor' && typeof value === 'function';
5
- }
6
- exports.default = (obj) => {
7
- const propertyNames = Object.getOwnPropertyNames(obj.constructor.prototype);
8
- propertyNames.forEach((propertyName) => {
9
- const value = obj[propertyName];
10
- if (isMethod(propertyName, value)) {
11
- obj[propertyName] = value.bind(obj);
12
- }
13
- });
14
- };
15
- //# sourceMappingURL=bind.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bind.js","sourceRoot":"","sources":["../../src/bind.ts"],"names":[],"mappings":";;AAAA,kBAAkB,YAAY,EAAE,KAAK;IACnC,OAAO,YAAY,KAAK,aAAa,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC;AACvE,CAAC;AAED,kBAAe,CAAC,GAAG,EAAE,EAAE;IACrB,MAAM,aAAa,GAAG,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC5E,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC;QAChC,IAAI,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE;YACjC,GAAG,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACrC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}