@nfdi4plants/arctrl 1.1.0 → 1.2.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/ARC.js +9 -9
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +11 -11
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +19 -19
- package/ISA/ISA/ArcTypes/ArcTableAux.js +16 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +10 -10
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +105 -84
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +74 -41
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +112 -71
- package/ISA/ISA.Json/ArcTypes/CellTable.js +13 -19
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +23 -38
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +13 -19
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +86 -109
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +25 -24
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +5 -5
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +8 -8
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/ISA/ISA.Spreadsheet/ArcAssay.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +10 -10
- package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +21 -16
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +10 -10
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
## 1.1.0 - 2024-02-20
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
#### JavaScript
|
|
15
|
+
|
|
16
|
+
* [GH-3759](https://github.com/fable-compiler/Fable/issues/3759) Add `StringBuilder.Chars` (by @MangelMaxime)
|
|
17
|
+
* Add `StringBuilder.AppendFormat` (by @ncave)
|
|
18
|
+
* [GH-3748](https://github.com/fable-compiler/Fable/pull/3748) Add `Array.getItem` and `Array.setItem` (by @MangelMaxime)
|
|
19
|
+
|
|
20
|
+
## 1.0.0 - 2024-02-13
|
|
21
|
+
|
|
22
|
+
* Release stable version
|
|
23
|
+
|
|
24
|
+
## 1.0.0-beta-001 - 2024-02-12
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
* Separate `Result` from `Choice`
|
|
29
|
+
* Released as part of Fable 4.12.0
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { Union } from "./Types.js";
|
|
2
2
|
import { TypeInfo } from "./Reflection.js";
|
|
3
3
|
import { Option } from "./Option.js";
|
|
4
|
-
export type FSharpResult$2_$union<T, TError> = FSharpResult$2<T, TError, 0> | FSharpResult$2<T, TError, 1>;
|
|
5
|
-
export type FSharpResult$2_$cases<T, TError> = {
|
|
6
|
-
0: ["Ok", [T]];
|
|
7
|
-
1: ["Error", [TError]];
|
|
8
|
-
};
|
|
9
|
-
export declare function FSharpResult$2_Ok<T, TError>(ResultValue: T): FSharpResult$2<T, TError, 0>;
|
|
10
|
-
export declare function FSharpResult$2_Error<T, TError>(ErrorValue: TError): FSharpResult$2<T, TError, 1>;
|
|
11
|
-
export declare class FSharpResult$2<T, TError, Tag extends keyof FSharpResult$2_$cases<T, TError>> extends Union<Tag, FSharpResult$2_$cases<T, TError>[Tag][0]> {
|
|
12
|
-
readonly tag: Tag;
|
|
13
|
-
readonly fields: FSharpResult$2_$cases<T, TError>[Tag][1];
|
|
14
|
-
constructor(tag: Tag, fields: FSharpResult$2_$cases<T, TError>[Tag][1]);
|
|
15
|
-
cases(): string[];
|
|
16
|
-
}
|
|
17
|
-
export declare function FSharpResult$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
18
|
-
export declare function Result_Map<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
19
|
-
export declare function Result_MapError<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<c, a>): FSharpResult$2_$union<c, b>;
|
|
20
|
-
export declare function Result_Bind<a, b, c>(binder: ((arg0: a) => FSharpResult$2_$union<b, c>), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
21
4
|
export type FSharpChoice$2_$union<T1, T2> = FSharpChoice$2<T1, T2, 0> | FSharpChoice$2<T1, T2, 1>;
|
|
22
5
|
export type FSharpChoice$2_$cases<T1, T2> = {
|
|
23
6
|
0: ["Choice1Of2", [T1]];
|
|
@@ -1,49 +1,6 @@
|
|
|
1
1
|
import { Union } from "./Types.js";
|
|
2
2
|
import { union_type } from "./Reflection.js";
|
|
3
3
|
import { some } from "./Option.js";
|
|
4
|
-
export function FSharpResult$2_Ok(ResultValue) {
|
|
5
|
-
return new FSharpResult$2(0, [ResultValue]);
|
|
6
|
-
}
|
|
7
|
-
export function FSharpResult$2_Error(ErrorValue) {
|
|
8
|
-
return new FSharpResult$2(1, [ErrorValue]);
|
|
9
|
-
}
|
|
10
|
-
export class FSharpResult$2 extends Union {
|
|
11
|
-
constructor(tag, fields) {
|
|
12
|
-
super();
|
|
13
|
-
this.tag = tag;
|
|
14
|
-
this.fields = fields;
|
|
15
|
-
}
|
|
16
|
-
cases() {
|
|
17
|
-
return ["Ok", "Error"];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export function FSharpResult$2_$reflection(gen0, gen1) {
|
|
21
|
-
return union_type("FSharp.Core.FSharpResult`2", [gen0, gen1], FSharpResult$2, () => [[["ResultValue", gen0]], [["ErrorValue", gen1]]]);
|
|
22
|
-
}
|
|
23
|
-
export function Result_Map(mapping, result) {
|
|
24
|
-
if (result.tag === /* Ok */ 0) {
|
|
25
|
-
return FSharpResult$2_Ok(mapping(result.fields[0]));
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return FSharpResult$2_Error(result.fields[0]);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export function Result_MapError(mapping, result) {
|
|
32
|
-
if (result.tag === /* Ok */ 0) {
|
|
33
|
-
return FSharpResult$2_Ok(result.fields[0]);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return FSharpResult$2_Error(mapping(result.fields[0]));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export function Result_Bind(binder, result) {
|
|
40
|
-
if (result.tag === /* Ok */ 0) {
|
|
41
|
-
return binder(result.fields[0]);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return FSharpResult$2_Error(result.fields[0]);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
4
|
export function FSharpChoice$2_Choice1Of2(Item) {
|
|
48
5
|
return new FSharpChoice$2(0, [Item]);
|
|
49
6
|
}
|
|
@@ -200,11 +200,12 @@ export function parseRaw(input) {
|
|
|
200
200
|
let timeInSeconds = 0;
|
|
201
201
|
if (m[2] != null) {
|
|
202
202
|
const timeParts = m[2].split(":");
|
|
203
|
+
const hourPart = parseInt(timeParts[0], 10);
|
|
203
204
|
timeInSeconds =
|
|
204
|
-
|
|
205
|
+
hourPart * 3600 +
|
|
205
206
|
parseInt(timeParts[1] || "0", 10) * 60 +
|
|
206
207
|
parseFloat(timeParts[2] || "0");
|
|
207
|
-
if (m[3] != null && m[3].toUpperCase() === "PM") {
|
|
208
|
+
if (m[3] != null && m[3].toUpperCase() === "PM" && hourPart < 12) {
|
|
208
209
|
timeInSeconds += 720;
|
|
209
210
|
}
|
|
210
211
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypeInfo } from "./Reflection.js";
|
|
2
|
+
import { FSharpList } from "./List.js";
|
|
3
|
+
export declare class ListCollector$1<T> {
|
|
4
|
+
readonly collector: T[];
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
7
|
+
export declare function ListCollector$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
8
|
+
export declare function ListCollector$1_$ctor<T>(): ListCollector$1<T>;
|
|
9
|
+
export declare function ListCollector$1__Add_2B595<T>(this$: ListCollector$1<T>, value: T): void;
|
|
10
|
+
export declare function ListCollector$1__AddMany_BB573A<T>(this$: ListCollector$1<T>, values: Iterable<T>): void;
|
|
11
|
+
export declare function ListCollector$1__AddManyAndClose_BB573A<T>(this$: ListCollector$1<T>, values: Iterable<T>): FSharpList<T>;
|
|
12
|
+
export declare function ListCollector$1__Close<T>(this$: ListCollector$1<T>): FSharpList<T>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { class_type } from "./Reflection.js";
|
|
2
|
+
import { addRangeInPlace } from "./Array.js";
|
|
3
|
+
import { toList } from "./Seq.js";
|
|
4
|
+
export class ListCollector$1 {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.collector = [];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export function ListCollector$1_$reflection(gen0) {
|
|
10
|
+
return class_type("Microsoft.FSharp.Core.CompilerServices.ListCollector`1", [gen0], ListCollector$1);
|
|
11
|
+
}
|
|
12
|
+
export function ListCollector$1_$ctor() {
|
|
13
|
+
return new ListCollector$1();
|
|
14
|
+
}
|
|
15
|
+
export function ListCollector$1__Add_2B595(this$, value) {
|
|
16
|
+
void (this$.collector.push(value));
|
|
17
|
+
}
|
|
18
|
+
export function ListCollector$1__AddMany_BB573A(this$, values) {
|
|
19
|
+
addRangeInPlace(values, this$.collector);
|
|
20
|
+
}
|
|
21
|
+
export function ListCollector$1__AddManyAndClose_BB573A(this$, values) {
|
|
22
|
+
addRangeInPlace(values, this$.collector);
|
|
23
|
+
return toList(this$.collector);
|
|
24
|
+
}
|
|
25
|
+
export function ListCollector$1__Close(this$) {
|
|
26
|
+
return toList(this$.collector);
|
|
27
|
+
}
|
|
@@ -4,7 +4,7 @@ import { disposeSafe, isArrayLike, defaultOf, toIterator, getEnumerator, compare
|
|
|
4
4
|
import { Record } from "./Types.js";
|
|
5
5
|
import { class_type, record_type, option_type } from "./Reflection.js";
|
|
6
6
|
import { SR_inputSequenceTooLong, SR_inputSequenceEmpty, SR_inputMustBeNonNegative, SR_notEnoughElements, SR_differentLengths, SR_keyNotFoundAlt, SR_indexOutOfBounds, SR_inputWasEmpty } from "./Global.js";
|
|
7
|
-
import { transpose as transpose_1, splitInto as splitInto_1, windowed as windowed_1, pairwise as pairwise_1, chunkBySize as chunkBySize_1, map as map_1, permute as permute_1, tryFindIndexBack as tryFindIndexBack_1, tryFindBack as tryFindBack_1, scanBack as scanBack_1, foldBack2 as foldBack2_1, foldBack as foldBack_1, fill } from "./Array.js";
|
|
7
|
+
import { transpose as transpose_1, splitInto as splitInto_1, windowed as windowed_1, pairwise as pairwise_1, chunkBySize as chunkBySize_1, map as map_1, permute as permute_1, tryFindIndexBack as tryFindIndexBack_1, tryFindBack as tryFindBack_1, scanBack as scanBack_1, item as item_1, foldBack2 as foldBack2_1, foldBack as foldBack_1, setItem, fill } from "./Array.js";
|
|
8
8
|
export class FSharpList extends Record {
|
|
9
9
|
constructor(head, tail) {
|
|
10
10
|
super();
|
|
@@ -345,7 +345,7 @@ export function toArray(xs) {
|
|
|
345
345
|
loop: while (true) {
|
|
346
346
|
const i = i_mut, xs_1 = xs_1_mut;
|
|
347
347
|
if (!FSharpList__get_IsEmpty(xs_1)) {
|
|
348
|
-
res
|
|
348
|
+
setItem(res, i, FSharpList__get_Head(xs_1));
|
|
349
349
|
i_mut = (i + 1);
|
|
350
350
|
xs_1_mut = FSharpList__get_Tail(xs_1);
|
|
351
351
|
continue loop;
|
|
@@ -454,7 +454,7 @@ export function toSeq(xs) {
|
|
|
454
454
|
export function ofArrayWithTail(xs, tail_1) {
|
|
455
455
|
let res = tail_1;
|
|
456
456
|
for (let i = xs.length - 1; i >= 0; i--) {
|
|
457
|
-
res = FSharpList_Cons_305B8EAC(
|
|
457
|
+
res = FSharpList_Cons_305B8EAC(item_1(i, xs), res);
|
|
458
458
|
}
|
|
459
459
|
return res;
|
|
460
460
|
}
|
|
@@ -2,7 +2,7 @@ import { record_type, bool_type, list_type, option_type, class_type } from "./Re
|
|
|
2
2
|
import { some, value as value_1 } from "./Option.js";
|
|
3
3
|
import { structuralHash, compare, toIterator, equals, disposeSafe, getEnumerator, isArrayLike } from "./Util.js";
|
|
4
4
|
import { singleton, ofArrayWithTail, head, tail, isEmpty as isEmpty_1, fold as fold_1, empty as empty_1, FSharpList, cons } from "./List.js";
|
|
5
|
-
import { map as map_2, fill } from "./Array.js";
|
|
5
|
+
import { map as map_2, item, fill, setItem } from "./Array.js";
|
|
6
6
|
import { Record } from "./Types.js";
|
|
7
7
|
import { tryPick as tryPick_1, pick as pick_1, iterate as iterate_1, compareWith, map as map_1, unfold } from "./Seq.js";
|
|
8
8
|
import { format, join } from "./String.js";
|
|
@@ -750,7 +750,7 @@ export function MapTreeModule_toList(m) {
|
|
|
750
750
|
export function MapTreeModule_copyToArray(m, arr, i) {
|
|
751
751
|
let j = i;
|
|
752
752
|
MapTreeModule_iter((x, y) => {
|
|
753
|
-
arr
|
|
753
|
+
setItem(arr, j, [x, y]);
|
|
754
754
|
j = ((j + 1) | 0);
|
|
755
755
|
}, m);
|
|
756
756
|
}
|
|
@@ -782,7 +782,7 @@ export function MapTreeModule_mkFromEnumerator(comparer_mut, acc_mut, e_mut) {
|
|
|
782
782
|
export function MapTreeModule_ofArray(comparer, arr) {
|
|
783
783
|
let res = MapTreeModule_empty();
|
|
784
784
|
for (let idx = 0; idx <= (arr.length - 1); idx++) {
|
|
785
|
-
const forLoopVar = arr
|
|
785
|
+
const forLoopVar = item(idx, arr);
|
|
786
786
|
res = MapTreeModule_add(comparer, forLoopVar[0], forLoopVar[1], res);
|
|
787
787
|
}
|
|
788
788
|
return res;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { disposeSafe, defaultOf, equals, toIterator, getEnumerator } from "./Util.js";
|
|
2
2
|
import { iterate, map, delay, toArray, iterateIndexed, concat } from "./Seq.js";
|
|
3
3
|
import { value as value_1 } from "./Option.js";
|
|
4
|
+
import { setItem } from "./Array.js";
|
|
4
5
|
import { FSharpRef } from "./Types.js";
|
|
5
6
|
import { class_type } from "./Reflection.js";
|
|
6
7
|
import { getItemFromDict, tryGetValue } from "./MapUtil.js";
|
|
@@ -75,7 +76,7 @@ export class Dictionary {
|
|
|
75
76
|
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
|
|
76
77
|
const this$ = this;
|
|
77
78
|
iterateIndexed((i, e) => {
|
|
78
|
-
array
|
|
79
|
+
setItem(array, arrayIndex + i, e);
|
|
79
80
|
}, this$);
|
|
80
81
|
}
|
|
81
82
|
"System.Collections.Generic.ICollection`1.get_Count"() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { disposeSafe, defaultOf, toIterator, getEnumerator } from "./Util.js";
|
|
2
2
|
import { iterate, map, iterateIndexed, concat } from "./Seq.js";
|
|
3
|
+
import { setItem } from "./Array.js";
|
|
3
4
|
import { some } from "./Option.js";
|
|
4
5
|
import { FSharpRef } from "./Types.js";
|
|
5
6
|
import { class_type } from "./Reflection.js";
|
|
@@ -55,7 +56,7 @@ export class HashSet {
|
|
|
55
56
|
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
|
|
56
57
|
const this$ = this;
|
|
57
58
|
iterateIndexed((i, e) => {
|
|
58
|
-
array
|
|
59
|
+
setItem(array, arrayIndex + i, e);
|
|
59
60
|
}, this$);
|
|
60
61
|
}
|
|
61
62
|
"System.Collections.Generic.ICollection`1.get_Count"() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { class_type } from "./Reflection.js";
|
|
2
2
|
import { fromFloat64, op_Addition, toInt32, toFloat64, compare, fromInt32, toInt64 } from "./BigInt.js";
|
|
3
|
-
import { fill } from "./Array.js";
|
|
3
|
+
import { item, fill, setItem } from "./Array.js";
|
|
4
4
|
function Native_random() {
|
|
5
5
|
return Math.random();
|
|
6
6
|
}
|
|
@@ -73,13 +73,13 @@ export class Seeded {
|
|
|
73
73
|
if (mk < 0) {
|
|
74
74
|
mk = ((mk + this.MBIG) | 0);
|
|
75
75
|
}
|
|
76
|
-
mj = (this.seedArray
|
|
76
|
+
mj = (item(ii, this.seedArray) | 0);
|
|
77
77
|
}
|
|
78
78
|
for (let k = 1; k <= 4; k++) {
|
|
79
79
|
for (let i_1 = 1; i_1 <= 55; i_1++) {
|
|
80
|
-
this.seedArray[i_1] = ((this.seedArray
|
|
81
|
-
if (this.seedArray
|
|
82
|
-
this.seedArray[i_1] = ((this.seedArray
|
|
80
|
+
this.seedArray[i_1] = ((item(i_1, this.seedArray) - item(1 + ((i_1 + 30) % 55), this.seedArray)) | 0);
|
|
81
|
+
if (item(i_1, this.seedArray) < 0) {
|
|
82
|
+
this.seedArray[i_1] = ((item(i_1, this.seedArray) + this.MBIG) | 0);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -115,7 +115,7 @@ export class Seeded {
|
|
|
115
115
|
throw new Error("buffer");
|
|
116
116
|
}
|
|
117
117
|
for (let i = 0; i <= (buffer.length - 1); i++) {
|
|
118
|
-
buffer
|
|
118
|
+
setItem(buffer, i, (Seeded__InternalSample(this$) % (~~255 + 1)) & 0xFF);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -137,7 +137,7 @@ function Seeded__InternalSample(_) {
|
|
|
137
137
|
if (locINextp >= 56) {
|
|
138
138
|
locINextp = 1;
|
|
139
139
|
}
|
|
140
|
-
retVal = ((_.seedArray
|
|
140
|
+
retVal = ((item(locINext, _.seedArray) - item(locINextp, _.seedArray)) | 0);
|
|
141
141
|
if (retVal === _.MBIG) {
|
|
142
142
|
retVal = ((retVal - 1) | 0);
|
|
143
143
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Union } from "./Types.js";
|
|
2
|
+
import { TypeInfo } from "./Reflection.js";
|
|
3
|
+
import { int32 } from "./Int32.js";
|
|
4
|
+
import { FSharpList } from "./List.js";
|
|
5
|
+
import { Option } from "./Option.js";
|
|
6
|
+
export type FSharpResult$2_$union<T, TError> = FSharpResult$2<T, TError, 0> | FSharpResult$2<T, TError, 1>;
|
|
7
|
+
export type FSharpResult$2_$cases<T, TError> = {
|
|
8
|
+
0: ["Ok", [T]];
|
|
9
|
+
1: ["Error", [TError]];
|
|
10
|
+
};
|
|
11
|
+
export declare function FSharpResult$2_Ok<T, TError>(ResultValue: T): FSharpResult$2<T, TError, 0>;
|
|
12
|
+
export declare function FSharpResult$2_Error<T, TError>(ErrorValue: TError): FSharpResult$2<T, TError, 1>;
|
|
13
|
+
export declare class FSharpResult$2<T, TError, Tag extends keyof FSharpResult$2_$cases<T, TError>> extends Union<Tag, FSharpResult$2_$cases<T, TError>[Tag][0]> {
|
|
14
|
+
readonly tag: Tag;
|
|
15
|
+
readonly fields: FSharpResult$2_$cases<T, TError>[Tag][1];
|
|
16
|
+
constructor(tag: Tag, fields: FSharpResult$2_$cases<T, TError>[Tag][1]);
|
|
17
|
+
cases(): string[];
|
|
18
|
+
}
|
|
19
|
+
export declare function FSharpResult$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
20
|
+
export declare function Result_Map<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
21
|
+
export declare function Result_MapError<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<c, a>): FSharpResult$2_$union<c, b>;
|
|
22
|
+
export declare function Result_Bind<a, b, c>(binder: ((arg0: a) => FSharpResult$2_$union<b, c>), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
23
|
+
export declare function Result_IsOk<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
|
|
24
|
+
export declare function Result_IsError<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
|
|
25
|
+
export declare function Result_Contains<a, b>(value: a, result: FSharpResult$2_$union<a, b>): boolean;
|
|
26
|
+
export declare function Result_Count<a, b>(result: FSharpResult$2_$union<a, b>): int32;
|
|
27
|
+
export declare function Result_DefaultValue<a, b>(defaultValue: a, result: FSharpResult$2_$union<a, b>): a;
|
|
28
|
+
export declare function Result_DefaultWith<b, a>(defThunk: ((arg0: b) => a), result: FSharpResult$2_$union<a, b>): a;
|
|
29
|
+
export declare function Result_Exists<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
|
|
30
|
+
export declare function Result_Fold<a, b, s>(folder: ((arg0: s, arg1: a) => s), state: s, result: FSharpResult$2_$union<a, b>): s;
|
|
31
|
+
export declare function Result_FoldBack<a, b, s>(folder: ((arg0: a, arg1: s) => s), result: FSharpResult$2_$union<a, b>, state: s): s;
|
|
32
|
+
export declare function Result_ForAll<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
|
|
33
|
+
export declare function Result_Iterate<a, b>(action: ((arg0: a) => void), result: FSharpResult$2_$union<a, b>): void;
|
|
34
|
+
export declare function Result_ToArray<a, b>(result: FSharpResult$2_$union<a, b>): a[];
|
|
35
|
+
export declare function Result_ToList<a, b>(result: FSharpResult$2_$union<a, b>): FSharpList<a>;
|
|
36
|
+
export declare function Result_ToOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
|
|
37
|
+
export declare function Result_ToValueOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Union } from "./Types.js";
|
|
2
|
+
import { union_type } from "./Reflection.js";
|
|
3
|
+
import { equals } from "./Util.js";
|
|
4
|
+
import { empty, singleton } from "./List.js";
|
|
5
|
+
import { some } from "./Option.js";
|
|
6
|
+
export function FSharpResult$2_Ok(ResultValue) {
|
|
7
|
+
return new FSharpResult$2(0, [ResultValue]);
|
|
8
|
+
}
|
|
9
|
+
export function FSharpResult$2_Error(ErrorValue) {
|
|
10
|
+
return new FSharpResult$2(1, [ErrorValue]);
|
|
11
|
+
}
|
|
12
|
+
export class FSharpResult$2 extends Union {
|
|
13
|
+
constructor(tag, fields) {
|
|
14
|
+
super();
|
|
15
|
+
this.tag = tag;
|
|
16
|
+
this.fields = fields;
|
|
17
|
+
}
|
|
18
|
+
cases() {
|
|
19
|
+
return ["Ok", "Error"];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export function FSharpResult$2_$reflection(gen0, gen1) {
|
|
23
|
+
return union_type("FSharp.Core.FSharpResult`2", [gen0, gen1], FSharpResult$2, () => [[["ResultValue", gen0]], [["ErrorValue", gen1]]]);
|
|
24
|
+
}
|
|
25
|
+
export function Result_Map(mapping, result) {
|
|
26
|
+
if (result.tag === /* Ok */ 0) {
|
|
27
|
+
return FSharpResult$2_Ok(mapping(result.fields[0]));
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return FSharpResult$2_Error(result.fields[0]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export function Result_MapError(mapping, result) {
|
|
34
|
+
if (result.tag === /* Ok */ 0) {
|
|
35
|
+
return FSharpResult$2_Ok(result.fields[0]);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return FSharpResult$2_Error(mapping(result.fields[0]));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export function Result_Bind(binder, result) {
|
|
42
|
+
if (result.tag === /* Ok */ 0) {
|
|
43
|
+
return binder(result.fields[0]);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return FSharpResult$2_Error(result.fields[0]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export function Result_IsOk(result) {
|
|
50
|
+
if (result.tag === /* Ok */ 0) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export function Result_IsError(result) {
|
|
58
|
+
if (result.tag === /* Ok */ 0) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export function Result_Contains(value, result) {
|
|
66
|
+
if (result.tag === /* Ok */ 0) {
|
|
67
|
+
return equals(result.fields[0], value);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export function Result_Count(result) {
|
|
74
|
+
if (result.tag === /* Ok */ 0) {
|
|
75
|
+
return 1;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
return 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export function Result_DefaultValue(defaultValue, result) {
|
|
82
|
+
if (result.tag === /* Ok */ 0) {
|
|
83
|
+
return result.fields[0];
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return defaultValue;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export function Result_DefaultWith(defThunk, result) {
|
|
90
|
+
if (result.tag === /* Ok */ 0) {
|
|
91
|
+
return result.fields[0];
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return defThunk(result.fields[0]);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export function Result_Exists(predicate, result) {
|
|
98
|
+
if (result.tag === /* Ok */ 0) {
|
|
99
|
+
return predicate(result.fields[0]);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export function Result_Fold(folder, state, result) {
|
|
106
|
+
if (result.tag === /* Ok */ 0) {
|
|
107
|
+
return folder(state, result.fields[0]);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return state;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export function Result_FoldBack(folder, result, state) {
|
|
114
|
+
if (result.tag === /* Ok */ 0) {
|
|
115
|
+
return folder(result.fields[0], state);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return state;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export function Result_ForAll(predicate, result) {
|
|
122
|
+
if (result.tag === /* Ok */ 0) {
|
|
123
|
+
return predicate(result.fields[0]);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export function Result_Iterate(action, result) {
|
|
130
|
+
if (result.tag === /* Ok */ 0) {
|
|
131
|
+
action(result.fields[0]);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export function Result_ToArray(result) {
|
|
135
|
+
if (result.tag === /* Ok */ 0) {
|
|
136
|
+
return [result.fields[0]];
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export function Result_ToList(result) {
|
|
143
|
+
if (result.tag === /* Ok */ 0) {
|
|
144
|
+
return singleton(result.fields[0]);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return empty();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export function Result_ToOption(result) {
|
|
151
|
+
if (result.tag === /* Ok */ 0) {
|
|
152
|
+
return some(result.fields[0]);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return void 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export function Result_ToValueOption(result) {
|
|
159
|
+
if (result.tag === /* Ok */ 0) {
|
|
160
|
+
return some(result.fields[0]);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
return void 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -3,7 +3,7 @@ import { some, value as value_3 } from "./Option.js";
|
|
|
3
3
|
import { structuralHash, toIterator, disposeSafe, getEnumerator, isArrayLike } from "./Util.js";
|
|
4
4
|
import { toString, Record } from "./Types.js";
|
|
5
5
|
import { fold as fold_2, cons, singleton as singleton_1, empty as empty_1, ofArrayWithTail, tail, head, isEmpty as isEmpty_1, FSharpList } from "./List.js";
|
|
6
|
-
import { fold as fold_1, fill } from "./Array.js";
|
|
6
|
+
import { fold as fold_1, fill, setItem } from "./Array.js";
|
|
7
7
|
import { join } from "./String.js";
|
|
8
8
|
import { exists as exists_1, cache, forAll as forAll_1, fold as fold_3, reduce, iterate as iterate_1, map as map_1 } from "./Seq.js";
|
|
9
9
|
import { HashSet__get_Comparer, HashSet_$ctor_Z6150332D, HashSet } from "./MutableSet.js";
|
|
@@ -1337,7 +1337,7 @@ export function SetTreeModule_toList(t) {
|
|
|
1337
1337
|
export function SetTreeModule_copyToArray(s, arr, i) {
|
|
1338
1338
|
let j = i;
|
|
1339
1339
|
SetTreeModule_iter((x) => {
|
|
1340
|
-
arr
|
|
1340
|
+
setItem(arr, j, x);
|
|
1341
1341
|
j = ((j + 1) | 0);
|
|
1342
1342
|
}, s);
|
|
1343
1343
|
}
|
|
@@ -38,6 +38,7 @@ export declare function trimStart(str: string, ...chars: string[]): any;
|
|
|
38
38
|
export declare function trimEnd(str: string, ...chars: string[]): any;
|
|
39
39
|
export declare function filter(pred: (char: string) => boolean, x: string): string;
|
|
40
40
|
export declare function substring(str: string, startIndex: number, length?: number): string;
|
|
41
|
+
export declare function toCharArray2(str: string, startIndex: number, length: number): string[];
|
|
41
42
|
interface FormattableString {
|
|
42
43
|
strs: TemplateStringsArray;
|
|
43
44
|
args: any[];
|
|
@@ -78,11 +78,11 @@ export function indexOfAny(str, anyOf, ...args) {
|
|
|
78
78
|
if (startIndex + length > str.length) {
|
|
79
79
|
throw new Error("Invalid startIndex and length");
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
81
|
+
const endIndex = startIndex + length;
|
|
82
|
+
const anyOfAsStr = "".concat.apply("", anyOf);
|
|
83
|
+
for (let i = startIndex; i < endIndex; i++) {
|
|
84
|
+
if (anyOfAsStr.indexOf(str[i]) > -1) {
|
|
85
|
+
return i;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return -1;
|
|
@@ -527,6 +527,9 @@ export function substring(str, startIndex, length) {
|
|
|
527
527
|
}
|
|
528
528
|
return length != null ? str.substr(startIndex, length) : str.substr(startIndex);
|
|
529
529
|
}
|
|
530
|
+
export function toCharArray2(str, startIndex, length) {
|
|
531
|
+
return substring(str, startIndex, length).split("");
|
|
532
|
+
}
|
|
530
533
|
export function fmt(strs, ...args) {
|
|
531
534
|
return ({ strs, args });
|
|
532
535
|
}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import { IEnumerator, IEqualityComparer, IComparer } from "./Util.js";
|
|
2
1
|
import { int32 } from "./Int32.js";
|
|
2
|
+
import { IEnumerator, IEqualityComparer, IComparer } from "./Util.js";
|
|
3
3
|
import { TypeInfo } from "./Reflection.js";
|
|
4
4
|
import { FSharpRef } from "./Types.js";
|
|
5
5
|
export declare class Comparer$1<T> implements IComparer<T> {
|
|
6
|
-
|
|
6
|
+
readonly comparison: ((arg0: T, arg1: T) => int32);
|
|
7
|
+
constructor(comparison: ((arg0: T, arg1: T) => int32));
|
|
7
8
|
Compare(x: T, y: T): int32;
|
|
8
9
|
}
|
|
9
10
|
export declare function Comparer$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
10
|
-
export declare function Comparer$1_$
|
|
11
|
-
export declare function Comparer$1_get_Default<T>():
|
|
11
|
+
export declare function Comparer$1_$ctor_47C913C<T>(comparison: ((arg0: T, arg1: T) => int32)): Comparer$1<T>;
|
|
12
|
+
export declare function Comparer$1_get_Default<T>(): Comparer$1<T>;
|
|
13
|
+
export declare function Comparer$1_Create_47C913C<T>(comparison: ((arg0: T, arg1: T) => int32)): Comparer$1<T>;
|
|
14
|
+
export declare function Comparer$1__Compare_5BDDA0<T>(_: Comparer$1<T>, x: T, y: T): int32;
|
|
12
15
|
export declare class EqualityComparer$1<T> implements IEqualityComparer<T> {
|
|
13
|
-
|
|
16
|
+
readonly getHashCode: ((arg0: T) => int32);
|
|
17
|
+
readonly equals: ((arg0: T, arg1: T) => boolean);
|
|
18
|
+
constructor(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32));
|
|
14
19
|
Equals(x: T, y: T): boolean;
|
|
15
20
|
GetHashCode(x: T): int32;
|
|
16
21
|
}
|
|
17
22
|
export declare function EqualityComparer$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
18
|
-
export declare function EqualityComparer$1_$
|
|
19
|
-
export declare function EqualityComparer$1_get_Default<T>():
|
|
23
|
+
export declare function EqualityComparer$1_$ctor_Z6EE254AB<T>(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32)): EqualityComparer$1<T>;
|
|
24
|
+
export declare function EqualityComparer$1_get_Default<T>(): EqualityComparer$1<T>;
|
|
25
|
+
export declare function EqualityComparer$1_Create_Z6EE254AB<T>(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32)): EqualityComparer$1<T>;
|
|
26
|
+
export declare function EqualityComparer$1__Equals_5BDDA0<T>(_: EqualityComparer$1<T>, x: T, y: T): boolean;
|
|
27
|
+
export declare function EqualityComparer$1__GetHashCode_2B595<T>(_: EqualityComparer$1<T>, x: T): int32;
|
|
20
28
|
export declare class Stack$1<T> implements Iterable<T> {
|
|
21
29
|
contents: T[];
|
|
22
30
|
count: int32;
|