@glutinum/cli 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) 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/package.json +4 -4
  45. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  46. package/src/Glutinum.Converter/js/host.js +144 -0
  47. package/src/Glutinum.Converter/js/npm.js +137 -0
  48. package/src/Glutinum.Converter/js/resolve.js +402 -0
  49. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  50. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  51. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  52. package/dist/Glutinum.Converter/Log.js.map +0 -1
  53. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  54. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  55. package/dist/Glutinum.Converter/Read.js.map +0 -1
  56. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  57. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  58. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  59. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  60. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  61. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  62. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  63. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  64. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  65. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  66. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  67. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  68. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  69. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  70. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  71. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  72. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  73. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  74. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  75. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  76. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  77. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  78. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  79. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  80. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  81. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  82. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  83. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  84. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  85. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  86. package/dist/Program.js.map +0 -1
  87. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  88. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
  89. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  90. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  91. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  92. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
  93. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  94. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  95. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
  96. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  97. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  101. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
  103. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
  104. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
  106. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
  107. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
  108. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
  109. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  110. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
  111. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
  112. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  113. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  114. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
  115. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
  116. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  117. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
  118. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
  119. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
  120. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
  121. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  122. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
  123. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  124. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
  125. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
  126. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  127. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
  128. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  129. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  130. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  131. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
  132. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
  133. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
  134. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  135. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
  136. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
  137. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  138. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
  139. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
  140. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
  141. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  142. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
  143. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
  144. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  145. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
  146. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  147. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  148. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  149. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  150. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  151. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  152. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
  153. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
  154. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
  155. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  156. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
  157. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
  158. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  159. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  160. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  161. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
  162. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  163. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  164. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  165. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  166. package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
  167. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  168. package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
  169. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  170. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
  171. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  172. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
  173. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  174. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
  175. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  176. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
  177. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  178. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  179. package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
  180. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  181. package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
  182. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  183. package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
  184. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  185. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
  186. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  187. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
  188. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  189. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
  190. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  191. package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
  192. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  193. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
  194. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  195. package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
  196. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  197. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  198. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  199. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
  200. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  201. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  202. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  203. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  204. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  205. package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
  206. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  207. package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
  208. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  209. package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
  210. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  211. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  212. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  213. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
  214. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  215. package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
  216. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  217. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
  218. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  219. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
  220. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  221. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
  222. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  223. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  224. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  225. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
  226. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  227. package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
  228. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  229. package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
  230. package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
  231. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  232. package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
  233. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  234. package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
  235. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  236. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
  237. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  238. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
  239. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  240. package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
  241. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  242. package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
  243. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  244. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
  245. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  246. package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
  247. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  248. package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
  249. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  250. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
  251. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  252. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
  253. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  254. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  255. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  256. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
  257. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  258. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
  259. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  260. package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
  261. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  262. package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
  263. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  264. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
  265. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  266. package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
  267. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  268. package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
  269. package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
  270. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  271. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
  272. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  273. package/dist/fable_modules/project_cracked.json +0 -1
