@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
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { map as map_1 } from "../fable-library-js.4.22.0/List.js";
|
|
2
|
+
import { map as map_2 } from "../fable-library-js.4.22.0/Seq.js";
|
|
3
|
+
import { disposeSafe, getEnumerator } from "../fable-library-js.4.22.0/Util.js";
|
|
4
|
+
import { toList, toSeq } from "../fable-library-js.4.22.0/Map.js";
|
|
5
|
+
import { map as map_3 } from "../fable-library-js.4.22.0/Array.js";
|
|
6
|
+
import { map as map_4, defaultArgWith } from "../fable-library-js.4.22.0/Option.js";
|
|
7
|
+
|
|
8
|
+
export function float32(value) {
|
|
9
|
+
return {
|
|
10
|
+
Encode(helpers) {
|
|
11
|
+
return helpers.encodeDecimalNumber(value);
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function list(values) {
|
|
17
|
+
return {
|
|
18
|
+
Encode(helpers) {
|
|
19
|
+
const arg = map_1((v) => v.Encode(helpers), values);
|
|
20
|
+
return helpers.encodeList(arg);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function seq(values) {
|
|
26
|
+
return {
|
|
27
|
+
Encode(helpers) {
|
|
28
|
+
const arg = map_2((v) => v.Encode(helpers), values);
|
|
29
|
+
return helpers.encodeSeq(arg);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function resizeArray(values) {
|
|
35
|
+
return {
|
|
36
|
+
Encode(helpers) {
|
|
37
|
+
const result = [];
|
|
38
|
+
let enumerator = getEnumerator(values);
|
|
39
|
+
try {
|
|
40
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
41
|
+
const v = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
42
|
+
void (result.push(v.Encode(helpers)));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
disposeSafe(enumerator);
|
|
47
|
+
}
|
|
48
|
+
return helpers.encodeResizeArray(result);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function dict(values) {
|
|
54
|
+
const values_1 = toSeq(values);
|
|
55
|
+
return {
|
|
56
|
+
Encode(helpers) {
|
|
57
|
+
const arg = map_2((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values_1);
|
|
58
|
+
return helpers.encodeObject(arg);
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function tuple2(enc1, enc2, v1, v2) {
|
|
64
|
+
const values = [enc1(v1), enc2(v2)];
|
|
65
|
+
return {
|
|
66
|
+
Encode(helpers) {
|
|
67
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
68
|
+
return helpers.encodeArray(arg);
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function tuple3(enc1, enc2, enc3, v1, v2, v3) {
|
|
74
|
+
const values = [enc1(v1), enc2(v2), enc3(v3)];
|
|
75
|
+
return {
|
|
76
|
+
Encode(helpers) {
|
|
77
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
78
|
+
return helpers.encodeArray(arg);
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function tuple4(enc1, enc2, enc3, enc4, v1, v2, v3, v4) {
|
|
84
|
+
const values = [enc1(v1), enc2(v2), enc3(v3), enc4(v4)];
|
|
85
|
+
return {
|
|
86
|
+
Encode(helpers) {
|
|
87
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
88
|
+
return helpers.encodeArray(arg);
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function tuple5(enc1, enc2, enc3, enc4, enc5, v1, v2, v3, v4, v5) {
|
|
94
|
+
const values = [enc1(v1), enc2(v2), enc3(v3), enc4(v4), enc5(v5)];
|
|
95
|
+
return {
|
|
96
|
+
Encode(helpers) {
|
|
97
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
98
|
+
return helpers.encodeArray(arg);
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function tuple6(enc1, enc2, enc3, enc4, enc5, enc6, v1, v2, v3, v4, v5, v6) {
|
|
104
|
+
const values = [enc1(v1), enc2(v2), enc3(v3), enc4(v4), enc5(v5), enc6(v6)];
|
|
105
|
+
return {
|
|
106
|
+
Encode(helpers) {
|
|
107
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
108
|
+
return helpers.encodeArray(arg);
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function tuple7(enc1, enc2, enc3, enc4, enc5, enc6, enc7, v1, v2, v3, v4, v5, v6, v7) {
|
|
114
|
+
const values = [enc1(v1), enc2(v2), enc3(v3), enc4(v4), enc5(v5), enc6(v6), enc7(v7)];
|
|
115
|
+
return {
|
|
116
|
+
Encode(helpers) {
|
|
117
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
118
|
+
return helpers.encodeArray(arg);
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function tuple8(enc1, enc2, enc3, enc4, enc5, enc6, enc7, enc8, v1, v2, v3, v4, v5, v6, v7, v8) {
|
|
124
|
+
const values = [enc1(v1), enc2(v2), enc3(v3), enc4(v4), enc5(v5), enc6(v6), enc7(v7), enc8(v8)];
|
|
125
|
+
return {
|
|
126
|
+
Encode(helpers) {
|
|
127
|
+
const arg = map_3((v) => v.Encode(helpers), values);
|
|
128
|
+
return helpers.encodeArray(arg);
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function map(keyEncoder, valueEncoder, values) {
|
|
134
|
+
return list(map_1((tupledArg) => tuple2(keyEncoder, valueEncoder, tupledArg[0], tupledArg[1]), toList(values)));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function Enum_byte(value) {
|
|
138
|
+
return {
|
|
139
|
+
Encode(helpers) {
|
|
140
|
+
return helpers.encodeUnsignedIntegralNumber(value);
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function Enum_sbyte(value) {
|
|
146
|
+
return {
|
|
147
|
+
Encode(helpers) {
|
|
148
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function Enum_int16(value) {
|
|
154
|
+
return {
|
|
155
|
+
Encode(helpers) {
|
|
156
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function Enum_uint16(value) {
|
|
162
|
+
return {
|
|
163
|
+
Encode(helpers) {
|
|
164
|
+
return helpers.encodeUnsignedIntegralNumber(value);
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function Enum_int(value) {
|
|
170
|
+
return {
|
|
171
|
+
Encode(helpers) {
|
|
172
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function Enum_uint32(value) {
|
|
178
|
+
return {
|
|
179
|
+
Encode(helpers) {
|
|
180
|
+
return helpers.encodeUnsignedIntegralNumber(value);
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function option(encoder) {
|
|
186
|
+
return (arg) => defaultArgWith(map_4(encoder, arg), () => ({
|
|
187
|
+
Encode(helpers) {
|
|
188
|
+
return helpers.encodeNull();
|
|
189
|
+
},
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
|
3
|
+
<PropertyGroup>
|
|
4
|
+
<Description>
|
|
5
|
+
Elm-inspired encoder and decoder for JSON, this package is the core library which can be used on any F# project.
|
|
6
|
+
|
|
7
|
+
Pick the right additional package for your runtime:
|
|
8
|
+
|
|
9
|
+
- Thoth.Json.JavaScript
|
|
10
|
+
- Thoth.Json.Python
|
|
11
|
+
- Thoth.Json.Newtonsoft
|
|
12
|
+
</Description>
|
|
13
|
+
<FablePackageType>library</FablePackageType>
|
|
14
|
+
<PackageTags>fable-all;fsharp;json</PackageTags>
|
|
15
|
+
</PropertyGroup>
|
|
16
|
+
<PropertyGroup>
|
|
17
|
+
<TargetFramework>netstandard2.0</TargetFramework>
|
|
18
|
+
</PropertyGroup>
|
|
19
|
+
<ItemGroup>
|
|
20
|
+
<Compile Include="Types.fs" />
|
|
21
|
+
<Compile Include="Decode.fs" />
|
|
22
|
+
<Compile Include="Encode.fs" />
|
|
23
|
+
<!-- <Compile Include="Extra.fs" /> -->
|
|
24
|
+
</ItemGroup>
|
|
25
|
+
<ItemGroup>
|
|
26
|
+
<PackageReference Include="EasyBuild.PackageReleaseNotes.Tasks">
|
|
27
|
+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
28
|
+
<PrivateAssets>all</PrivateAssets>
|
|
29
|
+
</PackageReference>
|
|
30
|
+
<PackageReference Include="Fable.Core" />
|
|
31
|
+
<PackageReference Include="Fable.Package.SDK" />
|
|
32
|
+
</ItemGroup>
|
|
33
|
+
</Project>
|
|
@@ -25,13 +25,16 @@ type IEncoderHelpers<'JsonValue> =
|
|
|
25
25
|
abstract encodeDecimalNumber: float -> 'JsonValue
|
|
26
26
|
abstract encodeBool: bool -> 'JsonValue
|
|
27
27
|
abstract encodeNull: unit -> 'JsonValue
|
|
28
|
-
abstract
|
|
29
|
-
abstract setPropertyOnObject: 'JsonValue * string * 'JsonValue -> unit
|
|
28
|
+
abstract encodeObject: (string * 'JsonValue) seq -> 'JsonValue
|
|
30
29
|
abstract encodeArray: 'JsonValue array -> 'JsonValue
|
|
31
30
|
abstract encodeList: 'JsonValue list -> 'JsonValue
|
|
32
31
|
abstract encodeSeq: 'JsonValue seq -> 'JsonValue
|
|
33
|
-
abstract
|
|
34
|
-
|
|
32
|
+
abstract encodeResizeArray: ResizeArray<'JsonValue> -> 'JsonValue
|
|
33
|
+
// See https://github.com/thoth-org/Thoth.Json/issues/187 for more information
|
|
34
|
+
// about why we make a distinction between signed and unsigned integral numbers
|
|
35
|
+
// when encoding them.
|
|
36
|
+
abstract encodeSignedIntegralNumber: int32 -> 'JsonValue
|
|
37
|
+
abstract encodeUnsignedIntegralNumber: uint32 -> 'JsonValue
|
|
35
38
|
|
|
36
39
|
type ErrorReason<'JsonValue> =
|
|
37
40
|
| BadPrimitive of string * 'JsonValue
|
|
@@ -73,4 +76,8 @@ type Json =
|
|
|
73
76
|
| IntegralNumber of uint32
|
|
74
77
|
| Unit
|
|
75
78
|
|
|
76
|
-
type
|
|
79
|
+
type IEncodable =
|
|
80
|
+
abstract member Encode<'JsonValue> :
|
|
81
|
+
helpers: IEncoderHelpers<'JsonValue> -> 'JsonValue
|
|
82
|
+
|
|
83
|
+
type Encoder<'T> = 'T -> IEncodable
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Union } from "../fable-library-js.4.
|
|
2
|
-
import { uint32_type, array_type, class_type, bool_type, float64_type, char_type, union_type, list_type, tuple_type, string_type } from "../fable-library-js.4.
|
|
1
|
+
import { Union } from "../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { uint32_type, array_type, class_type, bool_type, float64_type, char_type, union_type, list_type, tuple_type, string_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class ErrorReason$1 extends Union {
|
|
5
5
|
constructor(tag, fields) {
|
|
@@ -64,6 +64,9 @@ return JSON.stringify($0, null, 4) + ''
|
|
|
64
64
|
[<Emit("$0 instanceof SyntaxError")>]
|
|
65
65
|
let isSyntaxError (_: obj) : bool = jsNative
|
|
66
66
|
|
|
67
|
+
let fromValue (decoder: Decoder<'T>) =
|
|
68
|
+
Decode.Advanced.fromValue helpers decoder
|
|
69
|
+
|
|
67
70
|
let fromString (decoder: Decoder<'T>) =
|
|
68
71
|
fun value ->
|
|
69
72
|
try
|
|
@@ -77,3 +80,9 @@ return JSON.stringify($0, null, 4) + ''
|
|
|
77
80
|
|
|
78
81
|
with ex when Helpers.isSyntaxError ex ->
|
|
79
82
|
Error("Given an invalid JSON: " + ex.Message)
|
|
83
|
+
|
|
84
|
+
let unsafeFromString (decoder: Decoder<'T>) =
|
|
85
|
+
fun value ->
|
|
86
|
+
match fromString decoder value with
|
|
87
|
+
| Ok x -> x
|
|
88
|
+
| Error msg -> failwith msg
|
package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { errorToString, Helpers_prependPath, Advanced_fromValue } from "../Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
2
|
+
import { FSharpResult$2 } from "../fable-library-js.4.22.0/Result.js";
|
|
3
3
|
|
|
4
4
|
export const helpers = {
|
|
5
5
|
isString(jsonValue) {
|
|
@@ -59,6 +59,10 @@ export const helpers = {
|
|
|
59
59
|
},
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
+
export function fromValue(decoder) {
|
|
63
|
+
return (value) => Advanced_fromValue(helpers, decoder, value);
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
export function fromString(decoder, value) {
|
|
63
67
|
try {
|
|
64
68
|
const json = JSON.parse(value);
|
|
@@ -83,3 +87,13 @@ export function fromString(decoder, value) {
|
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
|
|
90
|
+
export function unsafeFromString(decoder, value) {
|
|
91
|
+
const matchValue = fromString(decoder, value);
|
|
92
|
+
if (matchValue.tag === 1) {
|
|
93
|
+
throw new Error(matchValue.fields[0]);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return matchValue.fields[0];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -15,18 +15,26 @@ module Encode =
|
|
|
15
15
|
member _.encodeDecimalNumber value = box value
|
|
16
16
|
member _.encodeBool value = box value
|
|
17
17
|
member _.encodeNull() = box null
|
|
18
|
-
member _.createEmptyObject() = obj ()
|
|
19
18
|
|
|
20
|
-
member _.
|
|
21
|
-
o
|
|
19
|
+
member _.encodeObject(values) =
|
|
20
|
+
let o = obj ()
|
|
21
|
+
|
|
22
|
+
for key, value in values do
|
|
23
|
+
o?(key) <- value
|
|
24
|
+
|
|
25
|
+
o
|
|
22
26
|
|
|
23
27
|
member _.encodeArray values = JS.Constructors.Array.from values
|
|
24
28
|
member _.encodeList values = JS.Constructors.Array.from values
|
|
25
29
|
member _.encodeSeq values = JS.Constructors.Array.from values
|
|
26
30
|
|
|
27
|
-
member _.
|
|
31
|
+
member _.encodeResizeArray values =
|
|
32
|
+
JS.Constructors.Array.from values
|
|
33
|
+
|
|
34
|
+
member _.encodeSignedIntegralNumber value = box value
|
|
35
|
+
member _.encodeUnsignedIntegralNumber value = box value
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
let toString (space: int) (value:
|
|
38
|
+
let toString (space: int) (value: IEncodable) : string =
|
|
31
39
|
let json = Encode.toJsonValue helpers value
|
|
32
40
|
JS.JSON.stringify (json, space = space)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { disposeSafe, getEnumerator, defaultOf } from "../fable-library-js.4.22.0/Util.js";
|
|
2
|
+
import { some } from "../fable-library-js.4.22.0/Option.js";
|
|
3
|
+
|
|
4
|
+
export const helpers = {
|
|
5
|
+
encodeString(value) {
|
|
6
|
+
return value;
|
|
7
|
+
},
|
|
8
|
+
encodeChar(value_1) {
|
|
9
|
+
return value_1;
|
|
10
|
+
},
|
|
11
|
+
encodeDecimalNumber(value_2) {
|
|
12
|
+
return value_2;
|
|
13
|
+
},
|
|
14
|
+
encodeBool(value_3) {
|
|
15
|
+
return value_3;
|
|
16
|
+
},
|
|
17
|
+
encodeNull() {
|
|
18
|
+
return defaultOf();
|
|
19
|
+
},
|
|
20
|
+
encodeObject(values) {
|
|
21
|
+
const o = {};
|
|
22
|
+
const enumerator = getEnumerator(values);
|
|
23
|
+
try {
|
|
24
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
25
|
+
const forLoopVar = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
26
|
+
o[forLoopVar[0]] = forLoopVar[1];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
disposeSafe(enumerator);
|
|
31
|
+
}
|
|
32
|
+
return o;
|
|
33
|
+
},
|
|
34
|
+
encodeArray(values_1) {
|
|
35
|
+
return Array.from(values_1);
|
|
36
|
+
},
|
|
37
|
+
encodeList(values_2) {
|
|
38
|
+
return Array.from(values_2);
|
|
39
|
+
},
|
|
40
|
+
encodeSeq(values_3) {
|
|
41
|
+
return Array.from(values_3);
|
|
42
|
+
},
|
|
43
|
+
encodeResizeArray(values_4) {
|
|
44
|
+
return Array.from(values_4);
|
|
45
|
+
},
|
|
46
|
+
encodeSignedIntegralNumber(value_5) {
|
|
47
|
+
return value_5;
|
|
48
|
+
},
|
|
49
|
+
encodeUnsignedIntegralNumber(value_6) {
|
|
50
|
+
return value_6;
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export function toString(space, value) {
|
|
55
|
+
const json_1 = value.Encode(helpers);
|
|
56
|
+
return JSON.stringify(json_1, undefined, some(space));
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
|
3
|
+
<PropertyGroup>
|
|
4
|
+
<Description>
|
|
5
|
+
Elm-inspired encoder and decoder for JSON, this package is for JavaScript runtime.
|
|
6
|
+
</Description>
|
|
7
|
+
<FablePackageType>library</FablePackageType>
|
|
8
|
+
<PackageTags>fable-javascript;fsharp;json</PackageTags>
|
|
9
|
+
</PropertyGroup>
|
|
10
|
+
<PropertyGroup>
|
|
11
|
+
<TargetFramework>netstandard2.0</TargetFramework>
|
|
12
|
+
</PropertyGroup>
|
|
13
|
+
<ItemGroup>
|
|
14
|
+
<Compile Include="Decode.fs" />
|
|
15
|
+
<Compile Include="Encode.fs" />
|
|
16
|
+
</ItemGroup>
|
|
17
|
+
<ItemGroup>
|
|
18
|
+
<PackageReference Include="EasyBuild.PackageReleaseNotes.Tasks">
|
|
19
|
+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
20
|
+
<PrivateAssets>all</PrivateAssets>
|
|
21
|
+
</PackageReference>
|
|
22
|
+
<PackageReference Include="Fable.Core" />
|
|
23
|
+
<PackageReference Include="Fable.Package.SDK" />
|
|
24
|
+
</ItemGroup>
|
|
25
|
+
<ItemGroup>
|
|
26
|
+
<ProjectReference Include="..\Thoth.Json.Core\Thoth.Json.Core.fsproj" />
|
|
27
|
+
</ItemGroup>
|
|
28
|
+
</Project>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { isString } from "./Interop/JsInterop.fs.js";
|
|
2
|
-
import { tryParse } from "../fable-library-js.4.
|
|
3
|
-
import { FSharpRef } from "../fable-library-js.4.
|
|
4
|
-
import { printf, toText } from "../fable-library-js.4.
|
|
5
|
-
import { iterate, exists, filter, tryFind, toArray, map as map_1, tail, head, isEmpty } from "../fable-library-js.4.
|
|
6
|
-
import { tryParse as tryParse_1 } from "../fable-library-js.4.
|
|
7
|
-
import { tryParse as tryParse_2 } from "../fable-library-js.4.
|
|
8
|
-
import { ofSeq, ofList } from "../fable-library-js.4.
|
|
9
|
-
import { structuralHash, equals as equals_1, compare } from "../fable-library-js.4.
|
|
10
|
-
import { Dictionary } from "../fable-library-js.4.
|
|
11
|
-
import { tryParse as tryParse_3, minValue } from "../fable-library-js.4.
|
|
12
|
-
import { tryParse as tryParse_4, minValue as minValue_1 } from "../fable-library-js.4.
|
|
13
|
-
import { value as value_1, map as map_3, some } from "../fable-library-js.4.
|
|
14
|
-
import { map as map_2 } from "../fable-library-js.4.
|
|
15
|
-
import { addToDict } from "../fable-library-js.4.
|
|
16
|
-
import { class_type } from "../fable-library-js.4.
|
|
2
|
+
import { tryParse } from "../fable-library-js.4.22.0/Int32.js";
|
|
3
|
+
import { FSharpRef } from "../fable-library-js.4.22.0/Types.js";
|
|
4
|
+
import { printf, toText } from "../fable-library-js.4.22.0/String.js";
|
|
5
|
+
import { iterate, exists, filter, tryFind, toArray, map as map_1, tail, head, isEmpty } from "../fable-library-js.4.22.0/List.js";
|
|
6
|
+
import { tryParse as tryParse_1 } from "../fable-library-js.4.22.0/Double.js";
|
|
7
|
+
import { tryParse as tryParse_2 } from "../fable-library-js.4.22.0/Boolean.js";
|
|
8
|
+
import { ofSeq, ofList } from "../fable-library-js.4.22.0/Map.js";
|
|
9
|
+
import { structuralHash, equals as equals_1, compare } from "../fable-library-js.4.22.0/Util.js";
|
|
10
|
+
import { Dictionary } from "../fable-library-js.4.22.0/MutableMap.js";
|
|
11
|
+
import { tryParse as tryParse_3, minValue } from "../fable-library-js.4.22.0/Date.js";
|
|
12
|
+
import { tryParse as tryParse_4, minValue as minValue_1 } from "../fable-library-js.4.22.0/DateOffset.js";
|
|
13
|
+
import { value as value_1, map as map_3, some } from "../fable-library-js.4.22.0/Option.js";
|
|
14
|
+
import { map as map_2 } from "../fable-library-js.4.22.0/Seq.js";
|
|
15
|
+
import { addToDict } from "../fable-library-js.4.22.0/MapUtil.js";
|
|
16
|
+
import { class_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
17
17
|
import { read as read_1 } from "./Reader.fs.js";
|
|
18
18
|
|
|
19
19
|
export function Helper_isString(value) {
|
|
@@ -413,7 +413,7 @@ export function option(decoder, value) {
|
|
|
413
413
|
switch (matchResult) {
|
|
414
414
|
case 0:
|
|
415
415
|
if (v.Value === "null") {
|
|
416
|
-
return
|
|
416
|
+
return undefined;
|
|
417
417
|
}
|
|
418
418
|
else {
|
|
419
419
|
return some(decoder(value));
|
|
@@ -1667,7 +1667,7 @@ export class Getter {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
1669
|
export function Getter_$reflection() {
|
|
1670
|
-
return class_type("YAMLicious.Decode.Getter",
|
|
1670
|
+
return class_type("YAMLicious.Decode.Getter", undefined, Getter);
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
export function Getter_$ctor_D9C929(ele) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Config, YAMLElement, YAMLContent_create_27AED5E3 } from "./YAMLiciousTypes.fs.js";
|
|
2
|
-
import { int32ToString } from "../fable-library-js.4.
|
|
3
|
-
import { toString } from "../fable-library-js.4.
|
|
4
|
-
import { toString as toString_1 } from "../fable-library-js.4.
|
|
5
|
-
import { ofArray, map as map_1, ofSeq } from "../fable-library-js.4.
|
|
6
|
-
import { map } from "../fable-library-js.4.
|
|
7
|
-
import { value as value_1 } from "../fable-library-js.4.
|
|
2
|
+
import { int32ToString } from "../fable-library-js.4.22.0/Util.js";
|
|
3
|
+
import { toString } from "../fable-library-js.4.22.0/Types.js";
|
|
4
|
+
import { toString as toString_1 } from "../fable-library-js.4.22.0/Date.js";
|
|
5
|
+
import { ofArray, map as map_1, ofSeq } from "../fable-library-js.4.22.0/List.js";
|
|
6
|
+
import { map } from "../fable-library-js.4.22.0/Seq.js";
|
|
7
|
+
import { value as value_1 } from "../fable-library-js.4.22.0/Option.js";
|
|
8
8
|
import { write as write_1 } from "./Writer.fs.js";
|
|
9
9
|
|
|
10
10
|
export function int(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PreprocessorElement } from "./YAMLiciousTypes.fs.js";
|
|
2
|
-
import { ofArray } from "../fable-library-js.4.
|
|
2
|
+
import { ofArray } from "../fable-library-js.4.22.0/List.js";
|
|
3
3
|
|
|
4
4
|
export const SequenceMappingsAST = new PreprocessorElement(0, [ofArray([new PreprocessorElement(2, ["-"]), new PreprocessorElement(1, [ofArray([new PreprocessorElement(2, ["My Key1: My Value1"]), new PreprocessorElement(2, ["My Key2: My Value2"]), new PreprocessorElement(2, ["My Key3: My Value3"])])]), new PreprocessorElement(2, ["-"]), new PreprocessorElement(1, [ofArray([new PreprocessorElement(2, ["My Key4: My Value4"]), new PreprocessorElement(2, ["My Key5: My Value5"]), new PreprocessorElement(2, ["My Key6: My Value6"])])])])]);
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { split, printf, toText, replace } from "../fable-library-js.4.
|
|
2
|
-
import { replace as replace_1 } from "../fable-library-js.4.
|
|
3
|
-
import { addToDict } from "../fable-library-js.4.
|
|
1
|
+
import { split, printf, toText, replace } from "../fable-library-js.4.22.0/String.js";
|
|
2
|
+
import { replace as replace_1 } from "../fable-library-js.4.22.0/RegExp.js";
|
|
3
|
+
import { addToDict } from "../fable-library-js.4.22.0/MapUtil.js";
|
|
4
4
|
|
|
5
5
|
export function encodingCleanUp(s) {
|
|
6
6
|
return replace(s, "\r\n", "\n");
|
|
@@ -34,7 +34,7 @@ export function commentCleanUp(dict, s) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function cut(yamlString) {
|
|
37
|
-
return split(yamlString, ["\n"],
|
|
37
|
+
return split(yamlString, ["\n"], undefined, 1);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export function pipeline(yamlString) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { takeWhile, length } from "../fable-library-js.4.
|
|
1
|
+
import { takeWhile, length } from "../fable-library-js.4.22.0/Seq.js";
|
|
2
2
|
import { Preprocessor, PreprocessorElement, Config__get_WhitespaceString, Config, Config_init_71136F3F } from "./YAMLiciousTypes.fs.js";
|
|
3
|
-
import { value as value_1 } from "../fable-library-js.4.
|
|
4
|
-
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../fable-library-js.4.
|
|
5
|
-
import { disposeSafe, getEnumerator } from "../fable-library-js.4.
|
|
6
|
-
import { toString } from "../fable-library-js.4.
|
|
3
|
+
import { value as value_1 } from "../fable-library-js.4.22.0/Option.js";
|
|
4
|
+
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../fable-library-js.4.22.0/System.Text.js";
|
|
5
|
+
import { disposeSafe, getEnumerator } from "../fable-library-js.4.22.0/Util.js";
|
|
6
|
+
import { toString } from "../fable-library-js.4.22.0/Types.js";
|
|
7
7
|
import { pipeline } from "./Persil.fs.js";
|
|
8
|
-
import { ofSeq, ofArray, empty, reverse, skipWhile, takeWhile as takeWhile_1, cons, head, tail, isEmpty } from "../fable-library-js.4.
|
|
8
|
+
import { ofSeq, ofArray, empty, reverse, skipWhile, takeWhile as takeWhile_1, cons, head, tail, isEmpty } from "../fable-library-js.4.22.0/List.js";
|
|
9
9
|
|
|
10
10
|
export function ReadHelpers_indentLevel(line) {
|
|
11
11
|
return length(takeWhile((c) => (c === " "), line.split("")));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { match } from "../fable-library-js.4.
|
|
2
|
-
import { getItemFromDict } from "../fable-library-js.4.
|
|
3
|
-
import { parse } from "../fable-library-js.4.
|
|
4
|
-
import { unwrap, value as value_2, map } from "../fable-library-js.4.
|
|
5
|
-
import { empty as empty_1, collect, map as map_1, skipWhile, takeWhile, singleton, append, delay, toList } from "../fable-library-js.4.
|
|
1
|
+
import { match } from "../fable-library-js.4.22.0/RegExp.js";
|
|
2
|
+
import { getItemFromDict } from "../fable-library-js.4.22.0/MapUtil.js";
|
|
3
|
+
import { parse } from "../fable-library-js.4.22.0/Int32.js";
|
|
4
|
+
import { unwrap, value as value_2, map } from "../fable-library-js.4.22.0/Option.js";
|
|
5
|
+
import { empty as empty_1, collect, map as map_1, skipWhile, takeWhile, singleton, append, delay, toList } from "../fable-library-js.4.22.0/Seq.js";
|
|
6
6
|
import { YAMLContent_create_27AED5E3, YAMLElement, PreprocessorElement } from "./YAMLiciousTypes.fs.js";
|
|
7
|
-
import { append as append_1, reverse, ofArrayWithTail, tail, singleton as singleton_1, head, empty, isEmpty, cons } from "../fable-library-js.4.
|
|
7
|
+
import { append as append_1, reverse, ofArrayWithTail, tail, singleton as singleton_1, head, empty, isEmpty, cons } from "../fable-library-js.4.22.0/List.js";
|
|
8
8
|
import { $007CSchemaNamespace$007C_$007C, $007CSequenceSquareCloser$007C_$007C, $007CSequenceSquareOpener$007C_$007C, $007CInlineSequence$007C_$007C, $007CJSONCloser$007C_$007C, $007CJSONKeyOpener$007C_$007C, $007CInlineJSON$007C_$007C, $007CKey$007C_$007C, $007CYamlValue$007C_$007C, $007CKeyValue$007C_$007C, $007CYamlComment$007C_$007C, $007CSequenceMinusOpener$007C_$007C } from "./RegexActivePatterns.fs.js";
|
|
9
|
-
import { trimEnd, split as split_2, printf, toFail } from "../fable-library-js.4.
|
|
9
|
+
import { trimEnd, split as split_2, printf, toFail } from "../fable-library-js.4.22.0/String.js";
|
|
10
10
|
import { read as read_1 } from "./Preprocessing.fs.js";
|
|
11
11
|
|
|
12
12
|
function restoreStringReplace(stringDict, v) {
|
|
@@ -247,7 +247,7 @@ function tokenize(yamlList, stringDict, commentDict) {
|
|
|
247
247
|
}
|
|
248
248
|
case 1: {
|
|
249
249
|
const c = restoreCommentReplace(commentDict, v_4.Comment);
|
|
250
|
-
const split = split_2(v_4.Value, [","],
|
|
250
|
+
const split = split_2(v_4.Value, [","], undefined, 1);
|
|
251
251
|
const current_4 = new YAMLElement(2, [toList(delay(() => map_1((value) => loopRead(singleton_1(new PreprocessorElement(2, [value.trim()])), empty()), split)))]);
|
|
252
252
|
restlist_mut = rest_4;
|
|
253
253
|
acc_mut = ((c != null) ? ofArrayWithTail([current_4, new YAMLElement(4, [value_2(c)])], acc) : cons(current_4, acc));
|
|
@@ -311,7 +311,7 @@ function tokenize(yamlList, stringDict, commentDict) {
|
|
|
311
311
|
switch (matchResult_3) {
|
|
312
312
|
case 0: {
|
|
313
313
|
const c_1 = restoreCommentReplace(commentDict, v_5.Comment);
|
|
314
|
-
const split_1 = split_2(v_5.Value, [","],
|
|
314
|
+
const split_1 = split_2(v_5.Value, [","], undefined, 1);
|
|
315
315
|
const current_6 = reverse(toList(delay(() => collect((value_1) => {
|
|
316
316
|
const matchValue_1 = loopRead(singleton_1(new PreprocessorElement(2, [value_1.trim()])), empty());
|
|
317
317
|
if (matchValue_1.tag === 3) {
|