@fossa-app/bridge 0.1.0
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/.build.ps1 +307 -0
- package/.github/dependabot.yml +38 -0
- package/.github/release-drafter.yml +52 -0
- package/.github/workflows/cicd.yml +106 -0
- package/.github/workflows/lint.yml +34 -0
- package/.github/workflows/release-drafter.yml +27 -0
- package/Fossa.Bridge.slnx +8 -0
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/build.ps1 +11 -0
- package/dotnet-tools.json +27 -0
- package/format.ps1 +11 -0
- package/gig.ps1 +16 -0
- package/global.json +6 -0
- package/lint.ps1 +20 -0
- package/pack.ps1 +11 -0
- package/package.json +21 -0
- package/publish.ps1 +11 -0
- package/restore.ps1 +11 -0
- package/src/Fossa.Bridge/Fossa.Bridge.fsproj +17 -0
- package/src/Fossa.Bridge/Models/ApiModels.fs +136 -0
- package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -0
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +98 -0
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +41 -0
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +81 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +26 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +2 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +84 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +30 -0
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +2 -0
- package/src/Fossa.Bridge/obj/Release/Fossa.Bridge.0.1.0.nuspec +20 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +18 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -0
- package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -0
- package/src/Fossa.Bridge/obj/project.assets.json +229 -0
- package/test.ps1 +11 -0
- package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +19 -0
- package/tests/Fossa.Bridge.Tests/Main.fs +7 -0
- package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +806 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +14 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -0
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +174 -0
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +31 -0
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +11 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Br.E9949494.Up2Date +0 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +17 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +191 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -0
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -0
- package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2018 -0
- package/trigger.ps1 +32 -0
- package/tsconfig.json +16 -0
- package/version.ps1 +11 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the FSharp WriteCodeFragment class.
|
|
3
|
+
// </auto-generated>
|
|
4
|
+
namespace FSharp
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[<assembly: System.Reflection.AssemblyCompanyAttribute("TIKSN")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("Shared Domain Models and DTOs for Fossa UI and API")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.0+d8934b3e09ebd1d9bdfe9ffc6232814f28c8630f")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("Fossa.Bridge")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("Fossa.Bridge")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")>]
|
|
18
|
+
do()
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//------------------------------------------------------------------------------
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// This code was generated by a tool.
|
|
4
|
+
//
|
|
5
|
+
// Changes to this file may cause incorrect behavior and will be lost if
|
|
6
|
+
// the code is regenerated.
|
|
7
|
+
// </auto-generated>
|
|
8
|
+
//------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
using System;
|
|
11
|
+
using System.Reflection;
|
|
12
|
+
|
|
13
|
+
[assembly: System.Reflection.AssemblyCompanyAttribute("TIKSN")]
|
|
14
|
+
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
|
15
|
+
[assembly: System.Reflection.AssemblyDescriptionAttribute("Shared Domain Models and DTOs for Fossa UI and API")]
|
|
16
|
+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
|
17
|
+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d8934b3e09ebd1d9bdfe9ffc6232814f28c8630f")]
|
|
18
|
+
[assembly: System.Reflection.AssemblyProductAttribute("Fossa.Bridge.fable-temp")]
|
|
19
|
+
[assembly: System.Reflection.AssemblyTitleAttribute("Fossa.Bridge.fable-temp")]
|
|
20
|
+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
|
21
|
+
|
|
22
|
+
// Generated by the MSBuild WriteCodeFragment class.
|
|
23
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
is_global = true
|
|
2
|
+
build_property.TargetFramework = net8.0
|
|
3
|
+
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
|
4
|
+
build_property.TargetFrameworkVersion = v8.0
|
|
5
|
+
build_property.TargetPlatformMinVersion =
|
|
6
|
+
build_property.UsingMicrosoftNETSdkWeb =
|
|
7
|
+
build_property.ProjectTypeGuids =
|
|
8
|
+
build_property.InvariantGlobalization =
|
|
9
|
+
build_property.PlatformNeutralAssembly =
|
|
10
|
+
build_property.EnforceExtendedAnalyzerRules =
|
|
11
|
+
build_property._SupportedPlatformList = Linux,macOS,Windows
|
|
12
|
+
build_property.RootNamespace = Fossa.Bridge.fable-temp
|
|
13
|
+
build_property.ProjectDir = D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\
|
|
14
|
+
build_property.EnableComHosting =
|
|
15
|
+
build_property.EnableGeneratedComInterfaceComImportInterop =
|
|
16
|
+
build_property.EffectiveAnalysisLevelStyle = 8.0
|
|
17
|
+
build_property.EnableCodeStyleSeverity =
|
package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\bin\Release\net8.0\Fossa.Bridge.fable-temp.deps.json
|
|
2
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig
|
|
3
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.fable-temp.AssemblyInfoInputs.cache
|
|
4
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.fable-temp.AssemblyInfo.cs
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\bin\Release\net8.0\Fossa.Bridge.deps.json
|
|
2
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\bin\Release\net8.0\Fossa.Bridge.dll
|
|
3
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\bin\Release\net8.0\Fossa.Bridge.pdb
|
|
4
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\bin\Release\net8.0\Fossa.Bridge.xml
|
|
5
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.fsproj.AssemblyReference.cache
|
|
6
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.AssemblyInfoInputs.cache
|
|
7
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.AssemblyInfo.fs
|
|
8
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.fsproj.CoreCompileInputs.cache
|
|
9
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.sourcelink.json
|
|
10
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.dll
|
|
11
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\refint\Fossa.Bridge.dll
|
|
12
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.xml
|
|
13
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\Fossa.Bridge.pdb
|
|
14
|
+
D:\GitHub\fossa-app\Bridge\src\Fossa.Bridge\obj\Release\net8.0\ref\Fossa.Bridge.dll
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"documents":{"D:\\GitHub\\fossa-app\\Bridge\\*":"https://raw.githubusercontent.com/fossa-app/Bridge/d8934b3e09ebd1d9bdfe9ffc6232814f28c8630f/*"}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<linker>
|
|
3
|
+
<assembly fullname="Fossa.Bridge">
|
|
4
|
+
<resource name="FSharpSignatureData.Fossa.Bridge" action="remove"></resource>
|
|
5
|
+
<resource name="FSharpSignatureCompressedData.Fossa.Bridge" action="remove"></resource>
|
|
6
|
+
<resource name="FSharpSignatureDataB.Fossa.Bridge" action="remove"></resource>
|
|
7
|
+
<resource name="FSharpSignatureCompressedDataB.Fossa.Bridge" action="remove"></resource>
|
|
8
|
+
<resource name="FSharpOptimizationData.Fossa.Bridge" action="remove"></resource>
|
|
9
|
+
<resource name="FSharpOptimizationCompressedData.Fossa.Bridge" action="remove"></resource>
|
|
10
|
+
<resource name="FSharpOptimizationDataB.Fossa.Bridge" action="remove"></resource>
|
|
11
|
+
<resource name="FSharpOptimizationCompressedDataB.Fossa.Bridge" action="remove"></resource>
|
|
12
|
+
<resource name="FSharpOptimizationInfo.Fossa.Bridge" action="remove"></resource>
|
|
13
|
+
<resource name="FSharpSignatureInfo.Fossa.Bridge" action="remove"></resource>
|
|
14
|
+
</assembly>
|
|
15
|
+
</linker>
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"targets": {
|
|
4
|
+
"net8.0": {
|
|
5
|
+
"Fable.Core/4.5.0": {
|
|
6
|
+
"type": "package",
|
|
7
|
+
"compile": {
|
|
8
|
+
"lib/netstandard2.0/Fable.Core.dll": {
|
|
9
|
+
"related": ".xml"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"runtime": {
|
|
13
|
+
"lib/netstandard2.0/Fable.Core.dll": {
|
|
14
|
+
"related": ".xml"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"contentFiles": {
|
|
18
|
+
"contentFiles/any/netstandard2.0/CHANGELOG.md": {
|
|
19
|
+
"buildAction": "Content",
|
|
20
|
+
"codeLanguage": "any",
|
|
21
|
+
"copyToOutput": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"FSharp.Core/10.0.103": {
|
|
26
|
+
"type": "package",
|
|
27
|
+
"compile": {
|
|
28
|
+
"lib/netstandard2.1/FSharp.Core.dll": {
|
|
29
|
+
"related": ".xml"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"runtime": {
|
|
33
|
+
"lib/netstandard2.1/FSharp.Core.dll": {
|
|
34
|
+
"related": ".xml"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"resource": {
|
|
38
|
+
"lib/netstandard2.1/cs/FSharp.Core.resources.dll": {
|
|
39
|
+
"locale": "cs"
|
|
40
|
+
},
|
|
41
|
+
"lib/netstandard2.1/de/FSharp.Core.resources.dll": {
|
|
42
|
+
"locale": "de"
|
|
43
|
+
},
|
|
44
|
+
"lib/netstandard2.1/es/FSharp.Core.resources.dll": {
|
|
45
|
+
"locale": "es"
|
|
46
|
+
},
|
|
47
|
+
"lib/netstandard2.1/fr/FSharp.Core.resources.dll": {
|
|
48
|
+
"locale": "fr"
|
|
49
|
+
},
|
|
50
|
+
"lib/netstandard2.1/it/FSharp.Core.resources.dll": {
|
|
51
|
+
"locale": "it"
|
|
52
|
+
},
|
|
53
|
+
"lib/netstandard2.1/ja/FSharp.Core.resources.dll": {
|
|
54
|
+
"locale": "ja"
|
|
55
|
+
},
|
|
56
|
+
"lib/netstandard2.1/ko/FSharp.Core.resources.dll": {
|
|
57
|
+
"locale": "ko"
|
|
58
|
+
},
|
|
59
|
+
"lib/netstandard2.1/pl/FSharp.Core.resources.dll": {
|
|
60
|
+
"locale": "pl"
|
|
61
|
+
},
|
|
62
|
+
"lib/netstandard2.1/pt-BR/FSharp.Core.resources.dll": {
|
|
63
|
+
"locale": "pt-BR"
|
|
64
|
+
},
|
|
65
|
+
"lib/netstandard2.1/ru/FSharp.Core.resources.dll": {
|
|
66
|
+
"locale": "ru"
|
|
67
|
+
},
|
|
68
|
+
"lib/netstandard2.1/tr/FSharp.Core.resources.dll": {
|
|
69
|
+
"locale": "tr"
|
|
70
|
+
},
|
|
71
|
+
"lib/netstandard2.1/zh-Hans/FSharp.Core.resources.dll": {
|
|
72
|
+
"locale": "zh-Hans"
|
|
73
|
+
},
|
|
74
|
+
"lib/netstandard2.1/zh-Hant/FSharp.Core.resources.dll": {
|
|
75
|
+
"locale": "zh-Hant"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"libraries": {
|
|
82
|
+
"Fable.Core/4.5.0": {
|
|
83
|
+
"sha512": "ZcX8XN5sQZGCbrS8VYnsa/ynhrCBfpDyqDkTl33GTXOpgfKibxoq0+W0hCSbRzuukVNoLtqGL/B6+8yTNDXbNA==",
|
|
84
|
+
"type": "package",
|
|
85
|
+
"path": "fable.core/4.5.0",
|
|
86
|
+
"files": [
|
|
87
|
+
".nupkg.metadata",
|
|
88
|
+
".signature.p7s",
|
|
89
|
+
"LICENSE",
|
|
90
|
+
"README.md",
|
|
91
|
+
"content/CHANGELOG.md",
|
|
92
|
+
"contentFiles/any/netstandard2.0/CHANGELOG.md",
|
|
93
|
+
"fable.core.4.5.0.nupkg.sha512",
|
|
94
|
+
"fable.core.nuspec",
|
|
95
|
+
"fable_logo.png",
|
|
96
|
+
"lib/netstandard2.0/Fable.Core.dll",
|
|
97
|
+
"lib/netstandard2.0/Fable.Core.xml"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"FSharp.Core/10.0.103": {
|
|
101
|
+
"sha512": "GfQInb74eDh9JZ8wx4+t/lOrH1uRqZvneuViVJ8CwbQwmtyyZoeGuzRayL01MNAsm8B6eRenWwJThu01EFPeKg==",
|
|
102
|
+
"type": "package",
|
|
103
|
+
"path": "fsharp.core/10.0.103",
|
|
104
|
+
"files": [
|
|
105
|
+
".nupkg.metadata",
|
|
106
|
+
".signature.p7s",
|
|
107
|
+
"Icon.png",
|
|
108
|
+
"fsharp.core.10.0.103.nupkg.sha512",
|
|
109
|
+
"fsharp.core.nuspec",
|
|
110
|
+
"lib/netstandard2.0/FSharp.Core.dll",
|
|
111
|
+
"lib/netstandard2.0/FSharp.Core.xml",
|
|
112
|
+
"lib/netstandard2.0/cs/FSharp.Core.resources.dll",
|
|
113
|
+
"lib/netstandard2.0/de/FSharp.Core.resources.dll",
|
|
114
|
+
"lib/netstandard2.0/es/FSharp.Core.resources.dll",
|
|
115
|
+
"lib/netstandard2.0/fr/FSharp.Core.resources.dll",
|
|
116
|
+
"lib/netstandard2.0/it/FSharp.Core.resources.dll",
|
|
117
|
+
"lib/netstandard2.0/ja/FSharp.Core.resources.dll",
|
|
118
|
+
"lib/netstandard2.0/ko/FSharp.Core.resources.dll",
|
|
119
|
+
"lib/netstandard2.0/pl/FSharp.Core.resources.dll",
|
|
120
|
+
"lib/netstandard2.0/pt-BR/FSharp.Core.resources.dll",
|
|
121
|
+
"lib/netstandard2.0/ru/FSharp.Core.resources.dll",
|
|
122
|
+
"lib/netstandard2.0/tr/FSharp.Core.resources.dll",
|
|
123
|
+
"lib/netstandard2.0/zh-Hans/FSharp.Core.resources.dll",
|
|
124
|
+
"lib/netstandard2.0/zh-Hant/FSharp.Core.resources.dll",
|
|
125
|
+
"lib/netstandard2.1/FSharp.Core.dll",
|
|
126
|
+
"lib/netstandard2.1/FSharp.Core.xml",
|
|
127
|
+
"lib/netstandard2.1/cs/FSharp.Core.resources.dll",
|
|
128
|
+
"lib/netstandard2.1/de/FSharp.Core.resources.dll",
|
|
129
|
+
"lib/netstandard2.1/es/FSharp.Core.resources.dll",
|
|
130
|
+
"lib/netstandard2.1/fr/FSharp.Core.resources.dll",
|
|
131
|
+
"lib/netstandard2.1/it/FSharp.Core.resources.dll",
|
|
132
|
+
"lib/netstandard2.1/ja/FSharp.Core.resources.dll",
|
|
133
|
+
"lib/netstandard2.1/ko/FSharp.Core.resources.dll",
|
|
134
|
+
"lib/netstandard2.1/pl/FSharp.Core.resources.dll",
|
|
135
|
+
"lib/netstandard2.1/pt-BR/FSharp.Core.resources.dll",
|
|
136
|
+
"lib/netstandard2.1/ru/FSharp.Core.resources.dll",
|
|
137
|
+
"lib/netstandard2.1/tr/FSharp.Core.resources.dll",
|
|
138
|
+
"lib/netstandard2.1/zh-Hans/FSharp.Core.resources.dll",
|
|
139
|
+
"lib/netstandard2.1/zh-Hant/FSharp.Core.resources.dll"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"projectFileDependencyGroups": {
|
|
144
|
+
"net8.0": [
|
|
145
|
+
"FSharp.Core >= 10.0.103",
|
|
146
|
+
"Fable.Core >= 4.5.0"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"packageFolders": {
|
|
150
|
+
"C:\\Users\\tiksn\\.nuget\\packages\\": {},
|
|
151
|
+
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
|
152
|
+
},
|
|
153
|
+
"project": {
|
|
154
|
+
"version": "1.0.0",
|
|
155
|
+
"restore": {
|
|
156
|
+
"projectUniqueName": "D:\\GitHub\\fossa-app\\Bridge\\src\\Fossa.Bridge\\Fossa.Bridge.fsproj",
|
|
157
|
+
"projectName": "Fossa.Bridge",
|
|
158
|
+
"projectPath": "D:\\GitHub\\fossa-app\\Bridge\\src\\Fossa.Bridge\\Fossa.Bridge.fsproj",
|
|
159
|
+
"packagesPath": "C:\\Users\\tiksn\\.nuget\\packages\\",
|
|
160
|
+
"outputPath": "D:\\GitHub\\fossa-app\\Bridge\\src\\Fossa.Bridge\\obj\\",
|
|
161
|
+
"projectStyle": "PackageReference",
|
|
162
|
+
"fallbackFolders": [
|
|
163
|
+
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
|
164
|
+
],
|
|
165
|
+
"configFilePaths": [
|
|
166
|
+
"C:\\Users\\tiksn\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
|
167
|
+
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
|
168
|
+
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
|
169
|
+
],
|
|
170
|
+
"originalTargetFrameworks": [
|
|
171
|
+
"net8.0"
|
|
172
|
+
],
|
|
173
|
+
"sources": {
|
|
174
|
+
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
|
175
|
+
"C:\\Program Files\\dotnet\\library-packs": {},
|
|
176
|
+
"C:\\Program Files\\dotnet\\sdk\\10.0.103\\FSharp\\library-packs": {},
|
|
177
|
+
"C:\\Users\\tiksn\\.nuget\\localpackages": {},
|
|
178
|
+
"https://api.nuget.org/v3/index.json": {}
|
|
179
|
+
},
|
|
180
|
+
"frameworks": {
|
|
181
|
+
"net8.0": {
|
|
182
|
+
"targetAlias": "net8.0",
|
|
183
|
+
"projectReferences": {}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"restoreAuditProperties": {
|
|
187
|
+
"enableAudit": "true",
|
|
188
|
+
"auditLevel": "low",
|
|
189
|
+
"auditMode": "direct"
|
|
190
|
+
},
|
|
191
|
+
"SdkAnalysisLevel": "10.0.100"
|
|
192
|
+
},
|
|
193
|
+
"frameworks": {
|
|
194
|
+
"net8.0": {
|
|
195
|
+
"targetAlias": "net8.0",
|
|
196
|
+
"dependencies": {
|
|
197
|
+
"FSharp.Core": {
|
|
198
|
+
"include": "Runtime, Compile, Build, Native, Analyzers, BuildTransitive",
|
|
199
|
+
"target": "Package",
|
|
200
|
+
"version": "[10.0.103, )",
|
|
201
|
+
"generatePathProperty": true
|
|
202
|
+
},
|
|
203
|
+
"Fable.Core": {
|
|
204
|
+
"target": "Package",
|
|
205
|
+
"version": "[4.5.0, )",
|
|
206
|
+
"generatePathProperty": true
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"imports": [
|
|
210
|
+
"net461",
|
|
211
|
+
"net462",
|
|
212
|
+
"net47",
|
|
213
|
+
"net471",
|
|
214
|
+
"net472",
|
|
215
|
+
"net48",
|
|
216
|
+
"net481"
|
|
217
|
+
],
|
|
218
|
+
"assetTargetFallback": true,
|
|
219
|
+
"warn": true,
|
|
220
|
+
"frameworkReferences": {
|
|
221
|
+
"Microsoft.NETCore.App": {
|
|
222
|
+
"privateAssets": "all"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.103/PortableRuntimeIdentifierGraph.json"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
package/test.ps1
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
|
2
|
+
<PropertyGroup>
|
|
3
|
+
<OutputType>Exe</OutputType>
|
|
4
|
+
<TargetFramework>net8.0</TargetFramework>
|
|
5
|
+
<GenerateProgramFile>false</GenerateProgramFile>
|
|
6
|
+
</PropertyGroup>
|
|
7
|
+
<ItemGroup>
|
|
8
|
+
<Compile Include="UrlHelpersTests.fs" />
|
|
9
|
+
<Compile Include="Main.fs" />
|
|
10
|
+
</ItemGroup>
|
|
11
|
+
<ItemGroup>
|
|
12
|
+
<PackageReference Include="Expecto" Version="10.2.3" />
|
|
13
|
+
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.15.5" />
|
|
14
|
+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
|
|
15
|
+
</ItemGroup>
|
|
16
|
+
<ItemGroup>
|
|
17
|
+
<ProjectReference Include="..\..\src\Fossa.Bridge\Fossa.Bridge.fsproj" />
|
|
18
|
+
</ItemGroup>
|
|
19
|
+
</Project>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module UrlHelpersTests
|
|
2
|
+
|
|
3
|
+
open Expecto
|
|
4
|
+
open Fossa.Bridge.Services.UrlHelpers
|
|
5
|
+
|
|
6
|
+
[<Tests>]
|
|
7
|
+
let tests =
|
|
8
|
+
testList
|
|
9
|
+
"UrlHelpersTests"
|
|
10
|
+
[ testCase "dev localhost 4211 mapped to 5210"
|
|
11
|
+
<| fun _ ->
|
|
12
|
+
let result = getBackendOrigin "http://app.dev.localhost:4211"
|
|
13
|
+
Expect.equal result "http://app.dev.localhost:5210" "Should map dev correctly"
|
|
14
|
+
|
|
15
|
+
testCase "test localhost 4210 mapped to 5211"
|
|
16
|
+
<| fun _ ->
|
|
17
|
+
let result = getBackendOrigin "http://app.test.localhost:4210"
|
|
18
|
+
Expect.equal result "http://app.test.localhost:5211" "Should map test correctly"
|
|
19
|
+
|
|
20
|
+
testCase "test localhost 4211 mapped to 5211"
|
|
21
|
+
<| fun _ ->
|
|
22
|
+
let result = getBackendOrigin "http://app.test.localhost:4211"
|
|
23
|
+
Expect.equal result "http://app.test.localhost:5211" "Should map test correctly"
|
|
24
|
+
|
|
25
|
+
testCase "localhost 4210 mapped to 5210"
|
|
26
|
+
<| fun _ ->
|
|
27
|
+
let result = getBackendOrigin "http://app.localhost:4210"
|
|
28
|
+
Expect.equal result "http://app.localhost:5210" "Should map localhost correctly"
|
|
29
|
+
|
|
30
|
+
testCase "unmapped origin is unchanged"
|
|
31
|
+
<| fun _ ->
|
|
32
|
+
let result = getBackendOrigin "http://app.prod.com"
|
|
33
|
+
Expect.equal result "http://app.prod.com" "Should not change if no mapping" ]
|