@sorrell/utilities 1.2.5 → 1.2.6

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 (366) hide show
  1. package/Distribution/PackageExports.Generated.json +132 -0
  2. package/Distribution/Types/Array/Array.Internal.Types.d.cts +43 -0
  3. package/Distribution/Types/Array/Array.Internal.Types.d.cts.map +10 -0
  4. package/Distribution/Types/Array/Array.Internal.Types.d.mts +43 -0
  5. package/Distribution/Types/Array/Array.Internal.Types.d.mts.map +10 -0
  6. package/Distribution/Types/Array/Array.Internal.Types.d.ts +43 -0
  7. package/Distribution/Types/Array/Array.Internal.Types.d.ts.map +1 -0
  8. package/Distribution/Types/Array/Array.Internal.d.cts +16 -0
  9. package/Distribution/Types/Array/Array.Internal.d.cts.map +10 -0
  10. package/Distribution/Types/Array/Array.Internal.d.mts +16 -0
  11. package/Distribution/Types/Array/Array.Internal.d.mts.map +10 -0
  12. package/Distribution/Types/Array/Array.Internal.d.ts +16 -0
  13. package/Distribution/Types/Array/Array.Internal.d.ts.map +1 -0
  14. package/Distribution/Types/Array/Array.Types.d.cts +92 -0
  15. package/Distribution/Types/Array/Array.Types.d.cts.map +10 -0
  16. package/Distribution/Types/Array/Array.Types.d.mts +92 -0
  17. package/Distribution/Types/Array/Array.Types.d.mts.map +10 -0
  18. package/Distribution/Types/Array/Array.Types.d.ts +92 -0
  19. package/Distribution/Types/Array/Array.Types.d.ts.map +1 -0
  20. package/Distribution/Types/Array/Array.d.cts +33 -0
  21. package/Distribution/Types/Array/Array.d.cts.map +10 -0
  22. package/Distribution/Types/Array/Array.d.mts +33 -0
  23. package/Distribution/Types/Array/Array.d.mts.map +10 -0
  24. package/Distribution/Types/Array/Array.d.ts +33 -0
  25. package/Distribution/Types/Array/Array.d.ts.map +1 -0
  26. package/Distribution/Types/Array/index.d.cts +9 -0
  27. package/Distribution/Types/Array/index.d.cts.map +10 -0
  28. package/Distribution/Types/Array/index.d.mts +9 -0
  29. package/Distribution/Types/Array/index.d.mts.map +10 -0
  30. package/Distribution/Types/Array/index.d.ts +9 -0
  31. package/Distribution/Types/Array/index.d.ts.map +1 -0
  32. package/Distribution/Types/Async/Async.Types.d.cts +150 -0
  33. package/Distribution/Types/Async/Async.Types.d.cts.map +10 -0
  34. package/Distribution/Types/Async/Async.Types.d.mts +150 -0
  35. package/Distribution/Types/Async/Async.Types.d.mts.map +10 -0
  36. package/Distribution/Types/Async/Async.Types.d.ts +150 -0
  37. package/Distribution/Types/Async/Async.Types.d.ts.map +1 -0
  38. package/Distribution/Types/Async/Async.d.cts +145 -0
  39. package/Distribution/Types/Async/Async.d.cts.map +10 -0
  40. package/Distribution/Types/Async/Async.d.mts +145 -0
  41. package/Distribution/Types/Async/Async.d.mts.map +10 -0
  42. package/Distribution/Types/Async/Async.d.ts +145 -0
  43. package/Distribution/Types/Async/Async.d.ts.map +1 -0
  44. package/Distribution/Types/Async/index.d.cts +9 -0
  45. package/Distribution/Types/Async/index.d.cts.map +10 -0
  46. package/Distribution/Types/Async/index.d.mts +9 -0
  47. package/Distribution/Types/Async/index.d.mts.map +10 -0
  48. package/Distribution/Types/Async/index.d.ts +9 -0
  49. package/Distribution/Types/Async/index.d.ts.map +1 -0
  50. package/Distribution/Types/Dependency/Dependency.Internal.d.cts +9 -0
  51. package/Distribution/Types/Dependency/Dependency.Internal.d.cts.map +10 -0
  52. package/Distribution/Types/Dependency/Dependency.Internal.d.mts +9 -0
  53. package/Distribution/Types/Dependency/Dependency.Internal.d.mts.map +10 -0
  54. package/Distribution/Types/Dependency/Dependency.Internal.d.ts +9 -0
  55. package/Distribution/Types/Dependency/Dependency.Internal.d.ts.map +1 -0
  56. package/Distribution/Types/Dependency/Dependency.d.cts +65 -0
  57. package/Distribution/Types/Dependency/Dependency.d.cts.map +10 -0
  58. package/Distribution/Types/Dependency/Dependency.d.mts +65 -0
  59. package/Distribution/Types/Dependency/Dependency.d.mts.map +10 -0
  60. package/Distribution/Types/Dependency/Dependency.d.ts +65 -0
  61. package/Distribution/Types/Dependency/Dependency.d.ts.map +1 -0
  62. package/Distribution/Types/Dependency/index.d.cts +13 -0
  63. package/Distribution/Types/Dependency/index.d.cts.map +10 -0
  64. package/Distribution/Types/Dependency/index.d.mts +13 -0
  65. package/Distribution/Types/Dependency/index.d.mts.map +10 -0
  66. package/Distribution/Types/Dependency/index.d.ts +13 -0
  67. package/Distribution/Types/Dependency/index.d.ts.map +1 -0
  68. package/Distribution/Types/Effect/Effect.Types.d.cts +16 -0
  69. package/Distribution/Types/Effect/Effect.Types.d.cts.map +10 -0
  70. package/Distribution/Types/Effect/Effect.Types.d.mts +16 -0
  71. package/Distribution/Types/Effect/Effect.Types.d.mts.map +10 -0
  72. package/Distribution/Types/Effect/Effect.Types.d.ts +16 -0
  73. package/Distribution/Types/Effect/Effect.Types.d.ts.map +1 -0
  74. package/Distribution/Types/Effect/Effect.d.cts +8 -0
  75. package/Distribution/Types/Effect/Effect.d.cts.map +10 -0
  76. package/Distribution/Types/Effect/Effect.d.mts +8 -0
  77. package/Distribution/Types/Effect/Effect.d.mts.map +10 -0
  78. package/Distribution/Types/Effect/Effect.d.ts +8 -0
  79. package/Distribution/Types/Effect/Effect.d.ts.map +1 -0
  80. package/Distribution/Types/Effect/Index.Effect.d.cts +10 -0
  81. package/Distribution/Types/Effect/Index.Effect.d.cts.map +10 -0
  82. package/Distribution/Types/Effect/Index.Effect.d.mts +10 -0
  83. package/Distribution/Types/Effect/Index.Effect.d.mts.map +10 -0
  84. package/Distribution/Types/Effect/Index.Effect.d.ts +10 -0
  85. package/Distribution/Types/Effect/Index.Effect.d.ts.map +1 -0
  86. package/Distribution/Types/Effect/index.d.cts +8 -0
  87. package/Distribution/Types/Effect/index.d.cts.map +10 -0
  88. package/Distribution/Types/Effect/index.d.mts +8 -0
  89. package/Distribution/Types/Effect/index.d.mts.map +10 -0
  90. package/Distribution/Types/Effect/index.d.ts +8 -0
  91. package/Distribution/Types/Effect/index.d.ts.map +1 -0
  92. package/Distribution/Types/FileSystem/FileSystem.Types.d.cts +8 -0
  93. package/Distribution/Types/FileSystem/FileSystem.Types.d.cts.map +10 -0
  94. package/Distribution/Types/FileSystem/FileSystem.Types.d.mts +8 -0
  95. package/Distribution/Types/FileSystem/FileSystem.Types.d.mts.map +10 -0
  96. package/Distribution/Types/FileSystem/FileSystem.Types.d.ts +8 -0
  97. package/Distribution/Types/FileSystem/FileSystem.Types.d.ts.map +1 -0
  98. package/Distribution/Types/FileSystem/FileSystem.d.cts +55 -0
  99. package/Distribution/Types/FileSystem/FileSystem.d.cts.map +10 -0
  100. package/Distribution/Types/FileSystem/FileSystem.d.mts +55 -0
  101. package/Distribution/Types/FileSystem/FileSystem.d.mts.map +10 -0
  102. package/Distribution/Types/FileSystem/FileSystem.d.ts +55 -0
  103. package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -0
  104. package/Distribution/Types/FileSystem/index.d.cts +9 -0
  105. package/Distribution/Types/FileSystem/index.d.cts.map +10 -0
  106. package/Distribution/Types/FileSystem/index.d.mts +9 -0
  107. package/Distribution/Types/FileSystem/index.d.mts.map +10 -0
  108. package/Distribution/Types/FileSystem/index.d.ts +9 -0
  109. package/Distribution/Types/FileSystem/index.d.ts.map +1 -0
  110. package/Distribution/Types/Functional/Functional.Internal.Types.d.cts +9 -0
  111. package/Distribution/Types/Functional/Functional.Internal.Types.d.cts.map +10 -0
  112. package/Distribution/Types/Functional/Functional.Internal.Types.d.mts +9 -0
  113. package/Distribution/Types/Functional/Functional.Internal.Types.d.mts.map +10 -0
  114. package/Distribution/Types/Functional/Functional.Internal.Types.d.ts +9 -0
  115. package/Distribution/Types/Functional/Functional.Internal.Types.d.ts.map +1 -0
  116. package/Distribution/Types/Functional/Functional.Internal.d.cts +8 -0
  117. package/Distribution/Types/Functional/Functional.Internal.d.cts.map +10 -0
  118. package/Distribution/Types/Functional/Functional.Internal.d.mts +8 -0
  119. package/Distribution/Types/Functional/Functional.Internal.d.mts.map +10 -0
  120. package/Distribution/Types/Functional/Functional.Internal.d.ts +8 -0
  121. package/Distribution/Types/Functional/Functional.Internal.d.ts.map +1 -0
  122. package/Distribution/Types/Functional/Functional.Types.d.cts +28 -0
  123. package/Distribution/Types/Functional/Functional.Types.d.cts.map +10 -0
  124. package/Distribution/Types/Functional/Functional.Types.d.mts +28 -0
  125. package/Distribution/Types/Functional/Functional.Types.d.mts.map +10 -0
  126. package/Distribution/Types/Functional/Functional.Types.d.ts +28 -0
  127. package/Distribution/Types/Functional/Functional.Types.d.ts.map +1 -0
  128. package/Distribution/Types/Functional/Functional.d.cts +8 -0
  129. package/Distribution/Types/Functional/Functional.d.cts.map +10 -0
  130. package/Distribution/Types/Functional/Functional.d.mts +8 -0
  131. package/Distribution/Types/Functional/Functional.d.mts.map +10 -0
  132. package/Distribution/Types/Functional/Functional.d.ts +8 -0
  133. package/Distribution/Types/Functional/Functional.d.ts.map +1 -0
  134. package/Distribution/Types/Functional/index.d.cts +9 -0
  135. package/Distribution/Types/Functional/index.d.cts.map +10 -0
  136. package/Distribution/Types/Functional/index.d.mts +9 -0
  137. package/Distribution/Types/Functional/index.d.mts.map +10 -0
  138. package/Distribution/Types/Functional/index.d.ts +9 -0
  139. package/Distribution/Types/Functional/index.d.ts.map +1 -0
  140. package/Distribution/Types/Math/Complex.Internal.d.cts +8 -0
  141. package/Distribution/Types/Math/Complex.Internal.d.cts.map +10 -0
  142. package/Distribution/Types/Math/Complex.Internal.d.mts +8 -0
  143. package/Distribution/Types/Math/Complex.Internal.d.mts.map +10 -0
  144. package/Distribution/Types/Math/Complex.Internal.d.ts +8 -0
  145. package/Distribution/Types/Math/Complex.Internal.d.ts.map +1 -0
  146. package/Distribution/Types/Math/Complex.Types.d.cts +69 -0
  147. package/Distribution/Types/Math/Complex.Types.d.cts.map +10 -0
  148. package/Distribution/Types/Math/Complex.Types.d.mts +69 -0
  149. package/Distribution/Types/Math/Complex.Types.d.mts.map +10 -0
  150. package/Distribution/Types/Math/Complex.Types.d.ts +69 -0
  151. package/Distribution/Types/Math/Complex.Types.d.ts.map +1 -0
  152. package/Distribution/Types/Math/Complex.d.cts +63 -0
  153. package/Distribution/Types/Math/Complex.d.cts.map +10 -0
  154. package/Distribution/Types/Math/Complex.d.mts +63 -0
  155. package/Distribution/Types/Math/Complex.d.mts.map +10 -0
  156. package/Distribution/Types/Math/Complex.d.ts +63 -0
  157. package/Distribution/Types/Math/Complex.d.ts.map +1 -0
  158. package/Distribution/Types/Math/Index.Complex.d.cts +9 -0
  159. package/Distribution/Types/Math/Index.Complex.d.cts.map +10 -0
  160. package/Distribution/Types/Math/Index.Complex.d.mts +9 -0
  161. package/Distribution/Types/Math/Index.Complex.d.mts.map +10 -0
  162. package/Distribution/Types/Math/Index.Complex.d.ts +9 -0
  163. package/Distribution/Types/Math/Index.Complex.d.ts.map +1 -0
  164. package/Distribution/Types/Math/Index.Experimental.d.cts +10 -0
  165. package/Distribution/Types/Math/Index.Experimental.d.cts.map +10 -0
  166. package/Distribution/Types/Math/Index.Experimental.d.mts +10 -0
  167. package/Distribution/Types/Math/Index.Experimental.d.mts.map +10 -0
  168. package/Distribution/Types/Math/Index.Experimental.d.ts +10 -0
  169. package/Distribution/Types/Math/Index.Experimental.d.ts.map +1 -0
  170. package/Distribution/Types/Math/Math.Internal.Types.d.cts +47 -0
  171. package/Distribution/Types/Math/Math.Internal.Types.d.cts.map +10 -0
  172. package/Distribution/Types/Math/Math.Internal.Types.d.mts +47 -0
  173. package/Distribution/Types/Math/Math.Internal.Types.d.mts.map +10 -0
  174. package/Distribution/Types/Math/Math.Internal.Types.d.ts +47 -0
  175. package/Distribution/Types/Math/Math.Internal.Types.d.ts.map +1 -0
  176. package/Distribution/Types/Math/Math.Types.d.cts +98 -0
  177. package/Distribution/Types/Math/Math.Types.d.cts.map +10 -0
  178. package/Distribution/Types/Math/Math.Types.d.mts +98 -0
  179. package/Distribution/Types/Math/Math.Types.d.mts.map +10 -0
  180. package/Distribution/Types/Math/Math.Types.d.ts +98 -0
  181. package/Distribution/Types/Math/Math.Types.d.ts.map +1 -0
  182. package/Distribution/Types/Math/Math.d.cts +8 -0
  183. package/Distribution/Types/Math/Math.d.cts.map +10 -0
  184. package/Distribution/Types/Math/Math.d.mts +8 -0
  185. package/Distribution/Types/Math/Math.d.mts.map +10 -0
  186. package/Distribution/Types/Math/Math.d.ts +8 -0
  187. package/Distribution/Types/Math/Math.d.ts.map +1 -0
  188. package/Distribution/Types/Math/Vector.d.cts +102 -0
  189. package/Distribution/Types/Math/Vector.d.cts.map +10 -0
  190. package/Distribution/Types/Math/Vector.d.mts +102 -0
  191. package/Distribution/Types/Math/Vector.d.mts.map +10 -0
  192. package/Distribution/Types/Math/Vector.d.ts +102 -0
  193. package/Distribution/Types/Math/Vector.d.ts.map +1 -0
  194. package/Distribution/Types/Math/index.d.cts +15 -0
  195. package/Distribution/Types/Math/index.d.cts.map +10 -0
  196. package/Distribution/Types/Math/index.d.mts +15 -0
  197. package/Distribution/Types/Math/index.d.mts.map +10 -0
  198. package/Distribution/Types/Math/index.d.ts +15 -0
  199. package/Distribution/Types/Math/index.d.ts.map +1 -0
  200. package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts +9 -0
  201. package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts.map +10 -0
  202. package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts +9 -0
  203. package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts.map +10 -0
  204. package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts +9 -0
  205. package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts.map +1 -0
  206. package/Distribution/Types/Miscellaneous/Utility.Types.d.cts +104 -0
  207. package/Distribution/Types/Miscellaneous/Utility.Types.d.cts.map +10 -0
  208. package/Distribution/Types/Miscellaneous/Utility.Types.d.mts +104 -0
  209. package/Distribution/Types/Miscellaneous/Utility.Types.d.mts.map +10 -0
  210. package/Distribution/Types/Miscellaneous/Utility.Types.d.ts +104 -0
  211. package/Distribution/Types/Miscellaneous/Utility.Types.d.ts.map +1 -0
  212. package/Distribution/Types/Miscellaneous/index.d.cts +8 -0
  213. package/Distribution/Types/Miscellaneous/index.d.cts.map +10 -0
  214. package/Distribution/Types/Miscellaneous/index.d.mts +8 -0
  215. package/Distribution/Types/Miscellaneous/index.d.mts.map +10 -0
  216. package/Distribution/Types/Miscellaneous/index.d.ts +8 -0
  217. package/Distribution/Types/Miscellaneous/index.d.ts.map +1 -0
  218. package/Distribution/Types/Npm/Index.Effect.d.cts +9 -0
  219. package/Distribution/Types/Npm/Index.Effect.d.cts.map +10 -0
  220. package/Distribution/Types/Npm/Index.Effect.d.mts +9 -0
  221. package/Distribution/Types/Npm/Index.Effect.d.mts.map +10 -0
  222. package/Distribution/Types/Npm/Index.Effect.d.ts +9 -0
  223. package/Distribution/Types/Npm/Index.Effect.d.ts.map +1 -0
  224. package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts +17 -0
  225. package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts.map +10 -0
  226. package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts +17 -0
  227. package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts.map +10 -0
  228. package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts +17 -0
  229. package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts.map +1 -0
  230. package/Distribution/Types/Npm/Npm.Effect.Types.d.cts +12 -0
  231. package/Distribution/Types/Npm/Npm.Effect.Types.d.cts.map +10 -0
  232. package/Distribution/Types/Npm/Npm.Effect.Types.d.mts +12 -0
  233. package/Distribution/Types/Npm/Npm.Effect.Types.d.mts.map +10 -0
  234. package/Distribution/Types/Npm/Npm.Effect.Types.d.ts +12 -0
  235. package/Distribution/Types/Npm/Npm.Effect.Types.d.ts.map +1 -0
  236. package/Distribution/Types/Npm/Npm.Effect.d.cts +92 -0
  237. package/Distribution/Types/Npm/Npm.Effect.d.cts.map +10 -0
  238. package/Distribution/Types/Npm/Npm.Effect.d.mts +92 -0
  239. package/Distribution/Types/Npm/Npm.Effect.d.mts.map +10 -0
  240. package/Distribution/Types/Npm/Npm.Effect.d.ts +92 -0
  241. package/Distribution/Types/Npm/Npm.Effect.d.ts.map +1 -0
  242. package/Distribution/Types/Npm/Npm.Error.d.cts +36 -0
  243. package/Distribution/Types/Npm/Npm.Error.d.cts.map +10 -0
  244. package/Distribution/Types/Npm/Npm.Error.d.mts +36 -0
  245. package/Distribution/Types/Npm/Npm.Error.d.mts.map +10 -0
  246. package/Distribution/Types/Npm/Npm.Error.d.ts +36 -0
  247. package/Distribution/Types/Npm/Npm.Error.d.ts.map +1 -0
  248. package/Distribution/Types/Npm/Npm.d.cts +91 -0
  249. package/Distribution/Types/Npm/Npm.d.cts.map +10 -0
  250. package/Distribution/Types/Npm/Npm.d.mts +91 -0
  251. package/Distribution/Types/Npm/Npm.d.mts.map +10 -0
  252. package/Distribution/Types/Npm/Npm.d.ts +91 -0
  253. package/Distribution/Types/Npm/Npm.d.ts.map +1 -0
  254. package/Distribution/Types/Npm/index.d.cts +15 -0
  255. package/Distribution/Types/Npm/index.d.cts.map +10 -0
  256. package/Distribution/Types/Npm/index.d.mts +15 -0
  257. package/Distribution/Types/Npm/index.d.mts.map +10 -0
  258. package/Distribution/Types/Npm/index.d.ts +15 -0
  259. package/Distribution/Types/Npm/index.d.ts.map +1 -0
  260. package/Distribution/Types/Path/Path.d.cts +17 -0
  261. package/Distribution/Types/Path/Path.d.cts.map +10 -0
  262. package/Distribution/Types/Path/Path.d.mts +17 -0
  263. package/Distribution/Types/Path/Path.d.mts.map +10 -0
  264. package/Distribution/Types/Path/Path.d.ts +17 -0
  265. package/Distribution/Types/Path/Path.d.ts.map +1 -0
  266. package/Distribution/Types/Path/index.d.cts +8 -0
  267. package/Distribution/Types/Path/index.d.cts.map +10 -0
  268. package/Distribution/Types/Path/index.d.mts +8 -0
  269. package/Distribution/Types/Path/index.d.mts.map +10 -0
  270. package/Distribution/Types/Path/index.d.ts +8 -0
  271. package/Distribution/Types/Path/index.d.ts.map +1 -0
  272. package/Distribution/Types/Record/Record.Internal.Types.d.cts +32 -0
  273. package/Distribution/Types/Record/Record.Internal.Types.d.cts.map +10 -0
  274. package/Distribution/Types/Record/Record.Internal.Types.d.mts +32 -0
  275. package/Distribution/Types/Record/Record.Internal.Types.d.mts.map +10 -0
  276. package/Distribution/Types/Record/Record.Internal.Types.d.ts +32 -0
  277. package/Distribution/Types/Record/Record.Internal.Types.d.ts.map +1 -0
  278. package/Distribution/Types/Record/Record.Types.d.cts +78 -0
  279. package/Distribution/Types/Record/Record.Types.d.cts.map +10 -0
  280. package/Distribution/Types/Record/Record.Types.d.mts +78 -0
  281. package/Distribution/Types/Record/Record.Types.d.mts.map +10 -0
  282. package/Distribution/Types/Record/Record.Types.d.ts +78 -0
  283. package/Distribution/Types/Record/Record.Types.d.ts.map +1 -0
  284. package/Distribution/Types/Record/Record.d.cts +63 -0
  285. package/Distribution/Types/Record/Record.d.cts.map +10 -0
  286. package/Distribution/Types/Record/Record.d.mts +63 -0
  287. package/Distribution/Types/Record/Record.d.mts.map +10 -0
  288. package/Distribution/Types/Record/Record.d.ts +63 -0
  289. package/Distribution/Types/Record/Record.d.ts.map +1 -0
  290. package/Distribution/Types/Record/index.d.cts +9 -0
  291. package/Distribution/Types/Record/index.d.cts.map +10 -0
  292. package/Distribution/Types/Record/index.d.mts +9 -0
  293. package/Distribution/Types/Record/index.d.mts.map +10 -0
  294. package/Distribution/Types/Record/index.d.ts +9 -0
  295. package/Distribution/Types/Record/index.d.ts.map +1 -0
  296. package/Distribution/Types/String/String.d.cts +28 -0
  297. package/Distribution/Types/String/String.d.cts.map +10 -0
  298. package/Distribution/Types/String/String.d.mts +28 -0
  299. package/Distribution/Types/String/String.d.mts.map +10 -0
  300. package/Distribution/Types/String/String.d.ts +28 -0
  301. package/Distribution/Types/String/String.d.ts.map +1 -0
  302. package/Distribution/Types/String/index.d.cts +8 -0
  303. package/Distribution/Types/String/index.d.cts.map +10 -0
  304. package/Distribution/Types/String/index.d.mts +8 -0
  305. package/Distribution/Types/String/index.d.mts.map +10 -0
  306. package/Distribution/Types/String/index.d.ts +8 -0
  307. package/Distribution/Types/String/index.d.ts.map +1 -0
  308. package/Distribution/Types/index.d.cts +24 -0
  309. package/Distribution/Types/index.d.cts.map +10 -0
  310. package/Distribution/Types/index.d.mts +24 -0
  311. package/Distribution/Types/index.d.mts.map +10 -0
  312. package/Distribution/Types/index.d.ts +24 -0
  313. package/Distribution/Types/index.d.ts.map +1 -0
  314. package/Distribution/array.cjs +51 -0
  315. package/Distribution/array.cjs.map +7 -0
  316. package/Distribution/array.js +28 -0
  317. package/Distribution/array.js.map +7 -0
  318. package/Distribution/async.cjs +174 -0
  319. package/Distribution/async.cjs.map +7 -0
  320. package/Distribution/async.js +151 -0
  321. package/Distribution/async.js.map +7 -0
  322. package/Distribution/complex.cjs +97 -0
  323. package/Distribution/complex.cjs.map +7 -0
  324. package/Distribution/complex.js +74 -0
  325. package/Distribution/complex.js.map +7 -0
  326. package/Distribution/effect.cjs +63 -0
  327. package/Distribution/effect.cjs.map +7 -0
  328. package/Distribution/effect.js +58 -0
  329. package/Distribution/effect.js.map +7 -0
  330. package/Distribution/fs.cjs +128 -0
  331. package/Distribution/fs.cjs.map +7 -0
  332. package/Distribution/fs.js +95 -0
  333. package/Distribution/fs.js.map +7 -0
  334. package/Distribution/functional.cjs +49 -0
  335. package/Distribution/functional.cjs.map +7 -0
  336. package/Distribution/functional.js +26 -0
  337. package/Distribution/functional.js.map +7 -0
  338. package/Distribution/index.cjs +701 -0
  339. package/Distribution/index.cjs.map +7 -0
  340. package/Distribution/index.js +674 -0
  341. package/Distribution/index.js.map +7 -0
  342. package/Distribution/math.cjs +243 -0
  343. package/Distribution/math.cjs.map +7 -0
  344. package/Distribution/math.js +226 -0
  345. package/Distribution/math.js.map +7 -0
  346. package/Distribution/misc.cjs +45 -0
  347. package/Distribution/misc.cjs.map +7 -0
  348. package/Distribution/misc.js +22 -0
  349. package/Distribution/misc.js.map +7 -0
  350. package/Distribution/npm-effect.cjs +130 -0
  351. package/Distribution/npm-effect.cjs.map +7 -0
  352. package/Distribution/npm-effect.js +97 -0
  353. package/Distribution/npm-effect.js.map +7 -0
  354. package/Distribution/npm.cjs +106 -0
  355. package/Distribution/npm.cjs.map +7 -0
  356. package/Distribution/npm.js +73 -0
  357. package/Distribution/npm.js.map +7 -0
  358. package/Distribution/path.cjs +63 -0
  359. package/Distribution/path.cjs.map +7 -0
  360. package/Distribution/path.js +40 -0
  361. package/Distribution/path.js.map +7 -0
  362. package/Distribution/record.cjs +116 -0
  363. package/Distribution/record.cjs.map +7 -0
  364. package/Distribution/record.js +93 -0
  365. package/Distribution/record.js.map +7 -0
  366. package/package.json +11 -1
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // Source/Effect/index.ts
22
+ var Effect_exports = {};
23
+ __export(Effect_exports, {
24
+ Effect: () => Index_Effect_exports
25
+ });
26
+ module.exports = __toCommonJS(Effect_exports);
27
+
28
+ // Source/Effect/Index.Effect.ts
29
+ var Index_Effect_exports = {};
30
+ __export(Index_Effect_exports, {
31
+ FooEffect: () => FooEffect
32
+ });
33
+
34
+ // Source/Effect/Effect.ts
35
+ var FooEffect = "";
36
+
37
+ // Source/Effect/Index.Effect.ts
38
+ __reExport(Index_Effect_exports, require("effect"));
39
+ /**
40
+ * @file Effect.ts
41
+ * @author Gage Sorrell <gage@sorrell.sh>
42
+ * @copyright (c) 2026 Gage Sorrell
43
+ * @license MIT
44
+ */
45
+ /**
46
+ * @file Effect.Types.ts
47
+ * @author Gage Sorrell <gage@sorrell.sh>
48
+ * @copyright (c) 2026 Gage Sorrell
49
+ * @license MIT
50
+ */
51
+ /**
52
+ * @file Index.Effect.ts
53
+ * @author Gage Sorrell <gage@sorrell.sh>
54
+ * @copyright (c) 2026 Gage Sorrell
55
+ * @license MIT
56
+ */
57
+ /**
58
+ * @file index.ts
59
+ * @author Gage Sorrell <gage@sorrell.sh>
60
+ * @copyright (c) 2026 Gage Sorrell
61
+ * @license MIT
62
+ */
63
+ //# sourceMappingURL=effect.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/Effect/index.ts", "../Source/Effect/Index.Effect.ts", "../Source/Effect/Effect.ts"],
4
+ "sourcesContent": ["/**\n * @file index.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * as Effect from \"./Index.Effect.ts\";\n", "/**\n * @file Index.Effect.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./Effect.ts\";\nexport * from \"./Effect.Types.ts\";\nexport * from \"effect\";\n", "/**\n * @file Effect.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport const FooEffect: string = \"\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,YAAoB;;;ADEjC,iCAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,58 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+
19
+ // Source/Effect/Index.Effect.ts
20
+ var Index_Effect_exports = {};
21
+ __export(Index_Effect_exports, {
22
+ FooEffect: () => FooEffect
23
+ });
24
+
25
+ // Source/Effect/Effect.ts
26
+ var FooEffect = "";
27
+
28
+ // Source/Effect/Index.Effect.ts
29
+ __reExport(Index_Effect_exports, effect_star);
30
+ import * as effect_star from "effect";
31
+ export {
32
+ Index_Effect_exports as Effect
33
+ };
34
+ /**
35
+ * @file Effect.ts
36
+ * @author Gage Sorrell <gage@sorrell.sh>
37
+ * @copyright (c) 2026 Gage Sorrell
38
+ * @license MIT
39
+ */
40
+ /**
41
+ * @file Effect.Types.ts
42
+ * @author Gage Sorrell <gage@sorrell.sh>
43
+ * @copyright (c) 2026 Gage Sorrell
44
+ * @license MIT
45
+ */
46
+ /**
47
+ * @file Index.Effect.ts
48
+ * @author Gage Sorrell <gage@sorrell.sh>
49
+ * @copyright (c) 2026 Gage Sorrell
50
+ * @license MIT
51
+ */
52
+ /**
53
+ * @file index.ts
54
+ * @author Gage Sorrell <gage@sorrell.sh>
55
+ * @copyright (c) 2026 Gage Sorrell
56
+ * @license MIT
57
+ */
58
+ //# sourceMappingURL=effect.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/Effect/Index.Effect.ts", "../Source/Effect/Effect.ts"],
4
+ "sourcesContent": ["/**\n * @file Index.Effect.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./Effect.ts\";\nexport * from \"./Effect.Types.ts\";\nexport * from \"effect\";\n", "/**\n * @file Effect.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport const FooEffect: string = \"\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,YAAoB;;;ADEjC;AAAA,6BAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // Source/FileSystem/index.ts
31
+ var FileSystem_exports = {};
32
+ __export(FileSystem_exports, {
33
+ GetSafeNewPath: () => GetSafeNewPath,
34
+ IsSupportedFileExtension: () => IsSupportedFileExtension,
35
+ IsValidFileName: () => IsValidFileName,
36
+ WriteTextFile: () => WriteTextFile
37
+ });
38
+ module.exports = __toCommonJS(FileSystem_exports);
39
+
40
+ // Source/FileSystem/FileSystem.ts
41
+ var import_path = require("path");
42
+ var import_fs = require("fs");
43
+ var import_fs2 = require("fs");
44
+ var import_os = __toESM(require("os"), 1);
45
+ async function PathExists(Path) {
46
+ try {
47
+ await import_fs.promises.access(Path, import_fs2.constants.F_OK);
48
+ return true;
49
+ } catch {
50
+ return false;
51
+ }
52
+ }
53
+ function IsSupportedFileExtension(Extension) {
54
+ let NormalizedExtension = Extension.slice(1);
55
+ if (NormalizedExtension.startsWith(".")) {
56
+ NormalizedExtension = NormalizedExtension.slice(1);
57
+ }
58
+ if (NormalizedExtension.length === 0) {
59
+ return false;
60
+ }
61
+ if (NormalizedExtension.includes("/") || NormalizedExtension.includes("\\") || NormalizedExtension.includes("\0")) {
62
+ return false;
63
+ }
64
+ if (import_os.default.platform() === "win32") {
65
+ const HasIllegalCharacters = /[<>:"/\\|?*\x00-\x1F]/u.test(NormalizedExtension);
66
+ if (HasIllegalCharacters) {
67
+ return false;
68
+ }
69
+ if (/[ .]$/u.test(NormalizedExtension)) {
70
+ return false;
71
+ }
72
+ }
73
+ return true;
74
+ }
75
+ async function GetSafeNewPath(InPath) {
76
+ const DirectoryPath = (0, import_path.dirname)(InPath);
77
+ const Extension = (0, import_path.extname)(InPath);
78
+ const FileName = (0, import_path.basename)(InPath);
79
+ const BaseFileName = Extension === "" ? FileName : (0, import_path.basename)(InPath, Extension);
80
+ let CandidatePath = InPath;
81
+ let Index = 1;
82
+ while (await PathExists(CandidatePath)) {
83
+ const CandidateFileName = `${BaseFileName} (${Index})${Extension}`;
84
+ CandidatePath = (0, import_path.join)(DirectoryPath, CandidateFileName);
85
+ Index++;
86
+ }
87
+ return CandidatePath;
88
+ }
89
+ async function IsValidFileName(DirectoryPath, FileName, PersistNewFile = false, Extension = void 0) {
90
+ const ExtensionSafe = Extension !== void 0 ? Extension.startsWith(".") && IsSupportedFileExtension(Extension) ? Extension : null : "";
91
+ const IsExtensionImproper = ExtensionSafe === null || ExtensionSafe === "." || !FileName.endsWith(ExtensionSafe);
92
+ if (IsExtensionImproper) {
93
+ return false;
94
+ }
95
+ const FilePath = (0, import_path.join)(DirectoryPath, FileName);
96
+ try {
97
+ const ThisFileHandle = await import_fs.promises.open(FilePath, "wx");
98
+ await ThisFileHandle.close();
99
+ if (!PersistNewFile) {
100
+ await import_fs.promises.unlink(FilePath);
101
+ }
102
+ return true;
103
+ } catch {
104
+ return false;
105
+ }
106
+ }
107
+ async function WriteTextFile(Path, Contents) {
108
+ await import_fs.promises.writeFile(Path, Contents, { encoding: "utf-8" });
109
+ }
110
+ /**
111
+ * @file FileSystem.ts
112
+ * @author Gage Sorrell <gage@sorrell.sh>
113
+ * @copyright (c) 2026 Gage Sorrell
114
+ * @license MIT
115
+ */
116
+ /**
117
+ * @file FileSystem.Types.ts
118
+ * @author Gage Sorrell <gage@sorrell.sh>
119
+ * @copyright (c) 2026 Gage Sorrell
120
+ * @license MIT
121
+ */
122
+ /**
123
+ * @file index.ts
124
+ * @author Gage Sorrell <gage@sorrell.sh>
125
+ * @copyright (c) 2026 Gage Sorrell
126
+ * @license MIT
127
+ */
128
+ //# sourceMappingURL=fs.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/FileSystem/index.ts", "../Source/FileSystem/FileSystem.ts"],
4
+ "sourcesContent": ["/**\n * @file index.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./FileSystem.ts\";\nexport * from \"./FileSystem.Types.ts\";\n", "/**\n * @file FileSystem.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nimport { basename, dirname, extname, join } from \"path\";\nimport { type FFileExtension } from \"./FileSystem.Types.ts\";\nimport { type FileHandle } from \"fs/promises\";\nimport { promises as Fs } from \"fs\";\nimport { constants as FsConstants } from \"fs\";\nimport os from \"os\";\nasync function PathExists(Path: string): Promise<boolean> {\n try {\n await Fs.access(Path, FsConstants.F_OK);\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * @param Extension - The file extension that you wish to test.\n * @returns Whether the file extension is valid on the current platform.\n */\nexport function IsSupportedFileExtension(Extension: FFileExtension): boolean {\n let NormalizedExtension: string = Extension.slice(1);\n if (NormalizedExtension.startsWith(\".\")) {\n NormalizedExtension = NormalizedExtension.slice(1);\n }\n if (NormalizedExtension.length === 0) {\n return false;\n }\n if (NormalizedExtension.includes(\"/\")\n || NormalizedExtension.includes(\"\\\\\")\n || NormalizedExtension.includes(\"\\0\")) {\n return false;\n }\n if (os.platform() === \"win32\") {\n /* eslint-disable-next-line no-control-regex */\n const HasIllegalCharacters: boolean = /[<>:\"/\\\\|?*\\x00-\\x1F]/u.test(NormalizedExtension);\n if (HasIllegalCharacters) {\n return false;\n }\n if (/[ .]$/u.test(NormalizedExtension)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Given a path at which we wish to create a new file, check if a file at that\n * path already exists, and if so, then append `(${ number })` before the file\n * extension, consistent with the Windows Explorer handles conflicting file\n * names when pasting files.\n */\nexport async function GetSafeNewPath(InPath: string): Promise<string> {\n const DirectoryPath: string = dirname(InPath);\n const Extension: string = extname(InPath);\n const FileName: string = basename(InPath);\n const BaseFileName: string = Extension === \"\"\n ? FileName\n : basename(InPath, Extension);\n let CandidatePath: string = InPath;\n let Index: number = 1;\n while (await PathExists(CandidatePath)) {\n const CandidateFileName: string = `${BaseFileName} (${Index})${Extension}`;\n CandidatePath = join(DirectoryPath, CandidateFileName);\n Index++;\n }\n return CandidatePath;\n}\n/**\n * @param DirectoryPath - The path to the directory in which you wish to check.\n * @param FileName - The desired file name.\n * @param PersistNewFile - *(Optional)* Whether to keep the otherwise-temporary\n * file created at the desired path.\n * @param Extension - *(Optional)* If provided, the function will only return `true`\n * if `FileName.endsWith(Extension)` *and* the `Extension` is a valid\n * file extension.\n * @returns Whether a file of the given `FileName` can be created in `DirectoryPath`.\n *\n * @remarks This *does* attempt to create a file at the desired path. The file is\n * temporary iff `!PersistNewFile`, and is never created when this function\n * returns `false`.\n */\nexport async function IsValidFileName(DirectoryPath: string, FileName: string, PersistNewFile: boolean = false, Extension: FFileExtension | undefined = undefined): Promise<boolean> {\n const ExtensionSafe: FFileExtension | null | \"\" = Extension !== undefined\n ? (Extension.startsWith(\".\") && IsSupportedFileExtension(Extension))\n ? Extension\n : null\n : \"\";\n const IsExtensionImproper: boolean = (ExtensionSafe === null ||\n ExtensionSafe === \".\" ||\n !FileName.endsWith(ExtensionSafe));\n if (IsExtensionImproper) {\n return false;\n }\n const FilePath: string = join(DirectoryPath, FileName);\n try {\n const ThisFileHandle: FileHandle = await Fs.open(FilePath, \"wx\");\n await ThisFileHandle.close();\n if (!PersistNewFile) {\n await Fs.unlink(FilePath);\n }\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Write a text file to a given {@link Path} having contents {@link Contents}.\n *\n * @param Path - The path of the file that will be written.\n * @param Contents - The text contents of the file to write.\n *\n * @returns {Promise<void>} A {@link Promise} that resolves when the call to {@link Fs.writeFile} resolves.\n *\n * @example\n * ```typescript\n * import { WriteTextFile } from \"@sorrell/utilities/fs\";\n * import { resolve } from \"path\";\n *\n * const MyReadMe: string = \"# ReadMe\\n\\nThis package accomplishes...\\n\";\n * const MyReadMePath: string = resolve(\".\");\n *\n * await WriteTextFile(MyReadMePath, MyReadMe);\n * ```\n */\nexport async function WriteTextFile(Path: string, Contents: string): Promise<void> {\n await Fs.writeFile(Path, Contents, { encoding: \"utf-8\" });\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,kBAAiD;AAGjD,gBAA+B;AAC/B,IAAAA,aAAyC;AACzC,gBAAe;AACf,eAAe,WAAW,MAAgC;AACtD,MAAI;AACA,UAAM,UAAAC,SAAG,OAAO,MAAM,WAAAC,UAAY,IAAI;AACtC,WAAO;AAAA,EACX,QACM;AACF,WAAO;AAAA,EACX;AACJ;AAKO,SAAS,yBAAyB,WAAoC;AACzE,MAAI,sBAA8B,UAAU,MAAM,CAAC;AACnD,MAAI,oBAAoB,WAAW,GAAG,GAAG;AACrC,0BAAsB,oBAAoB,MAAM,CAAC;AAAA,EACrD;AACA,MAAI,oBAAoB,WAAW,GAAG;AAClC,WAAO;AAAA,EACX;AACA,MAAI,oBAAoB,SAAS,GAAG,KAC7B,oBAAoB,SAAS,IAAI,KACjC,oBAAoB,SAAS,IAAI,GAAG;AACvC,WAAO;AAAA,EACX;AACA,MAAI,UAAAC,QAAG,SAAS,MAAM,SAAS;AAE3B,UAAM,uBAAgC,yBAAyB,KAAK,mBAAmB;AACvF,QAAI,sBAAsB;AACtB,aAAO;AAAA,IACX;AACA,QAAI,SAAS,KAAK,mBAAmB,GAAG;AACpC,aAAO;AAAA,IACX;AAAA,EACJ;AACA,SAAO;AACX;AAOA,eAAsB,eAAe,QAAiC;AAClE,QAAM,oBAAwB,qBAAQ,MAAM;AAC5C,QAAM,gBAAoB,qBAAQ,MAAM;AACxC,QAAM,eAAmB,sBAAS,MAAM;AACxC,QAAM,eAAuB,cAAc,KACrC,eACA,sBAAS,QAAQ,SAAS;AAChC,MAAI,gBAAwB;AAC5B,MAAI,QAAgB;AACpB,SAAO,MAAM,WAAW,aAAa,GAAG;AACpC,UAAM,oBAA4B,GAAG,YAAY,KAAK,KAAK,IAAI,SAAS;AACxE,wBAAgB,kBAAK,eAAe,iBAAiB;AACrD;AAAA,EACJ;AACA,SAAO;AACX;AAeA,eAAsB,gBAAgB,eAAuB,UAAkB,iBAA0B,OAAO,YAAwC,QAA6B;AACjL,QAAM,gBAA4C,cAAc,SACzD,UAAU,WAAW,GAAG,KAAK,yBAAyB,SAAS,IAC5D,YACA,OACJ;AACN,QAAM,sBAAgC,kBAAkB,QACpD,kBAAkB,OAClB,CAAC,SAAS,SAAS,aAAa;AACpC,MAAI,qBAAqB;AACrB,WAAO;AAAA,EACX;AACA,QAAM,eAAmB,kBAAK,eAAe,QAAQ;AACrD,MAAI;AACA,UAAM,iBAA6B,MAAM,UAAAF,SAAG,KAAK,UAAU,IAAI;AAC/D,UAAM,eAAe,MAAM;AAC3B,QAAI,CAAC,gBAAgB;AACjB,YAAM,UAAAA,SAAG,OAAO,QAAQ;AAAA,IAC5B;AACA,WAAO;AAAA,EACX,QACM;AACF,WAAO;AAAA,EACX;AACJ;AAoBA,eAAsB,cAAc,MAAc,UAAiC;AAC/E,QAAM,UAAAA,SAAG,UAAU,MAAM,UAAU,EAAE,UAAU,QAAQ,CAAC;AAC5D;",
6
+ "names": ["import_fs", "Fs", "FsConstants", "os"]
7
+ }
@@ -0,0 +1,95 @@
1
+ // Source/FileSystem/FileSystem.ts
2
+ import { basename, dirname, extname, join } from "path";
3
+ import { promises as Fs } from "fs";
4
+ import { constants as FsConstants } from "fs";
5
+ import os from "os";
6
+ async function PathExists(Path) {
7
+ try {
8
+ await Fs.access(Path, FsConstants.F_OK);
9
+ return true;
10
+ } catch {
11
+ return false;
12
+ }
13
+ }
14
+ function IsSupportedFileExtension(Extension) {
15
+ let NormalizedExtension = Extension.slice(1);
16
+ if (NormalizedExtension.startsWith(".")) {
17
+ NormalizedExtension = NormalizedExtension.slice(1);
18
+ }
19
+ if (NormalizedExtension.length === 0) {
20
+ return false;
21
+ }
22
+ if (NormalizedExtension.includes("/") || NormalizedExtension.includes("\\") || NormalizedExtension.includes("\0")) {
23
+ return false;
24
+ }
25
+ if (os.platform() === "win32") {
26
+ const HasIllegalCharacters = /[<>:"/\\|?*\x00-\x1F]/u.test(NormalizedExtension);
27
+ if (HasIllegalCharacters) {
28
+ return false;
29
+ }
30
+ if (/[ .]$/u.test(NormalizedExtension)) {
31
+ return false;
32
+ }
33
+ }
34
+ return true;
35
+ }
36
+ async function GetSafeNewPath(InPath) {
37
+ const DirectoryPath = dirname(InPath);
38
+ const Extension = extname(InPath);
39
+ const FileName = basename(InPath);
40
+ const BaseFileName = Extension === "" ? FileName : basename(InPath, Extension);
41
+ let CandidatePath = InPath;
42
+ let Index = 1;
43
+ while (await PathExists(CandidatePath)) {
44
+ const CandidateFileName = `${BaseFileName} (${Index})${Extension}`;
45
+ CandidatePath = join(DirectoryPath, CandidateFileName);
46
+ Index++;
47
+ }
48
+ return CandidatePath;
49
+ }
50
+ async function IsValidFileName(DirectoryPath, FileName, PersistNewFile = false, Extension = void 0) {
51
+ const ExtensionSafe = Extension !== void 0 ? Extension.startsWith(".") && IsSupportedFileExtension(Extension) ? Extension : null : "";
52
+ const IsExtensionImproper = ExtensionSafe === null || ExtensionSafe === "." || !FileName.endsWith(ExtensionSafe);
53
+ if (IsExtensionImproper) {
54
+ return false;
55
+ }
56
+ const FilePath = join(DirectoryPath, FileName);
57
+ try {
58
+ const ThisFileHandle = await Fs.open(FilePath, "wx");
59
+ await ThisFileHandle.close();
60
+ if (!PersistNewFile) {
61
+ await Fs.unlink(FilePath);
62
+ }
63
+ return true;
64
+ } catch {
65
+ return false;
66
+ }
67
+ }
68
+ async function WriteTextFile(Path, Contents) {
69
+ await Fs.writeFile(Path, Contents, { encoding: "utf-8" });
70
+ }
71
+ export {
72
+ GetSafeNewPath,
73
+ IsSupportedFileExtension,
74
+ IsValidFileName,
75
+ WriteTextFile
76
+ };
77
+ /**
78
+ * @file FileSystem.ts
79
+ * @author Gage Sorrell <gage@sorrell.sh>
80
+ * @copyright (c) 2026 Gage Sorrell
81
+ * @license MIT
82
+ */
83
+ /**
84
+ * @file FileSystem.Types.ts
85
+ * @author Gage Sorrell <gage@sorrell.sh>
86
+ * @copyright (c) 2026 Gage Sorrell
87
+ * @license MIT
88
+ */
89
+ /**
90
+ * @file index.ts
91
+ * @author Gage Sorrell <gage@sorrell.sh>
92
+ * @copyright (c) 2026 Gage Sorrell
93
+ * @license MIT
94
+ */
95
+ //# sourceMappingURL=fs.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/FileSystem/FileSystem.ts"],
4
+ "sourcesContent": ["/**\n * @file FileSystem.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nimport { basename, dirname, extname, join } from \"path\";\nimport { type FFileExtension } from \"./FileSystem.Types.ts\";\nimport { type FileHandle } from \"fs/promises\";\nimport { promises as Fs } from \"fs\";\nimport { constants as FsConstants } from \"fs\";\nimport os from \"os\";\nasync function PathExists(Path: string): Promise<boolean> {\n try {\n await Fs.access(Path, FsConstants.F_OK);\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * @param Extension - The file extension that you wish to test.\n * @returns Whether the file extension is valid on the current platform.\n */\nexport function IsSupportedFileExtension(Extension: FFileExtension): boolean {\n let NormalizedExtension: string = Extension.slice(1);\n if (NormalizedExtension.startsWith(\".\")) {\n NormalizedExtension = NormalizedExtension.slice(1);\n }\n if (NormalizedExtension.length === 0) {\n return false;\n }\n if (NormalizedExtension.includes(\"/\")\n || NormalizedExtension.includes(\"\\\\\")\n || NormalizedExtension.includes(\"\\0\")) {\n return false;\n }\n if (os.platform() === \"win32\") {\n /* eslint-disable-next-line no-control-regex */\n const HasIllegalCharacters: boolean = /[<>:\"/\\\\|?*\\x00-\\x1F]/u.test(NormalizedExtension);\n if (HasIllegalCharacters) {\n return false;\n }\n if (/[ .]$/u.test(NormalizedExtension)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Given a path at which we wish to create a new file, check if a file at that\n * path already exists, and if so, then append `(${ number })` before the file\n * extension, consistent with the Windows Explorer handles conflicting file\n * names when pasting files.\n */\nexport async function GetSafeNewPath(InPath: string): Promise<string> {\n const DirectoryPath: string = dirname(InPath);\n const Extension: string = extname(InPath);\n const FileName: string = basename(InPath);\n const BaseFileName: string = Extension === \"\"\n ? FileName\n : basename(InPath, Extension);\n let CandidatePath: string = InPath;\n let Index: number = 1;\n while (await PathExists(CandidatePath)) {\n const CandidateFileName: string = `${BaseFileName} (${Index})${Extension}`;\n CandidatePath = join(DirectoryPath, CandidateFileName);\n Index++;\n }\n return CandidatePath;\n}\n/**\n * @param DirectoryPath - The path to the directory in which you wish to check.\n * @param FileName - The desired file name.\n * @param PersistNewFile - *(Optional)* Whether to keep the otherwise-temporary\n * file created at the desired path.\n * @param Extension - *(Optional)* If provided, the function will only return `true`\n * if `FileName.endsWith(Extension)` *and* the `Extension` is a valid\n * file extension.\n * @returns Whether a file of the given `FileName` can be created in `DirectoryPath`.\n *\n * @remarks This *does* attempt to create a file at the desired path. The file is\n * temporary iff `!PersistNewFile`, and is never created when this function\n * returns `false`.\n */\nexport async function IsValidFileName(DirectoryPath: string, FileName: string, PersistNewFile: boolean = false, Extension: FFileExtension | undefined = undefined): Promise<boolean> {\n const ExtensionSafe: FFileExtension | null | \"\" = Extension !== undefined\n ? (Extension.startsWith(\".\") && IsSupportedFileExtension(Extension))\n ? Extension\n : null\n : \"\";\n const IsExtensionImproper: boolean = (ExtensionSafe === null ||\n ExtensionSafe === \".\" ||\n !FileName.endsWith(ExtensionSafe));\n if (IsExtensionImproper) {\n return false;\n }\n const FilePath: string = join(DirectoryPath, FileName);\n try {\n const ThisFileHandle: FileHandle = await Fs.open(FilePath, \"wx\");\n await ThisFileHandle.close();\n if (!PersistNewFile) {\n await Fs.unlink(FilePath);\n }\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Write a text file to a given {@link Path} having contents {@link Contents}.\n *\n * @param Path - The path of the file that will be written.\n * @param Contents - The text contents of the file to write.\n *\n * @returns {Promise<void>} A {@link Promise} that resolves when the call to {@link Fs.writeFile} resolves.\n *\n * @example\n * ```typescript\n * import { WriteTextFile } from \"@sorrell/utilities/fs\";\n * import { resolve } from \"path\";\n *\n * const MyReadMe: string = \"# ReadMe\\n\\nThis package accomplishes...\\n\";\n * const MyReadMePath: string = resolve(\".\");\n *\n * await WriteTextFile(MyReadMePath, MyReadMe);\n * ```\n */\nexport async function WriteTextFile(Path: string, Contents: string): Promise<void> {\n await Fs.writeFile(Path, Contents, { encoding: \"utf-8\" });\n}\n"],
5
+ "mappings": ";AAMA,SAAS,UAAU,SAAS,SAAS,YAAY;AAGjD,SAAS,YAAY,UAAU;AAC/B,SAAS,aAAa,mBAAmB;AACzC,OAAO,QAAQ;AACf,eAAe,WAAW,MAAgC;AACtD,MAAI;AACA,UAAM,GAAG,OAAO,MAAM,YAAY,IAAI;AACtC,WAAO;AAAA,EACX,QACM;AACF,WAAO;AAAA,EACX;AACJ;AAKO,SAAS,yBAAyB,WAAoC;AACzE,MAAI,sBAA8B,UAAU,MAAM,CAAC;AACnD,MAAI,oBAAoB,WAAW,GAAG,GAAG;AACrC,0BAAsB,oBAAoB,MAAM,CAAC;AAAA,EACrD;AACA,MAAI,oBAAoB,WAAW,GAAG;AAClC,WAAO;AAAA,EACX;AACA,MAAI,oBAAoB,SAAS,GAAG,KAC7B,oBAAoB,SAAS,IAAI,KACjC,oBAAoB,SAAS,IAAI,GAAG;AACvC,WAAO;AAAA,EACX;AACA,MAAI,GAAG,SAAS,MAAM,SAAS;AAE3B,UAAM,uBAAgC,yBAAyB,KAAK,mBAAmB;AACvF,QAAI,sBAAsB;AACtB,aAAO;AAAA,IACX;AACA,QAAI,SAAS,KAAK,mBAAmB,GAAG;AACpC,aAAO;AAAA,IACX;AAAA,EACJ;AACA,SAAO;AACX;AAOA,eAAsB,eAAe,QAAiC;AAClE,QAAM,gBAAwB,QAAQ,MAAM;AAC5C,QAAM,YAAoB,QAAQ,MAAM;AACxC,QAAM,WAAmB,SAAS,MAAM;AACxC,QAAM,eAAuB,cAAc,KACrC,WACA,SAAS,QAAQ,SAAS;AAChC,MAAI,gBAAwB;AAC5B,MAAI,QAAgB;AACpB,SAAO,MAAM,WAAW,aAAa,GAAG;AACpC,UAAM,oBAA4B,GAAG,YAAY,KAAK,KAAK,IAAI,SAAS;AACxE,oBAAgB,KAAK,eAAe,iBAAiB;AACrD;AAAA,EACJ;AACA,SAAO;AACX;AAeA,eAAsB,gBAAgB,eAAuB,UAAkB,iBAA0B,OAAO,YAAwC,QAA6B;AACjL,QAAM,gBAA4C,cAAc,SACzD,UAAU,WAAW,GAAG,KAAK,yBAAyB,SAAS,IAC5D,YACA,OACJ;AACN,QAAM,sBAAgC,kBAAkB,QACpD,kBAAkB,OAClB,CAAC,SAAS,SAAS,aAAa;AACpC,MAAI,qBAAqB;AACrB,WAAO;AAAA,EACX;AACA,QAAM,WAAmB,KAAK,eAAe,QAAQ;AACrD,MAAI;AACA,UAAM,iBAA6B,MAAM,GAAG,KAAK,UAAU,IAAI;AAC/D,UAAM,eAAe,MAAM;AAC3B,QAAI,CAAC,gBAAgB;AACjB,YAAM,GAAG,OAAO,QAAQ;AAAA,IAC5B;AACA,WAAO;AAAA,EACX,QACM;AACF,WAAO;AAAA,EACX;AACJ;AAoBA,eAAsB,cAAc,MAAc,UAAiC;AAC/E,QAAM,GAAG,UAAU,MAAM,UAAU,EAAE,UAAU,QAAQ,CAAC;AAC5D;",
6
+ "names": []
7
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // Source/Functional/index.ts
21
+ var Functional_exports = {};
22
+ __export(Functional_exports, {
23
+ Identity: () => Identity
24
+ });
25
+ module.exports = __toCommonJS(Functional_exports);
26
+
27
+ // Source/Functional/Functional.ts
28
+ function Identity(...Arguments) {
29
+ return Arguments;
30
+ }
31
+ /**
32
+ * @file Functional.ts
33
+ * @author Gage Sorrell <gage@sorrell.sh>
34
+ * @copyright (c) 2026 Gage Sorrell
35
+ * @license MIT
36
+ */
37
+ /**
38
+ * @file Functional.Types.ts
39
+ * @author Gage Sorrell <gage@sorrell.sh>
40
+ * @copyright (c) 2026 Gage Sorrell
41
+ * @license MIT
42
+ */
43
+ /**
44
+ * @file index.ts
45
+ * @author Gage Sorrell <gage@sorrell.sh>
46
+ * @copyright (c) 2026 Gage Sorrell
47
+ * @license MIT
48
+ */
49
+ //# sourceMappingURL=functional.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/Functional/index.ts", "../Source/Functional/Functional.ts"],
4
+ "sourcesContent": ["/**\n * @file index.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./Functional.ts\";\nexport * from \"./Functional.Types.ts\";\n", "/**\n * @file Functional.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nimport { CurriedArgument } from \"./Functional.Internal\";\nimport type { FCurriedArgument } from \"./Functional.Internal.Types\";\nimport type { TFunction } from \"./Functional.Types\";\nexport function Identity<Type>(...Arguments: Array<Type>) {\n return Arguments;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,SAAS,YAAkB,WAAwB;AACtD,SAAO;AACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,26 @@
1
+ // Source/Functional/Functional.ts
2
+ function Identity(...Arguments) {
3
+ return Arguments;
4
+ }
5
+ export {
6
+ Identity
7
+ };
8
+ /**
9
+ * @file Functional.ts
10
+ * @author Gage Sorrell <gage@sorrell.sh>
11
+ * @copyright (c) 2026 Gage Sorrell
12
+ * @license MIT
13
+ */
14
+ /**
15
+ * @file Functional.Types.ts
16
+ * @author Gage Sorrell <gage@sorrell.sh>
17
+ * @copyright (c) 2026 Gage Sorrell
18
+ * @license MIT
19
+ */
20
+ /**
21
+ * @file index.ts
22
+ * @author Gage Sorrell <gage@sorrell.sh>
23
+ * @copyright (c) 2026 Gage Sorrell
24
+ * @license MIT
25
+ */
26
+ //# sourceMappingURL=functional.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../Source/Functional/Functional.ts"],
4
+ "sourcesContent": ["/**\n * @file Functional.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nimport { CurriedArgument } from \"./Functional.Internal\";\nimport type { FCurriedArgument } from \"./Functional.Internal.Types\";\nimport type { TFunction } from \"./Functional.Types\";\nexport function Identity<Type>(...Arguments: Array<Type>) {\n return Arguments;\n}\n"],
5
+ "mappings": ";AASO,SAAS,YAAkB,WAAwB;AACtD,SAAO;AACX;",
6
+ "names": []
7
+ }