@nfdi4plants/arctrl 2.0.1 → 2.1.0-alpha.2
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 +43 -108
- package/Contract/ARC.js +1 -1
- package/Contract/ArcAssay.js +37 -14
- package/Contract/ArcInvestigation.js +4 -4
- package/Contract/ArcStudy.js +37 -14
- package/Contract/Contract.js +6 -6
- package/Contract/Datamap.js +5 -5
- package/Contract/Git.js +6 -6
- package/Contract/ValidationPackagesConfig.js +5 -5
- package/Core/ArcTypes.js +17 -17
- package/Core/Comment.js +16 -9
- package/Core/CommentList.js +6 -6
- package/Core/Conversion.js +64 -64
- package/Core/Data.js +11 -11
- package/Core/DataContext.js +4 -4
- package/Core/DataFile.js +2 -2
- package/Core/DataMap.js +4 -4
- package/Core/Helper/Collections.js +11 -11
- package/Core/Helper/HashCodes.js +5 -5
- package/Core/Helper/Identifier.js +9 -9
- package/Core/Helper/Regex.js +38 -38
- package/Core/Helper/SemVer.js +8 -8
- package/Core/OntologyAnnotation.js +11 -11
- package/Core/OntologySourceReference.js +4 -4
- package/Core/Person.js +11 -11
- package/Core/Process/ColumnIndex.js +7 -7
- package/Core/Process/Component.js +10 -10
- package/Core/Process/Factor.js +6 -6
- package/Core/Process/FactorValue.js +10 -10
- package/Core/Process/Material.js +5 -5
- package/Core/Process/MaterialAttribute.js +4 -4
- package/Core/Process/MaterialAttributeValue.js +10 -10
- package/Core/Process/MaterialType.js +2 -2
- package/Core/Process/Process.js +19 -19
- package/Core/Process/ProcessInput.js +16 -16
- package/Core/Process/ProcessOutput.js +16 -16
- package/Core/Process/ProcessParameterValue.js +10 -10
- package/Core/Process/ProcessSequence.js +6 -6
- package/Core/Process/Protocol.js +5 -5
- package/Core/Process/ProtocolParameter.js +4 -4
- package/Core/Process/Sample.js +5 -5
- package/Core/Process/Source.js +5 -5
- package/Core/Publication.js +10 -10
- package/Core/Table/ArcTable.js +35 -28
- package/Core/Table/ArcTableAux.js +22 -22
- package/Core/Table/ArcTables.js +14 -14
- package/Core/Table/CompositeCell.js +6 -6
- package/Core/Table/CompositeColumn.js +5 -5
- package/Core/Table/CompositeHeader.js +9 -9
- package/Core/Template.js +7 -7
- package/Core/Templates.js +8 -8
- package/Core/Value.js +11 -11
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +14 -14
- package/FileSystem/Path.js +3 -3
- package/Json/ARC.js +21 -15
- package/Json/Assay.js +108 -169
- package/Json/Comment.js +84 -122
- package/Json/ConverterOptions.js +2 -2
- package/Json/Data.js +100 -107
- package/Json/DataFile.js +22 -57
- package/Json/DataMap/DataContext.js +25 -16
- package/Json/DataMap/DataMap.js +11 -7
- package/Json/Decode.js +11 -14
- package/Json/Encode.js +24 -13
- package/Json/IDTable.js +14 -3
- package/Json/Investigation.js +194 -176
- package/Json/OntologyAnnotation.js +113 -127
- package/Json/OntologySourceReference.js +93 -111
- package/Json/Person.js +204 -135
- package/Json/Process/AssayMaterials.js +12 -14
- package/Json/Process/Component.js +23 -68
- package/Json/Process/Factor.js +28 -46
- package/Json/Process/FactorValue.js +28 -50
- package/Json/Process/Material.js +56 -83
- package/Json/Process/MaterialAttribute.js +23 -45
- package/Json/Process/MaterialAttributeValue.js +28 -71
- package/Json/Process/MaterialType.js +17 -35
- package/Json/Process/Process.js +70 -85
- package/Json/Process/ProcessInput.js +18 -45
- package/Json/Process/ProcessOutput.js +15 -63
- package/Json/Process/ProcessParameterValue.js +21 -70
- package/Json/Process/Protocol.js +80 -83
- package/Json/Process/ProtocolParameter.js +23 -44
- package/Json/Process/Sample.js +66 -93
- package/Json/Process/Source.js +54 -81
- package/Json/Process/StudyMaterials.js +13 -15
- package/Json/Process/Value.js +19 -29
- package/Json/PropertyValue.js +86 -28
- package/Json/Publication.js +92 -115
- package/Json/ROCrateObject.js +146 -0
- package/Json/StringTable.js +27 -10
- package/Json/Study.js +193 -182
- package/Json/Table/ArcTable.js +119 -115
- package/Json/Table/CellTable.js +24 -11
- package/Json/Table/CompositeCell.js +40 -41
- package/Json/Table/CompositeHeader.js +24 -36
- package/Json/Table/IOType.js +9 -31
- package/Json/Table/OATable.js +23 -10
- package/Json/Table/Templates.js +82 -90
- package/Json/context/rocrate/isa_assay_context.js +60 -4
- package/Json/context/rocrate/isa_comment_context.js +28 -4
- package/Json/context/rocrate/isa_component_context.js +44 -4
- package/Json/context/rocrate/isa_data_context.js +40 -4
- package/Json/context/rocrate/isa_factor_context.js +40 -4
- package/Json/context/rocrate/isa_factor_value_context.js +52 -4
- package/Json/context/rocrate/isa_investigation_context.js +68 -4
- package/Json/context/rocrate/isa_material_attribute_context.js +32 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +48 -4
- package/Json/context/rocrate/isa_material_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_annotation_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +40 -4
- package/Json/context/rocrate/isa_organization_context.js +24 -4
- package/Json/context/rocrate/isa_person_context.js +85 -5
- package/Json/context/rocrate/isa_process_context.js +56 -4
- package/Json/context/rocrate/isa_process_parameter_value_context.js +48 -4
- package/Json/context/rocrate/isa_protocol_context.js +60 -4
- package/Json/context/rocrate/isa_protocol_parameter_context.js +32 -4
- package/Json/context/rocrate/isa_publication_context.js +44 -4
- package/Json/context/rocrate/isa_sample_context.js +32 -4
- package/Json/context/rocrate/isa_source_context.js +32 -4
- package/Json/context/rocrate/isa_study_context.js +72 -4
- package/Json/context/rocrate/property_value_context.js +58 -2
- package/Json/context/rocrate/rocrate_context.js +45 -5
- package/Json.js +12 -12
- package/JsonIO/ARC.js +31 -0
- package/JsonIO/Assay.js +99 -0
- package/JsonIO/Comment.js +73 -0
- package/JsonIO/Data.js +50 -0
- package/JsonIO/DataFile.js +49 -0
- package/JsonIO/DataMap/DataMap.js +29 -0
- package/JsonIO/Decode.js +4 -0
- package/JsonIO/Investigation.js +99 -0
- package/JsonIO/OntologyAnnotation.js +73 -0
- package/JsonIO/OntologySourceReference.js +73 -0
- package/JsonIO/Person.js +74 -0
- package/JsonIO/Process/Component.js +50 -0
- package/JsonIO/Process/Factor.js +28 -0
- package/JsonIO/Process/FactorValue.js +29 -0
- package/JsonIO/Process/Material.js +50 -0
- package/JsonIO/Process/MaterialAttribute.js +29 -0
- package/JsonIO/Process/MaterialAttributeValue.js +50 -0
- package/JsonIO/Process/MaterialType.js +28 -0
- package/JsonIO/Process/Process.js +50 -0
- package/JsonIO/Process/ProcessInput.js +29 -0
- package/JsonIO/Process/ProcessOutput.js +50 -0
- package/JsonIO/Process/ProcessParameterValue.js +50 -0
- package/{Json → JsonIO}/Process/ProcessSequence.js +16 -16
- package/JsonIO/Process/Protocol.js +50 -0
- package/JsonIO/Process/ProtocolParameter.js +28 -0
- package/JsonIO/Process/Sample.js +50 -0
- package/JsonIO/Process/Source.js +50 -0
- package/JsonIO/Process/StudyMaterials.js +22 -0
- package/JsonIO/Process/Value.js +23 -0
- package/JsonIO/Publication.js +74 -0
- package/JsonIO/ROCrateObject.js +146 -0
- package/JsonIO/Study.js +99 -0
- package/JsonIO/Table/ArcTable.js +82 -0
- package/JsonIO/Table/CompositeCell.js +28 -0
- package/JsonIO/Table/CompositeHeader.js +28 -0
- package/{Json → JsonIO}/Table/Compression.js +20 -10
- package/JsonIO/Table/IOType.js +28 -0
- package/JsonIO/Table/Templates.js +88 -0
- package/ROCrate/ISAProfile/Assay.js +32 -0
- package/ROCrate/ISAProfile/Data.js +28 -0
- package/ROCrate/ISAProfile/Dataset.js +18 -0
- package/ROCrate/ISAProfile/Investigation.js +35 -0
- package/ROCrate/ISAProfile/LabProcess.js +32 -0
- package/ROCrate/ISAProfile/LabProtocol.js +33 -0
- package/ROCrate/ISAProfile/Person.js +35 -0
- package/ROCrate/ISAProfile/PropertyValue.js +30 -0
- package/ROCrate/ISAProfile/Sample.js +27 -0
- package/ROCrate/ISAProfile/ScholarlyArticle.js +30 -0
- package/ROCrate/ISAProfile/Study.js +35 -0
- package/ROCrate/ROCrateObject.js +61 -0
- package/Spreadsheet/AnnotationTable/ArcTable.js +16 -16
- package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
- package/Spreadsheet/AnnotationTable/CompositeHeader.js +25 -25
- package/Spreadsheet/ArcAssay.js +9 -9
- package/Spreadsheet/ArcInvestigation.js +14 -14
- package/Spreadsheet/ArcStudy.js +7 -7
- package/Spreadsheet/CollectionAux.js +11 -11
- package/Spreadsheet/DataMap.js +3 -3
- package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
- package/Spreadsheet/DataMapTable/DataMapHeader.js +23 -23
- package/Spreadsheet/DataMapTable/DataMapTable.js +13 -13
- package/Spreadsheet/Metadata/Assays.js +11 -11
- package/Spreadsheet/Metadata/Comment.js +5 -5
- package/Spreadsheet/Metadata/Contacts.js +7 -7
- package/Spreadsheet/Metadata/Conversions.js +7 -7
- package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/Spreadsheet/Metadata/Factors.js +8 -8
- package/Spreadsheet/Metadata/OntologyAnnotation.js +6 -6
- package/Spreadsheet/Metadata/OntologySourceReference.js +6 -6
- package/Spreadsheet/Metadata/Protocols.js +9 -9
- package/Spreadsheet/Metadata/Publication.js +7 -7
- package/Spreadsheet/Metadata/SparseTable.js +21 -21
- package/Spreadsheet/Metadata/Study.js +12 -12
- package/Spreadsheet/Template.js +21 -21
- package/Template.Web.js +6 -6
- package/ValidationPackages/ValidationPackage.js +6 -6
- package/ValidationPackages/ValidationPackagesConfig.js +9 -9
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +9 -9
- package/Yaml/Encode.js +1 -1
- package/Yaml/ValidationPackage.js +5 -5
- package/Yaml/ValidationPackagesConfig.js +5 -5
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs +219 -0
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs.js +209 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fableproj +47 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs +310 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs.js +166 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs +162 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs.js +141 -0
- package/fable_modules/DynamicObj.4.0.0/FablePy.fs +215 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs +46 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs.js +43 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs +33 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs.js +21 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs +72 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs.js +86 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0/obj/Release → DynamicObj.4.0.0/obj/Debug}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1/obj/Debug → DynamicObj.4.0.0/obj/Release}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +6 -6
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +11 -11
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs.js +15 -15
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/DSL/Operators.fs.js +6 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsSpreadsheet.fableproj +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs.js +11 -11
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Cell.fs.js +64 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Column.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Row.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Table.fs.js +30 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs.js +38 -13
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Workbook.fs.js +46 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs.js +33 -8
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs.js +2 -2
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs +67 -28
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs.js +79 -50
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Encode.fs +139 -54
- package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +192 -0
- package/fable_modules/Thoth.Json.Core.0.4.0/Thoth.Json.Core.fableproj +33 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs +12 -5
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs.js +2 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs +9 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs.js +16 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Encode.fs +13 -5
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +58 -0
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Thoth.Json.JavaScript.fableproj +28 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +17 -17
- package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Library.fs.js +1 -1
- package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +9 -9
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +36 -36
- package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.js +10 -10
- package/fable_modules/fable-library-js.4.22.0/Async.d.ts +27 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Async.js +1 -7
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.d.ts +13 -13
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.js +4 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/CHANGELOG.md +40 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.js +4 -5
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.js +31 -31
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.js +10 -10
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.js +4 -4
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.js +47 -48
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.js +3 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.js +17 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.d.ts +2 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.js +19 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/FsSpreadsheet.6.2.0/DSL/Operators.fs.js +0 -6
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Cell.fs.js +0 -38
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Column.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Row.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Table.fs.js +0 -15
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Workbook.fs.js +0 -35
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +0 -113
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +0 -28
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs +0 -20
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +0 -45
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +0 -21
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -18
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -19
- package/fable_modules/fable-library-js.4.16.0/Async.d.ts +0 -32
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Cell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Column.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Row.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Table.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Workbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.d.ts +0 -0
|
@@ -100,16 +100,15 @@ export function Enumerator_FromFunctions$1_$ctor_58C54629(current, next, dispose
|
|
|
100
100
|
}
|
|
101
101
|
export function Enumerator_cast(e) {
|
|
102
102
|
return Enumerator_FromFunctions$1_$ctor_58C54629(() => e["System.Collections.Generic.IEnumerator`1.get_Current"](), () => e["System.Collections.IEnumerator.MoveNext"](), () => {
|
|
103
|
-
|
|
104
|
-
disposeSafe(e_1);
|
|
103
|
+
disposeSafe(e);
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
export function Enumerator_concat(sources) {
|
|
108
|
-
let outerOpt =
|
|
109
|
-
let innerOpt =
|
|
107
|
+
let outerOpt = undefined;
|
|
108
|
+
let innerOpt = undefined;
|
|
110
109
|
let started = false;
|
|
111
110
|
let finished = false;
|
|
112
|
-
let curr =
|
|
111
|
+
let curr = undefined;
|
|
113
112
|
const finish = () => {
|
|
114
113
|
finished = true;
|
|
115
114
|
if (innerOpt != null) {
|
|
@@ -118,7 +117,7 @@ export function Enumerator_concat(sources) {
|
|
|
118
117
|
disposeSafe(inner);
|
|
119
118
|
}
|
|
120
119
|
finally {
|
|
121
|
-
innerOpt =
|
|
120
|
+
innerOpt = undefined;
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
if (outerOpt != null) {
|
|
@@ -127,7 +126,7 @@ export function Enumerator_concat(sources) {
|
|
|
127
126
|
disposeSafe(outer);
|
|
128
127
|
}
|
|
129
128
|
finally {
|
|
130
|
-
outerOpt =
|
|
129
|
+
outerOpt = undefined;
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
};
|
|
@@ -153,7 +152,7 @@ export function Enumerator_concat(sources) {
|
|
|
153
152
|
return false;
|
|
154
153
|
}
|
|
155
154
|
else {
|
|
156
|
-
let res =
|
|
155
|
+
let res = undefined;
|
|
157
156
|
while (res == null) {
|
|
158
157
|
const outerOpt_1 = outerOpt;
|
|
159
158
|
const innerOpt_1 = innerOpt;
|
|
@@ -169,7 +168,7 @@ export function Enumerator_concat(sources) {
|
|
|
169
168
|
disposeSafe(inner_1);
|
|
170
169
|
}
|
|
171
170
|
finally {
|
|
172
|
-
innerOpt =
|
|
171
|
+
innerOpt = undefined;
|
|
173
172
|
}
|
|
174
173
|
}
|
|
175
174
|
}
|
|
@@ -209,7 +208,7 @@ export function Enumerator_enumerateThenFinally(f, e) {
|
|
|
209
208
|
}
|
|
210
209
|
export function Enumerator_generateWhileSome(openf, compute, closef) {
|
|
211
210
|
let started = false;
|
|
212
|
-
let curr =
|
|
211
|
+
let curr = undefined;
|
|
213
212
|
let state = some(openf());
|
|
214
213
|
const dispose = () => {
|
|
215
214
|
if (state != null) {
|
|
@@ -218,7 +217,7 @@ export function Enumerator_generateWhileSome(openf, compute, closef) {
|
|
|
218
217
|
closef(x_1);
|
|
219
218
|
}
|
|
220
219
|
finally {
|
|
221
|
-
state =
|
|
220
|
+
state = undefined;
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
};
|
|
@@ -227,7 +226,7 @@ export function Enumerator_generateWhileSome(openf, compute, closef) {
|
|
|
227
226
|
dispose();
|
|
228
227
|
}
|
|
229
228
|
finally {
|
|
230
|
-
curr =
|
|
229
|
+
curr = undefined;
|
|
231
230
|
}
|
|
232
231
|
};
|
|
233
232
|
return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
|
|
@@ -269,7 +268,7 @@ export function Enumerator_generateWhileSome(openf, compute, closef) {
|
|
|
269
268
|
}, dispose);
|
|
270
269
|
}
|
|
271
270
|
export function Enumerator_unfold(f, state) {
|
|
272
|
-
let curr =
|
|
271
|
+
let curr = undefined;
|
|
273
272
|
let acc = state;
|
|
274
273
|
return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
|
|
275
274
|
if (curr != null) {
|
|
@@ -373,7 +372,7 @@ export function cast(xs) {
|
|
|
373
372
|
}
|
|
374
373
|
export function choose(chooser, xs) {
|
|
375
374
|
return generate(() => ofSeq(xs), (e) => {
|
|
376
|
-
let curr =
|
|
375
|
+
let curr = undefined;
|
|
377
376
|
while ((curr == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
378
377
|
curr = chooser(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
379
378
|
}
|
|
@@ -421,7 +420,7 @@ export function contains(value, xs, comparer) {
|
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
422
|
export function enumerateFromFunctions(create, moveNext, current) {
|
|
424
|
-
return generate(create, (x) => (moveNext(x) ? some(current(x)) :
|
|
423
|
+
return generate(create, (x) => (moveNext(x) ? some(current(x)) : undefined), (x_1) => {
|
|
425
424
|
const matchValue = x_1;
|
|
426
425
|
if (isDisposable(matchValue)) {
|
|
427
426
|
const id = matchValue;
|
|
@@ -461,7 +460,7 @@ export function enumerateUsing(resource, source) {
|
|
|
461
460
|
});
|
|
462
461
|
}
|
|
463
462
|
export function enumerateWhile(guard, xs) {
|
|
464
|
-
return concat(unfold((i) => (guard() ? [xs, i + 1] :
|
|
463
|
+
return concat(unfold((i) => (guard() ? [xs, i + 1] : undefined), 0));
|
|
465
464
|
}
|
|
466
465
|
export function filter(f, xs) {
|
|
467
466
|
return choose((x) => {
|
|
@@ -469,7 +468,7 @@ export function filter(f, xs) {
|
|
|
469
468
|
return some(x);
|
|
470
469
|
}
|
|
471
470
|
else {
|
|
472
|
-
return
|
|
471
|
+
return undefined;
|
|
473
472
|
}
|
|
474
473
|
}, xs);
|
|
475
474
|
}
|
|
@@ -530,10 +529,10 @@ export function tryExactlyOne(xs) {
|
|
|
530
529
|
try {
|
|
531
530
|
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
532
531
|
const v = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
533
|
-
return e["System.Collections.IEnumerator.MoveNext"]() ?
|
|
532
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? undefined : some(v);
|
|
534
533
|
}
|
|
535
534
|
else {
|
|
536
|
-
return
|
|
535
|
+
return undefined;
|
|
537
536
|
}
|
|
538
537
|
}
|
|
539
538
|
finally {
|
|
@@ -543,7 +542,7 @@ export function tryExactlyOne(xs) {
|
|
|
543
542
|
export function tryFind(predicate, xs) {
|
|
544
543
|
const e = ofSeq(xs);
|
|
545
544
|
try {
|
|
546
|
-
let res =
|
|
545
|
+
let res = undefined;
|
|
547
546
|
while ((res == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
548
547
|
const c = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
549
548
|
if (predicate(c)) {
|
|
@@ -593,7 +592,7 @@ export function tryFindIndex(predicate, xs) {
|
|
|
593
592
|
}
|
|
594
593
|
}
|
|
595
594
|
else {
|
|
596
|
-
return
|
|
595
|
+
return undefined;
|
|
597
596
|
}
|
|
598
597
|
break;
|
|
599
598
|
}
|
|
@@ -681,7 +680,7 @@ export function tryHead(xs) {
|
|
|
681
680
|
else {
|
|
682
681
|
const e = ofSeq(xs);
|
|
683
682
|
try {
|
|
684
|
-
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) :
|
|
683
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
|
|
685
684
|
}
|
|
686
685
|
finally {
|
|
687
686
|
disposeSafe(e);
|
|
@@ -698,7 +697,7 @@ export function head(xs) {
|
|
|
698
697
|
}
|
|
699
698
|
}
|
|
700
699
|
export function initialize(count, f) {
|
|
701
|
-
return unfold((i) => ((i < count) ? [f(i), i + 1] :
|
|
700
|
+
return unfold((i) => ((i < count) ? [f(i), i + 1] : undefined), 0);
|
|
702
701
|
}
|
|
703
702
|
export function initializeInfinite(f) {
|
|
704
703
|
return initialize(2147483647, f);
|
|
@@ -735,7 +734,7 @@ export function tryItem(index, xs) {
|
|
|
735
734
|
loop: while (true) {
|
|
736
735
|
const index_1 = index_1_mut;
|
|
737
736
|
if (!e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
738
|
-
return
|
|
737
|
+
return undefined;
|
|
739
738
|
}
|
|
740
739
|
else if (index_1 === 0) {
|
|
741
740
|
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
@@ -766,12 +765,12 @@ export function item(index, xs) {
|
|
|
766
765
|
export function iterate(action, xs) {
|
|
767
766
|
fold((unitVar, x) => {
|
|
768
767
|
action(x);
|
|
769
|
-
},
|
|
768
|
+
}, undefined, xs);
|
|
770
769
|
}
|
|
771
770
|
export function iterate2(action, xs, ys) {
|
|
772
771
|
fold2((unitVar, x, y) => {
|
|
773
772
|
action(x, y);
|
|
774
|
-
},
|
|
773
|
+
}, undefined, xs, ys);
|
|
775
774
|
}
|
|
776
775
|
export function iterateIndexed(action, xs) {
|
|
777
776
|
fold((i, x) => {
|
|
@@ -801,7 +800,7 @@ export function tryLast(xs) {
|
|
|
801
800
|
break;
|
|
802
801
|
}
|
|
803
802
|
};
|
|
804
|
-
return e["System.Collections.IEnumerator.MoveNext"]() ? some(loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
803
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? some(loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
805
804
|
}
|
|
806
805
|
finally {
|
|
807
806
|
disposeSafe(e);
|
|
@@ -839,12 +838,12 @@ export function length(xs) {
|
|
|
839
838
|
}
|
|
840
839
|
}
|
|
841
840
|
export function map(mapping, xs) {
|
|
842
|
-
return generate(() => ofSeq(xs), (e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
841
|
+
return generate(() => ofSeq(xs), (e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined), (e_1) => {
|
|
843
842
|
disposeSafe(e_1);
|
|
844
843
|
});
|
|
845
844
|
}
|
|
846
845
|
export function mapIndexed(mapping, xs) {
|
|
847
|
-
return generateIndexed(() => ofSeq(xs), (i, e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(i, e["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
846
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(i, e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined), (e_1) => {
|
|
848
847
|
disposeSafe(e_1);
|
|
849
848
|
});
|
|
850
849
|
}
|
|
@@ -855,7 +854,7 @@ export function map2(mapping, xs, ys) {
|
|
|
855
854
|
return generate(() => [ofSeq(xs), ofSeq(ys)], (tupledArg) => {
|
|
856
855
|
const e1 = tupledArg[0];
|
|
857
856
|
const e2 = tupledArg[1];
|
|
858
|
-
return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
857
|
+
return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
859
858
|
}, (tupledArg_1) => {
|
|
860
859
|
try {
|
|
861
860
|
disposeSafe(tupledArg_1[0]);
|
|
@@ -869,7 +868,7 @@ export function mapIndexed2(mapping, xs, ys) {
|
|
|
869
868
|
return generateIndexed(() => [ofSeq(xs), ofSeq(ys)], (i, tupledArg) => {
|
|
870
869
|
const e1 = tupledArg[0];
|
|
871
870
|
const e2 = tupledArg[1];
|
|
872
|
-
return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(i, e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
871
|
+
return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(i, e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
873
872
|
}, (tupledArg_1) => {
|
|
874
873
|
try {
|
|
875
874
|
disposeSafe(tupledArg_1[0]);
|
|
@@ -884,7 +883,7 @@ export function map3(mapping, xs, ys, zs) {
|
|
|
884
883
|
const e1 = tupledArg[0];
|
|
885
884
|
const e2 = tupledArg[1];
|
|
886
885
|
const e3 = tupledArg[2];
|
|
887
|
-
return ((e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) && e3["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"](), e3["System.Collections.Generic.IEnumerator`1.get_Current"]())) :
|
|
886
|
+
return ((e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) && e3["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"](), e3["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
888
887
|
}, (tupledArg_1) => {
|
|
889
888
|
try {
|
|
890
889
|
disposeSafe(tupledArg_1[0]);
|
|
@@ -936,7 +935,7 @@ export function CachedSeq$1__Clear(_) {
|
|
|
936
935
|
export function cache(source) {
|
|
937
936
|
checkNonNull("source", source);
|
|
938
937
|
const prefix = [];
|
|
939
|
-
let enumeratorR =
|
|
938
|
+
let enumeratorR = undefined;
|
|
940
939
|
return CachedSeq$1_$ctor_Z7A8347D4(() => {
|
|
941
940
|
Operators_Lock(prefix, () => {
|
|
942
941
|
clear(prefix);
|
|
@@ -959,7 +958,7 @@ export function cache(source) {
|
|
|
959
958
|
break;
|
|
960
959
|
}
|
|
961
960
|
}
|
|
962
|
-
enumeratorR =
|
|
961
|
+
enumeratorR = undefined;
|
|
963
962
|
});
|
|
964
963
|
}, unfold((i_1) => Operators_Lock(prefix, () => {
|
|
965
964
|
if (i_1 < prefix.length) {
|
|
@@ -985,7 +984,7 @@ export function cache(source) {
|
|
|
985
984
|
}
|
|
986
985
|
else {
|
|
987
986
|
disposeSafe(enumerator);
|
|
988
|
-
enumeratorR = some(
|
|
987
|
+
enumeratorR = some(undefined);
|
|
989
988
|
}
|
|
990
989
|
}
|
|
991
990
|
}
|
|
@@ -993,7 +992,7 @@ export function cache(source) {
|
|
|
993
992
|
return [prefix[i_1], i_1 + 1];
|
|
994
993
|
}
|
|
995
994
|
else {
|
|
996
|
-
return
|
|
995
|
+
return undefined;
|
|
997
996
|
}
|
|
998
997
|
}
|
|
999
998
|
}), 0));
|
|
@@ -1013,7 +1012,7 @@ export function mapFoldBack(mapping, xs, state) {
|
|
|
1013
1012
|
export function tryPick(chooser, xs) {
|
|
1014
1013
|
const e = ofSeq(xs);
|
|
1015
1014
|
try {
|
|
1016
|
-
let res =
|
|
1015
|
+
let res = undefined;
|
|
1017
1016
|
while ((res == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1018
1017
|
res = chooser(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1019
1018
|
}
|
|
@@ -1129,19 +1128,19 @@ export function take(count, xs) {
|
|
|
1129
1128
|
}
|
|
1130
1129
|
}
|
|
1131
1130
|
else {
|
|
1132
|
-
return
|
|
1131
|
+
return undefined;
|
|
1133
1132
|
}
|
|
1134
1133
|
}, (e_1) => {
|
|
1135
1134
|
disposeSafe(e_1);
|
|
1136
1135
|
});
|
|
1137
1136
|
}
|
|
1138
1137
|
export function takeWhile(predicate, xs) {
|
|
1139
|
-
return generate(() => ofSeq(xs), (e) => ((e["System.Collections.IEnumerator.MoveNext"]() && predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) :
|
|
1138
|
+
return generate(() => ofSeq(xs), (e) => ((e["System.Collections.IEnumerator.MoveNext"]() && predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined), (e_1) => {
|
|
1140
1139
|
disposeSafe(e_1);
|
|
1141
1140
|
});
|
|
1142
1141
|
}
|
|
1143
1142
|
export function truncate(count, xs) {
|
|
1144
|
-
return generateIndexed(() => ofSeq(xs), (i, e) => (((i < count) && e["System.Collections.IEnumerator.MoveNext"]()) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) :
|
|
1143
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => (((i < count) && e["System.Collections.IEnumerator.MoveNext"]()) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined), (e_1) => {
|
|
1145
1144
|
disposeSafe(e_1);
|
|
1146
1145
|
});
|
|
1147
1146
|
}
|
|
@@ -1255,7 +1254,7 @@ export function insertAt(index, y, xs) {
|
|
|
1255
1254
|
if (!isDone) {
|
|
1256
1255
|
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1257
1256
|
}
|
|
1258
|
-
return
|
|
1257
|
+
return undefined;
|
|
1259
1258
|
}
|
|
1260
1259
|
}, (e_1) => {
|
|
1261
1260
|
disposeSafe(e_1);
|
|
@@ -1279,11 +1278,11 @@ export function insertManyAt(index, ys, xs) {
|
|
|
1279
1278
|
}
|
|
1280
1279
|
else {
|
|
1281
1280
|
status = 1;
|
|
1282
|
-
inserted =
|
|
1281
|
+
inserted = undefined;
|
|
1283
1282
|
}
|
|
1284
1283
|
}
|
|
1285
1284
|
else {
|
|
1286
|
-
inserted =
|
|
1285
|
+
inserted = undefined;
|
|
1287
1286
|
}
|
|
1288
1287
|
if (inserted == null) {
|
|
1289
1288
|
if (e1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -1293,7 +1292,7 @@ export function insertManyAt(index, ys, xs) {
|
|
|
1293
1292
|
if (status < 1) {
|
|
1294
1293
|
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1295
1294
|
}
|
|
1296
|
-
return
|
|
1295
|
+
return undefined;
|
|
1297
1296
|
}
|
|
1298
1297
|
}
|
|
1299
1298
|
else {
|
|
@@ -1315,13 +1314,13 @@ export function removeAt(index, xs) {
|
|
|
1315
1314
|
}
|
|
1316
1315
|
else if ((i === index) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1317
1316
|
isDone = true;
|
|
1318
|
-
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) :
|
|
1317
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
|
|
1319
1318
|
}
|
|
1320
1319
|
else {
|
|
1321
1320
|
if (!isDone) {
|
|
1322
1321
|
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1323
1322
|
}
|
|
1324
|
-
return
|
|
1323
|
+
return undefined;
|
|
1325
1324
|
}
|
|
1326
1325
|
}, (e_1) => {
|
|
1327
1326
|
disposeSafe(e_1);
|
|
@@ -1348,7 +1347,7 @@ export function removeManyAt(index, count, xs) {
|
|
|
1348
1347
|
}
|
|
1349
1348
|
}
|
|
1350
1349
|
}
|
|
1351
|
-
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) :
|
|
1350
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
|
|
1352
1351
|
}
|
|
1353
1352
|
}, (e_1) => {
|
|
1354
1353
|
disposeSafe(e_1);
|
|
@@ -1371,7 +1370,7 @@ export function updateAt(index, y, xs) {
|
|
|
1371
1370
|
if (!isDone) {
|
|
1372
1371
|
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1373
1372
|
}
|
|
1374
|
-
return
|
|
1373
|
+
return undefined;
|
|
1375
1374
|
}
|
|
1376
1375
|
}, (e_1) => {
|
|
1377
1376
|
disposeSafe(e_1);
|
|
@@ -45,7 +45,7 @@ export function SetTreeNode$1__get_Height(_) {
|
|
|
45
45
|
return _.h;
|
|
46
46
|
}
|
|
47
47
|
export function SetTreeModule_empty() {
|
|
48
|
-
return
|
|
48
|
+
return undefined;
|
|
49
49
|
}
|
|
50
50
|
export function SetTreeModule_countAux(t_mut, acc_mut) {
|
|
51
51
|
SetTreeModule_countAux: while (true) {
|
|
@@ -688,7 +688,7 @@ export function SetTreeModule_minimumElementOpt(t) {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
else {
|
|
691
|
-
return
|
|
691
|
+
return undefined;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
export function SetTreeModule_maximumElementAux(t_mut, n_mut) {
|
|
@@ -724,7 +724,7 @@ export function SetTreeModule_maximumElementOpt(t) {
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
else {
|
|
727
|
-
return
|
|
727
|
+
return undefined;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
export function SetTreeModule_minimumElement(s) {
|
|
@@ -2,6 +2,7 @@ export declare function compare(...args: any[]): number;
|
|
|
2
2
|
export declare function compareOrdinal(x: string, y: string): number;
|
|
3
3
|
export declare function compareTo(x: string, y: string): number;
|
|
4
4
|
export declare function startsWith(str: string, pattern: string, ic: number): boolean;
|
|
5
|
+
export declare function endsWith(str: string, pattern: string, ic: number): boolean;
|
|
5
6
|
export declare function indexOfAny(str: string, anyOf: string[], ...args: number[]): number;
|
|
6
7
|
export type IPrintfFormatContinuation = (f: (x: string) => any) => any;
|
|
7
8
|
export interface IPrintfFormat {
|
|
@@ -16,7 +17,6 @@ export declare function toText(arg: IPrintfFormat | string): any;
|
|
|
16
17
|
export declare function toFail(arg: IPrintfFormat | string): any;
|
|
17
18
|
export declare function fsFormat(str: string): (cont: (...args: any[]) => any) => any;
|
|
18
19
|
export declare function format(str: string | object, ...args: any[]): string;
|
|
19
|
-
export declare function endsWith(str: string, search: string): boolean;
|
|
20
20
|
export declare function initialize(n: number, f: (i: number) => string): string;
|
|
21
21
|
export declare function insert(str: string, startIndex: number, value: string): string;
|
|
22
22
|
export declare function isNullOrEmpty(str: string | any): boolean;
|
|
@@ -58,11 +58,23 @@ export function compareTo(x, y) {
|
|
|
58
58
|
return cmp(x, y, 0 /* StringComparison.CurrentCulture */);
|
|
59
59
|
}
|
|
60
60
|
export function startsWith(str, pattern, ic) {
|
|
61
|
+
if (ic === 4 /* StringComparison.Ordinal */) { // to avoid substring allocation
|
|
62
|
+
return str.startsWith(pattern);
|
|
63
|
+
}
|
|
61
64
|
if (str.length >= pattern.length) {
|
|
62
65
|
return cmp(str.substr(0, pattern.length), pattern, ic) === 0;
|
|
63
66
|
}
|
|
64
67
|
return false;
|
|
65
68
|
}
|
|
69
|
+
export function endsWith(str, pattern, ic) {
|
|
70
|
+
if (ic === 4 /* StringComparison.Ordinal */) { // to avoid substring allocation
|
|
71
|
+
return str.endsWith(pattern);
|
|
72
|
+
}
|
|
73
|
+
if (str.length >= pattern.length) {
|
|
74
|
+
return cmp(str.substr(str.length - pattern.length, pattern.length), pattern, ic) === 0;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
66
78
|
export function indexOfAny(str, anyOf, ...args) {
|
|
67
79
|
if (str == null || str === "") {
|
|
68
80
|
return -1;
|
|
@@ -361,10 +373,6 @@ export function format(str, ...args) {
|
|
|
361
373
|
return rep;
|
|
362
374
|
});
|
|
363
375
|
}
|
|
364
|
-
export function endsWith(str, search) {
|
|
365
|
-
const idx = str.lastIndexOf(search);
|
|
366
|
-
return idx >= 0 && idx === str.length - search.length;
|
|
367
|
-
}
|
|
368
376
|
export function initialize(n, f) {
|
|
369
377
|
if (n < 0) {
|
|
370
378
|
throw new Error("String length must be non-negative");
|
|
@@ -537,7 +545,10 @@ export function fmtWith(fmts) {
|
|
|
537
545
|
return (strs, ...args) => ({ strs, args, fmts });
|
|
538
546
|
}
|
|
539
547
|
export function getFormat(s) {
|
|
548
|
+
const strs = s.strs.map((value) => value.replace(/{/g, '{{').replace(/}/g, '}}'));
|
|
540
549
|
return s.fmts
|
|
541
|
-
?
|
|
542
|
-
|
|
550
|
+
? strs
|
|
551
|
+
.reduce((acc, newPart, index) => acc + `{${String(index - 1) + s.fmts[index - 1]}}` + newPart)
|
|
552
|
+
: strs
|
|
553
|
+
.reduce((acc, newPart, index) => acc + `{${index - 1}}` + newPart);
|
|
543
554
|
}
|
|
@@ -15,7 +15,7 @@ export class StringBuilder {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
export function StringBuilder_$reflection() {
|
|
18
|
-
return class_type("System.Text.StringBuilder",
|
|
18
|
+
return class_type("System.Text.StringBuilder", undefined, StringBuilder);
|
|
19
19
|
}
|
|
20
20
|
export function StringBuilder_$ctor_Z18115A39(value, capacity) {
|
|
21
21
|
return new StringBuilder(value, capacity);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { comparePrimitives, padLeftAndRightWithZeros, padWithZeros } from "./Util.js";
|
|
2
|
-
import { toInt64 } from "./BigInt.js";
|
|
2
|
+
import { toInt64, fromFloat64 } from "./BigInt.js";
|
|
3
3
|
/**
|
|
4
4
|
* Calls:
|
|
5
5
|
* - `Math.ceil` if the `value` is **negative**
|
|
@@ -55,7 +55,7 @@ export function milliseconds(ts) {
|
|
|
55
55
|
return signedRound(ts % 1000);
|
|
56
56
|
}
|
|
57
57
|
export function ticks(ts) {
|
|
58
|
-
return toInt64(
|
|
58
|
+
return toInt64(fromFloat64(ts * 10000));
|
|
59
59
|
}
|
|
60
60
|
export function totalDays(ts) {
|
|
61
61
|
return ts / 86400000;
|
|
@@ -38,8 +38,8 @@ export declare class Exception {
|
|
|
38
38
|
message?: string | undefined;
|
|
39
39
|
constructor(message?: string | undefined);
|
|
40
40
|
}
|
|
41
|
-
export declare function isException(x: any):
|
|
42
|
-
export declare function isPromise(x: any):
|
|
41
|
+
export declare function isException(x: any): x is Error | Exception;
|
|
42
|
+
export declare function isPromise(x: any): x is Promise<any>;
|
|
43
43
|
export declare function ensureErrorOrException(e: any): any;
|
|
44
44
|
export declare abstract class FSharpException extends Exception implements IEquatable<FSharpException>, IComparable<FSharpException> {
|
|
45
45
|
toJSON(): any;
|
|
@@ -9,7 +9,6 @@ export class Uri {
|
|
|
9
9
|
}
|
|
10
10
|
static isAbsoluteUri(uri) {
|
|
11
11
|
try {
|
|
12
|
-
// tslint:disable-next-line no-unused-expression
|
|
13
12
|
new URL(uri);
|
|
14
13
|
return true;
|
|
15
14
|
}
|
|
@@ -120,7 +119,13 @@ export class Uri {
|
|
|
120
119
|
return protocol.slice(0, protocol.length - 1);
|
|
121
120
|
}
|
|
122
121
|
get host() {
|
|
123
|
-
|
|
122
|
+
const host = this.asUrl().host;
|
|
123
|
+
if (host.includes(":")) {
|
|
124
|
+
return host.split(":")[0];
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return host;
|
|
128
|
+
}
|
|
124
129
|
}
|
|
125
130
|
get absolutePath() {
|
|
126
131
|
return this.asUrl().pathname;
|
|
@@ -128,6 +133,18 @@ export class Uri {
|
|
|
128
133
|
get query() {
|
|
129
134
|
return this.asUrl().search;
|
|
130
135
|
}
|
|
136
|
+
get isDefaultPort() {
|
|
137
|
+
return this.port === 80;
|
|
138
|
+
}
|
|
139
|
+
get port() {
|
|
140
|
+
const port = this.asUrl().port;
|
|
141
|
+
if (port === "") {
|
|
142
|
+
return 80;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
return parseInt(port);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
131
148
|
get pathAndQuery() {
|
|
132
149
|
const url = this.asUrl();
|
|
133
150
|
return url.pathname + url.search;
|
|
@@ -65,7 +65,7 @@ export declare class Enumerable<T> implements IEnumerable<T> {
|
|
|
65
65
|
GetEnumerator(): IEnumerator<T>;
|
|
66
66
|
"System.Collections.IEnumerable.GetEnumerator"(): IEnumerator<any>;
|
|
67
67
|
[Symbol.iterator](): this;
|
|
68
|
-
next(): IteratorResult<T
|
|
68
|
+
next(): IteratorResult<T>;
|
|
69
69
|
}
|
|
70
70
|
export declare class Enumerator<T> implements IEnumerator<T> {
|
|
71
71
|
private iter;
|
|
@@ -161,7 +161,7 @@ export declare function max<T>(comparer: (x: T, y: T) => number, x: T, y: T): T;
|
|
|
161
161
|
export declare function clamp<T>(comparer: (x: T, y: T) => number, value: T, min: T, max: T): T;
|
|
162
162
|
export declare function createAtom<T>(value: T): (<Args extends [] | [T]>(...args: Args) => Args extends [] ? T : void);
|
|
163
163
|
export declare function createObj(fields: Iterable<[string, any]>): any;
|
|
164
|
-
export declare function jsOptions(mutator: (x:
|
|
164
|
+
export declare function jsOptions<T>(mutator: (x: T) => void): T;
|
|
165
165
|
export declare function round(value: number, digits?: number): number;
|
|
166
166
|
export declare function sign(x: number): number;
|
|
167
167
|
export declare function unescapeDataString(s: string): string;
|