@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.6
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/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.js +26 -26
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.js +9 -6
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
- package/dist/ts/ts/Json/Process/Protocol.js +12 -12
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.js +7 -7
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +32 -32
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.js +11 -11
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +13 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +89 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.js +9 -3
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.js +9 -3
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.js +41 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
-
import { YAMLElement_Nil, YAMLElement_Object,
|
|
2
|
+
import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_27AED5E3, Config } from '../fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js';
|
|
3
3
|
import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
4
|
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
5
|
import { tryInclude, resizearray, string } from '../fable_modules/YAMLicious.0.0.3/Encode.fs.js';
|
|
@@ -36,5 +36,8 @@ function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesC
|
|
|
36
36
|
return write(element, (c) => new Config(whitespace_1, c.Level));
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
+
function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_71136F3F(this$, whitespace) {
|
|
40
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F(unwrap(whitespace))(this$);
|
|
41
|
+
}
|
|
39
42
|
|
|
40
|
-
export { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F, ValidationPackagesConfig_decoder, ValidationPackagesConfig_encoder };
|
|
43
|
+
export { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_71136F3F, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F, ValidationPackagesConfig_decoder, ValidationPackagesConfig_encoder };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { safeHash, isIterable, getEnumerator, isArrayLike, disposeSafe, structuralHash, equals
|
|
1
|
+
import { safeHash, comparePrimitives, isIterable, getEnumerator, isArrayLike, disposeSafe, structuralHash, equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { tryGetStaticPropertyInfo } from './ReflectionUtils.fs.js';
|
|
3
3
|
import { value, map, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { tryGetDynamicPropertyHelper, getPropertyHelpers } from './FableJS.fs.js';
|
|
5
5
|
import { filter, choose, map as map$1, iterate, sortBy, toList, delay, enumerateWhile, singleton } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
7
|
import { boxHashKeyValSeqBy, hash, mergeHashes } from './HashCodes.fs.js';
|
|
7
8
|
import { isEmpty, reduce, FSharpList } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
9
|
import { Dictionary } from '../../../node_modules/@fable-org/fable-library-js/MutableMap.js';
|
|
@@ -108,10 +109,11 @@ class DynamicObj {
|
|
|
108
109
|
const this$ = this;
|
|
109
110
|
const overWrite_1 = defaultArg(overWrite, false);
|
|
110
111
|
iterate((kv) => {
|
|
112
|
+
let pi;
|
|
111
113
|
const matchValue = target.TryGetPropertyHelper(kv[0]);
|
|
112
114
|
if (matchValue == null) {
|
|
113
115
|
target.SetProperty(kv[0], kv[1]);
|
|
114
|
-
} else if (value(matchValue), overWrite_1) {
|
|
116
|
+
} else if (pi = value(matchValue), overWrite_1) {
|
|
115
117
|
const pi_1 = value(matchValue);
|
|
116
118
|
pi_1.SetValue(target, kv[1]);
|
|
117
119
|
}
|
|
@@ -128,10 +130,11 @@ class DynamicObj {
|
|
|
128
130
|
const overWrite_1 = defaultArg(overWrite, false);
|
|
129
131
|
const includeInstanceProperties_1 = defaultArg(includeInstanceProperties, true);
|
|
130
132
|
iterate((kv) => {
|
|
133
|
+
let pi;
|
|
131
134
|
const matchValue = target.TryGetPropertyHelper(kv[0]);
|
|
132
135
|
if (matchValue == null) {
|
|
133
136
|
target.SetProperty(kv[0], CopyUtils_tryDeepCopyObj_75B3D832(kv[1]));
|
|
134
|
-
} else if (value(matchValue), overWrite_1) {
|
|
137
|
+
} else if (pi = value(matchValue), overWrite_1) {
|
|
135
138
|
const pi_1 = value(matchValue);
|
|
136
139
|
pi_1.SetValue(target, CopyUtils_tryDeepCopyObj_75B3D832(kv[1]));
|
|
137
140
|
}
|
|
@@ -170,6 +173,26 @@ class DynamicObj {
|
|
|
170
173
|
return o instanceof DynamicObj && (other = o, this$.StructurallyEquals(other));
|
|
171
174
|
}
|
|
172
175
|
}
|
|
176
|
+
function DynamicObj_$reflection() {
|
|
177
|
+
return class_type("DynamicObj.DynamicObj", void 0, DynamicObj);
|
|
178
|
+
}
|
|
179
|
+
function DynamicObj_$ctor() {
|
|
180
|
+
return new DynamicObj();
|
|
181
|
+
}
|
|
182
|
+
class HashUtils {
|
|
183
|
+
constructor() {
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function HashUtils_$reflection() {
|
|
187
|
+
return class_type("DynamicObj.HashUtils", void 0, HashUtils);
|
|
188
|
+
}
|
|
189
|
+
class CopyUtils {
|
|
190
|
+
constructor() {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function CopyUtils_$reflection() {
|
|
194
|
+
return class_type("DynamicObj.CopyUtils", void 0, CopyUtils);
|
|
195
|
+
}
|
|
173
196
|
function HashUtils_deepHash_4E60E31B(o) {
|
|
174
197
|
if (o instanceof DynamicObj) {
|
|
175
198
|
const o_1 = o;
|
|
@@ -341,4 +364,4 @@ function CopyUtils_tryDeepCopyObj_75B3D832(o, includeInstanceProperties) {
|
|
|
341
364
|
return tryDeepCopyObj(o);
|
|
342
365
|
}
|
|
343
366
|
|
|
344
|
-
export { CopyUtils_tryDeepCopyObj_75B3D832, DynamicObj, HashUtils_deepHash_4E60E31B };
|
|
367
|
+
export { CopyUtils, CopyUtils_$reflection, CopyUtils_tryDeepCopyObj_75B3D832, DynamicObj, DynamicObj_$ctor, DynamicObj_$reflection, HashUtils, HashUtils_$reflection, HashUtils_deepHash_4E60E31B };
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { map, value, bind } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { defaultOf } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
3
|
import { PropertyHelper } from './PropertyHelper.fs.js';
|
|
4
|
-
import { append,
|
|
4
|
+
import { choose, append, map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
5
|
import { isMatch, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
|
|
6
6
|
|
|
7
7
|
function PropertyDescriptor_tryGetIsWritable(o) {
|
|
8
8
|
return map((v) => v, o["writable"]);
|
|
9
9
|
}
|
|
10
|
+
function PropertyDescriptor_containsGetter(o) {
|
|
11
|
+
const matchValue = o["get"];
|
|
12
|
+
if (matchValue == null) {
|
|
13
|
+
return false;
|
|
14
|
+
} else {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
10
18
|
function PropertyDescriptor_containsSetter(o) {
|
|
11
19
|
const matchValue = o["set"];
|
|
12
20
|
if (matchValue == null) {
|
|
@@ -99,5 +107,8 @@ function getPropertyHelpers(o) {
|
|
|
99
107
|
const array_1 = getDynamicPropertyHelpers(o);
|
|
100
108
|
return append(getStaticPropertyHelpers(o), array_1);
|
|
101
109
|
}
|
|
110
|
+
function getPropertyNames(o) {
|
|
111
|
+
return map$1((h) => h.Name, getPropertyHelpers(o));
|
|
112
|
+
}
|
|
102
113
|
|
|
103
|
-
export { PropertyDescriptor_containsSetter, PropertyDescriptor_isFunction, PropertyDescriptor_isWritable, PropertyDescriptor_tryGetIsWritable, createGetter, createRemover, createSetter, getDynamicPropertyHelpers, getPropertyHelpers, getStaticPropertyHelpers, getStaticPropertyNames, isTranspiledPropertyHelper, removeStaticPropertyValue, transpiledPropertyRegex, tryDynamicPropertyHelperFromDescriptor, tryGetDynamicPropertyDescriptor, tryGetDynamicPropertyHelper, tryGetStaticPropertyDescriptor, tryGetStaticPropertyHelper, tryStaticPropertyHelperFromDescriptor };
|
|
114
|
+
export { PropertyDescriptor_containsGetter, PropertyDescriptor_containsSetter, PropertyDescriptor_isFunction, PropertyDescriptor_isWritable, PropertyDescriptor_tryGetIsWritable, createGetter, createRemover, createSetter, getDynamicPropertyHelpers, getPropertyHelpers, getPropertyNames, getStaticPropertyHelpers, getStaticPropertyNames, isTranspiledPropertyHelper, removeStaticPropertyValue, transpiledPropertyRegex, tryDynamicPropertyHelperFromDescriptor, tryGetDynamicPropertyDescriptor, tryGetDynamicPropertyHelper, tryGetStaticPropertyDescriptor, tryGetStaticPropertyHelper, tryStaticPropertyHelperFromDescriptor };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { year, month, day, hour, minute, second } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
2
|
+
import { equals, defaultOf, identityHash, numberHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
|
+
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { fold } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
+
import { fold as fold$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
6
|
|
|
4
7
|
function mergeHashes(hash1, hash2) {
|
|
5
8
|
return -1640531527 + hash2 + (hash1 << 6) + (hash1 >> 2);
|
|
6
9
|
}
|
|
10
|
+
function hashDateTime(dt) {
|
|
11
|
+
let acc = 0;
|
|
12
|
+
acc = mergeHashes(acc, year(dt)) | 0;
|
|
13
|
+
acc = mergeHashes(acc, month(dt)) | 0;
|
|
14
|
+
acc = mergeHashes(acc, day(dt)) | 0;
|
|
15
|
+
acc = mergeHashes(acc, hour(dt)) | 0;
|
|
16
|
+
acc = mergeHashes(acc, minute(dt)) | 0;
|
|
17
|
+
acc = mergeHashes(acc, second(dt)) | 0;
|
|
18
|
+
return acc | 0;
|
|
19
|
+
}
|
|
7
20
|
function hash(obj) {
|
|
8
21
|
if (equals(obj, defaultOf())) {
|
|
9
22
|
return 0;
|
|
@@ -12,8 +25,21 @@ function hash(obj) {
|
|
|
12
25
|
return identityHash(copyOfStruct) | 0;
|
|
13
26
|
}
|
|
14
27
|
}
|
|
28
|
+
function boxHashOption(a) {
|
|
29
|
+
let copyOfStruct, copyOfStruct_1;
|
|
30
|
+
return a != null ? (copyOfStruct = value(a), identityHash(copyOfStruct)) : (copyOfStruct_1 = 0, numberHash(copyOfStruct_1));
|
|
31
|
+
}
|
|
32
|
+
function boxHashArray(a) {
|
|
33
|
+
return fold((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
34
|
+
}
|
|
35
|
+
function boxHashSeq(a) {
|
|
36
|
+
return fold$1((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
37
|
+
}
|
|
38
|
+
function boxHashKeyValSeq(a) {
|
|
39
|
+
return fold$1((acc, o) => mergeHashes(acc, mergeHashes(hash(o[0]), hash(o[1]))), 0, a);
|
|
40
|
+
}
|
|
15
41
|
function boxHashKeyValSeqBy(f, a) {
|
|
16
|
-
return fold((acc, o) => mergeHashes(acc, mergeHashes(hash(o[0]), f(o[1]))), 0, a);
|
|
42
|
+
return fold$1((acc, o) => mergeHashes(acc, mergeHashes(hash(o[0]), f(o[1]))), 0, a);
|
|
17
43
|
}
|
|
18
44
|
|
|
19
|
-
export { boxHashKeyValSeqBy, hash, mergeHashes };
|
|
45
|
+
export { boxHashArray, boxHashKeyValSeq, boxHashKeyValSeqBy, boxHashOption, boxHashSeq, hash, hashDateTime, mergeHashes };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
+
import { record_type, string_type, bool_type, lambda_type, obj_type, unit_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
3
|
|
|
3
4
|
class PropertyHelper extends Record {
|
|
4
5
|
constructor(Name, IsStatic, IsDynamic, IsMutable, IsImmutable, GetValue, SetValue, RemoveValue) {
|
|
@@ -13,5 +14,8 @@ class PropertyHelper extends Record {
|
|
|
13
14
|
this.RemoveValue = RemoveValue;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
17
|
+
function PropertyHelper_$reflection() {
|
|
18
|
+
return record_type("DynamicObj.PropertyHelper", [], PropertyHelper, () => [["Name", string_type], ["IsStatic", bool_type], ["IsDynamic", bool_type], ["IsMutable", bool_type], ["IsImmutable", bool_type], ["GetValue", lambda_type(obj_type, obj_type)], ["SetValue", lambda_type(obj_type, lambda_type(obj_type, unit_type))], ["RemoveValue", lambda_type(obj_type, unit_type)]]);
|
|
19
|
+
}
|
|
16
20
|
|
|
17
|
-
export { PropertyHelper };
|
|
21
|
+
export { PropertyHelper, PropertyHelper_$reflection };
|
|
@@ -1,7 +1,70 @@
|
|
|
1
|
-
import { tryGetStaticPropertyHelper } from './FableJS.fs.js';
|
|
1
|
+
import { getStaticPropertyHelpers, tryGetStaticPropertyHelper } from './FableJS.fs.js';
|
|
2
|
+
import { value, some, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
3
|
|
|
4
|
+
function getStaticProperties(o) {
|
|
5
|
+
return getStaticPropertyHelpers(o);
|
|
6
|
+
}
|
|
3
7
|
function tryGetStaticPropertyInfo(o, propName) {
|
|
4
8
|
return tryGetStaticPropertyHelper(o, propName);
|
|
5
9
|
}
|
|
10
|
+
function trySetPropertyValue(o, propName, value$1) {
|
|
11
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
12
|
+
let matchResult, property_1;
|
|
13
|
+
if (matchValue != null) {
|
|
14
|
+
if (value(matchValue).IsMutable) {
|
|
15
|
+
matchResult = 0;
|
|
16
|
+
property_1 = value(matchValue);
|
|
17
|
+
} else {
|
|
18
|
+
matchResult = 1;
|
|
19
|
+
}
|
|
20
|
+
} else {
|
|
21
|
+
matchResult = 1;
|
|
22
|
+
}
|
|
23
|
+
switch (matchResult) {
|
|
24
|
+
case 0: {
|
|
25
|
+
property_1.SetValue(o, value$1);
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
default:
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function tryGetPropertyValue(o, propName) {
|
|
33
|
+
try {
|
|
34
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
35
|
+
return matchValue == null ? void 0 : some(value(matchValue).GetValue(o));
|
|
36
|
+
} catch (matchValue_1) {
|
|
37
|
+
throw matchValue_1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function tryGetPropertyValueAs(o, propName) {
|
|
41
|
+
try {
|
|
42
|
+
return map((v) => v, tryGetPropertyValue(o, propName));
|
|
43
|
+
} catch (matchValue) {
|
|
44
|
+
throw matchValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function removeProperty(o, propName) {
|
|
48
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
49
|
+
let matchResult, property_1;
|
|
50
|
+
if (matchValue != null) {
|
|
51
|
+
if (value(matchValue).IsMutable) {
|
|
52
|
+
matchResult = 0;
|
|
53
|
+
property_1 = value(matchValue);
|
|
54
|
+
} else {
|
|
55
|
+
matchResult = 1;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
matchResult = 1;
|
|
59
|
+
}
|
|
60
|
+
switch (matchResult) {
|
|
61
|
+
case 0: {
|
|
62
|
+
property_1.RemoveValue(o);
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
default:
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
6
69
|
|
|
7
|
-
export { tryGetStaticPropertyInfo };
|
|
70
|
+
export { getStaticProperties, removeProperty, tryGetPropertyValue, tryGetPropertyValueAs, tryGetStaticPropertyInfo, trySetPropertyValue };
|
|
@@ -1,6 +1,253 @@
|
|
|
1
|
+
import { Union } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
+
import { union_type, string_type, int32_type, obj_type, class_type, bool_type, array_type, tuple_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
3
|
+
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
1
5
|
import { keyValueList } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
2
6
|
import { int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
import { singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
|
+
import { result } from '../Fable.Promise.3.2.0/Promise.fs.js';
|
|
3
9
|
|
|
10
|
+
function Types_HttpRequestHeaders_Accept(Item) {
|
|
11
|
+
return new Types_HttpRequestHeaders(0, [Item]);
|
|
12
|
+
}
|
|
13
|
+
function Types_HttpRequestHeaders_AcceptCharset(Item) {
|
|
14
|
+
return new Types_HttpRequestHeaders(1, [Item]);
|
|
15
|
+
}
|
|
16
|
+
function Types_HttpRequestHeaders_AcceptEncoding(Item) {
|
|
17
|
+
return new Types_HttpRequestHeaders(2, [Item]);
|
|
18
|
+
}
|
|
19
|
+
function Types_HttpRequestHeaders_AcceptLanguage(Item) {
|
|
20
|
+
return new Types_HttpRequestHeaders(3, [Item]);
|
|
21
|
+
}
|
|
22
|
+
function Types_HttpRequestHeaders_AcceptDatetime(Item) {
|
|
23
|
+
return new Types_HttpRequestHeaders(4, [Item]);
|
|
24
|
+
}
|
|
25
|
+
function Types_HttpRequestHeaders_Authorization(Item) {
|
|
26
|
+
return new Types_HttpRequestHeaders(5, [Item]);
|
|
27
|
+
}
|
|
28
|
+
function Types_HttpRequestHeaders_CacheControl(Item) {
|
|
29
|
+
return new Types_HttpRequestHeaders(6, [Item]);
|
|
30
|
+
}
|
|
31
|
+
function Types_HttpRequestHeaders_Connection(Item) {
|
|
32
|
+
return new Types_HttpRequestHeaders(7, [Item]);
|
|
33
|
+
}
|
|
34
|
+
function Types_HttpRequestHeaders_Cookie(Item) {
|
|
35
|
+
return new Types_HttpRequestHeaders(8, [Item]);
|
|
36
|
+
}
|
|
37
|
+
function Types_HttpRequestHeaders_ContentLength(Item) {
|
|
38
|
+
return new Types_HttpRequestHeaders(9, [Item]);
|
|
39
|
+
}
|
|
40
|
+
function Types_HttpRequestHeaders_ContentMD5(Item) {
|
|
41
|
+
return new Types_HttpRequestHeaders(10, [Item]);
|
|
42
|
+
}
|
|
43
|
+
function Types_HttpRequestHeaders_ContentType(Item) {
|
|
44
|
+
return new Types_HttpRequestHeaders(11, [Item]);
|
|
45
|
+
}
|
|
46
|
+
function Types_HttpRequestHeaders_Date(Item) {
|
|
47
|
+
return new Types_HttpRequestHeaders(12, [Item]);
|
|
48
|
+
}
|
|
49
|
+
function Types_HttpRequestHeaders_Expect(Item) {
|
|
50
|
+
return new Types_HttpRequestHeaders(13, [Item]);
|
|
51
|
+
}
|
|
52
|
+
function Types_HttpRequestHeaders_Forwarded(Item) {
|
|
53
|
+
return new Types_HttpRequestHeaders(14, [Item]);
|
|
54
|
+
}
|
|
55
|
+
function Types_HttpRequestHeaders_From(Item) {
|
|
56
|
+
return new Types_HttpRequestHeaders(15, [Item]);
|
|
57
|
+
}
|
|
58
|
+
function Types_HttpRequestHeaders_Host(Item) {
|
|
59
|
+
return new Types_HttpRequestHeaders(16, [Item]);
|
|
60
|
+
}
|
|
61
|
+
function Types_HttpRequestHeaders_IfMatch(Item) {
|
|
62
|
+
return new Types_HttpRequestHeaders(17, [Item]);
|
|
63
|
+
}
|
|
64
|
+
function Types_HttpRequestHeaders_IfModifiedSince(Item) {
|
|
65
|
+
return new Types_HttpRequestHeaders(18, [Item]);
|
|
66
|
+
}
|
|
67
|
+
function Types_HttpRequestHeaders_IfNoneMatch(Item) {
|
|
68
|
+
return new Types_HttpRequestHeaders(19, [Item]);
|
|
69
|
+
}
|
|
70
|
+
function Types_HttpRequestHeaders_IfRange(Item) {
|
|
71
|
+
return new Types_HttpRequestHeaders(20, [Item]);
|
|
72
|
+
}
|
|
73
|
+
function Types_HttpRequestHeaders_IfUnmodifiedSince(Item) {
|
|
74
|
+
return new Types_HttpRequestHeaders(21, [Item]);
|
|
75
|
+
}
|
|
76
|
+
function Types_HttpRequestHeaders_MaxForwards(Item) {
|
|
77
|
+
return new Types_HttpRequestHeaders(22, [Item]);
|
|
78
|
+
}
|
|
79
|
+
function Types_HttpRequestHeaders_Origin(Item) {
|
|
80
|
+
return new Types_HttpRequestHeaders(23, [Item]);
|
|
81
|
+
}
|
|
82
|
+
function Types_HttpRequestHeaders_Pragma(Item) {
|
|
83
|
+
return new Types_HttpRequestHeaders(24, [Item]);
|
|
84
|
+
}
|
|
85
|
+
function Types_HttpRequestHeaders_ProxyAuthorization(Item) {
|
|
86
|
+
return new Types_HttpRequestHeaders(25, [Item]);
|
|
87
|
+
}
|
|
88
|
+
function Types_HttpRequestHeaders_Range(Item) {
|
|
89
|
+
return new Types_HttpRequestHeaders(26, [Item]);
|
|
90
|
+
}
|
|
91
|
+
function Types_HttpRequestHeaders_Referer(Item) {
|
|
92
|
+
return new Types_HttpRequestHeaders(27, [Item]);
|
|
93
|
+
}
|
|
94
|
+
function Types_HttpRequestHeaders_SOAPAction(Item) {
|
|
95
|
+
return new Types_HttpRequestHeaders(28, [Item]);
|
|
96
|
+
}
|
|
97
|
+
function Types_HttpRequestHeaders_TE(Item) {
|
|
98
|
+
return new Types_HttpRequestHeaders(29, [Item]);
|
|
99
|
+
}
|
|
100
|
+
function Types_HttpRequestHeaders_UserAgent(Item) {
|
|
101
|
+
return new Types_HttpRequestHeaders(30, [Item]);
|
|
102
|
+
}
|
|
103
|
+
function Types_HttpRequestHeaders_Upgrade(Item) {
|
|
104
|
+
return new Types_HttpRequestHeaders(31, [Item]);
|
|
105
|
+
}
|
|
106
|
+
function Types_HttpRequestHeaders_Via(Item) {
|
|
107
|
+
return new Types_HttpRequestHeaders(32, [Item]);
|
|
108
|
+
}
|
|
109
|
+
function Types_HttpRequestHeaders_Warning(Item) {
|
|
110
|
+
return new Types_HttpRequestHeaders(33, [Item]);
|
|
111
|
+
}
|
|
112
|
+
function Types_HttpRequestHeaders_XRequestedWith(Item) {
|
|
113
|
+
return new Types_HttpRequestHeaders(34, [Item]);
|
|
114
|
+
}
|
|
115
|
+
function Types_HttpRequestHeaders_DNT(Item) {
|
|
116
|
+
return new Types_HttpRequestHeaders(35, [Item]);
|
|
117
|
+
}
|
|
118
|
+
function Types_HttpRequestHeaders_XForwardedFor(Item) {
|
|
119
|
+
return new Types_HttpRequestHeaders(36, [Item]);
|
|
120
|
+
}
|
|
121
|
+
function Types_HttpRequestHeaders_XForwardedHost(Item) {
|
|
122
|
+
return new Types_HttpRequestHeaders(37, [Item]);
|
|
123
|
+
}
|
|
124
|
+
function Types_HttpRequestHeaders_XForwardedProto(Item) {
|
|
125
|
+
return new Types_HttpRequestHeaders(38, [Item]);
|
|
126
|
+
}
|
|
127
|
+
function Types_HttpRequestHeaders_FrontEndHttps(Item) {
|
|
128
|
+
return new Types_HttpRequestHeaders(39, [Item]);
|
|
129
|
+
}
|
|
130
|
+
function Types_HttpRequestHeaders_XHttpMethodOverride(Item) {
|
|
131
|
+
return new Types_HttpRequestHeaders(40, [Item]);
|
|
132
|
+
}
|
|
133
|
+
function Types_HttpRequestHeaders_XATTDeviceId(Item) {
|
|
134
|
+
return new Types_HttpRequestHeaders(41, [Item]);
|
|
135
|
+
}
|
|
136
|
+
function Types_HttpRequestHeaders_XWapProfile(Item) {
|
|
137
|
+
return new Types_HttpRequestHeaders(42, [Item]);
|
|
138
|
+
}
|
|
139
|
+
function Types_HttpRequestHeaders_ProxyConnection(Item) {
|
|
140
|
+
return new Types_HttpRequestHeaders(43, [Item]);
|
|
141
|
+
}
|
|
142
|
+
function Types_HttpRequestHeaders_XUIDH(Item) {
|
|
143
|
+
return new Types_HttpRequestHeaders(44, [Item]);
|
|
144
|
+
}
|
|
145
|
+
function Types_HttpRequestHeaders_XCsrfToken(Item) {
|
|
146
|
+
return new Types_HttpRequestHeaders(45, [Item]);
|
|
147
|
+
}
|
|
148
|
+
function Types_HttpRequestHeaders_Custom(key, value) {
|
|
149
|
+
return new Types_HttpRequestHeaders(46, [key, value]);
|
|
150
|
+
}
|
|
151
|
+
class Types_HttpRequestHeaders extends Union {
|
|
152
|
+
constructor(tag, fields) {
|
|
153
|
+
super();
|
|
154
|
+
this.tag = tag;
|
|
155
|
+
this.fields = fields;
|
|
156
|
+
}
|
|
157
|
+
cases() {
|
|
158
|
+
return ["Accept", "Accept-Charset", "Accept-Encoding", "Accept-Language", "Accept-Datetime", "Authorization", "Cache-Control", "Connection", "Cookie", "Content-Length", "Content-MD5", "Content-Type", "Date", "Expect", "Forwarded", "From", "Host", "If-Match", "If-Modified-Since", "If-None-Match", "If-Range", "If-Unmodified-Since", "Max-Forwards", "Origin", "Pragma", "Proxy-Authorization", "Range", "Referer", "SOAPAction", "TE", "User-Agent", "Upgrade", "Via", "Warning", "X-Requested-With", "DNT", "X-Forwarded-For", "X-Forwarded-Host", "X-Forwarded-Proto", "Front-End-Https", "X-Http-Method-Override", "X-ATT-DeviceId", "X-Wap-Profile", "Proxy-Connection", "X-UIDH", "X-Csrf-Token", "Custom"];
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function Types_HttpRequestHeaders_$reflection() {
|
|
162
|
+
return union_type("Fetch.Types.HttpRequestHeaders", [], Types_HttpRequestHeaders, () => [[["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", int32_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["key", string_type], ["value", obj_type]]]);
|
|
163
|
+
}
|
|
164
|
+
function Types_RequestProperties_Method(Item) {
|
|
165
|
+
return new Types_RequestProperties(0, [Item]);
|
|
166
|
+
}
|
|
167
|
+
function Types_RequestProperties_Headers(Item) {
|
|
168
|
+
return new Types_RequestProperties(1, [Item]);
|
|
169
|
+
}
|
|
170
|
+
function Types_RequestProperties_Body(Item) {
|
|
171
|
+
return new Types_RequestProperties(2, [Item]);
|
|
172
|
+
}
|
|
173
|
+
function Types_RequestProperties_Mode(Item) {
|
|
174
|
+
return new Types_RequestProperties(3, [Item]);
|
|
175
|
+
}
|
|
176
|
+
function Types_RequestProperties_Credentials(Item) {
|
|
177
|
+
return new Types_RequestProperties(4, [Item]);
|
|
178
|
+
}
|
|
179
|
+
function Types_RequestProperties_Cache(Item) {
|
|
180
|
+
return new Types_RequestProperties(5, [Item]);
|
|
181
|
+
}
|
|
182
|
+
function Types_RequestProperties_Redirect(Item) {
|
|
183
|
+
return new Types_RequestProperties(6, [Item]);
|
|
184
|
+
}
|
|
185
|
+
function Types_RequestProperties_Referrer(Item) {
|
|
186
|
+
return new Types_RequestProperties(7, [Item]);
|
|
187
|
+
}
|
|
188
|
+
function Types_RequestProperties_ReferrerPolicy(Item) {
|
|
189
|
+
return new Types_RequestProperties(8, [Item]);
|
|
190
|
+
}
|
|
191
|
+
function Types_RequestProperties_Integrity(Item) {
|
|
192
|
+
return new Types_RequestProperties(9, [Item]);
|
|
193
|
+
}
|
|
194
|
+
function Types_RequestProperties_KeepAlive(Item) {
|
|
195
|
+
return new Types_RequestProperties(10, [Item]);
|
|
196
|
+
}
|
|
197
|
+
function Types_RequestProperties_Signal(Item) {
|
|
198
|
+
return new Types_RequestProperties(11, [Item]);
|
|
199
|
+
}
|
|
200
|
+
class Types_RequestProperties extends Union {
|
|
201
|
+
constructor(tag, fields) {
|
|
202
|
+
super();
|
|
203
|
+
this.tag = tag;
|
|
204
|
+
this.fields = fields;
|
|
205
|
+
}
|
|
206
|
+
cases() {
|
|
207
|
+
return ["Method", "Headers", "Body", "Mode", "Credentials", "Cache", "Redirect", "Referrer", "ReferrerPolicy", "Integrity", "KeepAlive", "Signal"];
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function Types_RequestProperties_$reflection() {
|
|
211
|
+
return union_type("Fetch.Types.RequestProperties", [], Types_RequestProperties, () => [[["Item", string_type]], [["Item", class_type("Fetch.Types.IHttpRequestHeaders")]], [["Item", class_type("Fable.Core.U3`3", [class_type("Browser.Types.Blob", void 0), class_type("Browser.Types.FormData", void 0), string_type])]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", bool_type]], [["Item", class_type("Fetch.Types.AbortSignal")]]]);
|
|
212
|
+
}
|
|
213
|
+
function Types_ResponseInitProperties_Status(Item) {
|
|
214
|
+
return new Types_ResponseInitProperties(0, [Item]);
|
|
215
|
+
}
|
|
216
|
+
function Types_ResponseInitProperties_StatusText(Item) {
|
|
217
|
+
return new Types_ResponseInitProperties(1, [Item]);
|
|
218
|
+
}
|
|
219
|
+
function Types_ResponseInitProperties_Headers(Item) {
|
|
220
|
+
return new Types_ResponseInitProperties(2, [Item]);
|
|
221
|
+
}
|
|
222
|
+
class Types_ResponseInitProperties extends Union {
|
|
223
|
+
constructor(tag, fields) {
|
|
224
|
+
super();
|
|
225
|
+
this.tag = tag;
|
|
226
|
+
this.fields = fields;
|
|
227
|
+
}
|
|
228
|
+
cases() {
|
|
229
|
+
return ["Status", "StatusText", "Headers"];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function Types_ResponseInitProperties_$reflection() {
|
|
233
|
+
return union_type("Fetch.Types.ResponseInitProperties", [], Types_ResponseInitProperties, () => [[["Item", int32_type]], [["Item", string_type]], [["Item", array_type(tuple_type(string_type, string_type))]]]);
|
|
234
|
+
}
|
|
235
|
+
function Fetch_Types_Response__Response_create_Static_36F1D09D(content, options) {
|
|
236
|
+
const options_1 = defaultArg(options, empty());
|
|
237
|
+
return new Response(content, keyValueList(options_1, 1));
|
|
238
|
+
}
|
|
239
|
+
function Fetch_Types_Response__Response_create_Static_Z7AF41C79(content, options) {
|
|
240
|
+
const options_1 = defaultArg(options, empty());
|
|
241
|
+
return new Response(content, keyValueList(options_1, 1));
|
|
242
|
+
}
|
|
243
|
+
function Fetch_Types_Response__Response_create_Static_Z43D75E86(content, options) {
|
|
244
|
+
const options_1 = defaultArg(options, empty());
|
|
245
|
+
return new Response(content, keyValueList(options_1, 1));
|
|
246
|
+
}
|
|
247
|
+
function Fetch_Types_Response__Response_create_Static_7B93BED7(content, options) {
|
|
248
|
+
const options_1 = defaultArg(options, empty());
|
|
249
|
+
return new Response(content, keyValueList(options_1, 1));
|
|
250
|
+
}
|
|
4
251
|
function errorString(response) {
|
|
5
252
|
return int32ToString(response.status) + " " + response.statusText + " for URL " + response.url;
|
|
6
253
|
}
|
|
@@ -14,5 +261,14 @@ function fetch$(url, init) {
|
|
|
14
261
|
}
|
|
15
262
|
});
|
|
16
263
|
}
|
|
264
|
+
function fetchUnsafe(url, init) {
|
|
265
|
+
return fetch(url, keyValueList(init, 1));
|
|
266
|
+
}
|
|
267
|
+
function tryFetch(url, init) {
|
|
268
|
+
return result(fetch$(url, init));
|
|
269
|
+
}
|
|
270
|
+
function tryOptionsRequest(url) {
|
|
271
|
+
return result(fetch$(url, singleton(Types_RequestProperties_Method("OPTIONS"))));
|
|
272
|
+
}
|
|
17
273
|
|
|
18
|
-
export {
|
|
274
|
+
export { Fetch_Types_Response__Response_create_Static_36F1D09D, Fetch_Types_Response__Response_create_Static_7B93BED7, Fetch_Types_Response__Response_create_Static_Z43D75E86, Fetch_Types_Response__Response_create_Static_Z7AF41C79, Types_HttpRequestHeaders, Types_HttpRequestHeaders_$reflection, Types_HttpRequestHeaders_Accept, Types_HttpRequestHeaders_AcceptCharset, Types_HttpRequestHeaders_AcceptDatetime, Types_HttpRequestHeaders_AcceptEncoding, Types_HttpRequestHeaders_AcceptLanguage, Types_HttpRequestHeaders_Authorization, Types_HttpRequestHeaders_CacheControl, Types_HttpRequestHeaders_Connection, Types_HttpRequestHeaders_ContentLength, Types_HttpRequestHeaders_ContentMD5, Types_HttpRequestHeaders_ContentType, Types_HttpRequestHeaders_Cookie, Types_HttpRequestHeaders_Custom, Types_HttpRequestHeaders_DNT, Types_HttpRequestHeaders_Date, Types_HttpRequestHeaders_Expect, Types_HttpRequestHeaders_Forwarded, Types_HttpRequestHeaders_From, Types_HttpRequestHeaders_FrontEndHttps, Types_HttpRequestHeaders_Host, Types_HttpRequestHeaders_IfMatch, Types_HttpRequestHeaders_IfModifiedSince, Types_HttpRequestHeaders_IfNoneMatch, Types_HttpRequestHeaders_IfRange, Types_HttpRequestHeaders_IfUnmodifiedSince, Types_HttpRequestHeaders_MaxForwards, Types_HttpRequestHeaders_Origin, Types_HttpRequestHeaders_Pragma, Types_HttpRequestHeaders_ProxyAuthorization, Types_HttpRequestHeaders_ProxyConnection, Types_HttpRequestHeaders_Range, Types_HttpRequestHeaders_Referer, Types_HttpRequestHeaders_SOAPAction, Types_HttpRequestHeaders_TE, Types_HttpRequestHeaders_Upgrade, Types_HttpRequestHeaders_UserAgent, Types_HttpRequestHeaders_Via, Types_HttpRequestHeaders_Warning, Types_HttpRequestHeaders_XATTDeviceId, Types_HttpRequestHeaders_XCsrfToken, Types_HttpRequestHeaders_XForwardedFor, Types_HttpRequestHeaders_XForwardedHost, Types_HttpRequestHeaders_XForwardedProto, Types_HttpRequestHeaders_XHttpMethodOverride, Types_HttpRequestHeaders_XRequestedWith, Types_HttpRequestHeaders_XUIDH, Types_HttpRequestHeaders_XWapProfile, Types_RequestProperties, Types_RequestProperties_$reflection, Types_RequestProperties_Body, Types_RequestProperties_Cache, Types_RequestProperties_Credentials, Types_RequestProperties_Headers, Types_RequestProperties_Integrity, Types_RequestProperties_KeepAlive, Types_RequestProperties_Method, Types_RequestProperties_Mode, Types_RequestProperties_Redirect, Types_RequestProperties_Referrer, Types_RequestProperties_ReferrerPolicy, Types_RequestProperties_Signal, Types_ResponseInitProperties, Types_ResponseInitProperties_$reflection, Types_ResponseInitProperties_Headers, Types_ResponseInitProperties_Status, Types_ResponseInitProperties_StatusText, fetch$, fetchUnsafe, tryFetch, tryOptionsRequest };
|
|
@@ -1,10 +1,74 @@
|
|
|
1
|
+
import { FSharpResult$2_Ok, FSharpResult$2_Error, Result_Map, Result_MapError } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
2
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
3
|
+
import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
|
+
|
|
5
|
+
function tap(fn, a) {
|
|
6
|
+
return a.then((x) => {
|
|
7
|
+
fn(x);
|
|
8
|
+
return x;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function result(a) {
|
|
12
|
+
return a.then(FSharpResult$2_Ok).catch(FSharpResult$2_Error);
|
|
13
|
+
}
|
|
14
|
+
function mapResult(fn, a) {
|
|
15
|
+
return a.then((result_1) => Result_Map(fn, result_1));
|
|
16
|
+
}
|
|
17
|
+
function bindResult(fn, a) {
|
|
18
|
+
return a.then((a_1) => {
|
|
19
|
+
if (a_1.tag === /* Error */
|
|
20
|
+
1) {
|
|
21
|
+
const e = a_1.fields[0];
|
|
22
|
+
return Promise.resolve(FSharpResult$2_Error(e));
|
|
23
|
+
} else {
|
|
24
|
+
const pr = fn(a_1.fields[0]);
|
|
25
|
+
return pr.then(FSharpResult$2_Ok);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function mapResultError(fn, a) {
|
|
30
|
+
return a.then((result_1) => Result_MapError(fn, result_1));
|
|
31
|
+
}
|
|
1
32
|
class PromiseBuilder {
|
|
2
33
|
constructor() {
|
|
3
34
|
}
|
|
4
35
|
}
|
|
36
|
+
function PromiseBuilder_$reflection() {
|
|
37
|
+
return class_type("Promise.PromiseBuilder", void 0, PromiseBuilder);
|
|
38
|
+
}
|
|
5
39
|
function PromiseBuilder_$ctor() {
|
|
6
40
|
return new PromiseBuilder();
|
|
7
41
|
}
|
|
42
|
+
function PromiseBuilder__For_1565554B(_, seq, body) {
|
|
43
|
+
let pr;
|
|
44
|
+
let p = Promise.resolve(void 0);
|
|
45
|
+
const enumerator = getEnumerator(seq);
|
|
46
|
+
try {
|
|
47
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
48
|
+
const a = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
49
|
+
p = (pr = p, pr.then(() => body(a)));
|
|
50
|
+
}
|
|
51
|
+
} finally {
|
|
52
|
+
disposeSafe(enumerator);
|
|
53
|
+
}
|
|
54
|
+
return p;
|
|
55
|
+
}
|
|
56
|
+
function PromiseBuilder__While_2044D34(this$, guard, p) {
|
|
57
|
+
if (guard()) {
|
|
58
|
+
return p.then(() => PromiseBuilder__While_2044D34(this$, guard, p));
|
|
59
|
+
} else {
|
|
60
|
+
return Promise.resolve(void 0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function PromiseBuilder__TryFinally_7D49A2FD(_, p, compensation) {
|
|
64
|
+
return p.then((x) => {
|
|
65
|
+
compensation();
|
|
66
|
+
return x;
|
|
67
|
+
}).catch((er) => {
|
|
68
|
+
compensation();
|
|
69
|
+
throw er;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
8
72
|
function PromiseBuilder__Delay_62FBFDE1(_, generator) {
|
|
9
73
|
return {
|
|
10
74
|
then: (onSuccess, onError) => {
|
|
@@ -40,5 +104,11 @@ function PromiseBuilder__Delay_62FBFDE1(_, generator) {
|
|
|
40
104
|
function PromiseBuilder__Run_212F1D4B(_, p) {
|
|
41
105
|
return p.then((x) => x);
|
|
42
106
|
}
|
|
107
|
+
function PromiseBuilder__Using_74F7E79D(this$, resource, binder) {
|
|
108
|
+
return PromiseBuilder__TryFinally_7D49A2FD(this$, binder(resource), () => {
|
|
109
|
+
let copyOfStruct = resource;
|
|
110
|
+
disposeSafe(copyOfStruct);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
43
113
|
|
|
44
|
-
export { PromiseBuilder, PromiseBuilder_$ctor, PromiseBuilder__Delay_62FBFDE1, PromiseBuilder__Run_212F1D4B };
|
|
114
|
+
export { PromiseBuilder, PromiseBuilder_$ctor, PromiseBuilder_$reflection, PromiseBuilder__Delay_62FBFDE1, PromiseBuilder__For_1565554B, PromiseBuilder__Run_212F1D4B, PromiseBuilder__TryFinally_7D49A2FD, PromiseBuilder__Using_74F7E79D, PromiseBuilder__While_2044D34, bindResult, mapResult, mapResultError, result, tap };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { PromiseBuilder_$ctor } from './Promise.fs.js';
|
|
2
|
+
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
2
4
|
|
|
3
5
|
const promise = PromiseBuilder_$ctor();
|
|
6
|
+
function SettledValue_toResult(p) {
|
|
7
|
+
const matchValue = p.status;
|
|
8
|
+
if (matchValue === "rejected") {
|
|
9
|
+
return FSharpResult$2_Error(value(p.reason));
|
|
10
|
+
} else {
|
|
11
|
+
return FSharpResult$2_Ok(value(p.value));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
4
14
|
|
|
5
|
-
export { promise };
|
|
15
|
+
export { SettledValue_toResult, promise };
|