@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,23 +1,23 @@
|
|
|
1
|
-
import { join } from "../fable-library-js.4.
|
|
2
|
-
import { length, tail as tail_1, head as head_1, isEmpty, cons, reverse as reverse_1, ofSeq, singleton, append, empty, fold, tryLast, map as map_1 } from "../fable-library-js.4.
|
|
3
|
-
import { Result_Map, Result_MapError, FSharpResult$2 } from "../fable-library-js.4.
|
|
1
|
+
import { join } from "../fable-library-js.4.22.0/String.js";
|
|
2
|
+
import { length, tail as tail_1, head as head_1, isEmpty, cons, reverse as reverse_1, ofSeq, singleton, append, empty, fold, tryLast, map as map_1 } from "../fable-library-js.4.22.0/List.js";
|
|
3
|
+
import { Result_Map, Result_MapError, FSharpResult$2 } from "../fable-library-js.4.22.0/Result.js";
|
|
4
4
|
import { ErrorReason$1 } from "./Types.fs.js";
|
|
5
|
-
import { tryParse as tryParse_1 } from "../fable-library-js.4.
|
|
6
|
-
import { FSharpRef } from "../fable-library-js.4.
|
|
7
|
-
import { tryParse as tryParse_2 } from "../fable-library-js.4.
|
|
8
|
-
import { tryParse as tryParse_4, fromInt32, toUInt64, fromFloat64, toInt64, toFloat64 } from "../fable-library-js.4.
|
|
9
|
-
import { tryParse as tryParse_3 } from "../fable-library-js.4.
|
|
10
|
-
import { tryParse as tryParse_5 } from "../fable-library-js.4.
|
|
11
|
-
import Decimal from "../fable-library-js.4.
|
|
12
|
-
import { toUniversalTime, tryParse as tryParse_6, minValue } from "../fable-library-js.4.
|
|
13
|
-
import { tryParse as tryParse_7, minValue as minValue_1 } from "../fable-library-js.4.
|
|
14
|
-
import { tryParse as tryParse_8 } from "../fable-library-js.4.
|
|
15
|
-
import { value as value_7, defaultArg, some } from "../fable-library-js.4.
|
|
16
|
-
import { compare, comparePrimitives, defaultOf, int32ToString } from "../fable-library-js.4.
|
|
17
|
-
import { fill, setItem, fold as fold_1, item } from "../fable-library-js.4.
|
|
18
|
-
import { toList, append as append_1, reverse } from "../fable-library-js.4.
|
|
19
|
-
import { class_type } from "../fable-library-js.4.
|
|
20
|
-
import { ofSeq as ofSeq_1, ofList } from "../fable-library-js.4.
|
|
5
|
+
import { tryParse as tryParse_1 } from "../fable-library-js.4.22.0/Guid.js";
|
|
6
|
+
import { FSharpRef } from "../fable-library-js.4.22.0/Types.js";
|
|
7
|
+
import { tryParse as tryParse_2 } from "../fable-library-js.4.22.0/Int32.js";
|
|
8
|
+
import { tryParse as tryParse_4, fromInt32, toUInt64, fromFloat64, toInt64, toFloat64 } from "../fable-library-js.4.22.0/BigInt.js";
|
|
9
|
+
import { tryParse as tryParse_3 } from "../fable-library-js.4.22.0/Long.js";
|
|
10
|
+
import { tryParse as tryParse_5 } from "../fable-library-js.4.22.0/Decimal.js";
|
|
11
|
+
import Decimal from "../fable-library-js.4.22.0/Decimal.js";
|
|
12
|
+
import { toUniversalTime, tryParse as tryParse_6, minValue } from "../fable-library-js.4.22.0/Date.js";
|
|
13
|
+
import { tryParse as tryParse_7, minValue as minValue_1 } from "../fable-library-js.4.22.0/DateOffset.js";
|
|
14
|
+
import { tryParse as tryParse_8 } from "../fable-library-js.4.22.0/TimeSpan.js";
|
|
15
|
+
import { value as value_7, defaultArg, some } from "../fable-library-js.4.22.0/Option.js";
|
|
16
|
+
import { compare, comparePrimitives, defaultOf, int32ToString } from "../fable-library-js.4.22.0/Util.js";
|
|
17
|
+
import { fill, setItem, fold as fold_1, item } from "../fable-library-js.4.22.0/Array.js";
|
|
18
|
+
import { toList, append as append_1, reverse } from "../fable-library-js.4.22.0/Seq.js";
|
|
19
|
+
import { class_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
20
|
+
import { ofSeq as ofSeq_1, ofList } from "../fable-library-js.4.22.0/Map.js";
|
|
21
21
|
|
|
22
22
|
export function Helpers_prependPath(path, err_, err__1) {
|
|
23
23
|
const err = [err_, err__1];
|
|
@@ -46,6 +46,22 @@ export function errorToString(helpers, path, error) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Runs the decoder against the given JSON value.
|
|
51
|
+
*
|
|
52
|
+
* If the decoder fails, it reports the error prefixed with the given path.
|
|
53
|
+
*/
|
|
54
|
+
export function Advanced_fromValue(helpers, decoder, value_1) {
|
|
55
|
+
const matchValue = decoder.Decode(helpers, value_1);
|
|
56
|
+
if (matchValue.tag === 1) {
|
|
57
|
+
const error = matchValue.fields[0];
|
|
58
|
+
return new FSharpResult$2(1, [errorToString(helpers, error[0], error[1])]);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return new FSharpResult$2(0, [matchValue.fields[0]]);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
49
65
|
export const string = {
|
|
50
66
|
Decode(helpers, value_1) {
|
|
51
67
|
return helpers.isString(value_1) ? (new FSharpResult$2(0, [helpers.asString(value_1)])) : (new FSharpResult$2(1, [["", new ErrorReason$1(0, ["a string", value_1])]]));
|
|
@@ -82,7 +98,7 @@ export const guid = {
|
|
|
82
98
|
|
|
83
99
|
export const unit = {
|
|
84
100
|
Decode(helpers, value_1) {
|
|
85
|
-
return helpers.isNullValue(value_1) ? (new FSharpResult$2(0, [
|
|
101
|
+
return helpers.isNullValue(value_1) ? (new FSharpResult$2(0, [undefined])) : (new FSharpResult$2(1, [["", new ErrorReason$1(0, ["null", value_1])]]));
|
|
86
102
|
},
|
|
87
103
|
};
|
|
88
104
|
|
|
@@ -409,7 +425,7 @@ export const timespan = {
|
|
|
409
425
|
function decodeMaybeNull(helpers, path, decoder, value_1) {
|
|
410
426
|
let tupledArg;
|
|
411
427
|
if (helpers.isNullValue(value_1)) {
|
|
412
|
-
return new FSharpResult$2(0, [
|
|
428
|
+
return new FSharpResult$2(0, [undefined]);
|
|
413
429
|
}
|
|
414
430
|
else {
|
|
415
431
|
const matchValue = decoder.Decode(helpers, value_1);
|
|
@@ -425,7 +441,7 @@ function decodeMaybeNull(helpers, path, decoder, value_1) {
|
|
|
425
441
|
export function optional(fieldName, decoder) {
|
|
426
442
|
return {
|
|
427
443
|
Decode(helpers, value_1) {
|
|
428
|
-
return helpers.isObject(value_1) ? (helpers.hasProperty(fieldName, value_1) ? decodeMaybeNull(helpers, "." + fieldName, decoder, helpers.getProperty(fieldName, value_1)) : (new FSharpResult$2(0, [
|
|
444
|
+
return helpers.isObject(value_1) ? (helpers.hasProperty(fieldName, value_1) ? decodeMaybeNull(helpers, "." + fieldName, decoder, helpers.getProperty(fieldName, value_1)) : (new FSharpResult$2(0, [undefined]))) : (new FSharpResult$2(1, [["", new ErrorReason$1(2, ["an object", value_1])]]));
|
|
429
445
|
},
|
|
430
446
|
};
|
|
431
447
|
}
|
|
@@ -460,14 +476,14 @@ export function optionalAt(fieldNames, decoder) {
|
|
|
460
476
|
const res = tupledArg[2];
|
|
461
477
|
if (res == null) {
|
|
462
478
|
if (helpers.isNullValue(curValue)) {
|
|
463
|
-
return [curPath, curValue, new FSharpResult$2(0, [
|
|
479
|
+
return [curPath, curValue, new FSharpResult$2(0, [undefined])];
|
|
464
480
|
}
|
|
465
481
|
else if (helpers.isObject(curValue)) {
|
|
466
482
|
if (helpers.hasProperty(field_1, curValue)) {
|
|
467
|
-
return [(curPath + ".") + field_1, helpers.getProperty(field_1, curValue),
|
|
483
|
+
return [(curPath + ".") + field_1, helpers.getProperty(field_1, curValue), undefined];
|
|
468
484
|
}
|
|
469
485
|
else {
|
|
470
|
-
return [curPath, curValue, new FSharpResult$2(0, [
|
|
486
|
+
return [curPath, curValue, new FSharpResult$2(0, [undefined])];
|
|
471
487
|
}
|
|
472
488
|
}
|
|
473
489
|
else {
|
|
@@ -477,10 +493,10 @@ export function optionalAt(fieldNames, decoder) {
|
|
|
477
493
|
else {
|
|
478
494
|
return [curPath, curValue, res];
|
|
479
495
|
}
|
|
480
|
-
}, ["", firstValue,
|
|
496
|
+
}, ["", firstValue, undefined], fieldNames);
|
|
481
497
|
if (_arg[2] == null) {
|
|
482
498
|
const lastValue = _arg[1];
|
|
483
|
-
return helpers.isNullValue(lastValue) ? (new FSharpResult$2(0, [
|
|
499
|
+
return helpers.isNullValue(lastValue) ? (new FSharpResult$2(0, [undefined])) : decodeMaybeNull(helpers, _arg[0], decoder, lastValue);
|
|
484
500
|
}
|
|
485
501
|
else {
|
|
486
502
|
return _arg[2];
|
|
@@ -522,10 +538,10 @@ export function at(fieldNames, decoder) {
|
|
|
522
538
|
}
|
|
523
539
|
else if (helpers.isObject(curValue)) {
|
|
524
540
|
if (helpers.hasProperty(field_1, curValue)) {
|
|
525
|
-
return [(curPath + ".") + field_1, helpers.getProperty(field_1, curValue),
|
|
541
|
+
return [(curPath + ".") + field_1, helpers.getProperty(field_1, curValue), undefined];
|
|
526
542
|
}
|
|
527
543
|
else {
|
|
528
|
-
return [curPath, curValue, badPathError(fieldNames,
|
|
544
|
+
return [curPath, curValue, badPathError(fieldNames, undefined, firstValue)];
|
|
529
545
|
}
|
|
530
546
|
}
|
|
531
547
|
else {
|
|
@@ -535,7 +551,7 @@ export function at(fieldNames, decoder) {
|
|
|
535
551
|
else {
|
|
536
552
|
return [curPath, curValue, res];
|
|
537
553
|
}
|
|
538
|
-
}, ["", firstValue,
|
|
554
|
+
}, ["", firstValue, undefined], fieldNames);
|
|
539
555
|
return (_arg[2] == null) ? Result_MapError((tupledArg_1) => Helpers_prependPath(_arg[0], tupledArg_1[0], tupledArg_1[1]), decoder.Decode(helpers, _arg[1])) : _arg[2];
|
|
540
556
|
},
|
|
541
557
|
};
|
|
@@ -559,27 +575,11 @@ export function index(requestedIndex, decoder) {
|
|
|
559
575
|
export function option(decoder) {
|
|
560
576
|
return {
|
|
561
577
|
Decode(helpers, value_1) {
|
|
562
|
-
return helpers.isNullValue(value_1) ? (new FSharpResult$2(0, [
|
|
578
|
+
return helpers.isNullValue(value_1) ? (new FSharpResult$2(0, [undefined])) : Result_Map(some, decoder.Decode(helpers, value_1));
|
|
563
579
|
},
|
|
564
580
|
};
|
|
565
581
|
}
|
|
566
582
|
|
|
567
|
-
/**
|
|
568
|
-
* Runs the decoder against the given JSON value.
|
|
569
|
-
*
|
|
570
|
-
* If the decoder fails, it reports the error prefixed with the given path.
|
|
571
|
-
*/
|
|
572
|
-
export function fromValue(helpers, decoder, value_1) {
|
|
573
|
-
const matchValue = decoder.Decode(helpers, value_1);
|
|
574
|
-
if (matchValue.tag === 1) {
|
|
575
|
-
const error = matchValue.fields[0];
|
|
576
|
-
return new FSharpResult$2(1, [errorToString(helpers, error[0], error[1])]);
|
|
577
|
-
}
|
|
578
|
-
else {
|
|
579
|
-
return new FSharpResult$2(0, [matchValue.fields[0]]);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
583
|
export function list(decoder) {
|
|
584
584
|
return {
|
|
585
585
|
Decode(helpers, value_1) {
|
|
@@ -588,7 +588,7 @@ export function list(decoder) {
|
|
|
588
588
|
const tokens = helpers.asArray(value_1);
|
|
589
589
|
let i = 0;
|
|
590
590
|
let result = empty();
|
|
591
|
-
let error =
|
|
591
|
+
let error = undefined;
|
|
592
592
|
while ((i < tokens.length) && (error == null)) {
|
|
593
593
|
const value_2 = item(i, tokens);
|
|
594
594
|
const matchValue = decoder.Decode(helpers, value_2);
|
|
@@ -610,6 +610,35 @@ export function list(decoder) {
|
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
+
export function resizeArray(decoder) {
|
|
614
|
+
return {
|
|
615
|
+
Decode(helpers, value_1) {
|
|
616
|
+
let tupledArg;
|
|
617
|
+
if (helpers.isArray(value_1)) {
|
|
618
|
+
const tokens = helpers.asArray(value_1);
|
|
619
|
+
let i = 0;
|
|
620
|
+
const result = [];
|
|
621
|
+
let error = undefined;
|
|
622
|
+
while ((i < tokens.length) && (error == null)) {
|
|
623
|
+
const value_2 = item(i, tokens);
|
|
624
|
+
const matchValue = decoder.Decode(helpers, value_2);
|
|
625
|
+
if (matchValue.tag === 1) {
|
|
626
|
+
error = ((tupledArg = matchValue.fields[0], Helpers_prependPath((".[" + int32ToString(i)) + "]", tupledArg[0], tupledArg[1])));
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
void (result.push(matchValue.fields[0]));
|
|
630
|
+
}
|
|
631
|
+
i = ((i + 1) | 0);
|
|
632
|
+
}
|
|
633
|
+
return (error == null) ? (new FSharpResult$2(0, [Array.from(result)])) : (new FSharpResult$2(1, [value_7(error)]));
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
return new FSharpResult$2(1, [["", new ErrorReason$1(0, ["a ResizeArray", value_1])]]);
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
|
|
613
642
|
export function seq(decoder) {
|
|
614
643
|
return {
|
|
615
644
|
Decode(helpers, value_1) {
|
|
@@ -1129,14 +1158,14 @@ export class Getters$2 {
|
|
|
1129
1158
|
switch (matchResult) {
|
|
1130
1159
|
case 0:
|
|
1131
1160
|
if (helpers.isNullValue(v_1)) {
|
|
1132
|
-
return
|
|
1161
|
+
return undefined;
|
|
1133
1162
|
}
|
|
1134
1163
|
else {
|
|
1135
1164
|
void (_this_1.errors.push(error));
|
|
1136
1165
|
return defaultOf();
|
|
1137
1166
|
}
|
|
1138
1167
|
case 1:
|
|
1139
|
-
return
|
|
1168
|
+
return undefined;
|
|
1140
1169
|
default: {
|
|
1141
1170
|
void (_this_1.errors.push(error));
|
|
1142
1171
|
return defaultOf();
|
|
@@ -7,24 +7,83 @@ open System
|
|
|
7
7
|
[<RequireQualifiedAccess>]
|
|
8
8
|
module Encode =
|
|
9
9
|
|
|
10
|
-
let inline string value =
|
|
11
|
-
|
|
10
|
+
let inline string value =
|
|
11
|
+
{ new IEncodable with
|
|
12
|
+
member _.Encode(helpers) = helpers.encodeString value
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let inline char value =
|
|
16
|
+
{ new IEncodable with
|
|
17
|
+
member _.Encode(helpers) = helpers.encodeChar value
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
let inline guid value = value.ToString() |> string
|
|
13
|
-
let inline float value = Json.DecimalNumber value
|
|
14
21
|
|
|
15
|
-
let
|
|
16
|
-
|
|
22
|
+
let inline float value =
|
|
23
|
+
{ new IEncodable with
|
|
24
|
+
member _.Encode(helpers) = helpers.encodeDecimalNumber value
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let float32 (value: float32) = float (Operators.float value)
|
|
17
28
|
|
|
18
29
|
let inline decimal (value: decimal) =
|
|
19
30
|
value.ToString(CultureInfo.InvariantCulture) |> string
|
|
20
31
|
|
|
21
|
-
let inline nil<'T> =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let
|
|
27
|
-
|
|
32
|
+
let inline nil<'T> =
|
|
33
|
+
{ new IEncodable with
|
|
34
|
+
member _.Encode(helpers) = helpers.encodeNull ()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let inline bool value =
|
|
38
|
+
{ new IEncodable with
|
|
39
|
+
member _.Encode(helpers) = helpers.encodeBool value
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
let inline object (values: seq<string * IEncodable>) =
|
|
43
|
+
{ new IEncodable with
|
|
44
|
+
member _.Encode(helpers) =
|
|
45
|
+
values
|
|
46
|
+
|> Seq.map (fun (k, v) -> (k, v.Encode(helpers)))
|
|
47
|
+
|> helpers.encodeObject
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
let inline array (values: IEncodable array) =
|
|
51
|
+
{ new IEncodable with
|
|
52
|
+
member _.Encode(helpers) =
|
|
53
|
+
values
|
|
54
|
+
|> Array.map (fun v -> v.Encode(helpers))
|
|
55
|
+
|> helpers.encodeArray
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let list (values: IEncodable list) =
|
|
59
|
+
{ new IEncodable with
|
|
60
|
+
member _.Encode(helpers) =
|
|
61
|
+
values
|
|
62
|
+
|> List.map (fun v -> v.Encode(helpers))
|
|
63
|
+
|> helpers.encodeList
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let seq (values: IEncodable seq) =
|
|
67
|
+
{ new IEncodable with
|
|
68
|
+
member _.Encode(helpers) =
|
|
69
|
+
values
|
|
70
|
+
|> Seq.map (fun v -> v.Encode(helpers))
|
|
71
|
+
|> helpers.encodeSeq
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let resizeArray (values: IEncodable ResizeArray) =
|
|
75
|
+
{ new IEncodable with
|
|
76
|
+
member _.Encode(helpers) =
|
|
77
|
+
let result = ResizeArray(values.Count)
|
|
78
|
+
|
|
79
|
+
for v in values do
|
|
80
|
+
result.Add(v.Encode(helpers))
|
|
81
|
+
|
|
82
|
+
helpers.encodeResizeArray result
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let dict (values: Map<string, IEncodable>) : IEncodable =
|
|
86
|
+
values |> Map.toSeq |> object
|
|
28
87
|
|
|
29
88
|
let inline bigint (value: bigint) = value.ToString() |> string
|
|
30
89
|
|
|
@@ -36,12 +95,41 @@ module Encode =
|
|
|
36
95
|
let inline datetime (value: DateTime) =
|
|
37
96
|
value.ToString("O", CultureInfo.InvariantCulture) |> string
|
|
38
97
|
|
|
39
|
-
let inline sbyte (value: sbyte) =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
98
|
+
let inline sbyte (value: sbyte) =
|
|
99
|
+
{ new IEncodable with
|
|
100
|
+
member _.Encode(helpers) =
|
|
101
|
+
helpers.encodeSignedIntegralNumber (int32 value)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let inline byte (value: byte) =
|
|
105
|
+
{ new IEncodable with
|
|
106
|
+
member _.Encode(helpers) =
|
|
107
|
+
helpers.encodeUnsignedIntegralNumber (uint32 value)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let inline int16 (value: int16) =
|
|
111
|
+
{ new IEncodable with
|
|
112
|
+
member _.Encode(helpers) =
|
|
113
|
+
helpers.encodeSignedIntegralNumber (int32 value)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let inline uint16 (value: uint16) =
|
|
117
|
+
{ new IEncodable with
|
|
118
|
+
member _.Encode(helpers) =
|
|
119
|
+
helpers.encodeUnsignedIntegralNumber (uint32 value)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let inline int (value: int) =
|
|
123
|
+
{ new IEncodable with
|
|
124
|
+
member _.Encode(helpers) =
|
|
125
|
+
helpers.encodeSignedIntegralNumber value
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
let inline uint32 (value: uint32) =
|
|
129
|
+
{ new IEncodable with
|
|
130
|
+
member _.Encode(helpers) =
|
|
131
|
+
helpers.encodeUnsignedIntegralNumber value
|
|
132
|
+
}
|
|
45
133
|
|
|
46
134
|
let inline int64 (value: int64) =
|
|
47
135
|
value.ToString(CultureInfo.InvariantCulture) |> string
|
|
@@ -49,9 +137,9 @@ module Encode =
|
|
|
49
137
|
let inline uint64 (value: uint64) =
|
|
50
138
|
value.ToString(CultureInfo.InvariantCulture) |> string
|
|
51
139
|
|
|
52
|
-
let inline unit () =
|
|
140
|
+
let inline unit () = nil
|
|
53
141
|
|
|
54
|
-
let tuple2 (enc1: Encoder<'T1>) (enc2: Encoder<'T2>) (v1, v2) :
|
|
142
|
+
let tuple2 (enc1: Encoder<'T1>) (enc2: Encoder<'T2>) (v1, v2) : IEncodable =
|
|
55
143
|
array
|
|
56
144
|
[|
|
|
57
145
|
enc1 v1
|
|
@@ -63,7 +151,7 @@ module Encode =
|
|
|
63
151
|
(enc2: Encoder<'T2>)
|
|
64
152
|
(enc3: Encoder<'T3>)
|
|
65
153
|
(v1, v2, v3)
|
|
66
|
-
:
|
|
154
|
+
: IEncodable
|
|
67
155
|
=
|
|
68
156
|
array
|
|
69
157
|
[|
|
|
@@ -78,7 +166,7 @@ module Encode =
|
|
|
78
166
|
(enc3: Encoder<'T3>)
|
|
79
167
|
(enc4: Encoder<'T4>)
|
|
80
168
|
(v1, v2, v3, v4)
|
|
81
|
-
:
|
|
169
|
+
: IEncodable
|
|
82
170
|
=
|
|
83
171
|
array
|
|
84
172
|
[|
|
|
@@ -95,7 +183,7 @@ module Encode =
|
|
|
95
183
|
(enc4: Encoder<'T4>)
|
|
96
184
|
(enc5: Encoder<'T5>)
|
|
97
185
|
(v1, v2, v3, v4, v5)
|
|
98
|
-
:
|
|
186
|
+
: IEncodable
|
|
99
187
|
=
|
|
100
188
|
array
|
|
101
189
|
[|
|
|
@@ -114,7 +202,7 @@ module Encode =
|
|
|
114
202
|
(enc5: Encoder<'T5>)
|
|
115
203
|
(enc6: Encoder<'T6>)
|
|
116
204
|
(v1, v2, v3, v4, v5, v6)
|
|
117
|
-
:
|
|
205
|
+
: IEncodable
|
|
118
206
|
=
|
|
119
207
|
array
|
|
120
208
|
[|
|
|
@@ -135,7 +223,7 @@ module Encode =
|
|
|
135
223
|
(enc6: Encoder<'T6>)
|
|
136
224
|
(enc7: Encoder<'T7>)
|
|
137
225
|
(v1, v2, v3, v4, v5, v6, v7)
|
|
138
|
-
:
|
|
226
|
+
: IEncodable
|
|
139
227
|
=
|
|
140
228
|
array
|
|
141
229
|
[|
|
|
@@ -158,7 +246,7 @@ module Encode =
|
|
|
158
246
|
(enc7: Encoder<'T7>)
|
|
159
247
|
(enc8: Encoder<'T8>)
|
|
160
248
|
(v1, v2, v3, v4, v5, v6, v7, v8)
|
|
161
|
-
:
|
|
249
|
+
: IEncodable
|
|
162
250
|
=
|
|
163
251
|
array
|
|
164
252
|
[|
|
|
@@ -177,7 +265,7 @@ module Encode =
|
|
|
177
265
|
(keyEncoder: Encoder<'key>)
|
|
178
266
|
(valueEncoder: Encoder<'value>)
|
|
179
267
|
(values: Map<'key, 'value>)
|
|
180
|
-
:
|
|
268
|
+
: IEncodable
|
|
181
269
|
=
|
|
182
270
|
values
|
|
183
271
|
|> Map.toList
|
|
@@ -190,44 +278,41 @@ module Encode =
|
|
|
190
278
|
|
|
191
279
|
module Enum =
|
|
192
280
|
|
|
193
|
-
let byte<'TEnum when 'TEnum: enum<byte>> (value: 'TEnum) :
|
|
281
|
+
let byte<'TEnum when 'TEnum: enum<byte>> (value: 'TEnum) : IEncodable =
|
|
194
282
|
LanguagePrimitives.EnumToValue value |> byte
|
|
195
283
|
|
|
196
|
-
let sbyte<'TEnum when 'TEnum: enum<sbyte>>
|
|
284
|
+
let sbyte<'TEnum when 'TEnum: enum<sbyte>>
|
|
285
|
+
(value: 'TEnum)
|
|
286
|
+
: IEncodable
|
|
287
|
+
=
|
|
197
288
|
LanguagePrimitives.EnumToValue value |> sbyte
|
|
198
289
|
|
|
199
|
-
let int16<'TEnum when 'TEnum: enum<int16>>
|
|
290
|
+
let int16<'TEnum when 'TEnum: enum<int16>>
|
|
291
|
+
(value: 'TEnum)
|
|
292
|
+
: IEncodable
|
|
293
|
+
=
|
|
200
294
|
LanguagePrimitives.EnumToValue value |> int16
|
|
201
295
|
|
|
202
|
-
let uint16<'TEnum when 'TEnum: enum<uint16>>
|
|
296
|
+
let uint16<'TEnum when 'TEnum: enum<uint16>>
|
|
297
|
+
(value: 'TEnum)
|
|
298
|
+
: IEncodable
|
|
299
|
+
=
|
|
203
300
|
LanguagePrimitives.EnumToValue value |> uint16
|
|
204
301
|
|
|
205
|
-
let int<'TEnum when 'TEnum: enum<int>> (value: 'TEnum) :
|
|
302
|
+
let int<'TEnum when 'TEnum: enum<int>> (value: 'TEnum) : IEncodable =
|
|
206
303
|
LanguagePrimitives.EnumToValue value |> int
|
|
207
304
|
|
|
208
|
-
let uint32<'TEnum when 'TEnum: enum<uint32>>
|
|
305
|
+
let uint32<'TEnum when 'TEnum: enum<uint32>>
|
|
306
|
+
(value: 'TEnum)
|
|
307
|
+
: IEncodable
|
|
308
|
+
=
|
|
209
309
|
LanguagePrimitives.EnumToValue value |> uint32
|
|
210
310
|
|
|
211
|
-
let option (encoder: 'a
|
|
311
|
+
let option (encoder: Encoder<'a>) =
|
|
212
312
|
Option.map encoder >> Option.defaultWith (fun _ -> nil)
|
|
213
313
|
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
let o = helpers.createEmptyObject ()
|
|
220
|
-
|
|
221
|
-
values
|
|
222
|
-
|> Seq.iter (fun (k, v) ->
|
|
223
|
-
helpers.setPropertyOnObject (o, k, toJsonValue helpers v)
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
o
|
|
227
|
-
| Json.Char value -> helpers.encodeChar value
|
|
228
|
-
| Json.DecimalNumber value -> helpers.encodeDecimalNumber value
|
|
229
|
-
| Json.Null -> helpers.encodeNull ()
|
|
230
|
-
| Json.Boolean value -> helpers.encodeBool value
|
|
231
|
-
| Json.Array value ->
|
|
232
|
-
value |> Array.map (toJsonValue helpers) |> helpers.encodeArray
|
|
233
|
-
| Json.Unit -> helpers.encodeNull ()
|
|
314
|
+
let inline toJsonValue
|
|
315
|
+
(helpers: IEncoderHelpers<'JsonValue>)
|
|
316
|
+
(json: IEncodable)
|
|
317
|
+
=
|
|
318
|
+
json.Encode(helpers)
|