@glutinum/cli 0.13.0 → 0.14.1

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 (319) hide show
  1. package/README.md +19 -1
  2. package/dist/Glutinum.Converter/Abbreviations.js +246 -0
  3. package/dist/Glutinum.Converter/FsharpAST.js +87 -28
  4. package/dist/Glutinum.Converter/Generate.js +55 -8
  5. package/dist/Glutinum.Converter/GlueAST.js +333 -34
  6. package/dist/Glutinum.Converter/Log.js +7 -8
  7. package/dist/Glutinum.Converter/Merge.js +683 -31
  8. package/dist/Glutinum.Converter/Packages.js +308 -0
  9. package/dist/Glutinum.Converter/Printer.js +323 -186
  10. package/dist/Glutinum.Converter/Read.js +279 -6
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
  13. package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
  15. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
  16. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
  19. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
  21. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -9
  22. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
  23. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  24. package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
  25. package/dist/Glutinum.Converter/Reader/Report.js +31 -12
  26. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
  27. package/dist/Glutinum.Converter/Reader/TypeNode.js +1524 -253
  28. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
  29. package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
  30. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
  31. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
  32. package/dist/Glutinum.Converter/Reader/Types.js +180 -0
  33. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
  34. package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
  35. package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
  36. package/dist/Glutinum.Converter/Transform.js +8292 -1119
  37. package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
  38. package/dist/Glutinum.Converter/TypeScript.js +3 -3
  39. package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
  40. package/dist/Glutinum.Converter/Utils/List.js +3 -3
  41. package/dist/Glutinum.Converter/Utils/Naming.js +61 -12
  42. package/dist/Glutinum.Converter/Utils/String.js +7 -3
  43. package/dist/Program.js +230 -72
  44. package/dist/fable_modules/Fable.Promise.3.2.1/AsyncIterable.fs +89 -0
  45. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/AsyncIterable.fs.js +29 -29
  46. package/dist/fable_modules/Fable.Promise.3.2.1/Fable.Promise.fableproj +25 -0
  47. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs +842 -766
  48. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs.js +26 -12
  49. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs +31 -31
  50. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs.js +5 -5
  51. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs +235 -0
  52. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs.js +384 -0
  53. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AssemblyInfo.fs +4 -4
  54. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs +89 -9
  55. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs.js +13 -12
  56. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOption.fs +50 -4
  57. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs +30 -39
  58. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs.js +10 -10
  59. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResult.fs +52 -8
  60. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs +26 -42
  61. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs.js +3 -3
  62. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOption.fs +17 -5
  63. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOption.fs.js +26 -0
  64. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs +31 -33
  65. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs.js +3 -3
  66. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidation.fs +1 -6
  67. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs +10 -18
  68. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs.js +3 -3
  69. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/FsToolkit.ErrorHandling.fableproj +69 -0
  70. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs +68 -10
  71. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs.js +47 -41
  72. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Nullness.fs +81 -0
  73. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Option.fs +133 -2
  74. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs +139 -0
  75. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs.js +48 -0
  76. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/OptionOp.fs +3 -3
  77. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs +88 -0
  78. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs.js +30 -0
  79. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs +200 -0
  80. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs.js +18 -0
  81. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidation.fs +34 -0
  82. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs +244 -0
  83. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs.js +18 -0
  84. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs +87 -0
  85. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs.js +8 -8
  86. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs +8 -23
  87. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs.js +5 -5
  88. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs +1 -1
  89. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs.js +10 -10
  90. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs +7 -18
  91. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs.js +3 -3
  92. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs +503 -0
  93. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs.js +295 -0
  94. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Validation.fs +0 -5
  95. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs +7 -13
  96. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs.js +3 -3
  97. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValueOption.fs +1 -4
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOption.fs +102 -0
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionCE.fs +587 -0
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionOp.fs +10 -0
  101. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +3 -3
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.fs +3 -0
  103. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1 → FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0}/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
  104. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +20 -0
  106. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Array.js +192 -86
  107. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Async.js +58 -53
  108. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/AsyncBuilder.js +29 -8
  109. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BigInt.js +71 -46
  110. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BitConverter.js +2 -2
  111. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Boolean.js +4 -3
  112. package/dist/fable_modules/fable-library-js.5.17.2/CHANGELOG.md +348 -0
  113. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Char.js +64 -31
  114. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Choice.js +2 -2
  115. package/dist/fable_modules/fable-library-js.5.17.2/CollectionUtil.js +182 -0
  116. package/dist/fable_modules/fable-library-js.5.17.2/ConditionalWeakTable.js +21 -0
  117. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Date.js +197 -112
  118. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOffset.js +46 -62
  119. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOnly.js +6 -6
  120. package/dist/fable_modules/fable-library-js.5.17.2/DateOnlyTemporal.js +146 -0
  121. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeFormat.js +523 -0
  122. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeOffsetTemporal.js +283 -0
  123. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeTemporal.js +243 -0
  124. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Decimal.js +39 -13
  125. package/dist/fable_modules/fable-library-js.5.17.2/Directory.js +11 -0
  126. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Double.js +10 -3
  127. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Encoding.js +20 -8
  128. package/dist/fable_modules/fable-library-js.5.17.2/Environment.js +3 -0
  129. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Event.js +10 -1
  130. package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Collections.js +45 -0
  131. package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Core.js +156 -0
  132. package/dist/fable_modules/fable-library-js.5.17.2/File.js +27 -0
  133. package/dist/fable_modules/fable-library-js.5.17.2/Global.js +29 -0
  134. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Guid.js +33 -12
  135. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Int32.js +17 -17
  136. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/List.js +170 -106
  137. package/dist/fable_modules/fable-library-js.5.17.2/Long.js +38 -0
  138. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MailboxProcessor.js +13 -6
  139. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Map.js +65 -61
  140. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MapUtil.js +22 -4
  141. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableMap.js +28 -16
  142. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableSet.js +7 -7
  143. package/dist/fable_modules/fable-library-js.5.17.2/Native.js +14 -0
  144. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Numeric.js +44 -3
  145. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Observable.js +5 -3
  146. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Option.js +11 -20
  147. package/dist/fable_modules/fable-library-js.5.17.2/Path.js +31 -0
  148. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Random.js +22 -20
  149. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Range.js +12 -12
  150. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Reflection.js +50 -22
  151. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/RegExp.js +68 -30
  152. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Result.js +6 -6
  153. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq.js +229 -104
  154. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq2.js +1 -1
  155. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Set.js +153 -113
  156. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/String.js +238 -50
  157. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Collections.Generic.js +30 -14
  158. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Text.js +69 -31
  159. package/dist/fable_modules/fable-library-js.5.17.2/System.js +289 -0
  160. package/dist/fable_modules/fable-library-js.5.17.2/Task.js +27 -0
  161. package/dist/fable_modules/fable-library-js.5.17.2/TaskBuilder.js +72 -0
  162. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeOnly.js +6 -6
  163. package/dist/fable_modules/fable-library-js.5.17.2/TimeOnlyTemporal.js +142 -0
  164. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeSpan.js +18 -15
  165. package/dist/fable_modules/fable-library-js.5.17.2/TimeSpanTemporal.js +259 -0
  166. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Types.js +14 -24
  167. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Uri.js +44 -21
  168. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Util.js +49 -12
  169. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/lib/big.js +14 -11
  170. package/dist/fable_modules/fable-library-js.5.17.2/package.json +24 -0
  171. package/dist/fable_modules/fable-library-js.5.17.2/quotation.js +682 -0
  172. package/package.json +4 -4
  173. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  174. package/src/Glutinum.Converter/js/host.js +144 -0
  175. package/src/Glutinum.Converter/js/npm.js +137 -0
  176. package/src/Glutinum.Converter/js/resolve.js +402 -0
  177. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  178. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  179. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  180. package/dist/Glutinum.Converter/Log.js.map +0 -1
  181. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  182. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  183. package/dist/Glutinum.Converter/Read.js.map +0 -1
  184. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  185. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  186. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  187. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  188. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  189. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  190. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  191. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  192. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  193. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  194. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  195. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  196. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  197. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  198. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  199. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  200. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  201. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  202. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  203. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  204. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  205. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  206. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  207. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  208. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  209. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  210. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  211. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  212. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  213. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  214. package/dist/Program.js.map +0 -1
  215. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  216. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  217. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  218. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  219. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  220. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  221. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  222. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  223. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  224. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  225. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  226. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  227. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  228. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  229. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  230. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  231. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  232. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  233. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  234. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  235. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  236. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  237. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  238. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  239. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  240. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  241. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  242. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  243. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  244. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  245. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  246. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  247. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  248. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  249. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  250. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  251. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  252. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  253. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  254. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  255. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  256. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  257. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  258. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  259. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  260. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  261. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  262. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  263. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  264. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  265. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  266. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  267. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  268. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  269. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  270. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  271. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  272. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  273. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  274. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  275. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  276. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  277. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  278. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  279. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  280. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  281. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  282. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  283. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  284. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  285. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  286. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  287. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  288. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  289. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  290. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  291. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  292. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  293. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  294. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  295. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  296. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  297. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  298. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  299. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  300. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  301. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  302. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  303. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  304. package/dist/fable_modules/project_cracked.json +0 -1
  305. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionOp.fs +0 -0
  306. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOp.fs +0 -0
  307. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionOp.fs +0 -0
  308. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationOp.fs +0 -0
  309. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOp.fs +0 -0
  310. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionOp.fs +0 -0
  311. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationOp.fs +0 -0
  312. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
  313. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  314. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
  315. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/FSharp.Core.CompilerServices.js +0 -0
  316. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/README.md +0 -0
  317. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Timer.js +0 -0
  318. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Unicode.13.0.0.js +0 -0
  319. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/big.d.ts +0 -0
