@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.
- package/README.md +19 -1
- package/dist/Glutinum.Converter/Abbreviations.js +246 -0
- package/dist/Glutinum.Converter/FsharpAST.js +87 -28
- package/dist/Glutinum.Converter/Generate.js +55 -8
- package/dist/Glutinum.Converter/GlueAST.js +333 -34
- package/dist/Glutinum.Converter/Log.js +7 -8
- package/dist/Glutinum.Converter/Merge.js +683 -31
- package/dist/Glutinum.Converter/Packages.js +308 -0
- package/dist/Glutinum.Converter/Printer.js +323 -186
- package/dist/Glutinum.Converter/Read.js +279 -6
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
- package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
- package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
- package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -9
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
- package/dist/Glutinum.Converter/Reader/Node.js +24 -10
- package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
- package/dist/Glutinum.Converter/Reader/Report.js +31 -12
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
- package/dist/Glutinum.Converter/Reader/TypeNode.js +1524 -253
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
- package/dist/Glutinum.Converter/Reader/Types.js +180 -0
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
- package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
- package/dist/Glutinum.Converter/Transform.js +8292 -1119
- package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
- package/dist/Glutinum.Converter/TypeScript.js +3 -3
- package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
- package/dist/Glutinum.Converter/Utils/List.js +3 -3
- package/dist/Glutinum.Converter/Utils/Naming.js +61 -12
- package/dist/Glutinum.Converter/Utils/String.js +7 -3
- package/dist/Program.js +230 -72
- package/package.json +4 -4
- package/src/Glutinum.Converter/js/bootstrap.js +109 -2
- package/src/Glutinum.Converter/js/host.js +144 -0
- package/src/Glutinum.Converter/js/npm.js +137 -0
- package/src/Glutinum.Converter/js/resolve.js +402 -0
- package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
- package/dist/Glutinum.Converter/Generate.js.map +0 -1
- package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
- package/dist/Glutinum.Converter/Log.js.map +0 -1
- package/dist/Glutinum.Converter/Merge.js.map +0 -1
- package/dist/Glutinum.Converter/Printer.js.map +0 -1
- package/dist/Glutinum.Converter/Read.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
- package/dist/Glutinum.Converter/Transform.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
- package/dist/Program.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
- package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
- package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
- package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
- package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
- package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
- package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
- package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
- package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
- package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
- package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
- package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
- package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
- package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
- package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
- package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
- package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
- package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
- package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
- package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
- package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
- package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
- package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
- package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
- package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
- package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
- package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
- package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
- package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
- package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
- package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
- package/dist/fable_modules/project_cracked.json +0 -1
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
namespace FsToolkit.ErrorHandling
|
|
2
|
-
|
|
3
|
-
[<RequireQualifiedAccess>]
|
|
4
|
-
module AsyncOption =
|
|
5
|
-
|
|
6
|
-
let inline map
|
|
7
|
-
([<InlineIfLambda>] mapper: 'input -> 'output)
|
|
8
|
-
(input: Async<'input option>)
|
|
9
|
-
: Async<'output option> =
|
|
10
|
-
Async.map (Option.map mapper) input
|
|
11
|
-
|
|
12
|
-
let inline bind
|
|
13
|
-
([<InlineIfLambda>] binder: 'input -> Async<'output option>)
|
|
14
|
-
(input: Async<'input option>)
|
|
15
|
-
: Async<'output option> =
|
|
16
|
-
Async.bind
|
|
17
|
-
(fun x ->
|
|
18
|
-
match x with
|
|
19
|
-
| Some x -> binder x
|
|
20
|
-
| None -> Async.singleton None
|
|
21
|
-
)
|
|
22
|
-
input
|
|
23
|
-
|
|
24
|
-
let inline retn (value: 'value) : Async<'value option> = Async.singleton (Some value)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
let inline some (value: 'value) : Async<'value option> = Async.singleton (Some value)
|
|
28
|
-
|
|
29
|
-
let inline apply
|
|
30
|
-
(applier: Async<('input -> 'output) option>)
|
|
31
|
-
(input: Async<'input option>)
|
|
32
|
-
: Async<'output option> =
|
|
33
|
-
bind (fun f' -> bind (fun x' -> retn (f' x')) input) applier
|
|
34
|
-
|
|
35
|
-
/// <summary>
|
|
36
|
-
/// Returns result of running <paramref name="onSome"/> if it is <c>Some</c>, otherwise returns result of running <paramref name="onNone"/>
|
|
37
|
-
/// </summary>
|
|
38
|
-
/// <param name="onSome">The function to run if <paramref name="input"/> is <c>Some</c></param>
|
|
39
|
-
/// <param name="onNone">The function to run if <paramref name="input"/> is <c>None</c></param>
|
|
40
|
-
/// <param name="input">The input option.</param>
|
|
41
|
-
/// <returns>
|
|
42
|
-
/// The result of running <paramref name="onSome"/> if the input is <c>Some</c>, else returns result of running <paramref name="onNone"/>.
|
|
43
|
-
/// </returns>
|
|
44
|
-
let inline either
|
|
45
|
-
([<InlineIfLambda>] onSome: 'input -> Async<'output>)
|
|
46
|
-
(onNone: Async<'output>)
|
|
47
|
-
(input: Async<'input option>)
|
|
48
|
-
: Async<'output> =
|
|
49
|
-
input
|
|
50
|
-
|> Async.bind (
|
|
51
|
-
function
|
|
52
|
-
| Some v -> onSome v
|
|
53
|
-
| None -> onNone
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
/// <summary>
|
|
57
|
-
/// Gets the value of the option if the option is <c>Some</c>, otherwise returns the specified default value.
|
|
58
|
-
/// </summary>
|
|
59
|
-
/// <param name="value">The specified default value.</param>
|
|
60
|
-
/// <param name="asyncOption">The input option.</param>
|
|
61
|
-
/// <returns>
|
|
62
|
-
/// The option if the option is <c>Some</c>, else the default value.
|
|
63
|
-
/// </returns>
|
|
64
|
-
let inline defaultValue (value: 'value) (asyncOption: Async<'value option>) =
|
|
65
|
-
asyncOption
|
|
66
|
-
|> Async.map (Option.defaultValue value)
|
|
67
|
-
|
|
68
|
-
/// <summary>
|
|
69
|
-
/// Gets the value of the option if the option is <c>Some</c>, otherwise evaluates <paramref name="defThunk"/> and returns the result.
|
|
70
|
-
/// </summary>
|
|
71
|
-
/// <param name="defThunk">A thunk that provides a default value when evaluated.</param>
|
|
72
|
-
/// <param name="asyncOption">The input option.</param>
|
|
73
|
-
/// <returns>
|
|
74
|
-
/// The option if the option is <c>Some</c>, else the result of evaluating <paramref name="defThunk"/>.
|
|
75
|
-
/// </returns>
|
|
76
|
-
let inline defaultWith
|
|
77
|
-
([<InlineIfLambda>] defThunk: unit -> 'value)
|
|
78
|
-
(asyncOption: Async<'value option>)
|
|
79
|
-
: Async<'value> =
|
|
80
|
-
asyncOption
|
|
81
|
-
|> Async.map (Option.defaultWith defThunk)
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
namespace FsToolkit.ErrorHandling
|
|
2
|
-
|
|
3
|
-
open System.Threading.Tasks
|
|
4
|
-
open System
|
|
5
|
-
|
|
6
|
-
[<AutoOpen>]
|
|
7
|
-
module AsyncOptionCE =
|
|
8
|
-
type AsyncOptionBuilder() =
|
|
9
|
-
|
|
10
|
-
member inline _.Return(value: 'value) : Async<'value option> = AsyncOption.retn value
|
|
11
|
-
|
|
12
|
-
member inline _.ReturnFrom(value: Async<'value option>) : Async<'value option> = value
|
|
13
|
-
|
|
14
|
-
member inline _.Zero() : Async<unit option> =
|
|
15
|
-
option.Zero()
|
|
16
|
-
|> async.Return
|
|
17
|
-
|
|
18
|
-
member inline _.Bind
|
|
19
|
-
(
|
|
20
|
-
input: Async<'input option>,
|
|
21
|
-
[<InlineIfLambda>] binder: 'input -> Async<'output option>
|
|
22
|
-
) : Async<'output option> =
|
|
23
|
-
AsyncOption.bind binder input
|
|
24
|
-
|
|
25
|
-
member inline _.Delay(generator: unit -> Async<'value option>) : Async<'value option> =
|
|
26
|
-
async.Delay generator
|
|
27
|
-
|
|
28
|
-
member inline this.Combine
|
|
29
|
-
(
|
|
30
|
-
computation1: Async<_ option>,
|
|
31
|
-
computation2: Async<_ option>
|
|
32
|
-
) : Async<_ option> =
|
|
33
|
-
this.Bind(computation1, (fun () -> computation2))
|
|
34
|
-
|
|
35
|
-
member inline _.TryWith
|
|
36
|
-
(
|
|
37
|
-
computation: Async<'value option>,
|
|
38
|
-
[<InlineIfLambda>] handler: System.Exception -> Async<'value option>
|
|
39
|
-
) : Async<_ option> =
|
|
40
|
-
async.TryWith(computation, handler)
|
|
41
|
-
|
|
42
|
-
member inline _.TryFinally
|
|
43
|
-
(
|
|
44
|
-
computation: Async<'value option>,
|
|
45
|
-
[<InlineIfLambda>] compensation: unit -> unit
|
|
46
|
-
) : Async<'value option> =
|
|
47
|
-
async.TryFinally(computation, compensation)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
#if NETSTANDARD2_1
|
|
51
|
-
|
|
52
|
-
member inline _.TryFinallyAsync
|
|
53
|
-
(
|
|
54
|
-
computation: Async<'value option>,
|
|
55
|
-
[<InlineIfLambda>] compensation: unit -> ValueTask
|
|
56
|
-
) : Async<'value option> =
|
|
57
|
-
let compensation =
|
|
58
|
-
async {
|
|
59
|
-
let vTask = compensation ()
|
|
60
|
-
|
|
61
|
-
if vTask.IsCompletedSuccessfully then
|
|
62
|
-
return ()
|
|
63
|
-
else
|
|
64
|
-
return!
|
|
65
|
-
vTask.AsTask()
|
|
66
|
-
|> Async.AwaitTask
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
Async.TryFinallyAsync(computation, compensation)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
member inline this.Using
|
|
73
|
-
(
|
|
74
|
-
resource: 'ok :> IAsyncDisposable,
|
|
75
|
-
[<InlineIfLambda>] binder: 'ok -> Async<'value option>
|
|
76
|
-
) : Async<'value option> =
|
|
77
|
-
this.TryFinallyAsync(
|
|
78
|
-
binder resource,
|
|
79
|
-
(fun () ->
|
|
80
|
-
if not (isNull (box resource)) then
|
|
81
|
-
resource.DisposeAsync()
|
|
82
|
-
else
|
|
83
|
-
ValueTask()
|
|
84
|
-
)
|
|
85
|
-
)
|
|
86
|
-
#endif
|
|
87
|
-
|
|
88
|
-
member this.While
|
|
89
|
-
(
|
|
90
|
-
guard: unit -> bool,
|
|
91
|
-
computation: Async<unit option>
|
|
92
|
-
) : Async<unit option> =
|
|
93
|
-
if not (guard ()) then
|
|
94
|
-
this.Zero()
|
|
95
|
-
else
|
|
96
|
-
this.Bind(computation, (fun () -> this.While(guard, computation)))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/// <summary>
|
|
100
|
-
/// Method lets us transform data types into our internal representation. This is the identity method to recognize the self type.
|
|
101
|
-
///
|
|
102
|
-
/// See https://stackoverflow.com/questions/35286541/why-would-you-use-builder-source-in-a-custom-computation-expression-builder
|
|
103
|
-
/// </summary>
|
|
104
|
-
member inline _.Source(async: Async<'value option>) : Async<'value option> = async
|
|
105
|
-
|
|
106
|
-
#if !FABLE_COMPILER
|
|
107
|
-
/// <summary>
|
|
108
|
-
/// Method lets us transform data types into our internal representation.
|
|
109
|
-
/// </summary>
|
|
110
|
-
member inline _.Source(task: Task<'value option>) : Async<'value option> =
|
|
111
|
-
task
|
|
112
|
-
|> Async.AwaitTask
|
|
113
|
-
|
|
114
|
-
#endif
|
|
115
|
-
|
|
116
|
-
let asyncOption = AsyncOptionBuilder()
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
[<AutoOpen>]
|
|
120
|
-
// Having members as extensions gives them lower priority in
|
|
121
|
-
// overload resolution and allows skipping more type annotations.
|
|
122
|
-
module AsyncOptionCEExtensions =
|
|
123
|
-
|
|
124
|
-
type AsyncOptionBuilder with
|
|
125
|
-
|
|
126
|
-
/// <summary>
|
|
127
|
-
/// Needed to allow `for..in` and `for..do` functionality
|
|
128
|
-
/// </summary>
|
|
129
|
-
member inline _.Source(s: #seq<_>) : #seq<_> = s
|
|
130
|
-
|
|
131
|
-
/// <summary>
|
|
132
|
-
/// Method lets us transform data types into our internal representation.
|
|
133
|
-
/// </summary>
|
|
134
|
-
member inline _.Source(r: 'value option) : Async<option<'value>> = Async.singleton r
|
|
135
|
-
|
|
136
|
-
/// <summary>
|
|
137
|
-
/// Method lets us transform data types into our internal representation.
|
|
138
|
-
/// </summary>
|
|
139
|
-
member inline _.Source(a: Async<'value>) : Async<option<'value>> =
|
|
140
|
-
a
|
|
141
|
-
|> Async.map Some
|
|
142
|
-
|
|
143
|
-
member inline this.Using
|
|
144
|
-
(
|
|
145
|
-
resource: 'disposable :> IDisposable,
|
|
146
|
-
[<InlineIfLambda>] binder: 'disposable -> Async<'output option>
|
|
147
|
-
) : Async<'output option> =
|
|
148
|
-
this.TryFinally(
|
|
149
|
-
(binder resource),
|
|
150
|
-
(fun () ->
|
|
151
|
-
if not (obj.ReferenceEquals(resource, null)) then
|
|
152
|
-
resource.Dispose()
|
|
153
|
-
)
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
member inline this.For
|
|
157
|
-
(
|
|
158
|
-
sequence: #seq<'input>,
|
|
159
|
-
binder: 'input -> Async<unit option>
|
|
160
|
-
) : Async<unit option> =
|
|
161
|
-
this.Using(
|
|
162
|
-
sequence.GetEnumerator(),
|
|
163
|
-
fun enum -> this.While(enum.MoveNext, this.Delay(fun () -> binder enum.Current))
|
|
164
|
-
)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
#if !FABLE_COMPILER
|
|
168
|
-
/// <summary>
|
|
169
|
-
/// Method lets us transform data types into our internal representation.
|
|
170
|
-
/// </summary>
|
|
171
|
-
member inline _.Source(a: Task<'value>) : Async<option<'value>> =
|
|
172
|
-
a
|
|
173
|
-
|> Async.AwaitTask
|
|
174
|
-
|> Async.map Some
|
|
175
|
-
|
|
176
|
-
/// <summary>
|
|
177
|
-
/// Method lets us transform data types into our internal representation.
|
|
178
|
-
/// </summary>
|
|
179
|
-
member inline _.Source(a: Task) : Async<option<unit>> =
|
|
180
|
-
a
|
|
181
|
-
|> Async.AwaitTask
|
|
182
|
-
|> Async.map Some
|
|
183
|
-
#endif
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { class_type } from "../fable-library-js.4.14.0/Reflection.js";
|
|
2
|
-
import { singleton } from "../fable-library-js.4.14.0/AsyncBuilder.js";
|
|
3
|
-
import { value as value_2, some } from "../fable-library-js.4.14.0/Option.js";
|
|
4
|
-
|
|
5
|
-
export class AsyncOptionCE_AsyncOptionBuilder {
|
|
6
|
-
constructor() {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function AsyncOptionCE_AsyncOptionBuilder_$reflection() {
|
|
11
|
-
return class_type("FsToolkit.ErrorHandling.AsyncOptionCE.AsyncOptionBuilder", void 0, AsyncOptionCE_AsyncOptionBuilder);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function AsyncOptionCE_AsyncOptionBuilder_$ctor() {
|
|
15
|
-
return new AsyncOptionCE_AsyncOptionBuilder();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function AsyncOptionCE_AsyncOptionBuilder__While_78DDE493(this$, guard, computation) {
|
|
19
|
-
if (!guard()) {
|
|
20
|
-
return singleton.Return(some(void 0));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return singleton.Bind(computation, (x_1) => {
|
|
24
|
-
if (x_1 == null) {
|
|
25
|
-
return singleton.Return(void 0);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
const unitVar_2 = value_2(x_1);
|
|
29
|
-
return AsyncOptionCE_AsyncOptionBuilder__While_78DDE493(this$, guard, computation);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const AsyncOptionCE_asyncOption = AsyncOptionCE_AsyncOptionBuilder_$ctor();
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=AsyncOptionCE.fs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./AsyncOptionCE.fs","./OptionCE.fs","./Async.fs","./AsyncOption.fs"],"names":["guard","computation","x","unitVar0","While","this","\u0060\u0060.ctor\u0060\u0060"],"mappings":";;;;;;;;;;;;;;;;;;AA4FY,QAAG,CAAK,AAAAA;AA7EL,eAAA,iBCR6C,KAmBC;;;ACUrD,eAAA,eF2DkBC;AG9EJ,gBAAA,AAAAC;ADFX,uBAAA,iBCI\u002BB;;;AH4EEC,0CG7EhBD;AH6EsB,uBAAA,AAAAE,iDAAAC,OAAWL,OAAOC;;;;;;yCAoB9C,AAAAK","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
namespace FsToolkit.ErrorHandling.Operator.AsyncOption
|
|
2
|
-
|
|
3
|
-
open FsToolkit.ErrorHandling
|
|
4
|
-
|
|
5
|
-
[<AutoOpen>]
|
|
6
|
-
module AsyncOption =
|
|
7
|
-
|
|
8
|
-
let inline (<!>)
|
|
9
|
-
(([<InlineIfLambda>] mapper: 'input -> 'output))
|
|
10
|
-
(input: Async<'input option>)
|
|
11
|
-
: Async<'output option> =
|
|
12
|
-
AsyncOption.map mapper input
|
|
13
|
-
|
|
14
|
-
let inline (<*>)
|
|
15
|
-
(applier: Async<('input -> 'output) option>)
|
|
16
|
-
(input: Async<'input option>)
|
|
17
|
-
: Async<'output option> =
|
|
18
|
-
AsyncOption.apply applier input
|
|
19
|
-
|
|
20
|
-
let inline (>>=)
|
|
21
|
-
(input: Async<'input option>)
|
|
22
|
-
([<InlineIfLambda>] binder: 'input -> Async<'output option>)
|
|
23
|
-
: Async<'output option> =
|
|
24
|
-
AsyncOption.bind binder input
|