@visulima/fs 3.1.6 → 3.1.8

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 (232) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/LICENSE.md +125 -0
  3. package/README.md +153 -153
  4. package/dist/eol.cjs +3 -28
  5. package/dist/eol.mjs +3 -20
  6. package/dist/error.cjs +1 -21
  7. package/dist/error.mjs +1 -7
  8. package/dist/index.cjs +1 -80
  9. package/dist/index.d.cts +2 -2
  10. package/dist/index.d.mts +2 -2
  11. package/dist/index.d.ts +2 -2
  12. package/dist/index.mjs +1 -31
  13. package/dist/packem_shared/AlreadyExistsError-CEu6_Tjb.mjs +1 -0
  14. package/dist/packem_shared/AlreadyExistsError-GC2XUgzJ.cjs +1 -0
  15. package/dist/packem_shared/DirectoryError-aGtmQVph.cjs +1 -0
  16. package/dist/packem_shared/DirectoryError-ddlbUV8C.mjs +1 -0
  17. package/dist/packem_shared/F_OK-7T91O6Oz.cjs +1 -0
  18. package/dist/packem_shared/F_OK-B71i3mUa.mjs +1 -0
  19. package/dist/packem_shared/JSONError-CVkb3xZ3.mjs +4 -0
  20. package/dist/packem_shared/JSONError-CWuiGmNc.cjs +4 -0
  21. package/dist/packem_shared/NotEmptyError-BWGfec5K.cjs +1 -0
  22. package/dist/packem_shared/NotEmptyError-DMh1o7UL.mjs +1 -0
  23. package/dist/packem_shared/NotFoundError-BPiW0icm.mjs +1 -0
  24. package/dist/packem_shared/NotFoundError-Diij7oqe.cjs +1 -0
  25. package/dist/packem_shared/PermissionError-B1Emi5a9.mjs +1 -0
  26. package/dist/packem_shared/PermissionError-Ck1Es7al.cjs +1 -0
  27. package/dist/packem_shared/WalkError-BsngoIKJ.mjs +1 -0
  28. package/dist/packem_shared/WalkError-gKgp0TWD.cjs +1 -0
  29. package/dist/packem_shared/assertValidFileContents-BZFnXa7K.mjs +1 -0
  30. package/dist/packem_shared/assertValidFileContents-CrbDz09d.cjs +1 -0
  31. package/dist/packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.mjs +1 -0
  32. package/dist/packem_shared/assertValidFileOrDirectoryPath-HOUs73Jk.cjs +1 -0
  33. package/dist/packem_shared/collect-Bl2Oc1qs.cjs +1 -0
  34. package/dist/packem_shared/collect-CyYPQFMs.mjs +1 -0
  35. package/dist/packem_shared/collectSync-BHjyXWq4.cjs +1 -0
  36. package/dist/packem_shared/collectSync-CD9cXw2g.mjs +1 -0
  37. package/dist/packem_shared/emptyDir-BdjO-6Gu.mjs +1 -0
  38. package/dist/packem_shared/emptyDir-DGRw4yE9.cjs +1 -0
  39. package/dist/packem_shared/emptyDirSync-C1vsMEp-.mjs +1 -0
  40. package/dist/packem_shared/emptyDirSync-DzjDZxOx.cjs +1 -0
  41. package/dist/packem_shared/ensureDir-BuIFF_6B.mjs +1 -0
  42. package/dist/packem_shared/ensureDir-DtQzyA70.cjs +1 -0
  43. package/dist/packem_shared/ensureDirSync-BuPHxdP4.mjs +1 -0
  44. package/dist/packem_shared/ensureDirSync-C8hIoS3o.cjs +1 -0
  45. package/dist/packem_shared/ensureFile-DcAODM6a.mjs +1 -0
  46. package/dist/packem_shared/ensureFile-wR8zBfXh.cjs +1 -0
  47. package/dist/packem_shared/ensureFileSync-BI1fIdNf.cjs +1 -0
  48. package/dist/packem_shared/ensureFileSync-CzPN6ucX.mjs +1 -0
  49. package/dist/packem_shared/ensureLink-BaZLXxgx.mjs +1 -0
  50. package/dist/packem_shared/ensureLink-DCPuU0Za.cjs +1 -0
  51. package/dist/packem_shared/ensureLinkSync-9C2JL-Sl.mjs +1 -0
  52. package/dist/packem_shared/ensureLinkSync-CuRZmQlV.cjs +1 -0
  53. package/dist/packem_shared/ensureSymlink-BH6wbylb.mjs +1 -0
  54. package/dist/packem_shared/ensureSymlink-J83jhdfA.cjs +1 -0
  55. package/dist/packem_shared/ensureSymlinkSync-CZSPodAm.mjs +1 -0
  56. package/dist/packem_shared/ensureSymlinkSync-VNtMTaV8.cjs +1 -0
  57. package/dist/packem_shared/findUp-C5aWsLuD.cjs +1 -0
  58. package/dist/packem_shared/findUp-CMGMYNty.mjs +1 -0
  59. package/dist/packem_shared/findUpSync-QP_ZEsJN.mjs +1 -0
  60. package/dist/packem_shared/findUpSync-U1lTgv4y.cjs +1 -0
  61. package/dist/packem_shared/get-file-info-type-CaWGXRjY.mjs +1 -0
  62. package/dist/packem_shared/get-file-info-type-DDbpRlDl.cjs +1 -0
  63. package/dist/packem_shared/index-BSjF-5vj.mjs +1 -0
  64. package/dist/packem_shared/index-DPla58ce.cjs +1 -0
  65. package/dist/packem_shared/is-stats-identical-Bti7K05l.cjs +1 -0
  66. package/dist/packem_shared/is-stats-identical-CohsLtWy.mjs +1 -0
  67. package/dist/packem_shared/isAccessible-BQZd1_xn.cjs +1 -0
  68. package/dist/packem_shared/isAccessible-CL4eE5VL.mjs +1 -0
  69. package/dist/packem_shared/isAccessibleSync-BP5N8k_-.cjs +1 -0
  70. package/dist/packem_shared/isAccessibleSync-_HU_ppdG.mjs +1 -0
  71. package/dist/packem_shared/move--o4NZLpD.mjs +1 -0
  72. package/dist/packem_shared/move-DwG6APiG.cjs +1 -0
  73. package/dist/packem_shared/parseJson-B_GwHpKj.cjs +6 -0
  74. package/dist/packem_shared/parseJson-Bqic0nN8.mjs +6 -0
  75. package/dist/packem_shared/readFile-BvefDyr_.cjs +1 -0
  76. package/dist/packem_shared/readFile-Cix_ijtX.mjs +1 -0
  77. package/dist/packem_shared/readFileSync-B0O-8BH0.mjs +1 -0
  78. package/dist/packem_shared/readFileSync-Ct8Ql4Vs.cjs +1 -0
  79. package/dist/packem_shared/readJson-BLvd2Bsj.mjs +1 -0
  80. package/dist/packem_shared/readJson-cP5ArpPg.cjs +1 -0
  81. package/dist/packem_shared/readJsonSync-B6h6A3Un.cjs +1 -0
  82. package/dist/packem_shared/readJsonSync-Br5dHGAI.mjs +1 -0
  83. package/dist/packem_shared/readYaml-BOYTR5D1.mjs +1 -0
  84. package/dist/packem_shared/readYaml-BzMFDsYe.cjs +1 -0
  85. package/dist/packem_shared/readYamlSync-BbK0khJu.cjs +1 -0
  86. package/dist/packem_shared/readYamlSync-md9g88k7.mjs +1 -0
  87. package/dist/packem_shared/remove-CtnFqEpd.mjs +1 -0
  88. package/dist/packem_shared/remove-DPCf2Qdb.cjs +1 -0
  89. package/dist/packem_shared/removeSync-Cyriz7r8.cjs +1 -0
  90. package/dist/packem_shared/removeSync-DI-IjqVp.mjs +1 -0
  91. package/dist/packem_shared/resolve-symlink-target-BofZSDIc.mjs +1 -0
  92. package/dist/packem_shared/resolve-symlink-target-zilkQ_AU.cjs +1 -0
  93. package/dist/packem_shared/stripJsonComments-Cp5SNAB7.mjs +1 -0
  94. package/dist/packem_shared/stripJsonComments-CvZSDnYT.cjs +1 -0
  95. package/dist/packem_shared/to-uint-8-array-2-3EvGd7.cjs +1 -0
  96. package/dist/packem_shared/to-uint-8-array-DwgaTasY.mjs +1 -0
  97. package/dist/packem_shared/{types-BaMGfHdp.d.ts → types-XsSUZ9oS.d.cts} +1 -1
  98. package/dist/packem_shared/{types-BaMGfHdp.d.mts → types-XsSUZ9oS.d.mts} +1 -1
  99. package/dist/packem_shared/{types-BaMGfHdp.d.cts → types-XsSUZ9oS.d.ts} +1 -1
  100. package/dist/packem_shared/walk-BZTXbT87.mjs +1 -0
  101. package/dist/packem_shared/walk-DyN_HVFW.cjs +1 -0
  102. package/dist/packem_shared/walk-include-C9pVST87.mjs +1 -0
  103. package/dist/packem_shared/walk-include-DkK-WJl4.cjs +1 -0
  104. package/dist/packem_shared/walkSync-BHlEzV_m.mjs +1 -0
  105. package/dist/packem_shared/walkSync-Bqi7L2yG.cjs +1 -0
  106. package/dist/packem_shared/writeFile-COOAkvOE.mjs +1 -0
  107. package/dist/packem_shared/writeFile-CjgQEfur.cjs +1 -0
  108. package/dist/packem_shared/writeFileSync-CQuRHo9n.cjs +1 -0
  109. package/dist/packem_shared/writeFileSync-rhu-y_zx.mjs +1 -0
  110. package/dist/packem_shared/writeJson-BYT4WInm.mjs +4 -0
  111. package/dist/packem_shared/writeJson-CJIciZ_Q.cjs +4 -0
  112. package/dist/packem_shared/writeJsonSync-BIsrhRbV.cjs +4 -0
  113. package/dist/packem_shared/writeJsonSync-CLlXOFDm.mjs +4 -0
  114. package/dist/packem_shared/writeYaml-CjzVd0K-.mjs +1 -0
  115. package/dist/packem_shared/writeYaml-VmX1VKhN.cjs +1 -0
  116. package/dist/packem_shared/writeYamlSync-D9A9Ixe1.mjs +1 -0
  117. package/dist/packem_shared/writeYamlSync-DYsM6XBi.cjs +1 -0
  118. package/dist/size.cjs +1 -118
  119. package/dist/size.mjs +1 -109
  120. package/dist/utils.cjs +1 -19
  121. package/dist/utils.d.cts +1 -1
  122. package/dist/utils.d.mts +1 -1
  123. package/dist/utils.d.ts +1 -1
  124. package/dist/utils.mjs +1 -6
  125. package/dist/yaml.cjs +1 -15
  126. package/dist/yaml.d.cts +1 -1
  127. package/dist/yaml.d.mts +1 -1
  128. package/dist/yaml.d.ts +1 -1
  129. package/dist/yaml.mjs +1 -4
  130. package/package.json +1 -1
  131. package/dist/packem_shared/AlreadyExistsError-DpxtwQot.cjs +0 -34
  132. package/dist/packem_shared/AlreadyExistsError-GK7J9fVA.mjs +0 -32
  133. package/dist/packem_shared/DirectoryError-D8FHcAqu.cjs +0 -34
  134. package/dist/packem_shared/DirectoryError-DByTWE7t.mjs +0 -32
  135. package/dist/packem_shared/F_OK-CWSqQIdF.cjs +0 -17
  136. package/dist/packem_shared/F_OK-JER1LjUr.mjs +0 -8
  137. package/dist/packem_shared/JSONError-5-wHnrxX.cjs +0 -34
  138. package/dist/packem_shared/JSONError-CaKt7MhC.mjs +0 -32
  139. package/dist/packem_shared/NotEmptyError-BCS_5pPt.cjs +0 -34
  140. package/dist/packem_shared/NotEmptyError-DCXooh5l.mjs +0 -32
  141. package/dist/packem_shared/NotFoundError-B_1nPl3K.cjs +0 -34
  142. package/dist/packem_shared/NotFoundError-CUdcC61I.mjs +0 -32
  143. package/dist/packem_shared/PermissionError-CqGMI9qC.mjs +0 -32
  144. package/dist/packem_shared/PermissionError-QFMKgk2l.cjs +0 -34
  145. package/dist/packem_shared/WalkError-B4-yr8Kk.cjs +0 -31
  146. package/dist/packem_shared/WalkError-DvEBTTaj.mjs +0 -29
  147. package/dist/packem_shared/assertValidFileContents-CRVvyM6b.cjs +0 -11
  148. package/dist/packem_shared/assertValidFileContents-Ox-ScfeK.mjs +0 -9
  149. package/dist/packem_shared/assertValidFileOrDirectoryPath-BMbgA-eI.cjs +0 -11
  150. package/dist/packem_shared/assertValidFileOrDirectoryPath-BWWgA1wj.mjs +0 -9
  151. package/dist/packem_shared/collect-3Paj1Vqw.mjs +0 -16
  152. package/dist/packem_shared/collect-DnfQeSOL.cjs +0 -18
  153. package/dist/packem_shared/collectSync-D4vym4QD.cjs +0 -18
  154. package/dist/packem_shared/collectSync-DwJLL8SD.mjs +0 -16
  155. package/dist/packem_shared/emptyDir-DcCfiNcf.cjs +0 -22
  156. package/dist/packem_shared/emptyDir-Dw5xSBox.mjs +0 -20
  157. package/dist/packem_shared/emptyDirSync-BWA4n6TB.cjs +0 -21
  158. package/dist/packem_shared/emptyDirSync-DMAaCiC_.mjs +0 -19
  159. package/dist/packem_shared/ensureDir-BOfUZlxG.cjs +0 -35
  160. package/dist/packem_shared/ensureDir-BnA_fY1A.mjs +0 -33
  161. package/dist/packem_shared/ensureDirSync-DHmWi3CF.cjs +0 -35
  162. package/dist/packem_shared/ensureDirSync-Dm4az3YF.mjs +0 -33
  163. package/dist/packem_shared/ensureFile-BKrJMHfr.mjs +0 -27
  164. package/dist/packem_shared/ensureFile-CeGryLJI.cjs +0 -29
  165. package/dist/packem_shared/ensureFileSync-B7THM1sN.cjs +0 -29
  166. package/dist/packem_shared/ensureFileSync-BnhFBXaR.mjs +0 -27
  167. package/dist/packem_shared/ensureLink-ChsWDTK5.mjs +0 -34
  168. package/dist/packem_shared/ensureLink-CrxLNmHE.cjs +0 -36
  169. package/dist/packem_shared/ensureLinkSync-CG-DTUoV.mjs +0 -34
  170. package/dist/packem_shared/ensureLinkSync-D8uMqLh4.cjs +0 -36
  171. package/dist/packem_shared/ensureSymlink-BwJ_QhzJ.mjs +0 -52
  172. package/dist/packem_shared/ensureSymlink-D_ieOVYa.cjs +0 -54
  173. package/dist/packem_shared/ensureSymlinkSync-BamG29QK.mjs +0 -56
  174. package/dist/packem_shared/ensureSymlinkSync-DTMvUYZD.cjs +0 -58
  175. package/dist/packem_shared/findUp-D5W-MTpT.mjs +0 -63
  176. package/dist/packem_shared/findUp-DVIYN2wV.cjs +0 -65
  177. package/dist/packem_shared/findUpSync-BOiVyUOx.cjs +0 -65
  178. package/dist/packem_shared/findUpSync-DL3NPCYg.mjs +0 -63
  179. package/dist/packem_shared/get-file-info-type-BlryFnpp.cjs +0 -18
  180. package/dist/packem_shared/get-file-info-type-ButUVD6d.mjs +0 -16
  181. package/dist/packem_shared/index-BVZL6YMm.cjs +0 -110
  182. package/dist/packem_shared/index-r9Pk9gBe.mjs +0 -108
  183. package/dist/packem_shared/is-stats-identical-BfdEfO6i.cjs +0 -7
  184. package/dist/packem_shared/is-stats-identical-ByTYZ2Aw.mjs +0 -5
  185. package/dist/packem_shared/isAccessible-Bonsm1Ez.mjs +0 -20
  186. package/dist/packem_shared/isAccessible-ZNVGsSb7.cjs +0 -22
  187. package/dist/packem_shared/isAccessibleSync-3gnUWUwX.mjs +0 -20
  188. package/dist/packem_shared/isAccessibleSync-VWjQa-US.cjs +0 -22
  189. package/dist/packem_shared/move-DgF7Ul9L.mjs +0 -114
  190. package/dist/packem_shared/move-Dh925GL9.cjs +0 -121
  191. package/dist/packem_shared/parseJson-BA7Xrggq.mjs +0 -248
  192. package/dist/packem_shared/parseJson-LgPGI5ic.cjs +0 -250
  193. package/dist/packem_shared/readFile-b7UBVv17.mjs +0 -46
  194. package/dist/packem_shared/readFile-iFUhZHnh.cjs +0 -48
  195. package/dist/packem_shared/readFileSync-B3NTOR-W.cjs +0 -33
  196. package/dist/packem_shared/readFileSync-CkEJBqZB.mjs +0 -31
  197. package/dist/packem_shared/readJson-CEBHyuYq.cjs +0 -27
  198. package/dist/packem_shared/readJson-Ce9b06cu.mjs +0 -25
  199. package/dist/packem_shared/readJsonSync-B22hej0y.cjs +0 -27
  200. package/dist/packem_shared/readJsonSync-CkUI9_z5.mjs +0 -25
  201. package/dist/packem_shared/readYaml-C5MSs2GE.mjs +0 -13
  202. package/dist/packem_shared/readYaml-sR4bqUel.cjs +0 -15
  203. package/dist/packem_shared/readYamlSync-C3oOzxiN.cjs +0 -15
  204. package/dist/packem_shared/readYamlSync-CPjA-DLv.mjs +0 -13
  205. package/dist/packem_shared/remove-B2nxUObP.mjs +0 -18
  206. package/dist/packem_shared/remove-BpDiVPns.cjs +0 -20
  207. package/dist/packem_shared/removeSync-BosXW624.cjs +0 -20
  208. package/dist/packem_shared/removeSync-C87yepDI.mjs +0 -18
  209. package/dist/packem_shared/resolve-symlink-target-BbpEHdU2.mjs +0 -18
  210. package/dist/packem_shared/resolve-symlink-target-DImIddt6.cjs +0 -20
  211. package/dist/packem_shared/stripJsonComments-B66nRaTZ.mjs +0 -21
  212. package/dist/packem_shared/stripJsonComments-eDrcJvBT.cjs +0 -23
  213. package/dist/packem_shared/to-uint-8-array-B4CjMOD3.mjs +0 -21
  214. package/dist/packem_shared/to-uint-8-array-BaTEyX3D.cjs +0 -23
  215. package/dist/packem_shared/walk-CI3ygmrw.cjs +0 -100
  216. package/dist/packem_shared/walk-D7YA43g8.mjs +0 -98
  217. package/dist/packem_shared/walk-include-CMUSRa86.mjs +0 -20
  218. package/dist/packem_shared/walk-include-yUdRrF16.cjs +0 -23
  219. package/dist/packem_shared/walkSync-DLTsnwuJ.mjs +0 -103
  220. package/dist/packem_shared/walkSync-oXkmn9ZA.cjs +0 -105
  221. package/dist/packem_shared/writeFile-BZ4JBQxc.mjs +0 -58
  222. package/dist/packem_shared/writeFile-DgCFRCe5.cjs +0 -60
  223. package/dist/packem_shared/writeFileSync-Ctw5pNQH.mjs +0 -58
  224. package/dist/packem_shared/writeFileSync-DzXhx1pF.cjs +0 -60
  225. package/dist/packem_shared/writeJson-Bh4sU1Ly.cjs +0 -33
  226. package/dist/packem_shared/writeJson-axO_14yL.mjs +0 -31
  227. package/dist/packem_shared/writeJsonSync-CzngmuKb.mjs +0 -31
  228. package/dist/packem_shared/writeJsonSync-HFdHjunl.cjs +0 -33
  229. package/dist/packem_shared/writeYaml-3XQT2qtb.cjs +0 -29
  230. package/dist/packem_shared/writeYaml-BSFEuWp2.mjs +0 -27
  231. package/dist/packem_shared/writeYamlSync-B6VcXXIb.mjs +0 -27
  232. package/dist/packem_shared/writeYamlSync-BZR3If9v.cjs +0 -29