@@ -1,194 +0,0 @@
1
- namespace FsToolkit.ErrorHandling
2
-
3
- open System
4
-
5
- [<AutoOpen>]
6
- module AsyncValidationCE =
7
-
8
- type AsyncValidationBuilder() =
9
- member inline _.Return(value: 'ok) : AsyncValidation<'ok, 'error> = AsyncValidation.ok value
10
-
11
- member inline _.ReturnFrom
12
- (result: AsyncValidation<'ok, 'error>)
13
- : AsyncValidation<'ok, 'error> =
14
- result
15
-
16
- member inline _.Bind
17
- (
18
- result: AsyncValidation<'okInput, 'error>,
19
- [<InlineIfLambda>] binder: 'okInput -> AsyncValidation<'okOutput, 'error>
20
- ) : AsyncValidation<'okOutput, 'error> =
21
- AsyncValidation.bind binder result
22
-
23
- member inline this.Zero() : AsyncValidation<unit, 'error> = this.Return()
24
-
25
- member inline _.Delay
26
- ([<InlineIfLambda>] generator: unit -> AsyncValidation<'ok, 'error>)
27
- : AsyncValidation<'ok, 'error> =
28
- async.Delay generator
29
-
30
- member inline this.Combine
31
- (
32
- validation1: AsyncValidation<unit, 'error>,
33
- validation2: AsyncValidation<'ok, 'error>
34
- ) : AsyncValidation<'ok, 'error> =
35
- this.Bind(validation1, (fun () -> validation2))
36
-
37
- member inline _.TryWith
38
- (
39
- computation: AsyncValidation<'ok, 'error>,
40
- [<InlineIfLambda>] handler: exn -> AsyncValidation<'ok, 'error>
41
- ) : AsyncValidation<'ok, 'error> =
42
- async.TryWith(computation, handler)
43
-
44
- member inline _.TryFinally
45
- (
46
- computation: AsyncValidation<'ok, 'error>,
47
- [<InlineIfLambda>] compensation: unit -> unit
48
- ) : AsyncValidation<'ok, 'error> =
49
- async.TryFinally(computation, compensation)
50
-
51
- member inline _.Using
52
- (
53
- resource: 'disposable :> IDisposable,
54
- [<InlineIfLambda>] binder: 'disposable -> AsyncValidation<'okOutput, 'error>
55
- ) : AsyncValidation<'okOutput, 'error> =
56
- async.Using(resource, binder)
57
-
58
- member inline this.While
59
- (
60
- [<InlineIfLambda>] guard: unit -> bool,
61
- computation: AsyncValidation<unit, 'error>
62
- ) : AsyncValidation<unit, 'error> =
63
- if guard () then
64
- let mutable whileAsync = Unchecked.defaultof<_>
65
-
66
- whileAsync <-
67
- this.Bind(computation, (fun () -> if guard () then whileAsync else this.Zero()))
68
-
69
- whileAsync
70
- else
71
- this.Zero()
72
-
73
-
74
- member inline this.For
75
- (
76
- sequence: #seq<'ok>,
77
- [<InlineIfLambda>] binder: 'ok -> AsyncValidation<unit, 'error>
78
- ) : AsyncValidation<unit, 'error> =
79
- this.Using(
80
- sequence.GetEnumerator(),
81
- fun enum -> this.While(enum.MoveNext, this.Delay(fun () -> binder enum.Current))
82
- )
83
-
84
- member inline _.BindReturn
85
- (
86
- input: AsyncValidation<'okInput, 'error>,
87
- [<InlineIfLambda>] mapper: 'okInput -> 'okOutput
88
- ) : AsyncValidation<'okOutput, 'error> =
89
- AsyncValidation.map mapper input
90
-
91
- member inline _.MergeSources
92
- (
93
- left: AsyncValidation<'left, 'error>,
94
- right: AsyncValidation<'right, 'error>
95
- ) : AsyncValidation<'left * 'right, 'error> =
96
- AsyncValidation.zip left right
97
-
98
- let asyncValidation = AsyncValidationBuilder()
99
-
100
- [<AutoOpen>]
101
- module LowPriority =
102
-
103
- type AsyncValidationBuilder with
104
-
105
- /// <summary>
106
- /// Method lets us transform data types into our internal representation.
107
- /// </summary>
108
- /// <returns></returns>
109
- member inline _.Source(a: Async<'ok>) : AsyncValidation<'ok, 'error> =
110
- async {
111
- let! result = a
112
- return! AsyncValidation.ok result
113
- }
114
-
115
- /// <summary>
116
- /// Method lets us transform data types into our internal representation.
117
- /// </summary>
118
- member inline _.Source(s: Result<'ok, 'error>) : AsyncValidation<'ok, 'error> =
119
- AsyncValidation.ofResult s
120
-
121
- /// <summary>
122
- /// Method lets us transform data types into our internal representation.
123
- /// </summary>
124
- /// <returns></returns>
125
- member inline _.Source(choice: Choice<'ok, 'error>) : AsyncValidation<'ok, 'error> =
126
- AsyncValidation.ofChoice choice
127
-
128
- /// <summary>
129
- /// Needed to allow `for..in` and `for..do` functionality
130
- /// </summary>
131
- member inline _.Source(s: #seq<_>) : #seq<_> = s
132
-
133
- [<AutoOpen>]
134
- module MediumPriority =
135
-
136
- open System.Threading.Tasks
137
-
138
- type AsyncValidationBuilder with
139
-
140
- /// <summary>
141
- /// Method lets us transform data types into our internal representation.
142
- /// </summary>
143
- member inline _.Source(s: Async<Result<'ok, 'error>>) : AsyncValidation<'ok, 'error> =
144
- AsyncResult.mapError List.singleton s
145
-
146
- #if !FABLE_COMPILER
147
-
148
- /// <summary>
149
- /// Method lets us transform data types into our internal representation.
150
- /// </summary>
151
- member inline _.Source(s: Task<Result<'ok, 'error>>) : AsyncValidation<'ok, 'error> =
152
- Async.AwaitTask s
153
- |> AsyncResult.mapError List.singleton
154
-
155
- #endif
156
-
157
- [<AutoOpen>]
158
- module HighPriority =
159
-
160
- open System.Threading.Tasks
161
-
162
- // Having members as extensions gives them lower priority in
163
- // overload resolution and allows skipping more type annotations.
164
- type AsyncValidationBuilder with
165
-
166
- /// <summary>
167
- /// Method lets us transform data types into our internal representation.
168
- /// </summary>
169
- member inline _.Source(s: Validation<'ok, 'error>) : AsyncValidation<'ok, 'error> =
170
- Async.retn s
171
-
172
- #if !FABLE_COMPILER
173
-
174
- /// <summary>
175
- /// Method lets us transform data types into our internal representation.
176
- /// </summary>
177
- member inline _.Source
178
- (result: Task<Validation<'ok, 'error>>)
179
- : AsyncValidation<'ok, 'error> =
180
- Async.AwaitTask result
181
-
182
- #endif
183
-
184
- /// <summary>
185
- /// Method lets us transform data types into our internal representation. This is the identity method to recognize the self type.
186
- ///
187
- /// See https://stackoverflow.com/questions/35286541/why-would-you-use-builder-source-in-a-custom-computation-expression-builder
188
- /// </summary>
189
- /// <param name="result"></param>
190
- /// <returns></returns>
191
- member inline _.Source
192
- (result: AsyncValidation<'ok, 'error>)
193
- : AsyncValidation<'ok, 'error> =
194
- result
@@ -1,18 +0,0 @@
1
- import { class_type } from "../fable-library-js.4.14.0/Reflection.js";
2
-
3
- export class AsyncValidationBuilder {
4
- constructor() {
5
- }
6
- }
7
-
8
- export function AsyncValidationBuilder_$reflection() {
9
- return class_type("FsToolkit.ErrorHandling.AsyncValidationCE.AsyncValidationBuilder", void 0, AsyncValidationBuilder);
10
- }
11
-
12
- export function AsyncValidationBuilder_$ctor() {
13
- return new AsyncValidationBuilder();
14
- }
15
-
16
- export const asyncValidation = AsyncValidationBuilder_$ctor();
17
-
18
- //# sourceMappingURL=AsyncValidationCE.fs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["./AsyncValidationCE.fs"],"names":["\u0060\u0060.ctor\u0060\u0060"],"mappings":";;;;;;;;;;;;;;;\u002BBAiG0B,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,35 +0,0 @@
1
- namespace FsToolkit.ErrorHandling.Operator.AsyncValidation
2
-
3
- open FsToolkit.ErrorHandling
4
-
5
- [<AutoOpen>]
6
- module AsyncValidation =
7
- let inline (<!>)
8
- ([<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
9
- (input: AsyncValidation<'okInput, 'error>)
10
- : AsyncValidation<'okOutput, 'error> =
11
- AsyncValidation.map mapper input
12
-
13
- let inline (<!^>)
14
- ([<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
15
- (input: Result<'okInput, 'error>)
16
- : AsyncValidation<'okOutput, 'error> =
17
- AsyncValidation.map mapper (AsyncValidation.ofResult input)
18
-
19
- let inline (<*>)
20
- (applier: AsyncValidation<('okInput -> 'okOutput), 'error>)
21
- (input: AsyncValidation<'okInput, 'error>)
22
- : AsyncValidation<'okOutput, 'error> =
23
- AsyncValidation.apply applier input
24
-
25
- let inline (<*^>)
26
- (applier: AsyncValidation<('okInput -> 'okOutput), 'error>)
27
- (input: Result<'okInput, 'error>)
28
- : AsyncValidation<'okOutput, 'error> =
29
- AsyncValidation.apply applier (AsyncValidation.ofResult input)
30
-
31
- let inline (>>=)
32
- (input: AsyncValidation<'okInput, 'error>)
33
- ([<InlineIfLambda>] binder: 'okInput -> AsyncValidation<'okOutput, 'error>)
34
- : AsyncValidation<'okOutput, 'error> =
35
- AsyncValidation.bind binder input
@@ -1,51 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project Sdk="Microsoft.NET.Sdk">
3
- <PropertyGroup>
4
- <OutputType>Library</OutputType>
5
- <TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
6
- <LangVersion>preview</LangVersion>
7
- <DebugType>portable</DebugType>
8
-
9
- <PackageTags>$(PackageTags), fable-library, fable-dotnet, fable-javascript, fable-python</PackageTags>
10
- </PropertyGroup>
11
- <ItemGroup>
12
- <Compile Include="Shims.fs" />
13
- <Compile Include="Result.fs" />
14
- <Compile Include="ResultCE.fs" />
15
- <Compile Include="ResultOp.fs" />
16
- <Compile Include="Option.fs" />
17
- <Compile Include="OptionCE.fs" />
18
- <Compile Include="OptionOp.fs" />
19
- <Compile Include="ResultOption.fs" />
20
- <Compile Include="ResultOptionCE.fs" />
21
- <Compile Include="ResultOptionOp.fs" />
22
- <Compile Include="Async.fs" />
23
- <Compile Include="AsyncResult.fs" />
24
- <Compile Include="AsyncResultCE.fs" />
25
- <Compile Include="AsyncResultOp.fs" />
26
- <Compile Include="Validation.fs" />
27
- <Compile Include="ValidationOp.fs" />
28
- <Compile Include="ValidationCE.fs" />
29
- <Compile Include="AsyncValidation.fs" />
30
- <Compile Include="AsyncValidationOp.fs" />
31
- <Compile Include="AsyncValidationCE.fs" />
32
- <Compile Include="ValueOption.fs" />
33
- <Compile Include="ValueOptionCE.fs" />
34
- <Compile Include="AsyncOption.fs" />
35
- <Compile Include="AsyncOptionCE.fs" />
36
- <Compile Include="AsyncOptionOp.fs" />
37
- <Compile Include="AsyncResultOption.fs" />
38
- <Compile Include="AsyncResultOptionCE.fs" />
39
- <Compile Include="AsyncResultOptionOp.fs" />
40
- <Compile Include="List.fs" />
41
- <Compile Include="Seq.fs" />
42
- <None Include="Script.fsx" />
43
- <None Include="paket.references" />
44
- <Watch Include="@(None)" />
45
- </ItemGroup>
46
- <!-- Add source files to "fable" folder in Nuget package -->
47
- <ItemGroup>
48
- <Content Include="*.fsproj; **\*.fs" PackagePath="fable\" />
49
- </ItemGroup>
50
- <Import Project="..\..\.paket\Paket.Restore.targets" />
51
- </Project>
@@ -1,218 +0,0 @@
1
- namespace FsToolkit.ErrorHandling
2
-
3
- [<RequireQualifiedAccess>]
4
- module List =
5
-
6
- let rec private traverseResultM' (state: Result<_, _>) (f: _ -> Result<_, _>) xs =
7
- match xs with
8
- | [] ->
9
- state
10
- |> Result.map List.rev
11
- | x :: xs ->
12
- let r =
13
- result {
14
- let! y = f x
15
- let! ys = state
16
- return y :: ys
17
- }
18
-
19
- match r with
20
- | Ok _ -> traverseResultM' r f xs
21
- | Error _ -> r
22
-
23
- let rec private traverseAsyncResultM'
24
- (state: Async<Result<_, _>>)
25
- (f: _ -> Async<Result<_, _>>)
26
- xs
27
- =
28
- match xs with
29
- | [] ->
30
- state
31
- |> AsyncResult.map List.rev
32
- | x :: xs ->
33
- async {
34
- let! r =
35
- asyncResult {
36
- let! ys = state
37
- let! y = f x
38
- return y :: ys
39
- }
40
-
41
- match r with
42
- | Ok _ -> return! traverseAsyncResultM' (Async.singleton r) f xs
43
- | Error _ -> return r
44
- }
45
-
46
- let traverseResultM f xs = traverseResultM' (Ok []) f xs
47
-
48
- let sequenceResultM xs = traverseResultM id xs
49
-
50
- let traverseAsyncResultM f xs =
51
- traverseAsyncResultM' (AsyncResult.retn []) f xs
52
-
53
- let sequenceAsyncResultM xs = traverseAsyncResultM id xs
54
-
55
- let rec private traverseResultA' state f xs =
56
- match xs with
57
- | [] ->
58
- state
59
- |> Result.eitherMap List.rev List.rev
60
- | x :: xs ->
61
-
62
- match state, f x with
63
- | Ok ys, Ok y -> traverseResultA' (Ok(y :: ys)) f xs
64
- | Error errs, Error e -> traverseResultA' (Error(e :: errs)) f xs
65
- | Ok _, Error e -> traverseResultA' (Error [ e ]) f xs
66
- | Error e, Ok _ -> traverseResultA' (Error e) f xs
67
-
68
- let rec private traverseAsyncResultA' state f xs =
69
- match xs with
70
- | [] ->
71
- state
72
- |> AsyncResult.eitherMap List.rev List.rev
73
-
74
- | x :: xs ->
75
- async {
76
- let! s = state
77
- let! fR = f x
78
-
79
- match s, fR with
80
- | Ok ys, Ok y -> return! traverseAsyncResultA' (AsyncResult.retn (y :: ys)) f xs
81
- | Error errs, Error e ->
82
- return! traverseAsyncResultA' (AsyncResult.returnError (e :: errs)) f xs
83
- | Ok _, Error e ->
84
- return! traverseAsyncResultA' (AsyncResult.returnError [ e ]) f xs
85
- | Error e, Ok _ -> return! traverseAsyncResultA' (AsyncResult.returnError e) f xs
86
- }
87
-
88
- let traverseResultA f xs = traverseResultA' (Ok []) f xs
89
-
90
- let sequenceResultA xs = traverseResultA id xs
91
-
92
- let rec private traverseValidationA' state f xs =
93
- match xs with
94
- | [] ->
95
- state
96
- |> Result.eitherMap List.rev List.rev
97
- | x :: xs ->
98
- let fR = f x
99
-
100
- match state, fR with
101
- | Ok ys, Ok y -> traverseValidationA' (Ok(y :: ys)) f xs
102
- | Error errs1, Error errs2 ->
103
- traverseValidationA'
104
- (Error(
105
- errs2
106
- @ errs1
107
- ))
108
- f
109
- xs
110
- | Ok _, Error errs
111
- | Error errs, Ok _ -> traverseValidationA' (Error errs) f xs
112
-
113
- let traverseValidationA f xs = traverseValidationA' (Ok []) f xs
114
-
115
- let sequenceValidationA xs = traverseValidationA id xs
116
-
117
- let traverseAsyncResultA f xs =
118
- traverseAsyncResultA' (AsyncResult.retn []) f xs
119
-
120
- let sequenceAsyncResultA xs = traverseAsyncResultA id xs
121
-
122
- let rec private traverseOptionM' (state: Option<_>) (f: _ -> Option<_>) xs =
123
- match xs with
124
- | [] ->
125
- state
126
- |> Option.map List.rev
127
- | x :: xs ->
128
- let r =
129
- option {
130
- let! y = f x
131
- let! ys = state
132
- return y :: ys
133
- }
134
-
135
- match r with
136
- | Some _ -> traverseOptionM' r f xs
137
- | None -> r
138
-
139
- let rec private traverseAsyncOptionM' (state: Async<Option<_>>) (f: _ -> Async<Option<_>>) xs =
140
- match xs with
141
- | [] ->
142
- state
143
- |> AsyncOption.map List.rev
144
- | x :: xs ->
145
- async {
146
- let! o =
147
- asyncOption {
148
- let! y = f x
149
- let! ys = state
150
- return y :: ys
151
- }
152
-
153
- match o with
154
- | Some _ -> return! traverseAsyncOptionM' (Async.singleton o) f xs
155
- | None -> return o
156
- }
157
-
158
- /// <summary>
159
- /// Applies the given function <paramref name="f"/> to each element in the input list <paramref name="xs"/>,
160
- /// and returns an option containing a list of the results. If any of the function applications return None,
161
- /// the entire result will be None.
162
- /// </summary>
163
- /// <param name="f">The function to apply to each element in the input list.</param>
164
- /// <param name="xs">The input list.</param>
165
- /// <returns>An option containing a list of the results of applying the function to each element in the input list,
166
- /// or None if any of the function applications return None.</returns>
167
- let traverseOptionM f xs = traverseOptionM' (Some []) f xs
168
-
169
- /// <summary>
170
- /// Applies the monadic function <paramref name="id"/> to each element in the input list <paramref name="xs"/>,
171
- /// and returns the result as an option. If any element in the list is None, the entire result will be None.
172
- /// </summary>
173
- /// <param name="xs">The input list.</param>
174
- /// <returns>An option containing the result of applying <paramref name="id"/> to each element in <paramref name="xs"/>.</returns>
175
- let sequenceOptionM xs = traverseOptionM id xs
176
-
177
- let traverseAsyncOptionM f xs =
178
- traverseAsyncOptionM' (AsyncOption.retn []) f xs
179
-
180
- let sequenceAsyncOptionM xs = traverseAsyncOptionM id xs
181
-
182
- #if !FABLE_COMPILER
183
- let rec private traverseVOptionM' (state: voption<_>) (f: _ -> voption<_>) xs =
184
- match xs with
185
- | [] ->
186
- state
187
- |> ValueOption.map List.rev
188
- | x :: xs ->
189
- let r =
190
- voption {
191
- let! y = f x
192
- let! ys = state
193
- return y :: ys
194
- }
195
-
196
- match r with
197
- | ValueSome _ -> traverseVOptionM' r f xs
198
- | ValueNone -> r
199
-
200
- /// <summary>
201
- /// Applies the given function <paramref name="f"/> to each element in the input list <paramref name="xs"/>,
202
- /// and returns an option containing a list of the results. If any of the function applications return ValueNone,
203
- /// the entire result will be ValueNone.
204
- /// </summary>
205
- /// <param name="f">The function to apply to each element in the input list.</param>
206
- /// <param name="xs">The input list</param>
207
- /// <returns>An Option monad containing the collected results.</returns>
208
- let traverseVOptionM f xs = traverseVOptionM' (ValueSome []) f xs
209
-
210
- /// <summary>
211
- /// Applies the <paramref name="id"/> function to each element in the input list <paramref name="xs"/>,
212
- /// and returns the result as a value option. If any element in the list is ValueNone, the entire result will be ValueNone.
213
- /// </summary>
214
- /// <param name="xs">The input list.</param>
215
- /// <returns>A <see cref="Option{T}"/> representing the sequence of results.</returns>
216
- let sequenceVOptionM xs = traverseVOptionM id xs
217
-
218
- #endif