@@ -0,0 +1,295 @@
1
+
2
+ import { empty } from "../fable-library-js.5.17.2/Seq.js";
3
+ import { FSharpResult$2 } from "../fable-library-js.5.17.2/Result.js";
4
+ import { Operators_NullArg, Operators_IsNull } from "../fable-library-js.5.17.2/FSharp.Core.js";
5
+ import { disposeSafe, getEnumerator, defaultOf } from "../fable-library-js.5.17.2/Util.js";
6
+ import { singleton } from "../fable-library-js.5.17.2/AsyncBuilder.js";
7
+ import { ArgumentNullException_$ctor_Z721C83C5 } from "../fable-library-js.5.17.2/System.js";
8
+ import { value as value_1 } from "../fable-library-js.5.17.2/Option.js";
9
+
10
+ /**
11
+ * Applies a function to each element of a sequence and returns a single result
12
+ */
13
+ export function traverseResultM(f, xs) {
14
+ const state = new FSharpResult$2(/* Ok */ 0, [empty()]);
15
+ const xs_1 = xs;
16
+ if (Operators_IsNull(xs_1)) {
17
+ Operators_NullArg("xs");
18
+ }
19
+ if (state.tag === 0) {
20
+ const oks = Array.from(state.fields[0]);
21
+ let err = defaultOf();
22
+ let ok = true;
23
+ const e_1 = getEnumerator(xs_1);
24
+ try {
25
+ while (ok && e_1["System.Collections.IEnumerator.MoveNext"]()) {
26
+ const matchValue = f(e_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
27
+ if (matchValue.tag === 1) {
28
+ err = matchValue.fields[0];
29
+ ok = false;
30
+ }
31
+ else {
32
+ void (oks.push(matchValue.fields[0]));
33
+ }
34
+ }
35
+ return ok ? (new FSharpResult$2(/* Ok */ 0, [oks.slice()])) : (new FSharpResult$2(/* Error */ 1, [err]));
36
+ }
37
+ finally {
38
+ disposeSafe(e_1);
39
+ }
40
+ }
41
+ else {
42
+ return new FSharpResult$2(/* Error */ 1, [state.fields[0]]);
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Converts a sequence of results into a single result
48
+ */
49
+ export function sequenceResultM(xs) {
50
+ return traverseResultM((x) => x, xs);
51
+ }
52
+
53
+ /**
54
+ * Applies a function to each element of a sequence and returns a single result
55
+ */
56
+ export function traverseResultA(f, xs) {
57
+ const state = new FSharpResult$2(/* Ok */ 0, [empty()]);
58
+ const f_1 = f;
59
+ const xs_1 = xs;
60
+ if (Operators_IsNull(xs_1)) {
61
+ Operators_NullArg("xs");
62
+ }
63
+ if (state.tag === 0) {
64
+ const oks = Array.from(state.fields[0]);
65
+ const errs_1 = [];
66
+ const enumerator_1 = getEnumerator(xs_1);
67
+ try {
68
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
69
+ const matchValue_1 = f_1(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
70
+ if (matchValue_1.tag === 1) {
71
+ void (errs_1.push(matchValue_1.fields[0]));
72
+ }
73
+ else if (errs_1.length === 0) {
74
+ void (oks.push(matchValue_1.fields[0]));
75
+ }
76
+ }
77
+ }
78
+ finally {
79
+ disposeSafe(enumerator_1);
80
+ }
81
+ if (errs_1.length === 0) {
82
+ return new FSharpResult$2(/* Ok */ 0, [oks.slice()]);
83
+ }
84
+ else {
85
+ return new FSharpResult$2(/* Error */ 1, [errs_1.slice()]);
86
+ }
87
+ }
88
+ else {
89
+ const errs = Array.from(state.fields[0]);
90
+ const enumerator = getEnumerator(xs_1);
91
+ try {
92
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
93
+ const matchValue = f_1(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
94
+ if (matchValue.tag === 0) {
95
+ }
96
+ else {
97
+ void (errs.push(matchValue.fields[0]));
98
+ }
99
+ }
100
+ }
101
+ finally {
102
+ disposeSafe(enumerator);
103
+ }
104
+ return new FSharpResult$2(/* Error */ 1, [errs.slice()]);
105
+ }
106
+ }
107
+
108
+ /**
109
+ * Converts a sequence of results into a single result
110
+ */
111
+ export function sequenceResultA(xs) {
112
+ return traverseResultA((x) => x, xs);
113
+ }
114
+
115
+ /**
116
+ * Applies a function to each element of a sequence and returns a single async result
117
+ */
118
+ export function traverseAsyncResultM(f, xs) {
119
+ const state = singleton.Delay(() => singleton.Return(new FSharpResult$2(/* Ok */ 0, [empty()])));
120
+ const xs_1 = xs;
121
+ if (Operators_IsNull(xs_1)) {
122
+ Operators_NullArg("xs");
123
+ }
124
+ return singleton.Delay(() => singleton.Bind(state, (_arg) => {
125
+ if (_arg.tag === 0) {
126
+ const oks = Array.from(_arg.fields[0]);
127
+ let err = defaultOf();
128
+ let ok = true;
129
+ return singleton.Using(getEnumerator(xs_1), (_arg_1) => {
130
+ const e_1 = _arg_1;
131
+ return singleton.Combine(singleton.While(() => (ok && e_1["System.Collections.IEnumerator.MoveNext"]()), singleton.Delay(() => singleton.Bind(f(e_1["System.Collections.Generic.IEnumerator`1.get_Current"]()), (_arg_2) => {
132
+ if (_arg_2.tag === 1) {
133
+ err = _arg_2.fields[0];
134
+ ok = false;
135
+ return singleton.Zero();
136
+ }
137
+ else {
138
+ void (oks.push(_arg_2.fields[0]));
139
+ return singleton.Zero();
140
+ }
141
+ }))), singleton.Delay(() => singleton.Return(ok ? (new FSharpResult$2(/* Ok */ 0, [oks.slice()])) : (new FSharpResult$2(/* Error */ 1, [err])))));
142
+ });
143
+ }
144
+ else {
145
+ return singleton.Return(new FSharpResult$2(/* Error */ 1, [_arg.fields[0]]));
146
+ }
147
+ }));
148
+ }
149
+
150
+ /**
151
+ * Converts a sequence of async results into a single async result
152
+ */
153
+ export function sequenceAsyncResultM(xs) {
154
+ return traverseAsyncResultM((x) => x, xs);
155
+ }
156
+
157
+ /**
158
+ * Applies a function to each element of a sequence and returns a single async result
159
+ */
160
+ export function traverseAsyncResultA(f, xs) {
161
+ const state = singleton.Delay(() => singleton.Return(new FSharpResult$2(/* Ok */ 0, [empty()])));
162
+ const f_1 = f;
163
+ let xs_1_1;
164
+ const value = xs;
165
+ if (Operators_IsNull(value)) {
166
+ throw ArgumentNullException_$ctor_Z721C83C5("xs");
167
+ }
168
+ else {
169
+ xs_1_1 = value;
170
+ }
171
+ return singleton.Delay(() => singleton.Bind(state, (_arg) => {
172
+ if (_arg.tag === 0) {
173
+ const oks = Array.from(_arg.fields[0]);
174
+ const errs_1 = [];
175
+ return singleton.Combine(singleton.For(xs_1_1, (_arg_3) => singleton.Bind(f_1(_arg_3), (_arg_4) => {
176
+ if (_arg_4.tag === 1) {
177
+ void (errs_1.push(_arg_4.fields[0]));
178
+ return singleton.Zero();
179
+ }
180
+ else if (errs_1.length === 0) {
181
+ void (oks.push(_arg_4.fields[0]));
182
+ return singleton.Zero();
183
+ }
184
+ else {
185
+ return singleton.Zero();
186
+ }
187
+ })), singleton.Delay(() => ((errs_1.length === 0) ? singleton.Return(new FSharpResult$2(/* Ok */ 0, [oks.slice()])) : singleton.Return(new FSharpResult$2(/* Error */ 1, [errs_1.slice()])))));
188
+ }
189
+ else {
190
+ const errs = Array.from(_arg.fields[0]);
191
+ return singleton.Combine(singleton.For(xs_1_1, (_arg_1) => singleton.Bind(f_1(_arg_1), (_arg_2) => {
192
+ if (_arg_2.tag === 1) {
193
+ void (errs.push(_arg_2.fields[0]));
194
+ return singleton.Zero();
195
+ }
196
+ else {
197
+ return singleton.Zero();
198
+ }
199
+ })), singleton.Delay(() => singleton.Return(new FSharpResult$2(/* Error */ 1, [errs.slice()]))));
200
+ }
201
+ }));
202
+ }
203
+
204
+ /**
205
+ * Converts a sequence of async results into a single async result
206
+ */
207
+ export function sequenceAsyncResultA(xs) {
208
+ return traverseAsyncResultA((x) => x, xs);
209
+ }
210
+
211
+ /**
212
+ * Applies a function to each element of a sequence and returns a single option
213
+ */
214
+ export function traverseOptionM(f, xs) {
215
+ const state = empty();
216
+ const xs_1 = xs;
217
+ if (Operators_IsNull(xs_1)) {
218
+ Operators_NullArg("xs");
219
+ }
220
+ if (state != null) {
221
+ const initialValues = state;
222
+ const values = Array.from(initialValues);
223
+ let ok = true;
224
+ const enumerator = getEnumerator(xs_1);
225
+ try {
226
+ while (ok && enumerator["System.Collections.IEnumerator.MoveNext"]()) {
227
+ const matchValue = f(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
228
+ if (matchValue == null) {
229
+ ok = false;
230
+ }
231
+ else {
232
+ const value = value_1(matchValue);
233
+ void (values.push(value));
234
+ }
235
+ }
236
+ return ok ? values.slice() : undefined;
237
+ }
238
+ finally {
239
+ disposeSafe(enumerator);
240
+ }
241
+ }
242
+ else {
243
+ return undefined;
244
+ }
245
+ }
246
+
247
+ /**
248
+ * Converts a sequence of options into a single option
249
+ */
250
+ export function sequenceOptionM(xs) {
251
+ return traverseOptionM((x) => x, xs);
252
+ }
253
+
254
+ /**
255
+ * Applies a function to each element of a sequence and returns a single async option
256
+ */
257
+ export function traverseAsyncOptionM(f, xs) {
258
+ const state = singleton.Delay(() => singleton.Return(empty()));
259
+ const xs_1 = xs;
260
+ if (Operators_IsNull(xs_1)) {
261
+ Operators_NullArg("xs");
262
+ }
263
+ return singleton.Delay(() => singleton.Bind(state, (_arg) => {
264
+ if (_arg != null) {
265
+ const initialValues = _arg;
266
+ const values = Array.from(initialValues);
267
+ let ok = true;
268
+ return singleton.Using(getEnumerator(xs_1), (_arg_1) => {
269
+ const enumerator = _arg_1;
270
+ return singleton.Combine(singleton.While(() => (ok && enumerator["System.Collections.IEnumerator.MoveNext"]()), singleton.Delay(() => singleton.Bind(f(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]()), (_arg_2) => {
271
+ if (_arg_2 == null) {
272
+ ok = false;
273
+ return singleton.Zero();
274
+ }
275
+ else {
276
+ const value = value_1(_arg_2);
277
+ void (values.push(value));
278
+ return singleton.Zero();
279
+ }
280
+ }))), singleton.Delay(() => singleton.Return(ok ? values.slice() : undefined)));
281
+ });
282
+ }
283
+ else {
284
+ return singleton.Return(undefined);
285
+ }
286
+ }));
287
+ }
288
+
289
+ /**
290
+ * Converts a sequence of async options into a single async option
291
+ */
292
+ export function sequenceAsyncOptionM(xs) {
293
+ return traverseAsyncOptionM((x) => x, xs);
294
+ }
295
+
@@ -31,11 +31,6 @@ module Validation =
31
31
  @ errs2
32
32
  )
33
33
 
34
- let inline retn (value: 'ok) : Validation<'ok, 'error> = ok value
35
-
36
- let inline returnError (error: 'error) : Validation<'ok, 'error> = Error [ error ]
37
-
38
-
39
34
  /// <summary>
40
35
  /// Returns <paramref name="result"/> if it is <c>Ok</c>, otherwise returns <paramref name="ifError"/>
41
36
  /// </summary>
@@ -58,7 +58,7 @@ module ValidationCE =
58
58
 
59
59
  member inline this.Using
60
60
  (
61
- resource: 'disposable :> IDisposable,
61
+ resource: 'disposable :> IDisposableNull,
62
62
  [<InlineIfLambda>] binder: 'disposable -> Validation<'okOutput, 'error>
63
63
  ) : Validation<'okOutput, 'error> =
64
64
  this.TryFinally(
@@ -88,27 +88,21 @@ module ValidationCE =
88
88
  result
89
89
 
90
90
  member inline this.For
91
- (
92
- sequence: #seq<'ok>,
93
- [<InlineIfLambda>] binder: 'ok -> Validation<unit, 'error>
94
- ) : Validation<unit, 'error> =
91
+ (sequence: #seq<'ok>, [<InlineIfLambda>] binder: 'ok -> Validation<unit, 'error>)
92
+ : Validation<unit, 'error> =
95
93
  this.Using(
96
94
  sequence.GetEnumerator(),
97
95
  fun enum -> this.While(enum.MoveNext, this.Delay(fun () -> binder enum.Current))
98
96
  )
99
97
 
100
98
  member inline _.BindReturn
101
- (
102
- input: Validation<'okInput, 'error>,
103
- [<InlineIfLambda>] mapper: 'okInput -> 'okOutput
104
- ) : Validation<'okOutput, 'error> =
99
+ (input: Validation<'okInput, 'error>, [<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
100
+ : Validation<'okOutput, 'error> =
105
101
  Validation.map mapper input
106
102
 
107
103
  member inline _.MergeSources
108
- (
109
- left: Validation<'left, 'error>,
110
- right: Validation<'right, 'error>
111
- ) : Validation<'left * 'right, 'error> =
104
+ (left: Validation<'left, 'error>, right: Validation<'right, 'error>)
105
+ : Validation<'left * 'right, 'error> =
112
106
  Validation.zip left right
113
107
 
114
108
  /// <summary>
@@ -1,4 +1,5 @@
1
- import { class_type } from "../fable-library-js.4.14.0/Reflection.js";
1
+
2
+ import { class_type } from "../fable-library-js.5.17.2/Reflection.js";
2
3
 
3
4
  export class ValidationCE_ValidationBuilder {
4
5
  constructor() {
@@ -6,7 +7,7 @@ export class ValidationCE_ValidationBuilder {
6
7
  }
7
8
 
8
9
  export function ValidationCE_ValidationBuilder_$reflection() {
9
- return class_type("FsToolkit.ErrorHandling.ValidationCE.ValidationBuilder", void 0, ValidationCE_ValidationBuilder);
10
+ return class_type("FsToolkit.ErrorHandling.ValidationCE.ValidationBuilder", undefined, ValidationCE_ValidationBuilder);
10
11
  }
11
12
 
12
13
  export function ValidationCE_ValidationBuilder_$ctor() {
@@ -15,4 +16,3 @@ export function ValidationCE_ValidationBuilder_$ctor() {
15
16
 
16
17
  export const ValidationCE_validation = ValidationCE_ValidationBuilder_$ctor();
17
18
 
18
- //# sourceMappingURL=ValidationCE.fs.js.map
@@ -1,6 +1,5 @@
1
1
  namespace FsToolkit.ErrorHandling
2
2
 
3
- #if !FABLE_COMPILER
4
3
  [<RequireQualifiedAccess>]
5
4
  module ValueOption =
6
5
 
@@ -116,7 +115,7 @@ module ValueOption =
116
115
  /// <seealso cref="ofNull"/>
117
116
  let inline bindNull
118
117
  ([<InlineIfLambda>] binder: 'value -> 'nullableValue)
119
- (voption: ValueOption<'value>)
118
+ (voption: 'value voption)
120
119
  : 'nullableValue voption =
121
120
  match voption with
122
121
  | ValueSome x ->
@@ -147,5 +146,3 @@ module ValueOption =
147
146
  match input with
148
147
  | true, x -> ValueSome x
149
148
  | false, _ -> ValueNone
150
-
151
- #endif
@@ -0,0 +1,102 @@
1
+ namespace FsToolkit.ErrorHandling
2
+
3
+ open System.Threading.Tasks
4
+
5
+
6
+ [<RequireQualifiedAccess>]
7
+ module ValueTaskValueOption =
8
+
9
+ let inline map ([<InlineIfLambda>] f) (ar: ValueTask<_ voption>) =
10
+ ValueTask<_ voption>(
11
+ task {
12
+ let! opt = ar
13
+ return ValueOption.map f opt
14
+ }
15
+ )
16
+
17
+ let inline bind ([<InlineIfLambda>] f) (ar: ValueTask<_ voption>) =
18
+ ValueTask<_ voption>(
19
+ task {
20
+ let! opt = ar
21
+
22
+ let t =
23
+ match opt with
24
+ | ValueSome x -> f x
25
+ | ValueNone -> ValueTask<_ voption>(ValueNone)
26
+
27
+ return! t
28
+ }
29
+ )
30
+
31
+ let inline valueSome x = ValueTask<_ voption>(ValueSome x)
32
+
33
+ let inline apply f x =
34
+ bind (fun f' -> bind (fun x' -> valueSome (f' x')) x) f
35
+
36
+ let inline zip (x1: ValueTask<'a voption>) (x2: ValueTask<'b voption>) =
37
+ ValueTask<('a * 'b) voption>(
38
+ task {
39
+ let! r1 = x1
40
+ let! r2 = x2
41
+ return ValueOption.zip r1 r2
42
+ }
43
+ )
44
+
45
+ /// <summary>
46
+ /// Returns result of running <paramref name="onValueSome"/> if it is <c>ValueSome</c>, otherwise returns result of running <paramref name="onValueNone"/>
47
+ /// </summary>
48
+ /// <param name="onValueSome">The function to run if <paramref name="input"/> is <c>ValueSome</c></param>
49
+ /// <param name="onValueNone">The function to run if <paramref name="input"/> is <c>ValueNone</c></param>
50
+ /// <param name="input">The input voption.</param>
51
+ /// <returns>
52
+ /// The result of running <paramref name="onValueSome"/> if the input is <c>ValueSome</c>, else returns result of running <paramref name="onValueNone"/>.
53
+ /// </returns>
54
+ let inline either
55
+ ([<InlineIfLambda>] onValueSome: 'input -> ValueTask<'output>)
56
+ ([<InlineIfLambda>] onValueNone: unit -> ValueTask<'output>)
57
+ (input: ValueTask<'input voption>)
58
+ : ValueTask<'output> =
59
+ ValueTask<'output>(
60
+ task {
61
+ let! opt = input
62
+
63
+ match opt with
64
+ | ValueSome v -> return! onValueSome v
65
+ | ValueNone -> return! onValueNone ()
66
+ }
67
+ )
68
+
69
+ /// <summary>
70
+ /// Gets the value of the voption if the voption is <c>ValueSome</c>, otherwise returns the specified default value.
71
+ /// </summary>
72
+ /// <param name="value">The specified default value.</param>
73
+ /// <param name="valueTaskValueOption">The input voption.</param>
74
+ /// <returns>
75
+ /// The voption if the voption is <c>ValueSome</c>, else the default value.
76
+ /// </returns>
77
+ let inline defaultValue (value: 'value) (valueTaskValueOption: ValueTask<'value voption>) =
78
+ ValueTask<'value>(
79
+ task {
80
+ let! opt = valueTaskValueOption
81
+ return ValueOption.defaultValue value opt
82
+ }
83
+ )
84
+
85
+ /// <summary>
86
+ /// Gets the value of the voption if the voption is <c>ValueSome</c>, otherwise evaluates <paramref name="defThunk"/> and returns the result.
87
+ /// </summary>
88
+ /// <param name="defThunk">A thunk that provides a default value when evaluated.</param>
89
+ /// <param name="valueTaskValueOption">The input voption.</param>
90
+ /// <returns>
91
+ /// The voption if the voption is <c>ValueSome</c>, else the result of evaluating <paramref name="defThunk"/>.
92
+ /// </returns>
93
+ let inline defaultWith
94
+ ([<InlineIfLambda>] defThunk: unit -> 'value)
95
+ (valueTaskValueOption: ValueTask<'value voption>)
96
+ : ValueTask<'value> =
97
+ ValueTask<'value>(
98
+ task {
99
+ let! opt = valueTaskValueOption
100
+ return ValueOption.defaultWith defThunk opt
101
+ }
102
+ )