@visulima/fs 5.0.0-alpha.3 → 5.0.0-alpha.30

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 (223) hide show
  1. package/CHANGELOG.md +371 -0
  2. package/LICENSE.md +208 -131
  3. package/dist/eol.d.ts +31 -30
  4. package/dist/eol.js +3 -26
  5. package/dist/error.d.ts +273 -7
  6. package/dist/error.js +1 -7
  7. package/dist/glob-parent.d.ts +35 -0
  8. package/dist/glob-parent.js +1 -0
  9. package/dist/glob.d.ts +4 -0
  10. package/dist/glob.js +1 -0
  11. package/dist/index.d.ts +857 -36
  12. package/dist/index.js +1 -33
  13. package/dist/ini.d.ts +70 -0
  14. package/dist/ini.js +1 -0
  15. package/dist/is-glob.d.ts +34 -0
  16. package/dist/is-glob.js +1 -0
  17. package/dist/json5.d.ts +36 -0
  18. package/dist/json5.js +1 -0
  19. package/dist/jsonc.d.ts +65 -0
  20. package/dist/jsonc.js +1 -0
  21. package/dist/match.d.ts +80 -0
  22. package/dist/match.js +1 -0
  23. package/dist/packem_shared/AlreadyExistsError-CEu6_Tjb.js +1 -0
  24. package/dist/packem_shared/DirectoryError-ddlbUV8C.js +1 -0
  25. package/dist/packem_shared/F_OK-CAwY1qU7.js +1 -0
  26. package/dist/packem_shared/JSONError-D7h6PNWc.js +4 -0
  27. package/dist/packem_shared/NotEmptyError-DMh1o7UL.js +1 -0
  28. package/dist/packem_shared/NotFoundError-BPiW0icm.js +1 -0
  29. package/dist/packem_shared/PermissionError-B1Emi5a9.js +1 -0
  30. package/dist/packem_shared/WalkError-Olmh4908.js +1 -0
  31. package/dist/packem_shared/_commonjsHelpers-D6W6KoPK.js +1 -0
  32. package/dist/packem_shared/assertValidFileContents-BZFnXa7K.js +1 -0
  33. package/dist/packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.js +1 -0
  34. package/dist/packem_shared/build-rm-options-C1R4reBu.js +1 -0
  35. package/dist/packem_shared/collect-BuI4N8Cb.js +1 -0
  36. package/dist/packem_shared/collectSync-xeb7vY2J.js +1 -0
  37. package/dist/packem_shared/emptyDir-8utO028L.js +1 -0
  38. package/dist/packem_shared/emptyDirSync-Bk5fUX73.js +1 -0
  39. package/dist/packem_shared/ensureDir-CZ4oUFuo.js +1 -0
  40. package/dist/packem_shared/ensureDirSync-CoPWhbjM.js +1 -0
  41. package/dist/packem_shared/ensureFile-CF1cAAyh.js +1 -0
  42. package/dist/packem_shared/ensureFileSync-C3qR6naU.js +1 -0
  43. package/dist/packem_shared/ensureLink-LLLxlGHn.js +1 -0
  44. package/dist/packem_shared/ensureLinkSync-Dh_GtT8F.js +1 -0
  45. package/dist/packem_shared/ensureSymlink-bcGk7tvJ.js +1 -0
  46. package/dist/packem_shared/ensureSymlinkSync-BbVDPvI4.js +1 -0
  47. package/dist/packem_shared/findUp-CZow0UvS.js +1 -0
  48. package/dist/packem_shared/findUpSync-BOMeyfWY.js +1 -0
  49. package/dist/packem_shared/get-file-info-type-CaWGXRjY.js +1 -0
  50. package/dist/packem_shared/glob-MHJQjR39.js +1 -0
  51. package/dist/packem_shared/glob-sync.d-BgJM6l8W.d.ts +54 -0
  52. package/dist/packem_shared/globSync-CwzlELgS.js +1 -0
  53. package/dist/packem_shared/index-CYIVJA0W.js +1 -0
  54. package/dist/packem_shared/index-DrapuBsB.js +1 -0
  55. package/dist/packem_shared/index-K-NNTkpb.js +11 -0
  56. package/dist/packem_shared/index-yGx8uzZs.js +1 -0
  57. package/dist/packem_shared/indexToLineColumn-BRSZFC6I-zN_sCTx7.js +6 -0
  58. package/dist/packem_shared/ini-preserve-CXc_xkpG.js +4 -0
  59. package/dist/packem_shared/is-stats-identical-CohsLtWy.js +1 -0
  60. package/dist/packem_shared/isAccessible-CDFxsAAo.js +1 -0
  61. package/dist/packem_shared/isAccessibleSync-5nzZWgin.js +1 -0
  62. package/dist/packem_shared/isFsCaseSensitive-CMZVY1A2.js +1 -0
  63. package/dist/packem_shared/json-error.d-DVILOyHc.d.ts +52 -0
  64. package/dist/packem_shared/jsonc-merge-CQMjx3Vw.js +2 -0
  65. package/dist/packem_shared/move-LmP6P9sn.js +1 -0
  66. package/dist/packem_shared/parseJson-DTdEDJwS.js +1 -0
  67. package/dist/packem_shared/readFile-BkNfutxp.js +1 -0
  68. package/dist/packem_shared/readFileSync-4c_c6Qey.js +1 -0
  69. package/dist/packem_shared/readIni-DlyyIBHq.js +1 -0
  70. package/dist/packem_shared/readIniSync-DwomjPMj.js +1 -0
  71. package/dist/packem_shared/readJson-BiskeuNZ.js +1 -0
  72. package/dist/packem_shared/readJson5-ffmra5zp.js +1 -0
  73. package/dist/packem_shared/readJson5Sync-oAo0gBuU.js +1 -0
  74. package/dist/packem_shared/readJsonSync-cmV1NjAI.js +1 -0
  75. package/dist/packem_shared/readJsonc-Bd6QH-bH.js +1 -0
  76. package/dist/packem_shared/readJsoncSync-rcXoQB_7.js +1 -0
  77. package/dist/packem_shared/readToml-4S8Io3SQ.js +1 -0
  78. package/dist/packem_shared/readTomlSync-CcZKONFn.js +1 -0
  79. package/dist/packem_shared/readYaml-D71jaFaB.js +1 -0
  80. package/dist/packem_shared/readYamlSync-B0UyP0rk.js +1 -0
  81. package/dist/packem_shared/remove-DH41Ov_c.js +1 -0
  82. package/dist/packem_shared/removeSync-50OEdnHd.js +1 -0
  83. package/dist/packem_shared/resolve-symlink-target-BofZSDIc.js +1 -0
  84. package/dist/packem_shared/sanitize-CU1xmyrg.js +1 -0
  85. package/dist/packem_shared/stripJsonComments-CzNR77MF.js +1 -0
  86. package/dist/packem_shared/to-uint-8-array-DwgaTasY.js +1 -0
  87. package/dist/packem_shared/types.d-C1ygRkw1.d.ts +1660 -0
  88. package/dist/packem_shared/walk-CFHn3Kig.js +1 -0
  89. package/dist/packem_shared/walk-include-D2widdUw.js +1 -0
  90. package/dist/packem_shared/walkSync-D9PxD1XJ.js +1 -0
  91. package/dist/packem_shared/writeFile-DUmg8P4m.js +1 -0
  92. package/dist/packem_shared/writeFileSync-Cboe5Z4V.js +1 -0
  93. package/dist/packem_shared/writeIni-DioeLq2k.js +4 -0
  94. package/dist/packem_shared/writeIniSync-yk0js2T2.js +4 -0
  95. package/dist/packem_shared/writeJson-D5-N8O0Q.js +4 -0
  96. package/dist/packem_shared/writeJson5-RIZyw1vX.js +4 -0
  97. package/dist/packem_shared/writeJson5Sync-Cnxh1THk.js +4 -0
  98. package/dist/packem_shared/writeJsonSync-BrXiOras.js +4 -0
  99. package/dist/packem_shared/writeJsonc-lGAmFl9u.js +4 -0
  100. package/dist/packem_shared/writeJsoncSync-BFuqkLDq.js +4 -0
  101. package/dist/packem_shared/writeToml-CaXpILHA.js +1 -0
  102. package/dist/packem_shared/writeTomlSync-CQ2mzKjs.js +1 -0
  103. package/dist/packem_shared/writeYaml-DKBXiztZ.js +1 -0
  104. package/dist/packem_shared/writeYamlSync-DVKnrXBl.js +1 -0
  105. package/dist/size.d.ts +246 -246
  106. package/dist/size.js +1 -144
  107. package/dist/toml.d.ts +63 -0
  108. package/dist/toml.js +1 -0
  109. package/dist/utils.d.ts +103 -6
  110. package/dist/utils.js +1 -6
  111. package/dist/yaml.d.ts +13 -5
  112. package/dist/yaml.js +1 -4
  113. package/package.json +69 -18
  114. package/dist/constants.d.ts +0 -42
  115. package/dist/ensure/ensure-dir-sync.d.ts +0 -14
  116. package/dist/ensure/ensure-dir.d.ts +0 -14
  117. package/dist/ensure/ensure-file-sync.d.ts +0 -15
  118. package/dist/ensure/ensure-file.d.ts +0 -27
  119. package/dist/ensure/ensure-link-sync.d.ts +0 -16
  120. package/dist/ensure/ensure-link.d.ts +0 -16
  121. package/dist/ensure/ensure-symlink-sync.d.ts +0 -23
  122. package/dist/ensure/ensure-symlink.d.ts +0 -23
  123. package/dist/ensure/utils/get-file-info-type.d.ts +0 -7
  124. package/dist/ensure/utils/is-stats-identical.d.ts +0 -3
  125. package/dist/ensure/utils/resolve-symlink-target.d.ts +0 -2
  126. package/dist/error/already-exists-error.d.ts +0 -39
  127. package/dist/error/directory-error.d.ts +0 -47
  128. package/dist/error/json-error.d.ts +0 -52
  129. package/dist/error/not-empty-error.d.ts +0 -51
  130. package/dist/error/not-found-error.d.ts +0 -44
  131. package/dist/error/permission-error.d.ts +0 -45
  132. package/dist/error/walk-error.d.ts +0 -51
  133. package/dist/find/collect-sync.d.ts +0 -31
  134. package/dist/find/collect.d.ts +0 -35
  135. package/dist/find/find-up-sync.d.ts +0 -42
  136. package/dist/find/find-up.d.ts +0 -46
  137. package/dist/find/utils/glob-to-regexp.d.ts +0 -2
  138. package/dist/find/utils/walk-include.d.ts +0 -2
  139. package/dist/find/walk-sync.d.ts +0 -34
  140. package/dist/find/walk.d.ts +0 -37
  141. package/dist/is-accessible-sync.d.ts +0 -3
  142. package/dist/is-accessible.d.ts +0 -29
  143. package/dist/move/index.d.ts +0 -68
  144. package/dist/move/types.d.ts +0 -36
  145. package/dist/move/utils/internal-move-file-sync.d.ts +0 -3
  146. package/dist/move/utils/internal-move-file.d.ts +0 -3
  147. package/dist/move/utils/validate-same-directory.d.ts +0 -2
  148. package/dist/packem_shared/AlreadyExistsError-6Y9hjgMn.js +0 -27
  149. package/dist/packem_shared/DirectoryError-BfYPkIYP.js +0 -27
  150. package/dist/packem_shared/F_OK-MldBaGxb.js +0 -8
  151. package/dist/packem_shared/JSONError-BkHRnInH.js +0 -26
  152. package/dist/packem_shared/NotEmptyError-B21RUlVr.js +0 -27
  153. package/dist/packem_shared/NotFoundError-BIp61X6k.js +0 -27
  154. package/dist/packem_shared/PermissionError-CjoiJgip.js +0 -27
  155. package/dist/packem_shared/WalkError-DUdQd6FT.js +0 -24
  156. package/dist/packem_shared/assertValidFileContents-BmcLtsGd.js +0 -7
  157. package/dist/packem_shared/assertValidFileOrDirectoryPath-8HANmVjk.js +0 -7
  158. package/dist/packem_shared/collect-DcBwsYYd.js +0 -14
  159. package/dist/packem_shared/collectSync-Bkjf9Dbm.js +0 -14
  160. package/dist/packem_shared/emptyDir-CYB5Tict.js +0 -43
  161. package/dist/packem_shared/emptyDirSync-BD8-1Ytl.js +0 -41
  162. package/dist/packem_shared/ensureDir-C_kuQ5Ik.js +0 -53
  163. package/dist/packem_shared/ensureDirSync-CI5g-uBI.js +0 -53
  164. package/dist/packem_shared/ensureFile-BUtXGlGT.js +0 -47
  165. package/dist/packem_shared/ensureFileSync-C8hASR-1.js +0 -47
  166. package/dist/packem_shared/ensureLink-BPnAG5-P.js +0 -54
  167. package/dist/packem_shared/ensureLinkSync-B-Z7X0ub.js +0 -54
  168. package/dist/packem_shared/ensureSymlink-U5B6J0BN.js +0 -73
  169. package/dist/packem_shared/ensureSymlinkSync-DHnZj-9F.js +0 -74
  170. package/dist/packem_shared/findUp-BSnyGqer.js +0 -85
  171. package/dist/packem_shared/findUpSync-jRHbSCMV.js +0 -85
  172. package/dist/packem_shared/get-file-info-type-FD4-jsyg.js +0 -14
  173. package/dist/packem_shared/index-CHM-in-V.js +0 -100
  174. package/dist/packem_shared/is-stats-identical-D8FxpvQU.js +0 -3
  175. package/dist/packem_shared/isAccessible-DuVrTNFV.js +0 -38
  176. package/dist/packem_shared/isAccessibleSync-DI8mM0fA.js +0 -38
  177. package/dist/packem_shared/isFsCaseSensitive-D-ayleCy.js +0 -62
  178. package/dist/packem_shared/move-DbpW5_vA.js +0 -134
  179. package/dist/packem_shared/parseJson-C8xb-3LR.js +0 -231
  180. package/dist/packem_shared/readFile-Iz7kvCCk.js +0 -65
  181. package/dist/packem_shared/readFileSync-6GEIrOnl.js +0 -53
  182. package/dist/packem_shared/readJson-vddQ97Ll.js +0 -22
  183. package/dist/packem_shared/readJsonSync-DzeAdYZl.js +0 -22
  184. package/dist/packem_shared/readYaml-D5q2a0e1.js +0 -10
  185. package/dist/packem_shared/readYamlSync-DMV4U-gi.js +0 -10
  186. package/dist/packem_shared/remove-_oDY3uKo.js +0 -38
  187. package/dist/packem_shared/removeSync-DETRj7Qn.js +0 -38
  188. package/dist/packem_shared/resolve-symlink-target-Kh4GovFf.js +0 -16
  189. package/dist/packem_shared/sanitize-lOzE6k2A.js +0 -205
  190. package/dist/packem_shared/stripJsonComments-vo4k0mpF.js +0 -19
  191. package/dist/packem_shared/to-uint-8-array-Dz2nF1y1.js +0 -19
  192. package/dist/packem_shared/walk-BhTbpr3y.js +0 -115
  193. package/dist/packem_shared/walk-include-CZco7BvN.js +0 -16
  194. package/dist/packem_shared/walkSync-DDBq95s8.js +0 -114
  195. package/dist/packem_shared/writeFile-DSHERs0Z.js +0 -83
  196. package/dist/packem_shared/writeFileSync-CJp1kXQR.js +0 -83
  197. package/dist/packem_shared/writeJson-C0OfLDbe.js +0 -50
  198. package/dist/packem_shared/writeJsonSync-Cs21FE7v.js +0 -50
  199. package/dist/packem_shared/writeYaml-n4xzYN9a.js +0 -24
  200. package/dist/packem_shared/writeYamlSync-DnOEnP10.js +0 -24
  201. package/dist/read/read-file-sync.d.ts +0 -37
  202. package/dist/read/read-file.d.ts +0 -41
  203. package/dist/read/read-json-sync.d.ts +0 -5
  204. package/dist/read/read-json.d.ts +0 -5
  205. package/dist/read/read-yaml-sync.d.ts +0 -4
  206. package/dist/read/read-yaml.d.ts +0 -4
  207. package/dist/remove/empty-dir-sync.d.ts +0 -23
  208. package/dist/remove/empty-dir.d.ts +0 -28
  209. package/dist/remove/remove-sync.d.ts +0 -27
  210. package/dist/remove/remove.d.ts +0 -32
  211. package/dist/sanitize.d.ts +0 -31
  212. package/dist/types.d.ts +0 -304
  213. package/dist/utils/assert-valid-file-contents.d.ts +0 -27
  214. package/dist/utils/assert-valid-file-or-directory-path.d.ts +0 -26
  215. package/dist/utils/parse-json.d.ts +0 -5
  216. package/dist/utils/strip-json-comments.d.ts +0 -44
  217. package/dist/write/utils/to-uint-8-array.d.ts +0 -2
  218. package/dist/write/write-file-sync.d.ts +0 -30
  219. package/dist/write/write-file.d.ts +0 -30
  220. package/dist/write/write-json-sync.d.ts +0 -29
  221. package/dist/write/write-json.d.ts +0 -30
  222. package/dist/write/write-yaml-sync.d.ts +0 -4
  223. package/dist/write/write-yaml.d.ts +0 -4
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,7 @@ SOFTWARE.
24
24
 
