@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { create, match } from "../fable-library-js.4.
|
|
1
|
+
import { create, match } from "../fable-library-js.4.22.0/RegExp.js";
|
|
2
2
|
import { JSONCloserPattern, JSONOpenerPattern, InlineJSONPattern, SequenceCloserPattern, SequenceOpenerPattern, InlineSequencePattern, LineCommentPattern, ValuePattern, KeyPattern } from "./Regex.fs.js";
|
|
3
|
-
import { unwrap } from "../fable-library-js.4.
|
|
4
|
-
import { parse } from "../fable-library-js.4.
|
|
3
|
+
import { unwrap } from "../fable-library-js.4.22.0/Option.js";
|
|
4
|
+
import { parse } from "../fable-library-js.4.22.0/Int32.js";
|
|
5
5
|
|
|
6
6
|
export function $007CKey$007C_$007C(input) {
|
|
7
7
|
let v;
|
|
@@ -9,16 +9,16 @@ export function $007CKey$007C_$007C(input) {
|
|
|
9
9
|
const m = match(create(KeyPattern), input.fields[0]);
|
|
10
10
|
if (m != null) {
|
|
11
11
|
return {
|
|
12
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
12
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
13
13
|
Key: (m.groups && m.groups.key) || "",
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
|
-
return
|
|
17
|
+
return undefined;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
|
-
return
|
|
21
|
+
return undefined;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -33,11 +33,11 @@ export function $007CKeyValue$007C_$007C(input) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
|
-
return
|
|
36
|
+
return undefined;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
return
|
|
40
|
+
return undefined;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -47,16 +47,16 @@ export function $007CYamlValue$007C_$007C(input) {
|
|
|
47
47
|
const m = match(create(ValuePattern), input.fields[0]);
|
|
48
48
|
if (m != null) {
|
|
49
49
|
return {
|
|
50
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
50
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
51
51
|
Value: ((m.groups && m.groups.value) || "").trim(),
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
return
|
|
55
|
+
return undefined;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
return
|
|
59
|
+
return undefined;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -69,11 +69,11 @@ export function $007CYamlComment$007C_$007C(input) {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
|
-
return
|
|
72
|
+
return undefined;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
76
|
-
return
|
|
76
|
+
return undefined;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -83,15 +83,15 @@ export function $007CSequenceMinusOpener$007C_$007C(input) {
|
|
|
83
83
|
const m = match(/^-(\s+(?<value>.*))?$/gu, input.fields[0]);
|
|
84
84
|
if (m != null) {
|
|
85
85
|
return {
|
|
86
|
-
Value: unwrap((v = ((m.groups && m.groups.value) || "").trim(), (v === "") ?
|
|
86
|
+
Value: unwrap((v = ((m.groups && m.groups.value) || "").trim(), (v === "") ? undefined : v)),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
|
-
return
|
|
90
|
+
return undefined;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
|
-
return
|
|
94
|
+
return undefined;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -101,16 +101,16 @@ export function $007CInlineSequence$007C_$007C(input) {
|
|
|
101
101
|
const m = match(create(InlineSequencePattern), input.fields[0]);
|
|
102
102
|
if (m != null) {
|
|
103
103
|
return {
|
|
104
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
104
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
105
105
|
Value: (m.groups && m.groups.inlineSequence) || "",
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
109
|
-
return
|
|
109
|
+
return undefined;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
-
return
|
|
113
|
+
return undefined;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -120,15 +120,15 @@ export function $007CSequenceSquareOpener$007C_$007C(input) {
|
|
|
120
120
|
const m = match(create(SequenceOpenerPattern), input.fields[0]);
|
|
121
121
|
if (m != null) {
|
|
122
122
|
return {
|
|
123
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
123
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
else {
|
|
127
|
-
return
|
|
127
|
+
return undefined;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
|
-
return
|
|
131
|
+
return undefined;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -138,15 +138,15 @@ export function $007CSequenceSquareCloser$007C_$007C(input) {
|
|
|
138
138
|
const m = match(create(SequenceCloserPattern), input.fields[0]);
|
|
139
139
|
if (m != null) {
|
|
140
140
|
return {
|
|
141
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
141
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
145
|
-
return
|
|
145
|
+
return undefined;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
|
-
return
|
|
149
|
+
return undefined;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -156,16 +156,16 @@ export function $007CInlineJSON$007C_$007C(input) {
|
|
|
156
156
|
const m = match(create(InlineJSONPattern), input.fields[0]);
|
|
157
157
|
if (m != null) {
|
|
158
158
|
return {
|
|
159
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
159
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
160
160
|
Value: (m.groups && m.groups.inlineSequence) || "",
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
|
-
return
|
|
164
|
+
return undefined;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
else {
|
|
168
|
-
return
|
|
168
|
+
return undefined;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -175,16 +175,16 @@ export function $007CJSONKeyOpener$007C_$007C(input) {
|
|
|
175
175
|
const m = match(create(JSONOpenerPattern), input.fields[0]);
|
|
176
176
|
if (m != null) {
|
|
177
177
|
return {
|
|
178
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
178
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
179
179
|
Key: (m.groups && m.groups.key) || "",
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
return
|
|
183
|
+
return undefined;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
else {
|
|
187
|
-
return
|
|
187
|
+
return undefined;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -194,15 +194,15 @@ export function $007CJSONCloser$007C_$007C(input) {
|
|
|
194
194
|
const m = match(create(JSONCloserPattern), input.fields[0]);
|
|
195
195
|
if (m != null) {
|
|
196
196
|
return {
|
|
197
|
-
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ?
|
|
197
|
+
Comment: unwrap((v = ((m.groups && m.groups.comment) || ""), (v === "") ? undefined : parse(v, 511, false, 32))),
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
201
|
-
return
|
|
201
|
+
return undefined;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
|
-
return
|
|
205
|
+
return undefined;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -215,11 +215,11 @@ export function $007CSchemaNamespace$007C_$007C(input) {
|
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
|
-
return
|
|
218
|
+
return undefined;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
else {
|
|
222
|
-
return
|
|
222
|
+
return undefined;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { singleton as singleton_1, collect, map as map_2, delay, toList, forAll } from "../fable-library-js.4.
|
|
2
|
-
import { map, defaultArg } from "../fable-library-js.4.
|
|
3
|
-
import { join } from "../fable-library-js.4.
|
|
4
|
-
import { ofArray, singleton, map as map_1 } from "../fable-library-js.4.
|
|
1
|
+
import { singleton as singleton_1, collect, map as map_2, delay, toList, forAll } from "../fable-library-js.4.22.0/Seq.js";
|
|
2
|
+
import { map, defaultArg } from "../fable-library-js.4.22.0/Option.js";
|
|
3
|
+
import { join } from "../fable-library-js.4.22.0/String.js";
|
|
4
|
+
import { ofArray, singleton, map as map_1 } from "../fable-library-js.4.22.0/List.js";
|
|
5
5
|
import { PreprocessorElement } from "./YAMLiciousTypes.fs.js";
|
|
6
6
|
import { write as write_1 } from "./Preprocessing.fs.js";
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Union, toString, Record } from "../fable-library-js.4.
|
|
2
|
-
import { option_type, union_type, list_type, class_type, string_type, record_type, int32_type } from "../fable-library-js.4.
|
|
3
|
-
import { defaultArg } from "../fable-library-js.4.
|
|
4
|
-
import { initialize } from "../fable-library-js.4.
|
|
5
|
-
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../fable-library-js.4.
|
|
6
|
-
import { disposeSafe, getEnumerator } from "../fable-library-js.4.
|
|
1
|
+
import { Union, toString, Record } from "../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { option_type, union_type, list_type, class_type, string_type, record_type, int32_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable-library-js.4.22.0/Option.js";
|
|
4
|
+
import { initialize } from "../fable-library-js.4.22.0/String.js";
|
|
5
|
+
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../fable-library-js.4.22.0/System.Text.js";
|
|
6
|
+
import { disposeSafe, getEnumerator } from "../fable-library-js.4.22.0/Util.js";
|
|
7
7
|
|
|
8
8
|
export class Config extends Record {
|
|
9
9
|
constructor(Whitespace, Level) {
|
|
@@ -41,7 +41,7 @@ export function last(array) {
|
|
|
41
41
|
}
|
|
42
42
|
export function tryLast(array) {
|
|
43
43
|
if (array.length === 0) {
|
|
44
|
-
return
|
|
44
|
+
return undefined;
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
return some(item_2(array.length - 1, array));
|
|
@@ -202,7 +202,7 @@ export function indexOf(array, item_1, start, count, eq) {
|
|
|
202
202
|
return loop(start_1) | 0;
|
|
203
203
|
}
|
|
204
204
|
export function contains(value, array, eq) {
|
|
205
|
-
return indexOf(array, value,
|
|
205
|
+
return indexOf(array, value, undefined, undefined, eq) >= 0;
|
|
206
206
|
}
|
|
207
207
|
export function empty(cons) {
|
|
208
208
|
return Helpers_allocateArrayFromCons(cons, 0);
|
|
@@ -353,7 +353,7 @@ export function insertRangeInPlace(index, range, array) {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
export function removeInPlace(item_1, array, eq) {
|
|
356
|
-
const i = indexOf(array, item_1,
|
|
356
|
+
const i = indexOf(array, item_1, undefined, undefined, eq) | 0;
|
|
357
357
|
if (i > -1) {
|
|
358
358
|
array.splice(i, 1);
|
|
359
359
|
return true;
|
|
@@ -421,7 +421,7 @@ export function tryFindIndex(predicate, array) {
|
|
|
421
421
|
return matchValue;
|
|
422
422
|
}
|
|
423
423
|
else {
|
|
424
|
-
return
|
|
424
|
+
return undefined;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
export function pick(chooser, array) {
|
|
@@ -451,7 +451,7 @@ export function tryPick(chooser, array) {
|
|
|
451
451
|
loop: while (true) {
|
|
452
452
|
const i = i_mut;
|
|
453
453
|
if (i >= array.length) {
|
|
454
|
-
return
|
|
454
|
+
return undefined;
|
|
455
455
|
}
|
|
456
456
|
else {
|
|
457
457
|
const matchValue = chooser(item_2(i, array));
|
|
@@ -492,7 +492,7 @@ export function tryFindBack(predicate, array) {
|
|
|
492
492
|
loop: while (true) {
|
|
493
493
|
const i = i_mut;
|
|
494
494
|
if (i < 0) {
|
|
495
|
-
return
|
|
495
|
+
return undefined;
|
|
496
496
|
}
|
|
497
497
|
else if (predicate(item_2(i, array))) {
|
|
498
498
|
return some(item_2(i, array));
|
|
@@ -550,7 +550,7 @@ export function tryFindIndexBack(predicate, array) {
|
|
|
550
550
|
loop: while (true) {
|
|
551
551
|
const i = i_mut;
|
|
552
552
|
if (i < 0) {
|
|
553
|
-
return
|
|
553
|
+
return undefined;
|
|
554
554
|
}
|
|
555
555
|
else if (predicate(item_2(i, array))) {
|
|
556
556
|
return i;
|
|
@@ -887,7 +887,7 @@ export function tryExactlyOne(array) {
|
|
|
887
887
|
return some(item_2(0, array));
|
|
888
888
|
}
|
|
889
889
|
else {
|
|
890
|
-
return
|
|
890
|
+
return undefined;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
export function head(array) {
|
|
@@ -900,7 +900,7 @@ export function head(array) {
|
|
|
900
900
|
}
|
|
901
901
|
export function tryHead(array) {
|
|
902
902
|
if (array.length === 0) {
|
|
903
|
-
return
|
|
903
|
+
return undefined;
|
|
904
904
|
}
|
|
905
905
|
else {
|
|
906
906
|
return some(item_2(0, array));
|
|
@@ -930,7 +930,7 @@ export function setItem(array, index, value) {
|
|
|
930
930
|
}
|
|
931
931
|
export function tryItem(index, array) {
|
|
932
932
|
if ((index < 0) ? true : (index >= array.length)) {
|
|
933
|
-
return
|
|
933
|
+
return undefined;
|
|
934
934
|
}
|
|
935
935
|
else {
|
|
936
936
|
return some(array[index]);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Continuation, Continuations } from "./AsyncBuilder.js";
|
|
2
|
+
import { Async, IAsyncContext, CancellationToken } from "./AsyncBuilder.js";
|
|
3
|
+
import { FSharpChoice$2_$union } from "./Choice.js";
|
|
4
|
+
export declare function makeAsync<T>(body: Async<T>): Async<T>;
|
|
5
|
+
export declare function invoke<T>(computation: Async<T>, ctx: IAsyncContext<T>): void;
|
|
6
|
+
export declare function callThenInvoke<T, U>(ctx: IAsyncContext<T>, result1: U, part2: (x: U) => Async<T>): void;
|
|
7
|
+
export declare function bind<T, U>(ctx: IAsyncContext<T>, part1: Async<U>, part2: (x: U) => Async<T>): void;
|
|
8
|
+
export declare function createCancellationToken(arg?: boolean | number): CancellationToken;
|
|
9
|
+
export declare function cancel(token: CancellationToken): void;
|
|
10
|
+
export declare function cancelAfter(token: CancellationToken, ms: number): void;
|
|
11
|
+
export declare function isCancellationRequested(token: CancellationToken): boolean;
|
|
12
|
+
export declare function throwIfCancellationRequested(token: CancellationToken): void;
|
|
13
|
+
export declare function startChild<T>(computation: Async<T>, ms?: number): Async<Async<T>>;
|
|
14
|
+
export declare function awaitPromise<T>(p: Promise<T>): (ctx: IAsyncContext<T>) => void;
|
|
15
|
+
export declare function cancellationToken(): (ctx: IAsyncContext<CancellationToken>) => void;
|
|
16
|
+
export declare const defaultCancellationToken: CancellationToken;
|
|
17
|
+
export declare function catchAsync<T>(work: Async<T>): (ctx: IAsyncContext<FSharpChoice$2_$union<T, Error>>) => void;
|
|
18
|
+
export declare function fromContinuations<T>(f: (conts: Continuations<T>) => void): (ctx: IAsyncContext<T>) => void;
|
|
19
|
+
export declare function ignore<T>(computation: Async<T>): (ctx: IAsyncContext<undefined>) => void;
|
|
20
|
+
export declare function parallel<T>(computations: Iterable<Async<T>>): (ctx: IAsyncContext<Awaited<T>[]>) => void;
|
|
21
|
+
export declare function sequential<T>(computations: Iterable<Async<T>>): (ctx: IAsyncContext<T[]>) => void;
|
|
22
|
+
export declare function sleep(millisecondsDueTime: number): (ctx: IAsyncContext<void>) => void;
|
|
23
|
+
export declare function runSynchronously(): never;
|
|
24
|
+
export declare function start<T>(computation: Async<T>, cancellationToken?: CancellationToken): void;
|
|
25
|
+
export declare function startImmediate<T>(computation: Async<T>, cancellationToken?: CancellationToken): void;
|
|
26
|
+
export declare function startWithContinuations<T>(computation: Async<T>, continuation?: Continuation<T> | CancellationToken, exceptionContinuation?: Continuation<any>, cancellationContinuation?: Continuation<any>, cancelToken?: CancellationToken): void;
|
|
27
|
+
export declare function startAsPromise<T>(computation: Async<T>, cancellationToken?: CancellationToken): Promise<T>;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { OperationCanceledError, Trampoline } from "./AsyncBuilder.js";
|
|
2
2
|
import { CancellationToken } from "./AsyncBuilder.js";
|
|
3
|
-
import { protectedCont } from "./AsyncBuilder.js";
|
|
4
|
-
import { protectedBind } from "./AsyncBuilder.js";
|
|
5
|
-
import { protectedReturn } from "./AsyncBuilder.js";
|
|
3
|
+
import { protectedCont, protectedBind, protectedReturn } from "./AsyncBuilder.js";
|
|
6
4
|
import { Choice_makeChoice1Of2, Choice_makeChoice2Of2 } from "./Choice.js";
|
|
7
5
|
import { TimeoutException } from "./SystemException.js";
|
|
8
|
-
// Implemented just for type references
|
|
9
|
-
export class Async {
|
|
10
|
-
}
|
|
11
6
|
function emptyContinuation(_x) {
|
|
12
7
|
// NOP
|
|
13
8
|
}
|
|
@@ -155,4 +150,3 @@ export function startWithContinuations(computation, continuation, exceptionConti
|
|
|
155
150
|
export function startAsPromise(computation, cancellationToken) {
|
|
156
151
|
return new Promise((resolve, reject) => startWithContinuations(computation, resolve, reject, reject, cancellationToken ? cancellationToken : defaultCancellationToken));
|
|
157
152
|
}
|
|
158
|
-
export default Async;
|
|
@@ -39,21 +39,21 @@ export interface IAsyncContext<T> {
|
|
|
39
39
|
cancelToken: CancellationToken;
|
|
40
40
|
trampoline: Trampoline;
|
|
41
41
|
}
|
|
42
|
-
export type
|
|
43
|
-
export declare function protectedCont<T>(f:
|
|
44
|
-
export declare function protectedBind<T, U>(computation:
|
|
42
|
+
export type Async<T> = (x: IAsyncContext<T>) => void;
|
|
43
|
+
export declare function protectedCont<T>(f: Async<T>): (ctx: IAsyncContext<T>) => void;
|
|
44
|
+
export declare function protectedBind<T, U>(computation: Async<T>, binder: (x: T) => Async<U>): (ctx: IAsyncContext<U>) => void;
|
|
45
45
|
export declare function protectedReturn<T>(value: T): (ctx: IAsyncContext<T>) => void;
|
|
46
46
|
export declare class AsyncBuilder {
|
|
47
|
-
Bind<T, U>(computation:
|
|
48
|
-
Combine<T>(computation1:
|
|
49
|
-
Delay<T>(generator: () =>
|
|
50
|
-
For<T>(sequence: Iterable<T>, body: (x: T) =>
|
|
51
|
-
Return<T>(value
|
|
52
|
-
ReturnFrom<T>(computation:
|
|
53
|
-
TryFinally<T>(computation:
|
|
54
|
-
TryWith<T>(computation:
|
|
55
|
-
Using<T extends IDisposable, U>(resource: T, binder: (x: T) =>
|
|
56
|
-
While(guard: () => boolean, computation:
|
|
47
|
+
Bind<T, U>(computation: Async<T>, binder: (x: T) => Async<U>): (ctx: IAsyncContext<U>) => void;
|
|
48
|
+
Combine<T>(computation1: Async<void>, computation2: Async<T>): (ctx: IAsyncContext<T>) => void;
|
|
49
|
+
Delay<T>(generator: () => Async<T>): (ctx: IAsyncContext<T>) => void;
|
|
50
|
+
For<T>(sequence: Iterable<T>, body: (x: T) => Async<void>): Async<void>;
|
|
51
|
+
Return<T>(value: T): (ctx: IAsyncContext<T>) => void;
|
|
52
|
+
ReturnFrom<T>(computation: Async<T>): Async<T>;
|
|
53
|
+
TryFinally<T>(computation: Async<T>, compensation: () => void): (ctx: IAsyncContext<T>) => void;
|
|
54
|
+
TryWith<T>(computation: Async<T>, catchHandler: (e: any) => Async<T>): (ctx: IAsyncContext<T>) => void;
|
|
55
|
+
Using<T extends IDisposable, U>(resource: T, binder: (x: T) => Async<U>): (ctx: IAsyncContext<U>) => void;
|
|
56
|
+
While(guard: () => boolean, computation: Async<void>): Async<void>;
|
|
57
57
|
Zero(): (ctx: IAsyncContext<void>) => void;
|
|
58
58
|
}
|
|
59
59
|
export declare const singleton: AsyncBuilder;
|
|
@@ -111,10 +111,11 @@ export function toFloat16(x) { return Number(x); }
|
|
|
111
111
|
export function toFloat32(x) { return Number(x); }
|
|
112
112
|
export function toFloat64(x) { return Number(x); }
|
|
113
113
|
export function toDecimal(x) {
|
|
114
|
-
const low = Number(BigInt.asUintN(32, x));
|
|
115
|
-
const mid = Number(BigInt.asUintN(32, x >> 32n));
|
|
116
|
-
const high = Number(BigInt.asUintN(32, x >> 64n));
|
|
117
114
|
const isNegative = x < zero;
|
|
115
|
+
const bits = abs(x);
|
|
116
|
+
const low = Number(BigInt.asUintN(32, bits));
|
|
117
|
+
const mid = Number(BigInt.asUintN(32, bits >> 32n));
|
|
118
|
+
const high = Number(BigInt.asUintN(32, bits >> 64n));
|
|
118
119
|
const scale = 0;
|
|
119
120
|
return fromParts(low, mid, high, isNegative, scale);
|
|
120
121
|
}
|
|
@@ -7,7 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
-
## 1.
|
|
10
|
+
## 1.6.0 - 2024-10-02
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
* Remove `Async` (from `Async.ts`) class (by @MangelMaxime)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
* Renamed `IAsync` to `Async` in `AsyncBuilder.ts` (#3906) (by @ncave)
|
|
19
|
+
|
|
20
|
+
## 1.5.0 - 2024-09-19
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
* [JS/TS] Add support for `OrdinalIgnoreCase` overload for `String.EndsWith` (#3892) (by @goswinr)
|
|
25
|
+
* [JS/TS] Add `uri.Port`, `uri.IsDefaultPort` (by @MangelMaxime)
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
* [JS/TS] Fix escaping of `{` and `}` in FormattableString (#3890) (by @roboz0r)
|
|
30
|
+
* [JS/TS] Fix `uri.Host` to return the host name without the port (by @MangelMaxime)
|
|
31
|
+
* [JS/TS] Fix TypeScript compilation by resolving type of `jsOptions` (#3894) (by @ManngelMaxime)
|
|
32
|
+
|
|
33
|
+
## 1.4.3 - 2024-09-04
|
|
34
|
+
|
|
35
|
+
* [JS/TS] Fixed Decimal comparisons (#3884) (by @ncave)
|
|
36
|
+
|
|
37
|
+
## 1.4.2 - 2024-06-13
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
* [JS/TS] Fixed BigInt.ToDecimal with negative values (#3500) (by @ncave)
|
|
42
|
+
|
|
43
|
+
## 1.4.1 - 2024-06-13
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
* [JS/TS] Fixed DateTime.MinValue, DateTime.MaxValue (#3836) (by @ncave)
|
|
48
|
+
|
|
49
|
+
## 1.4.0 - 2024-03-20
|
|
11
50
|
|
|
12
51
|
### Added
|
|
13
52
|
|
|
@@ -171,7 +171,7 @@ export function Choice_tryValueIfChoice1Of2(x) {
|
|
|
171
171
|
return some(x.fields[0]);
|
|
172
172
|
}
|
|
173
173
|
else {
|
|
174
|
-
return
|
|
174
|
+
return undefined;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
export function Choice_tryValueIfChoice2Of2(x) {
|
|
@@ -179,6 +179,6 @@ export function Choice_tryValueIfChoice2Of2(x) {
|
|
|
179
179
|
return some(x.fields[0]);
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
return
|
|
182
|
+
return undefined;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -82,10 +82,10 @@ function dateToStringWithCustomFormat(date, format, utc) {
|
|
|
82
82
|
cursorPos += tokenLength;
|
|
83
83
|
switch (tokenLength) {
|
|
84
84
|
case 1:
|
|
85
|
-
result += localizedDate
|
|
85
|
+
result += day(localizedDate);
|
|
86
86
|
break;
|
|
87
87
|
case 2:
|
|
88
|
-
result += padWithZeros(localizedDate
|
|
88
|
+
result += padWithZeros(day(localizedDate), 2);
|
|
89
89
|
break;
|
|
90
90
|
case 3:
|
|
91
91
|
result += shortDays[dayOfWeek(localizedDate)];
|
|
@@ -469,11 +469,11 @@ export function getTicks(date) {
|
|
|
469
469
|
}
|
|
470
470
|
export function minValue() {
|
|
471
471
|
// This is "0001-01-01T00:00:00.000Z", actual JS min value is -8640000000000000
|
|
472
|
-
return DateTime(-62135596800000,
|
|
472
|
+
return DateTime(-62135596800000, 1 /* DateKind.UTC */);
|
|
473
473
|
}
|
|
474
474
|
export function maxValue() {
|
|
475
475
|
// This is "9999-12-31T23:59:59.999Z", actual JS max value is 8640000000000000
|
|
476
|
-
return DateTime(253402300799999,
|
|
476
|
+
return DateTime(253402300799999, 1 /* DateKind.UTC */);
|
|
477
477
|
}
|
|
478
478
|
export function parseRaw(input) {
|
|
479
479
|
function fail() {
|
|
@@ -490,7 +490,6 @@ export function parseRaw(input) {
|
|
|
490
490
|
let offset = null;
|
|
491
491
|
if (isNaN(date.getTime())) {
|
|
492
492
|
// Try to check strings JS Date cannot parse (see #1045, #1422)
|
|
493
|
-
// tslint:disable-next-line:max-line-length
|
|
494
493
|
const m = /^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(input);
|
|
495
494
|
if (m != null) {
|
|
496
495
|
let baseDate;
|
|
@@ -34,13 +34,13 @@ export function equals(x, y) {
|
|
|
34
34
|
return !x.cmp(y);
|
|
35
35
|
}
|
|
36
36
|
export function abs(x) { return x.abs(); }
|
|
37
|
-
export function sign(x) { return x
|
|
38
|
-
export function max(x, y) { return x
|
|
39
|
-
export function min(x, y) { return x
|
|
40
|
-
export function maxMagnitude(x, y) { return abs(x)
|
|
41
|
-
export function minMagnitude(x, y) { return abs(x)
|
|
37
|
+
export function sign(x) { return x.lt(get_Zero) ? -1 : x.gt(get_Zero) ? 1 : 0; }
|
|
38
|
+
export function max(x, y) { return x.gt(y) ? x : y; }
|
|
39
|
+
export function min(x, y) { return x.lt(y) ? x : y; }
|
|
40
|
+
export function maxMagnitude(x, y) { return abs(x).gt(abs(y)) ? x : y; }
|
|
41
|
+
export function minMagnitude(x, y) { return abs(x).lt(abs(y)) ? x : y; }
|
|
42
42
|
export function clamp(x, min, max) {
|
|
43
|
-
return x
|
|
43
|
+
return x.lt(min) ? min : x.gt(max) ? max : x;
|
|
44
44
|
}
|
|
45
45
|
export function round(x, digits = 0) {
|
|
46
46
|
return x.round(digits, 2 /* ROUND_HALF_EVEN */);
|