@@ -1,250 +0,0 @@
1
- 'use strict';
2
-
3
- const JSONError = require('./JSONError-5-wHnrxX.cjs');
4
-
5
- var __defProp$2 = Object.defineProperty;
6
- var __name$2 = (target, value) => __defProp$2(target, "name", { value, configurable: true });
7
- var __defProp$2$1 = Object.defineProperty;
8
- var __name$2$1 = /* @__PURE__ */ __name$2((target, value) => __defProp$2$1(target, "name", { value, configurable: true }), "__name$2");
9
- const normalizeLF = /* @__PURE__ */ __name$2$1((code) => code.replaceAll(/\r\n|\r(?!\n)|\n/gu, "\n"), "normalizeLF");
10
- const _process = globalThis.process || /* @__PURE__ */ Object.create(null);
11
- const processShims = {
12
- versions: {}
13
- };
14
- const process = new Proxy(_process, {
15
- get(target, property) {
16
- if (property in target) {
17
- return target[property];
18
- }
19
- if (property in processShims) {
20
- return processShims[property];
21
- }
22
- return void 0;
23
- }
24
- });
25
- var __defProp$1$1 = Object.defineProperty;
26
- var __name$1$1 = /* @__PURE__ */ __name$2((target, value) => __defProp$1$1(target, "name", { value, configurable: true }), "__name$1");
27
- const getMarkerLines = /* @__PURE__ */ __name$1$1((loc, source, linesAbove, linesBelow) => {
28
- const startLoc = {
29
- column: 0,
30
- // @ts-expect-error Can be overwritten
31
- line: -1,
32
- ...loc.start
33
- };
34
- const endLoc = {
35
- ...startLoc,
36
- ...loc.end
37
- };
38
- const startLine = startLoc.line;
39
- const startColumn = startLoc.column;
40
- const endLine = endLoc.line;
41
- const endColumn = endLoc.column;
42
- let start = Math.max(startLine - (linesAbove + 1), 0);
43
- let end = Math.min(source.length, endLine + linesBelow);
44
- if (startLine === -1) {
45
- start = 0;
46
- }
47
- if (endLine === -1) {
48
- end = source.length;
49
- }
50
- const lineDiff = endLine - startLine;
51
- const markerLines = {};
52
- if (lineDiff) {
53
- for (let index = 0; index <= lineDiff; index++) {
54
- const lineNumber = index + startLine;
55
- if (!startColumn) {
56
- markerLines[lineNumber] = true;
57
- } else if (index === 0) {
58
- const sourceLength = source[lineNumber - 1]?.length;
59
- markerLines[lineNumber] = [startColumn, (sourceLength ?? 0) - startColumn + 1];
60
- } else if (index === lineDiff) {
61
- markerLines[lineNumber] = [0, endColumn];
62
- } else {
63
- const sourceLength = source[lineNumber - index]?.length;
64
- markerLines[lineNumber] = [0, sourceLength];
65
- }
66
- }
67
- } else if (startColumn === endColumn) {
68
- markerLines[startLine] = startColumn ? [startColumn, 0] : true;
69
- } else {
70
- markerLines[startLine] = [startColumn, (endColumn ?? 0) - (startColumn ?? 0)];
71
- }
72
- return { end, markerLines, start };
73
- }, "getMarkerLines");
74
- var __defProp2$1 = Object.defineProperty;
75
- var __name2$1 = /* @__PURE__ */ __name$2((target, value) => __defProp2$1(target, "name", { value, configurable: true }), "__name");
76
- const CODE_FRAME_POINTER = process.platform === "win32" && !process.env?.WT_SESSION ? ">" : "❯";
77
- const codeFrame = /* @__PURE__ */ __name2$1((source, loc, options) => {
78
- const config = {
79
- // grab 2 lines before, and 3 lines after focused line
80
- linesAbove: 2,
81
- linesBelow: 3,
82
- prefix: "",
83
- showGutter: true,
84
- tabWidth: 4,
85
- ...options,
86
- color: {
87
- gutter: /* @__PURE__ */ __name2$1((value) => value, "gutter"),
88
- marker: /* @__PURE__ */ __name2$1((value) => value, "marker"),
89
- message: /* @__PURE__ */ __name2$1((value) => value, "message"),
90
- ...options?.color
91
- }
92
- };
93
- const hasColumns = loc.start && typeof loc.start.column === "number";
94
- let lines = normalizeLF(source).split("\n");
95
- if (typeof config?.tabWidth === "number") {
96
- lines = lines.map((ln) => ln.replaceAll(" ", " ".repeat(config.tabWidth)));
97
- }
98
- const { end, markerLines, start } = getMarkerLines(loc, lines, config.linesAbove, config.linesBelow);
99
- const numberMaxWidth = String(end).length;
100
- const { gutter: colorizeGutter, marker: colorizeMarker, message: colorizeMessage } = config.color;
101
- let frame = lines.slice(start, end).map((line, index) => {
102
- const number = start + 1 + index;
103
- const hasMarker = markerLines[number];
104
- const paddedNumber = (" " + number).slice(-numberMaxWidth);
105
- const lastMarkerLine = !markerLines[number + 1];
106
- const gutter = " " + paddedNumber + (config.showGutter ? " |" : "");
107
- if (hasMarker) {
108
- let markerLine = "";
109
- if (Array.isArray(hasMarker)) {
110
- const markerSpacing = line.replaceAll(/[^\t]/g, " ").slice(0, Math.max(hasMarker[0] - 1, 0));
111
- const numberOfMarkers = hasMarker[1] || 1;
112
- markerLine = [
113
- "\n ",
114
- config.prefix + colorizeGutter(gutter.replaceAll(/\d/g, " ")),
115
- " ",
116
- markerSpacing,
117
- colorizeMarker("^").repeat(numberOfMarkers)
118
- ].join("");
119
- if (lastMarkerLine && config.message) {
120
- markerLine += ` ${colorizeMessage(config.message)}`;
121
- }
122
- }
123
- return [config.prefix + colorizeMarker(CODE_FRAME_POINTER), colorizeGutter(gutter), line.length > 0 ? " " + line : "", markerLine].join("");
124
- }
125
- return config.prefix + " " + colorizeGutter(gutter) + (line.length > 0 ? " " + line : "");
126
- }).join("\n");
127
- if (config.message && !hasColumns) {
128
- frame = config.prefix + " ".repeat(numberMaxWidth + 1) + config.message + "\n" + frame;
129
- }
130
- return frame;
131
- }, "codeFrame");
132
-
133
- var __defProp$1 = Object.defineProperty;
134
- var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
135
- var __defProp2 = Object.defineProperty;
136
- var __name2 = /* @__PURE__ */ __name$1((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
137
- const binarySearch = /* @__PURE__ */ __name2((element, array) => {
138
- let m = 0;
139
- let n = array.length - 2;
140
- while (m < n) {
141
- const key = m + (n - m >> 1);
142
- if (element < array[key]) {
143
- n = key - 1;
144
- } else if (element >= array[key + 1]) {
145
- m = key + 1;
146
- } else {
147
- m = key;
148
- break;
149
- }
150
- }
151
- return m;
152
- }, "binarySearch");
153
- const getLineStartIndexes = /* @__PURE__ */ __name2((string_) => (
154
- // eslint-disable-next-line unicorn/no-array-reduce
155
- string_.split(/\n|\r(?!\n)/).reduce(
156
- (accumulator, current) => {
157
- accumulator.push(accumulator.at(-1) + current.length + 1);
158
- return accumulator;
159
- },
160
- [0]
161
- )
162
- ), "getLineStartIndexes");
163
- const indexToLineColumn = /* @__PURE__ */ __name2((input, index, options) => {
164
- const skipChecks = options?.skipChecks ?? false;
165
- if (!skipChecks && (!Array.isArray(input) && typeof input !== "string" || (typeof input === "string" || Array.isArray(input)) && input.length === 0)) {
166
- return { column: 0, line: 0 };
167
- }
168
- if (!skipChecks && (typeof index !== "number" || typeof input === "string" && index >= input.length || Array.isArray(input) && index + 1 >= input.at(-1))) {
169
- return { column: 0, line: 0 };
170
- }
171
- if (typeof input === "string") {
172
- const startIndexesOfEachLine = getLineStartIndexes(input);
173
- const line2 = binarySearch(index, startIndexesOfEachLine);
174
- return {
175
- // eslint-disable-next-line security/detect-object-injection
176
- column: index - startIndexesOfEachLine[line2] + 1,
177
- line: line2 + 1
178
- };
179
- }
180
- const line = binarySearch(index, input);
181
- return {
182
- // eslint-disable-next-line security/detect-object-injection
183
- column: index - input[line] + 1,
184
- line: line + 1
185
- };
186
- }, "indexToLineColumn");
187
-
188
- var __defProp = Object.defineProperty;
189
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
190
- const getCodePoint = /* @__PURE__ */ __name((character) => `\\u{${character.codePointAt(0).toString(16)}}`, "getCodePoint");
191
- const generateCodeFrame = /* @__PURE__ */ __name((source, location, options) => codeFrame(
192
- source,
193
- { start: location },
194
- {
195
- tabWidth: false,
196
- ...options
197
- }
198
- ), "generateCodeFrame");
199
- const getErrorLocation = /* @__PURE__ */ __name((source, message) => {
200
- const match = /in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(message);
201
- if (!match) {
202
- return void 0;
203
- }
204
- let { column, index, line } = match.groups;
205
- if (line && column) {
206
- return { column: Number(column), line: Number(line) };
207
- }
208
- index = Number(index);
209
- if (index === source.length) {
210
- index = source.length - 1;
211
- }
212
- return indexToLineColumn(source, index);
213
- }, "getErrorLocation");
214
- const addCodePointToUnexpectedToken = /* @__PURE__ */ __name((message) => message.replace(
215
- // TODO[engine:node@>=20]: The token always quoted after Node.js 20
216
- // eslint-disable-next-line regexp/no-potentially-useless-backreference
217
- /(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,
218
- (_, _quote, token) => `"${token}"(${getCodePoint(token)})`
219
- ), "addCodePointToUnexpectedToken");
220
- function parseJson(string, reviver, fileName, options) {
221
- if (typeof reviver === "string") {
222
- if (typeof fileName === "object") {
223
- options = fileName;
224
- }
225
- fileName = reviver;
226
- reviver = void 0;
227
- }
228
- let message;
229
- try {
230
- return JSON.parse(string, reviver);
231
- } catch (error) {
232
- message = error.message;
233
- }
234
- let location;
235
- if (string) {
236
- location = getErrorLocation(string, message);
237
- message = addCodePointToUnexpectedToken(message);
238
- } else {
239
- message += " while parsing empty string";
240
- }
241
- const jsonError = new JSONError(message);
242
- jsonError.fileName = fileName;
243
- if (location) {
244
- jsonError.codeFrame = generateCodeFrame(string, location, options);
245
- }
246
- throw jsonError;
247
- }
248
- __name(parseJson, "parseJson");
249
-
250
- module.exports = parseJson;
@@ -1,46 +0,0 @@
1
- import { readFile as readFile$1 } from 'node:fs/promises';
2
- import { unzip, brotliDecompress } from 'node:zlib';
3
- import { toPath } from '@visulima/path/utils';
4
- import { R_OK } from './F_OK-JER1LjUr.mjs';
5
- import PermissionError from './PermissionError-CqGMI9qC.mjs';
6
- import isAccessible from './isAccessible-Bonsm1Ez.mjs';
7
- import assertValidFileOrDirectoryPath from './assertValidFileOrDirectoryPath-BWWgA1wj.mjs';
8
-
9
- var __defProp = Object.defineProperty;
10
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- const decompressionMethods = {
12
- brotli: brotliDecompress,
13
- gzip: unzip,
14
- none: /* @__PURE__ */ __name((buffer, callback) => {
15
- callback(null, buffer);
16
- }, "none")
17
- };
18
- const readFile = /* @__PURE__ */ __name(async (path, options) => {
19
- assertValidFileOrDirectoryPath(path);
20
- path = toPath(path);
21
- if (!await isAccessible(path)) {
22
- throw new PermissionError(`unable to read the non-accessible file: ${path}`);
23
- }
24
- if (!await isAccessible(path, R_OK)) {
25
- throw new Error(`Unable to read the non-readable file: ${path}`);
26
- }
27
- const { buffer, compression, encoding, flag } = options ?? {};
28
- return await readFile$1(path, flag ? { encoding, flag } : { encoding }).then(
29
- async (content) => (
30
- // eslint-disable-next-line compat/compat
31
- await new Promise((resolve, reject) => {
32
- decompressionMethods[compression ?? "none"](content, (error, result) => {
33
- if (error) {
34
- reject(error);
35
- } else {
36
- resolve(buffer ? result : result.toString());
37
- }
38
- });
39
- })
40
- )
41
- ).catch((error) => {
42
- throw error;
43
- });
44
- }, "readFile");
45
-
46
- export { readFile as default };
@@ -1,48 +0,0 @@
1
- 'use strict';
2
-
3
- const promises = require('node:fs/promises');
4
- const node_zlib = require('node:zlib');
5
- const utils = require('@visulima/path/utils');
6
- const F_OK = require('./F_OK-CWSqQIdF.cjs');
7
- const PermissionError = require('./PermissionError-QFMKgk2l.cjs');
8
- const isAccessible = require('./isAccessible-ZNVGsSb7.cjs');
9
- const assertValidFileOrDirectoryPath = require('./assertValidFileOrDirectoryPath-BMbgA-eI.cjs');
10
-
11
- var __defProp = Object.defineProperty;
12
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
- const decompressionMethods = {
14
- brotli: node_zlib.brotliDecompress,
15
- gzip: node_zlib.unzip,
16
- none: /* @__PURE__ */ __name((buffer, callback) => {
17
- callback(null, buffer);
18
- }, "none")
19
- };
20
- const readFile = /* @__PURE__ */ __name(async (path, options) => {
21
- assertValidFileOrDirectoryPath(path);
22
- path = utils.toPath(path);
23
- if (!await isAccessible(path)) {
24
- throw new PermissionError(`unable to read the non-accessible file: ${path}`);
25
- }
26
- if (!await isAccessible(path, F_OK.R_OK)) {
27
- throw new Error(`Unable to read the non-readable file: ${path}`);
28
- }
29
- const { buffer, compression, encoding, flag } = options ?? {};
30
- return await promises.readFile(path, flag ? { encoding, flag } : { encoding }).then(
31
- async (content) => (
32
- // eslint-disable-next-line compat/compat
33
- await new Promise((resolve, reject) => {
34
- decompressionMethods[compression ?? "none"](content, (error, result) => {
35
- if (error) {
36
- reject(error);
37
- } else {
38
- resolve(buffer ? result : result.toString());
39
- }
40
- });
41
- })
42
- )
43
- ).catch((error) => {
44
- throw error;
45
- });
46
- }, "readFile");
47
-
48
- module.exports = readFile;
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- const node_fs = require('node:fs');
4
- const node_zlib = require('node:zlib');
5
- const utils = require('@visulima/path/utils');
6
- const F_OK = require('./F_OK-CWSqQIdF.cjs');
7
- const PermissionError = require('./PermissionError-QFMKgk2l.cjs');
8
- const isAccessibleSync = require('./isAccessibleSync-VWjQa-US.cjs');
9
- const assertValidFileOrDirectoryPath = require('./assertValidFileOrDirectoryPath-BMbgA-eI.cjs');
10
-
11
- var __defProp = Object.defineProperty;
12
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
- const decompressionMethods = {
14
- brotli: node_zlib.brotliDecompressSync,
15
- gzip: node_zlib.unzipSync,
16
- none: /* @__PURE__ */ __name((buffer) => buffer, "none")
17
- };
18
- const readFileSync = /* @__PURE__ */ __name((path, options) => {
19
- assertValidFileOrDirectoryPath(path);
20
- path = utils.toPath(path);
21
- if (!isAccessibleSync(path)) {
22
- throw new PermissionError(`unable to read the non-accessible file: ${path}`);
23
- }
24
- if (!isAccessibleSync(path, F_OK.R_OK)) {
25
- throw new PermissionError(`invalid access to read file at: ${path}`);
26
- }
27
- const { buffer, compression, encoding, flag } = options ?? {};
28
- const content = node_fs.readFileSync(path, flag ? { encoding, flag } : { encoding });
29
- const decompressed = decompressionMethods[compression ?? "none"](content);
30
- return buffer ? decompressed : decompressed.toString();
31
- }, "readFileSync");
32
-
33
- module.exports = readFileSync;
@@ -1,31 +0,0 @@
1
- import { readFileSync as readFileSync$1 } from 'node:fs';
2
- import { unzipSync, brotliDecompressSync } from 'node:zlib';
3
- import { toPath } from '@visulima/path/utils';
4
- import { R_OK } from './F_OK-JER1LjUr.mjs';
5
- import PermissionError from './PermissionError-CqGMI9qC.mjs';
6
- import isAccessibleSync from './isAccessibleSync-3gnUWUwX.mjs';
7
- import assertValidFileOrDirectoryPath from './assertValidFileOrDirectoryPath-BWWgA1wj.mjs';
8
-
9
- var __defProp = Object.defineProperty;
10
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- const decompressionMethods = {
12
- brotli: brotliDecompressSync,
13
- gzip: unzipSync,
14
- none: /* @__PURE__ */ __name((buffer) => buffer, "none")
15
- };
16
- const readFileSync = /* @__PURE__ */ __name((path, options) => {
17
- assertValidFileOrDirectoryPath(path);
18
- path = toPath(path);
19
- if (!isAccessibleSync(path)) {
20
- throw new PermissionError(`unable to read the non-accessible file: ${path}`);
21
- }
22
- if (!isAccessibleSync(path, R_OK)) {
23
- throw new PermissionError(`invalid access to read file at: ${path}`);
24
- }
25
- const { buffer, compression, encoding, flag } = options ?? {};
26
- const content = readFileSync$1(path, flag ? { encoding, flag } : { encoding });
27
- const decompressed = decompressionMethods[compression ?? "none"](content);
28
- return buffer ? decompressed : decompressed.toString();
29
- }, "readFileSync");
30
-
31
- export { readFileSync as default };
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- const utils = require('@visulima/path/utils');
4
- const parseJson = require('./parseJson-LgPGI5ic.cjs');
5
- const readFile = require('./readFile-iFUhZHnh.cjs');
6
-
7
- var __defProp = Object.defineProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- async function readJson(path, reviver, options) {
10
- if (typeof reviver === "object") {
11
- options = reviver;
12
- reviver = void 0;
13
- }
14
- const content = await readFile(path, {
15
- buffer: true,
16
- encoding: void 0
17
- });
18
- let data = new TextDecoder().decode(content);
19
- const { beforeParse, color } = options ?? {};
20
- if (typeof beforeParse === "function") {
21
- data = beforeParse(data);
22
- }
23
- return parseJson(data, reviver, utils.toPath(path), { color });
24
- }
25
- __name(readJson, "readJson");
26
-
27
- module.exports = readJson;
@@ -1,25 +0,0 @@
1
- import { toPath } from '@visulima/path/utils';
2
- import parseJson from './parseJson-BA7Xrggq.mjs';
3
- import readFile from './readFile-b7UBVv17.mjs';
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- async function readJson(path, reviver, options) {
8
- if (typeof reviver === "object") {
9
- options = reviver;
10
- reviver = void 0;
11
- }
12
- const content = await readFile(path, {
13
- buffer: true,
14
- encoding: void 0
15
- });
16
- let data = new TextDecoder().decode(content);
17
- const { beforeParse, color } = options ?? {};
18
- if (typeof beforeParse === "function") {
19
- data = beforeParse(data);
20
- }
21
- return parseJson(data, reviver, toPath(path), { color });
22
- }
23
- __name(readJson, "readJson");
24
-
25
- export { readJson as default };
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- const utils = require('@visulima/path/utils');
4
- const parseJson = require('./parseJson-LgPGI5ic.cjs');
5
- const readFileSync = require('./readFileSync-B3NTOR-W.cjs');
6
-
7
- var __defProp = Object.defineProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- function readJsonSync(path, reviver, options) {
10
- if (typeof reviver === "object") {
11
- options = reviver;
12
- reviver = void 0;
13
- }
14
- const content = readFileSync(path, {
15
- buffer: true,
16
- encoding: void 0
17
- });
18
- let data = new TextDecoder().decode(content);
19
- const { beforeParse, color } = options ?? {};
20
- if (typeof beforeParse === "function") {
21
- data = beforeParse(data);
22
- }
23
- return parseJson(data, reviver, utils.toPath(path), { color });
24
- }
25
- __name(readJsonSync, "readJsonSync");
26
-
27
- module.exports = readJsonSync;
@@ -1,25 +0,0 @@
1
- import { toPath } from '@visulima/path/utils';
2
- import parseJson from './parseJson-BA7Xrggq.mjs';
3
- import readFileSync from './readFileSync-CkEJBqZB.mjs';
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- function readJsonSync(path, reviver, options) {
8
- if (typeof reviver === "object") {
9
- options = reviver;
10
- reviver = void 0;
11
- }
12
- const content = readFileSync(path, {
13
- buffer: true,
14
- encoding: void 0
15
- });
16
- let data = new TextDecoder().decode(content);
17
- const { beforeParse, color } = options ?? {};
18
- if (typeof beforeParse === "function") {
19
- data = beforeParse(data);
20
- }
21
- return parseJson(data, reviver, toPath(path), { color });
22
- }
23
- __name(readJsonSync, "readJsonSync");
24
-
25
- export { readJsonSync as default };
@@ -1,13 +0,0 @@
1
- import { parse } from 'yaml';
2
- import readFile from './readFile-b7UBVv17.mjs';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- async function readYaml(path, reviver, options) {
7
- const { buffer, compression, encoding = "utf8", flag, ...parseOptions } = options ?? {};
8
- const content = await readFile(path, { buffer, compression, encoding, flag });
9
- return typeof reviver === "function" ? parse(content, reviver, parseOptions) : parse(content, parseOptions);
10
- }
11
- __name(readYaml, "readYaml");
12
-
13
- export { readYaml as default };
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- const yaml = require('yaml');
4
- const readFile = require('./readFile-iFUhZHnh.cjs');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- async function readYaml(path, reviver, options) {
9
- const { buffer, compression, encoding = "utf8", flag, ...parseOptions } = options ?? {};
10
- const content = await readFile(path, { buffer, compression, encoding, flag });
11
- return typeof reviver === "function" ? yaml.parse(content, reviver, parseOptions) : yaml.parse(content, parseOptions);
12
- }
13
- __name(readYaml, "readYaml");
14
-
15
- module.exports = readYaml;
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- const yaml = require('yaml');
4
- const readFileSync = require('./readFileSync-B3NTOR-W.cjs');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- function readYamlSync(path, reviver, options) {
9
- const { buffer, compression, encoding = "utf8", flag, ...parseOptions } = options ?? {};
10
- const content = readFileSync(path, { buffer, compression, encoding, flag });
11
- return typeof reviver === "function" ? yaml.parse(content, reviver, parseOptions) : yaml.parse(content, parseOptions);
12
- }
13
- __name(readYamlSync, "readYamlSync");
14
-
15
- module.exports = readYamlSync;
@@ -1,13 +0,0 @@
1
- import { parse } from 'yaml';
2
- import readFileSync from './readFileSync-CkEJBqZB.mjs';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- function readYamlSync(path, reviver, options) {
7
- const { buffer, compression, encoding = "utf8", flag, ...parseOptions } = options ?? {};
8
- const content = readFileSync(path, { buffer, compression, encoding, flag });
9
- return typeof reviver === "function" ? parse(content, reviver, parseOptions) : parse(content, parseOptions);
10
- }
11
- __name(readYamlSync, "readYamlSync");
12
-
13
- export { readYamlSync as default };
@@ -1,18 +0,0 @@
1
- import { unlink, rm } from 'node:fs/promises';
2
- import assertValidFileOrDirectoryPath from './assertValidFileOrDirectoryPath-BWWgA1wj.mjs';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- const remove = /* @__PURE__ */ __name(async (path, options = {}) => {
7
- assertValidFileOrDirectoryPath(path);
8
- try {
9
- await unlink(path);
10
- } catch {
11
- }
12
- try {
13
- await rm(path, { force: true, maxRetries: options?.maxRetries, recursive: true, retryDelay: options?.retryDelay });
14
- } catch {
15
- }
16
- }, "remove");
17
-
18
- export { remove as default };
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- const promises = require('node:fs/promises');
4
- const assertValidFileOrDirectoryPath = require('./assertValidFileOrDirectoryPath-BMbgA-eI.cjs');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- const remove = /* @__PURE__ */ __name(async (path, options = {}) => {
9
- assertValidFileOrDirectoryPath(path);
10
- try {
11
- await promises.unlink(path);
12
- } catch {
13
- }
14
- try {
15
- await promises.rm(path, { force: true, maxRetries: options?.maxRetries, recursive: true, retryDelay: options?.retryDelay });
16
- } catch {
17
- }
18
- }, "remove");
19
-
20
- module.exports = remove;
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- const node_fs = require('node:fs');
4
- const assertValidFileOrDirectoryPath = require('./assertValidFileOrDirectoryPath-BMbgA-eI.cjs');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- const removeSync = /* @__PURE__ */ __name((path, options = {}) => {
9
- assertValidFileOrDirectoryPath(path);
10
- try {
11
- node_fs.unlinkSync(path);
12
- } catch {
13
- }
14
- try {
15
- node_fs.rmSync(path, { force: true, maxRetries: options?.maxRetries, recursive: true, retryDelay: options?.retryDelay });
16
- } catch {
17
- }
18
- }, "removeSync");
19
-
20
- module.exports = removeSync;
@@ -1,18 +0,0 @@
1
- import { unlinkSync, rmSync } from 'node:fs';
2
- import assertValidFileOrDirectoryPath from './assertValidFileOrDirectoryPath-BWWgA1wj.mjs';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- const removeSync = /* @__PURE__ */ __name((path, options = {}) => {
7
- assertValidFileOrDirectoryPath(path);
8
- try {
9
- unlinkSync(path);
10
- } catch {
11
- }
12
- try {
13
- rmSync(path, { force: true, maxRetries: options?.maxRetries, recursive: true, retryDelay: options?.retryDelay });
14
- } catch {
15
- }
16
- }, "removeSync");
17
-
18
- export { removeSync as default };