25
25
  # Licenses of bundled dependencies
26
26
  The published @visulima/fs artifact additionally contains code with the following licenses:
27
- MIT
27
+ ISC, MIT
28
28
 
29
29
  # Bundled dependencies:
30
30
  ## @visulima/error
@@ -34,7 +34,7 @@ Repository: git+https://github.com/visulima/visulima.git
34
34
 
35
35
  > MIT License
36
36
  >
37
- > Copyright (c) 2025 visulima
37
+ > Copyright (c) 2026 visulima
38
38
  >
39
39
  > Permission is hereby granted, free of charge, to any person obtaining a copy
40
40
  > of this software and associated documentation files (the "Software"), to deal
@@ -57,136 +57,14 @@ Repository: git+https://github.com/visulima/visulima.git
57
57
  >
58
58
  >
59
59
  > # Licenses of bundled dependencies
60
+ >
60
61
  > The published @visulima/error artifact additionally contains code with the following licenses:
61
62
  > MIT
62
63
  >
63
64
  > # Bundled dependencies:
64
- > ## @visulima/path
65
- > License: MIT
66
- > By: Daniel Bannert
67
- > Repository: git+https://github.com/visulima/visulima.git
68
- >
69
- > > MIT License
70
- > >
71
- > > Copyright (c) 2025 visulima
72
- > >
73
- > > Permission is hereby granted, free of charge, to any person obtaining a copy
74
- > > of this software and associated documentation files (the "Software"), to deal
75
- > > in the Software without restriction, including without limitation the rights
76
- > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77
- > > copies of the Software, and to permit persons to whom the Software is
78
- > > furnished to do so, subject to the following conditions:
79
- > >
80
- > > The above copyright notice and this permission notice shall be included in all
81
- > > copies or substantial portions of the Software.
82
- > >
83
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
- > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
- > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
- > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
- > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
- > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
89
- > > SOFTWARE.
90
- > >
91
- > > ---
92
- > >
93
- > > MIT License
94
- > >
95
- > > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
96
- > >
97
- > > Permission is hereby granted, free of charge, to any person obtaining a copy
98
- > > of this software and associated documentation files (the "Software"), to deal
99
- > > in the Software without restriction, including without limitation the rights
100
- > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
101
- > > copies of the Software, and to permit persons to whom the Software is
102
- > > furnished to do so, subject to the following conditions:
103
- > >
104
- > > The above copyright notice and this permission notice shall be included in all
105
- > > copies or substantial portions of the Software.
106
- > >
107
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
108
- > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
109
- > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
110
- > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
111
- > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
112
- > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
113
- > > SOFTWARE.
114
- > >
115
- > > ---
116
- > >
117
- > > Copyright Joyent, Inc. and other Node contributors.
118
- > >
119
- > > Permission is hereby granted, free of charge, to any person obtaining a
120
- > > copy of this software and associated documentation files (the
121
- > > "Software"), to deal in the Software without restriction, including
122
- > > without limitation the rights to use, copy, modify, merge, publish,
123
- > > distribute, sublicense, and/or sell copies of the Software, and to permit
124
- > > persons to whom the Software is furnished to do so, subject to the
125
- > > following conditions:
126
- > >
127
- > > The above copyright notice and this permission notice shall be included
128
- > > in all copies or substantial portions of the Software.
129
- > >
130
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
131
- > > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
132
- > > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
133
- > > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
134
- > > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
135
- > > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
136
- > > USE OR OTHER DEALINGS IN THE SOFTWARE.
137
- > >
138
- > > ---
139
- > >
140
- > > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
141
- > >
142
- > > The MIT License (MIT)
143
- > >
144
- > > Copyright (c) 2023-present Fabio Spampinato
145
- > >
146
- > > Permission is hereby granted, free of charge, to any person obtaining a
147
- > > copy of this software and associated documentation files (the "Software"),
148
- > > to deal in the Software without restriction, including without limitation
149
- > > the rights to use, copy, modify, merge, publish, distribute, sublicense,
150
- > > and/or sell copies of the Software, and to permit persons to whom the
151
- > > Software is furnished to do so, subject to the following conditions:
152
- > >
153
- > > The above copyright notice and this permission notice shall be included in
154
- > > all copies or substantial portions of the Software.
155
- > >
156
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157
- > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
158
- > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
159
- > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
160
- > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
161
- > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
162
- > > DEALINGS IN THE SOFTWARE.
163
- > >
164
- > >
165
- > >
166
- > > # Licenses of bundled dependencies
167
- > > The published @visulima/path artifact additionally contains code with the following licenses:
168
- > > MIT
169
- > >
170
- > > # Bundled dependencies:
171
- > > ## binary-extensions
172
- > > License: MIT
173
- > > By: Sindre Sorhus
174
- > > Repository: sindresorhus/binary-extensions
175
- > >
176
- > > > MIT License
177
- > > >
178
- > > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
179
- > > > Copyright (c) Paul Miller (https://paulmillr.com)
180
- > > >
181
- > > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
182
- > > >
183
- > > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
184
- > > >
185
- > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
186
- >
187
- > ---------------------------------------
188
65
  >
189
66
  > ## is-plain-obj
67
+ >
190
68
  > License: MIT
191
69
  > By: Sindre Sorhus
192
70
  > Repository: sindresorhus/is-plain-obj
@@ -200,6 +78,33 @@ Repository: git+https://github.com/visulima/visulima.git
200
78
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
201
79
  > >
202
80
  > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
+ >
82
+ >
83
+ >
84
+ >
85
+ >
86
+ > # Licenses of bundled types
87
+ > The published @visulima/error artifact additionally contains code with the following licenses:
88
+ > Apache-2.0
89
+ >
90
+ > # Bundled types:
91
+ > ## ai
92
+ > License: Apache-2.0
93
+ > Repository: https://github.com/vercel/ai
94
+ >
95
+ > > Copyright 2023 Vercel, Inc.
96
+ > >
97
+ > > Licensed under the Apache License, Version 2.0 (the "License");
98
+ > > you may not use this file except in compliance with the License.
99
+ > > You may obtain a copy of the License at
100
+ > >
101
+ > > http://www.apache.org/licenses/LICENSE-2.0
102
+ > >
103
+ > > Unless required by applicable law or agreed to in writing, software
104
+ > > distributed under the License is distributed on an "AS IS" BASIS,
105
+ > > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
106
+ > > See the License for the specific language governing permissions and
107
+ > > limitations under the License.
203
108
 
204
109
  ---------------------------------------
205
110
 
@@ -220,6 +125,73 @@ Repository: sindresorhus/detect-indent
220
125
 
221
126
  ---------------------------------------
222
127
 
128
+ ## fdir
129
+ License: MIT
130
+ By: thecodrr
131
+ Repository: git+https://github.com/thecodrr/fdir.git
132
+
133
+ > Copyright 2023 Abdullah Atta
134
+ >
135
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
136
+ >
137
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
138
+ >
139
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
140
+
141
+ ---------------------------------------
142
+
143
+ ## glob-parent
144
+ License: ISC
145
+ By: Gulp Team, Elan Shanker, Blaine Bublitz
146
+ Repository: gulpjs/glob-parent
147
+
148
+ > The ISC License
149
+ >
150
+ > Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
151
+ >
152
+ > Permission to use, copy, modify, and/or distribute this software for any
153
+ > purpose with or without fee is hereby granted, provided that the above
154
+ > copyright notice and this permission notice appear in all copies.
155
+ >
156
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
157
+ > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
158
+ > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
159
+ > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
160
+ > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
161
+ > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
162
+ > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
163
+
164
+ ---------------------------------------
165
+
166
+ ## is-extglob
167
+ License: MIT
168
+ By: Jon Schlinkert
169
+ Repository: jonschlinkert/is-extglob
170
+
171
+ > The MIT License (MIT)
172
+ >
173
+ > Copyright (c) 2014-2016, Jon Schlinkert
174
+ >
175
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
176
+ > of this software and associated documentation files (the "Software"), to deal
177
+ > in the Software without restriction, including without limitation the rights
178
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
179
+ > copies of the Software, and to permit persons to whom the Software is
180
+ > furnished to do so, subject to the following conditions:
181
+ >
182
+ > The above copyright notice and this permission notice shall be included in
183
+ > all copies or substantial portions of the Software.
184
+ >
185
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
186
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
187
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
188
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
189
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
190
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
191
+ > THE SOFTWARE.
192
+
193
+ ---------------------------------------
194
+
223
195
  ## is-fs-case-sensitive
224
196
  License: MIT
225
197
  By: Hiroki Osame
@@ -247,19 +219,103 @@ Repository: privatenumber/is-fs-case-sensitive
247
219
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
248
220
  > SOFTWARE.
249
221
 
222
+ ---------------------------------------
223
+
224
+ ## is-glob
225
+ License: MIT
226
+ By: Jon Schlinkert, Brian Woodward, Daniel Perez
227
+ Repository: micromatch/is-glob
228
+
229
+ > The MIT License (MIT)
230
+ >
231
+ > Copyright (c) 2014-2017, Jon Schlinkert.
232
+ >
233
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
234
+ > of this software and associated documentation files (the "Software"), to deal
235
+ > in the Software without restriction, including without limitation the rights
236
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
237
+ > copies of the Software, and to permit persons to whom the Software is
238
+ > furnished to do so, subject to the following conditions:
239
+ >
240
+ > The above copyright notice and this permission notice shall be included in
241
+ > all copies or substantial portions of the Software.
242
+ >
243
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
244
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
245
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
246
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
247
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
248
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
249
+ > THE SOFTWARE.
250
+
251
+ ---------------------------------------
252
+
253
+ ## picomatch
254
+ License: MIT
255
+ By: Jon Schlinkert
256
+ Repository: micromatch/picomatch
257
+
258
+ > The MIT License (MIT)
259
+ >
260
+ > Copyright (c) 2017-present, Jon Schlinkert.
261
+ >
262
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
263
+ > of this software and associated documentation files (the "Software"), to deal
264
+ > in the Software without restriction, including without limitation the rights
265
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
266
+ > copies of the Software, and to permit persons to whom the Software is
267
+ > furnished to do so, subject to the following conditions:
268
+ >
269
+ > The above copyright notice and this permission notice shall be included in
270
+ > all copies or substantial portions of the Software.
271
+ >
272
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
273
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
274
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
275
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
276
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
277
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
278
+ > THE SOFTWARE.
279
+
280
+ ---------------------------------------
281
+
282
+ ## tinyglobby
283
+ License: MIT
284
+ By: Superchupu
285
+ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
286
+
287
+ > MIT License
288
+ >
289
+ > Copyright (c) 2024 Madeline Gurriarán
290
+ >
291
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
292
+ > of this software and associated documentation files (the "Software"), to deal
293
+ > in the Software without restriction, including without limitation the rights
294
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
295
+ > copies of the Software, and to permit persons to whom the Software is
296
+ > furnished to do so, subject to the following conditions:
297
+ >
298
+ > The above copyright notice and this permission notice shall be included in all
299
+ > copies or substantial portions of the Software.
300
+ >
301
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
302
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
303
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
304
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
305
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
306
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
307
+ > SOFTWARE.
308
+
250
309
  <!-- /DEPENDENCIES -->
251
310
 
252
311
  <!-- TYPE_DEPENDENCIES -->
253
312
 
254
313
  # Licenses of bundled types
255
-
256
314
  The published @visulima/fs artifact additionally contains code with the following licenses:
257
- MIT
315
+ ISC, MIT
258
316
 
259
317
  # Bundled types:
260
-
261
318
  ## is-fs-case-sensitive
262
-
263
319
  License: MIT
264
320
  By: Hiroki Osame
265
321
  Repository: privatenumber/is-fs-case-sensitive
@@ -286,4 +342,25 @@ Repository: privatenumber/is-fs-case-sensitive
286
342
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
287
343
  > SOFTWARE.
288
344
 
345
+ ---------------------------------------
346
+
347
+ ## yaml
348
+ License: ISC
349
+ By: Eemeli Aro
350
+ Repository: github:eemeli/yaml
351
+
352
+ > Copyright Eemeli Aro <eemeli@gmail.com>
353
+ >
354
+ > Permission to use, copy, modify, and/or distribute this software for any purpose
355
+ > with or without fee is hereby granted, provided that the above copyright notice
356
+ > and this permission notice appear in all copies.
357
+ >
358
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
359
+ > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
360
+ > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
361
+ > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
362
+ > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
363
+ > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
364
+ > THIS SOFTWARE.
365
+
289
366
  <!-- /TYPE_DEPENDENCIES -->
package/dist/eol.d.ts CHANGED
@@ -1,35 +1,36 @@
1
1
  /** End-of-line character for POSIX platforms such as macOS and Linux. */
2
- export declare const LF: "\n";
2
+ declare const LF: "\n";
3
3
  /** End-of-line character for Windows platforms. */
4
- export declare const CRLF: "\r\n";
4
+ declare const CRLF: "\r\n";
5
5
  /**
6
- * End-of-line character evaluated for the current platform.
7
- */
8
- export declare const EOL: "\n" | "\r\n";
6
+ * End-of-line character evaluated for the current platform.
7
+ */
8
+ declare const EOL: "\n" | "\r\n";
9
9
  /**
10
- * Detect the EOL character for string input.
11
- * Returns null if no newline.
12
- * @param content The string content to detect the EOL from.
13
- * @example
14
- * ```javascript
15
- * import { detect } from "@visulima/fs/eol";
16
- *
17
- * detect("Hello\r\nWorld"); // "\r\n"
18
- * detect("Hello\nWorld"); // "\n"
19
- * detect("HelloWorld"); // null
20
- * ```
21
- */
22
- export declare const detect: (content: string) => typeof EOL | null;
10
+ * Detect the EOL character for string input.
11
+ * Returns null if no newline.
12
+ * @param content The string content to detect the EOL from.
13
+ * @example
14
+ * ```javascript
15
+ * import { detect } from "@visulima/fs/eol";
16
+ *
17
+ * detect("Hello\r\nWorld"); // "\r\n"
18
+ * detect("Hello\nWorld"); // "\n"
19
+ * detect("HelloWorld"); // null
20
+ * ```
21
+ */
22
+ declare const detect: (content: string) => typeof EOL | null;
23
23
  /**
24
- * Format the file to the targeted EOL.
25
- * @param content The string content to format.
26
- * @param eol The target EOL character.
27
- * @example
28
- * ```javascript
29
- * import { format, LF, CRLF } from "@visulima/fs/eol";
30
- *
31
- * format("Hello\r\nWorld\nUnix", LF); // "Hello\nWorld\nUnix"
32
- * format("Hello\nWorld\r\nWindows", CRLF); // "Hello\r\nWorld\r\nWindows"
33
- * ```
34
- */
35
- export declare const format: (content: string, eol: typeof EOL) => string;
24
+ * Format the file to the targeted EOL.
25
+ * @param content The string content to format.
26
+ * @param eol The target EOL character.
27
+ * @example
28
+ * ```javascript
29
+ * import { format, LF, CRLF } from "@visulima/fs/eol";
30
+ *
31
+ * format("Hello\r\nWorld\nUnix", LF); // "Hello\nWorld\nUnix"
32
+ * format("Hello\nWorld\r\nWindows", CRLF); // "Hello\r\nWorld\r\nWindows"
33
+ * ```
34
+ */
35
+ declare const format: (content: string, eol: typeof EOL) => string;
36
+ export { CRLF, EOL, LF, detect, format };
package/dist/eol.js CHANGED
@@ -1,26 +1,3 @@
1
- import { createRequire as __cjs_createRequire } from "node:module";
2
-
3
- const __cjs_require = __cjs_createRequire(import.meta.url);
4
-
5
- const __cjs_getProcess = typeof globalThis !== "undefined" && typeof globalThis.process !== "undefined" ? globalThis.process : process;
6
-
7
- const {
8
- platform
9
- } = __cjs_getProcess;
10
-
11
- const regDetect = /\r?\n/g;
12
- const LF = "\n";
13
- const CRLF = "\r\n";
14
- const EOL = platform === "win32" ? CRLF : LF;
15
- const detect = (content) => {
16
- const matched = content.match(regDetect);
17
- if (!matched || matched.length === 0) {
18
- return null;
19
- }
20
- const crlf = matched.filter((newline) => newline === CRLF).length;
21
- const lf = matched.length - crlf;
22
- return crlf > lf ? CRLF : LF;
23
- };
24
- const format = (content, eol) => content.replaceAll(regDetect, eol);
25
-
26
- export { CRLF, EOL, LF, detect, format };
1
+ var f=Object.defineProperty;var c=(t,e)=>f(t,"name",{value:e,configurable:!0});import{createRequire as u}from"node:module";const h=u(import.meta.url),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:g}=p;var m=Object.defineProperty,n=c((t,e)=>m(t,"name",{value:e,configurable:!0}),"r");const s=/\r?\n/g,l=`
2
+ `,r=`\r
3
+ `,b=g==="win32"?r:l,j=n(t=>{const e=t.match(s);if(!e||e.length===0)return null;const o=e.filter(i=>i===r).length,a=e.length-o;return o>a?r:l},"detect"),q=n((t,e)=>t.replaceAll(s,e),"format");export{r as CRLF,b as EOL,l as LF,j as detect,q as format};