@fossa-app/bridge 0.1.1 → 0.1.4

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.
Files changed (65) hide show
  1. package/.build.ps1 +17 -25
  2. package/.github/dependabot.yml +38 -38
  3. package/.github/release-drafter.yml +52 -52
  4. package/.github/workflows/cicd.yml +87 -106
  5. package/.github/workflows/lint.yml +34 -34
  6. package/.github/workflows/release-drafter.yml +27 -27
  7. package/Fossa.Bridge.slnx +7 -7
  8. package/LICENSE +21 -21
  9. package/README.md +42 -42
  10. package/build.ps1 +11 -11
  11. package/dotnet-tools.json +26 -26
  12. package/format.ps1 +11 -11
  13. package/gig.ps1 +15 -15
  14. package/global.json +6 -6
  15. package/lint.ps1 +20 -20
  16. package/pack.ps1 +11 -11
  17. package/package.json +21 -21
  18. package/publish.ps1 +11 -11
  19. package/restore.ps1 +11 -11
  20. package/src/Fossa.Bridge/Fossa.Bridge.fsproj +16 -16
  21. package/src/Fossa.Bridge/Models/ApiModels.fs +136 -136
  22. package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -18
  23. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +97 -97
  24. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +40 -40
  25. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
  26. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +82 -80
  27. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +24 -25
  28. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +1 -1
  29. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +85 -83
  30. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +28 -29
  31. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +1 -1
  32. package/src/Fossa.Bridge/obj/Release/{Fossa.Bridge.0.1.1.nuspec → Fossa.Bridge.0.1.4.nuspec} +19 -19
  33. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -4
  34. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
  35. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +11 -11
  36. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -23
  37. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -17
  38. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -4
  39. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -14
  40. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -1
  41. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -6
  42. package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
  43. package/src/Fossa.Bridge/obj/project.assets.json +229 -228
  44. package/test.ps1 +11 -11
  45. package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +18 -18
  46. package/tests/Fossa.Bridge.Tests/Main.fs +7 -7
  47. package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -33
  48. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
  49. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
  50. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +805 -805
  51. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +13 -13
  52. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
  53. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +181 -173
  54. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +29 -30
  55. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +10 -10
  56. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
  57. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +10 -10
  58. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +190 -191
  59. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -1
  60. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
  61. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
  62. package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2022 -2017
  63. package/trigger.ps1 +32 -32
  64. package/tsconfig.json +15 -15
  65. package/version.ps1 +11 -11
@@ -1,19 +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>
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
19
  </Project>
@@ -1,7 +1,7 @@
1
- module Fossa.Bridge.Tests
2
-
3
- open Expecto
4
-
5
- [<EntryPoint>]
6
- let main argv =
7
- Tests.runTestsInAssemblyWithCLIArgs [] argv
1
+ module Fossa.Bridge.Tests
2
+
3
+ open Expecto
4
+
5
+ [<EntryPoint>]
6
+ let main argv =
7
+ Tests.runTestsInAssemblyWithCLIArgs [] argv
@@ -1,33 +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" ]
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" ]