├── src ├── Bix.Cloudflare │ ├── README.md │ ├── Bix.Cloudflare.fsproj │ └── Worker.fs ├── Templates │ ├── templates │ │ ├── Bun │ │ │ ├── bun.lockb │ │ │ ├── .config │ │ │ │ └── dotnet-tools.json │ │ │ ├── package.json │ │ │ ├── .template.config │ │ │ │ └── template.json │ │ │ ├── src │ │ │ │ ├── AppName.fsproj │ │ │ │ ├── Pages.fs │ │ │ │ └── Program.fs │ │ │ └── .gitignore │ │ ├── Cloudflare │ │ │ ├── wrangler.toml │ │ │ ├── package.json │ │ │ ├── .config │ │ │ │ └── dotnet-tools.json │ │ │ ├── .template.config │ │ │ │ └── template.json │ │ │ ├── src │ │ │ │ ├── AppName.fsproj │ │ │ │ ├── Pages.fs │ │ │ │ └── Program.fs │ │ │ ├── .gitignore │ │ │ └── pnpm-lock.yaml │ │ └── Deno │ │ │ ├── import_map.json │ │ │ ├── deno.json │ │ │ ├── .config │ │ │ └── dotnet-tools.json │ │ │ ├── src │ │ │ ├── Deno.fsproj │ │ │ ├── Pages.fs │ │ │ └── Program.fs │ │ │ ├── .template.config │ │ │ └── template.json │ │ │ └── .gitignore │ └── Bix.Templates.fsproj ├── Bix.Bun │ ├── Handlers.fs │ ├── Bix.Bun.fsproj │ └── BixBun.fs ├── Bix │ ├── Extensions.fs │ ├── Bix.fsproj │ ├── Giraffe.fs │ ├── Router.fs │ ├── Saturn.fs │ ├── Bix.fs │ ├── Handlers.fs │ └── Types.fs ├── Bix.Deno │ ├── Bix.Deno.fsproj │ └── BixDeno.fs └── Directory.Build.props ├── .vscode ├── settings.json └── launch.json ├── samples ├── Bun │ ├── bun.lockb │ ├── package.json │ ├── Bun.fsproj │ ├── Program.fs │ └── Handlers.fs ├── Worker │ ├── wrangler.toml │ ├── package.json │ ├── src │ │ ├── Worker.fsproj │ │ └── Worker.fs │ └── pnpm-lock.yaml └── Deno │ ├── import_map.json │ ├── deno.json │ ├── Deno.fsproj │ ├── Program.fs │ ├── deno.lock │ └── Handlers.fs ├── .config └── dotnet-tools.json ├── .github └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── LICENSE ├── README.md ├── Bix.sln └── .gitignore /src/Bix.Cloudflare/README.md: -------------------------------------------------------------------------------- 1 | # Cloudflare Workers 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deno.enable": true 3 | } -------------------------------------------------------------------------------- /samples/Bun/bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngelMunoz/Bix/HEAD/samples/Bun/bun.lockb -------------------------------------------------------------------------------- /samples/Worker/wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "w-sample" 2 | main = "src/Worker.fs.js" 3 | compatibility_date = "2022-07-18" 4 | -------------------------------------------------------------------------------- /samples/Deno/import_map.json: -------------------------------------------------------------------------------- 1 | { 2 | "imports": { 3 | "fable-deno-http": "https://deno.land/std/http/mod.ts" 4 | } 5 | } -------------------------------------------------------------------------------- /src/Templates/templates/Bun/bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngelMunoz/Bix/HEAD/src/Templates/templates/Bun/bun.lockb -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "AppName" 2 | main = "src/AppName.fs.js" 3 | compatibility_date = "2022-07-18" 4 | -------------------------------------------------------------------------------- /src/Templates/templates/Deno/import_map.json: -------------------------------------------------------------------------------- 1 | { 2 | "imports": { 3 | "fable-deno-http": "https://deno.land/std/http/mod.ts" 4 | } 5 | } -------------------------------------------------------------------------------- /samples/Deno/deno.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": { 3 | "restore-tools": "dotnet tool restore", 4 | "start": "deno task restore-tools && dotnet fable watch -s --run deno run -A --watch=./ ./Program.fs.js" 5 | }, 6 | "importMap": "./import_map.json" 7 | } -------------------------------------------------------------------------------- /src/Templates/templates/Deno/deno.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": { 3 | "restore-tools": "dotnet tool restore", 4 | "start": "deno task restore-tools && dotnet fable watch src -s --run deno run -A --watch=./src ./src/Program.fs.js" 5 | }, 6 | "importMap": "./import_map.json" 7 | } -------------------------------------------------------------------------------- /.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "fantomas": { 6 | "version": "6.1.1", 7 | "commands": [ 8 | "fantomas" 9 | ] 10 | }, 11 | "fable": { 12 | "version": "4.1.4", 13 | "commands": [ 14 | "fable" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /samples/Worker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "w-sample", 3 | "version": "0.0.0", 4 | "devDependencies": { 5 | "wrangler": "2.0.22" 6 | }, 7 | "private": true, 8 | "scripts": { 9 | "prestart": "dotnet tool restore", 10 | "start": "dotnet fable watch src -s --run wrangler dev --local", 11 | "deploy": "wrangler publish" 12 | } 13 | } -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AppName", 3 | "version": "0.0.0", 4 | "devDependencies": { 5 | "wrangler": "2.0.22" 6 | }, 7 | "private": true, 8 | "scripts": { 9 | "prestart": "dotnet tool restore", 10 | "start": "dotnet fable watch src -s --run wrangler dev --local", 11 | "deploy": "wrangler publish" 12 | } 13 | } -------------------------------------------------------------------------------- /src/Bix.Bun/Handlers.fs: -------------------------------------------------------------------------------- 1 | module Bix.Bun.Handlers 2 | 3 | open Fable.Bun 4 | open Bix.Types 5 | 6 | let sendHtmlFile (path: string) : HttpHandler = 7 | fun next ctx -> 8 | ctx.SetStarted true 9 | let content = Bun.file (path, unbox {| ``type`` = "text/html" |}), "text/html" 10 | let content = Blob content |> Some 11 | Promise.lift content 12 | -------------------------------------------------------------------------------- /src/Templates/templates/Bun/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "fantomas": { 6 | "version": "5.0.0-beta-006", 7 | "commands": [ 8 | "fantomas" 9 | ] 10 | }, 11 | "fable": { 12 | "version": "3.7.17", 13 | "commands": [ 14 | "fable" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Templates/templates/Deno/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "fantomas": { 6 | "version": "5.0.0-beta-006", 7 | "commands": [ 8 | "fantomas" 9 | ] 10 | }, 11 | "fable": { 12 | "version": "3.7.17", 13 | "commands": [ 14 | "fable" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "fantomas": { 6 | "version": "5.0.0-beta-006", 7 | "commands": [ 8 | "fantomas" 9 | ] 10 | }, 11 | "fable": { 12 | "version": "3.7.17", 13 | "commands": [ 14 | "fable" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Bix/Extensions.fs: -------------------------------------------------------------------------------- 1 | [] 2 | module Extensions 3 | 4 | open Bix.Types 5 | 6 | let inline compose (h1: HttpHandler) (h2: HttpHandler) : HttpHandler = 7 | fun final -> 8 | let fn = final |> h2 |> h1 9 | 10 | fun ctx -> 11 | match ctx.HasStarted with 12 | | true -> final ctx 13 | | false -> fn ctx 14 | 15 | let inline (>=>) h1 h2 = compose h1 h2 16 | -------------------------------------------------------------------------------- /src/Templates/templates/Bun/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AppName", 3 | "version": "1.0.0", 4 | "description": "", 5 | "keywords": [], 6 | "author": "", 7 | "license": "ISC", 8 | "scripts": { 9 | "prestart": "bun install && dotnet tool restore", 10 | "start": "dotnet fable watch src -s --runWatch bun ./src/Program.fs.js" 11 | }, 12 | "dependencies": { 13 | "urlpattern-polyfill": "~5.0.3" 14 | } 15 | } -------------------------------------------------------------------------------- /samples/Bun/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bun-sample", 3 | "version": "1.0.0", 4 | "description": "", 5 | "keywords": [], 6 | "author": "", 7 | "license": "ISC", 8 | "scripts": { 9 | "prestart": "bun install && dotnet tool restore", 10 | "start": "dotnet fable watch -s --runWatch bun ./Program.fs.js" 11 | }, 12 | "dependencies": { 13 | "urlpattern-polyfill": "~9.0.0" 14 | }, 15 | "devDependencies": { 16 | "bun-types": "~0.6.13" 17 | } 18 | } -------------------------------------------------------------------------------- /samples/Worker/src/Worker.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | true 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /samples/Bun/Bun.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | net6.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /samples/Deno/Deno.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | net6.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "command": "npm start", 9 | "name": "Run npm start", 10 | "request": "launch", 11 | "type": "node-terminal", 12 | "cwd": "${workspaceFolder}/samples/Worker" 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /src/Templates/templates/Deno/src/Deno.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | net6.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/Templates/templates/Bun/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Angel D. Munoz", 3 | "classifications": [ 4 | "bun", 5 | "worker", 6 | "fsharp", 7 | "fable", 8 | "bix" 9 | ], 10 | "description": "A basic bun server with Bix", 11 | "name": "Bun server Application", 12 | "identity": "Bix.Templates.Bun", 13 | "groupidentity": "Bix.Templates.Bun", 14 | "shortName": "bix.bun", 15 | "tags": { 16 | "language": "F#", 17 | "type": "project" 18 | }, 19 | "sourceName": "AppName", 20 | "preferNameDirectory": "true" 21 | } -------------------------------------------------------------------------------- /src/Templates/templates/Bun/src/AppName.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | net6.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/Templates/templates/Deno/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Angel D. Munoz", 3 | "classifications": [ 4 | "cloudflare", 5 | "worker", 6 | "fsharp", 7 | "fable", 8 | "bix" 9 | ], 10 | "description": "A basic cloudflare worker with Bix", 11 | "name": "Cloudflare Bix Worker Application", 12 | "identity": "Bix.Templates.Deno", 13 | "groupidentity": "Bix.Templates.Deno", 14 | "shortName": "bix.deno", 15 | "tags": { 16 | "language": "F#", 17 | "type": "project" 18 | }, 19 | "sourceName": "Worker", 20 | "preferNameDirectory": "true" 21 | } -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Angel D. Munoz", 3 | "classifications": [ 4 | "cloudflare", 5 | "worker", 6 | "fsharp", 7 | "fable", 8 | "bix" 9 | ], 10 | "description": "A basic cloudflare worker with Bix", 11 | "name": "Cloudflare Bix Worker Application", 12 | "identity": "Bix.Templates.Cloudflare", 13 | "groupidentity": "Bix.Templates.Cloudflare", 14 | "shortName": "bix.cloudflare", 15 | "tags": { 16 | "language": "F#", 17 | "type": "project" 18 | }, 19 | "sourceName": "AppName", 20 | "preferNameDirectory": "true" 21 | } -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/src/AppName.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | true 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /samples/Deno/Program.fs: -------------------------------------------------------------------------------- 1 | // For more information see https://aka.ms/fsharp-console-apps 2 | open Bix 3 | open Bix.Router 4 | open Bix.Deno 5 | 6 | [] 7 | let main argv = 8 | Server.Empty 9 | |> Server.withDevelopment true 10 | |> Server.withPort 5000 11 | |> Server.withRouter ( 12 | Router.Empty 13 | |> Router.get ("/", Handlers.home) 14 | |> Router.get ("/json", Handlers.json) 15 | |> Router.get ("/params/:name/:value", Handlers.paramsHandler) 16 | |> Router.post ("/json", Handlers.jsonPostHandler) 17 | |> Router.get ("/text", Handlers.text) 18 | |> Router.get ("/login", Handlers.login) 19 | |> Router.get ("/protected", (Handlers.checkCredentials >=> Handlers.home)) 20 | ) 21 | |> Server.run 22 | |> Promise.start 23 | 24 | 0 25 | -------------------------------------------------------------------------------- /src/Bix.Deno/Bix.Deno.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | true 6 | 1.0.0-beta-006 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Adapter** 27 | - [ ] Bix 28 | - [ ] Bix.Bun 29 | - [ ] Bix.Deno 30 | - [ ] Bix.Cloudflare 31 | 32 | **Runtime And Version** 33 | - [ ] Node -> 34 | - [ ] Bun -> 35 | - [ ] Deno -> 36 | - [ ] Cloudflare -> 37 | 38 | **Additional context** 39 | Add any other context about the problem here. 40 | -------------------------------------------------------------------------------- /src/Bix.Cloudflare/Bix.Cloudflare.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | true 6 | 1.0.0-beta-006 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /samples/Bun/Program.fs: -------------------------------------------------------------------------------- 1 | // For more information see https://aka.ms/fsharp-console-apps 2 | open Bix 3 | open Bix.Router 4 | open Bix.Bun 5 | 6 | let server = 7 | Server.Empty 8 | |> Server.withDevelopment true 9 | |> Server.withPort 5000 10 | |> Server.withRouter ( 11 | Router.Empty 12 | |> Router.get ("/", Handlers.home) 13 | |> Router.get ("/json", Handlers.json) 14 | |> Router.get ("/params/:name/:value", Handlers.paramsHandler) 15 | |> Router.post ("/json", Handlers.jsonPostHandler) 16 | |> Router.get ("/text", Handlers.text) 17 | |> Router.get ("/login", Handlers.login) 18 | |> Router.get ("/protected", (Handlers.checkCredentials >=> Handlers.home)) 19 | ) 20 | |> Server.run 21 | 22 | let mode = 23 | if server.development then 24 | "Development" 25 | else 26 | "Production" 27 | 28 | printfn $"Mode: {mode}" 29 | printfn $"Server started at {server.hostname}" 30 | -------------------------------------------------------------------------------- /src/Bix.Bun/Bix.Bun.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | true 6 | $(DefineConstants);ENABLE_URLPATTERN_POLYFILL 7 | 1.0.0-beta-006 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/Templates/Bix.Templates.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | dotnet new templates of Bix, feel free to contribute and improve if necessary 6 | Copyright 2020 Angel D. Munoz 7 | Angel Munoz 8 | 9 | 10 | net6.0 11 | true 12 | false 13 | content 14 | 15 | 16 | Template 17 | Bix.Templates 18 | 1.0.0-beta-006 19 | bix;web;app;dotnet;new;template;F#;fable;deno;bun;cloudflare;worker 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Angel D. Munoz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/Templates/templates/Bun/src/Pages.fs: -------------------------------------------------------------------------------- 1 | module Pages 2 | 3 | open Bix 4 | open Bix.Types 5 | open Bix.Handlers 6 | open Feliz.ViewEngine 7 | open Fetch 8 | 9 | type private Views = 10 | static member inline Layout(content: ReactElement, ?head: ReactElement seq, ?scripts: ReactElement seq) = 11 | let head = defaultArg head [] 12 | let scripts = defaultArg scripts [] 13 | 14 | Html.html 15 | [ Html.head [ prop.children [ yield! head ] ] 16 | Html.body [ prop.children [ content; yield! scripts ] ] ] 17 | 18 | let Home (req: Request) = 19 | Views.Layout( 20 | Html.article 21 | [ Html.nav 22 | [ Html.li [ Html.a [ prop.href "/"; prop.text "Home" ] ] 23 | Html.li [ Html.a [ prop.href "/about"; prop.text "About" ] ] ] 24 | Html.main [ Html.h1 $"Hello from {req.method} - {req.url}" ] 25 | Html.footer [] ] 26 | ) 27 | |> Render.htmlDocument 28 | 29 | let About () = 30 | Views.Layout( 31 | Html.article 32 | [ Html.nav [] 33 | Html.main [ Html.h1 $"This is the about page!" ] 34 | Html.footer [] ] 35 | ) 36 | |> Render.htmlDocument 37 | -------------------------------------------------------------------------------- /src/Templates/templates/Deno/src/Pages.fs: -------------------------------------------------------------------------------- 1 | module Pages 2 | 3 | open Bix 4 | open Bix.Types 5 | open Bix.Handlers 6 | open Feliz.ViewEngine 7 | open Fetch 8 | 9 | type private Views = 10 | static member inline Layout(content: ReactElement, ?head: ReactElement seq, ?scripts: ReactElement seq) = 11 | let head = defaultArg head [] 12 | let scripts = defaultArg scripts [] 13 | 14 | Html.html 15 | [ Html.head [ prop.children [ yield! head ] ] 16 | Html.body [ prop.children [ content; yield! scripts ] ] ] 17 | 18 | let Home (req: Request) = 19 | Views.Layout( 20 | Html.article 21 | [ Html.nav 22 | [ Html.li [ Html.a [ prop.href "/"; prop.text "Home" ] ] 23 | Html.li [ Html.a [ prop.href "/about"; prop.text "About" ] ] ] 24 | Html.main [ Html.h1 $"Hello from {req.method} - {req.url}" ] 25 | Html.footer [] ] 26 | ) 27 | |> Render.htmlDocument 28 | 29 | let About () = 30 | Views.Layout( 31 | Html.article 32 | [ Html.nav [] 33 | Html.main [ Html.h1 $"This is the about page!" ] 34 | Html.footer [] ] 35 | ) 36 | |> Render.htmlDocument 37 | -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/src/Pages.fs: -------------------------------------------------------------------------------- 1 | module Pages 2 | 3 | open Bix 4 | open Bix.Types 5 | open Bix.Handlers 6 | open Feliz.ViewEngine 7 | open Fetch 8 | 9 | type private Views = 10 | static member inline Layout(content: ReactElement, ?head: ReactElement seq, ?scripts: ReactElement seq) = 11 | let head = defaultArg head [] 12 | let scripts = defaultArg scripts [] 13 | 14 | Html.html 15 | [ Html.head [ prop.children [ yield! head ] ] 16 | Html.body [ prop.children [ content; yield! scripts ] ] ] 17 | 18 | let Home (req: Request) = 19 | Views.Layout( 20 | Html.article 21 | [ Html.nav 22 | [ Html.li [ Html.a [ prop.href "/"; prop.text "Home" ] ] 23 | Html.li [ Html.a [ prop.href "/about"; prop.text "About" ] ] ] 24 | Html.main [ Html.h1 $"Hello from {req.method} - {req.url}" ] 25 | Html.footer [] ] 26 | ) 27 | |> Render.htmlDocument 28 | 29 | let About () = 30 | Views.Layout( 31 | Html.article 32 | [ Html.nav [] 33 | Html.main [ Html.h1 $"This is the about page!" ] 34 | Html.footer [] ] 35 | ) 36 | |> Render.htmlDocument 37 | -------------------------------------------------------------------------------- /src/Bix/Bix.fsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net6.0 4 | true 5 | 1.0.0-beta-006 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/Templates/templates/Deno/src/Program.fs: -------------------------------------------------------------------------------- 1 | // For more information see https://aka.ms/fsharp-console-apps 2 | open Bix.Types 3 | open Bix 4 | open Bix.Router 5 | open Bix.Router.Saturn 6 | open Bix.Handlers 7 | open Bix.Deno 8 | 9 | let private postHandler: HttpHandler = 10 | fun next ctx -> 11 | promise { 12 | let! content = ctx.Request.json () 13 | return! (sendJson content) next ctx 14 | } 15 | 16 | let routes = 17 | router { 18 | get "/" (fun next ctx -> sendHtml (Pages.Home ctx.Request) next ctx) 19 | 20 | get "/about" (sendHtml (Pages.About())) 21 | post "/json" postHandler 22 | 23 | forward 24 | "/offers" 25 | (router { get "/" (sendText "hit get offers") }) 26 | 27 | forward 28 | "/todos" 29 | (controller { 30 | find (fun _ -> Text "Found Hit" |> Promise.lift) 31 | findOne (fun id _ -> Text $"Found Hit %A{id}" |> Promise.lift) 32 | create (fun _ -> Text $"Create Hit" |> Promise.lift) 33 | update (fun _ -> Text $"Update Hit" |> Promise.lift) 34 | updateOne (fun id _ -> Text $"Update Hit %A{id}" |> Promise.lift) 35 | delete (fun id _ -> Text $"Delete Hit %A{id}" |> Promise.lift) 36 | }) 37 | } 38 | 39 | Server.Empty 40 | |> Server.withDevelopment true 41 | |> Server.withPort 5000 42 | |> Server.withRouter routes 43 | |> Server.run 44 | |> Promise.start 45 | -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/src/Program.fs: -------------------------------------------------------------------------------- 1 | open Bix.Types 2 | open Bix 3 | open Bix.Router 4 | open Bix.Router.Saturn 5 | open Bix.Handlers 6 | open Bix.Cloudflare 7 | 8 | let private postHandler: HttpHandler = 9 | fun next ctx -> 10 | promise { 11 | let! content = ctx.Request.json () 12 | return! (sendJson content) next ctx 13 | } 14 | 15 | let routes = 16 | router { 17 | get "/" (fun next ctx -> sendHtml (Pages.Home ctx.Request) next ctx) 18 | 19 | get "/about" (sendHtml (Pages.About())) 20 | post "/json" postHandler 21 | 22 | forward 23 | "/offers" 24 | (router { get "/" (sendText "hit get offers") }) 25 | 26 | forward 27 | "/todos" 28 | (controller { 29 | find (fun _ -> Text "Found Hit" |> Promise.lift) 30 | findOne (fun id _ -> Text $"Found Hit %A{id}" |> Promise.lift) 31 | create (fun _ -> Text $"Create Hit" |> Promise.lift) 32 | update (fun _ -> Text $"Update Hit" |> Promise.lift) 33 | updateOne (fun id _ -> Text $"Update Hit %A{id}" |> Promise.lift) 34 | delete (fun id _ -> Text $"Delete Hit %A{id}" |> Promise.lift) 35 | }) 36 | } 37 | 38 | let private worker = Worker.Empty |> Worker.withRouter routes |> Worker.build 39 | 40 | // ES Modules need to export the fetch handler as per cloudflare documentation 41 | Fable.Core.JsInterop.exportDefault worker 42 | -------------------------------------------------------------------------------- /src/Templates/templates/Bun/src/Program.fs: -------------------------------------------------------------------------------- 1 | // For more information see https://aka.ms/fsharp-console-apps 2 | open Bix.Types 3 | open Bix 4 | open Bix.Router 5 | open Bix.Router.Saturn 6 | open Bix.Handlers 7 | open Bix.Bun 8 | 9 | let private postHandler: HttpHandler = 10 | fun next ctx -> 11 | promise { 12 | let! content = ctx.Request.json () 13 | return! (sendJson content) next ctx 14 | } 15 | 16 | let routes = 17 | router { 18 | get "/" (fun next ctx -> sendHtml (Pages.Home ctx.Request) next ctx) 19 | 20 | get "/about" (sendHtml (Pages.About())) 21 | post "/json" postHandler 22 | 23 | forward 24 | "/offers" 25 | (router { get "/" (sendText "hit get offers") }) 26 | 27 | forward 28 | "/todos" 29 | (controller { 30 | find (fun _ -> Text "Found Hit" |> Promise.lift) 31 | findOne (fun id _ -> Text $"Found Hit %A{id}" |> Promise.lift) 32 | create (fun _ -> Text $"Create Hit" |> Promise.lift) 33 | update (fun _ -> Text $"Update Hit" |> Promise.lift) 34 | updateOne (fun id _ -> Text $"Update Hit %A{id}" |> Promise.lift) 35 | delete (fun id _ -> Text $"Delete Hit %A{id}" |> Promise.lift) 36 | }) 37 | } 38 | 39 | 40 | let server = 41 | Server.Empty 42 | |> Server.withDevelopment true 43 | |> Server.withPort 5000 44 | |> Server.withRouter routes 45 | |> Server.run 46 | 47 | let mode = if server.development then "Development" else "Production" 48 | 49 | printfn $"Mode: {mode}" 50 | printfn $"Server started at {server.hostname}" 51 | -------------------------------------------------------------------------------- /src/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | https://github.com/AngelMunoz/fable-bun 4 | https://github.com/AngelMunoz/fable-bun.git 5 | LICENSE 6 | README.md 7 | fsharp;fable;javascript;f#;js;deno;bun; 8 | Angel Daniel Munoz Gonzalez 9 | true 10 | 11 | 12 | true 13 | true 14 | true 15 | snupkg 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 1.3.0 26 | 1.3.0 27 | 1.5.0 28 | 1.3.2 29 | 2.6.0 30 | 4.0.0 31 | 1.0.0 32 | 33 | -------------------------------------------------------------------------------- /src/Bix/Giraffe.fs: -------------------------------------------------------------------------------- 1 | module Bix.Router.Giraffe 2 | 3 | open Fable.Core 4 | open Bix.Types 5 | 6 | type GiraffeRoute = 7 | | Route of RouteDefinition 8 | | Routes of RouteDefinition list 9 | 10 | let inline route url handler = 11 | { method = All 12 | pattern = unbox url 13 | handler = handler } 14 | |> Route 15 | 16 | let inline flattenGRoutes (routeType: RouteType) (routes: GiraffeRoute list) : GiraffeRoute = 17 | routes 18 | |> List.fold 19 | (fun (prev: RouteDefinition list) next -> 20 | match next with 21 | | Route route -> { route with method = routeType } :: prev 22 | | Routes routes -> (routes |> List.map (fun r -> { r with method = routeType })) @ prev) 23 | List.empty 24 | |> Routes 25 | 26 | let inline choose (routes: GiraffeRoute list) : RouteDefinition list = 27 | [ for routes in routes do 28 | match routes with 29 | | Route route -> route 30 | | Routes routes -> yield! routes ] 31 | 32 | let inline subRoute (url: string) (routes: GiraffeRoute list) = 33 | [ for route in routes do 34 | match route with 35 | | Route route -> { route with pattern = unbox $"{url}{route.pattern}" } 36 | | Routes routes -> 37 | yield! 38 | routes 39 | |> List.map (fun route -> { route with pattern = unbox $"{url}{route.pattern}" }) ] 40 | |> Routes 41 | 42 | let inline GET (routes: GiraffeRoute list) = flattenGRoutes Get routes 43 | 44 | let inline POST (routes: GiraffeRoute list) = flattenGRoutes Post routes 45 | 46 | let inline PUT (routes: GiraffeRoute list) = flattenGRoutes Put routes 47 | 48 | let inline PATCH (routes: GiraffeRoute list) = flattenGRoutes Patch routes 49 | 50 | let inline DELETE (routes: GiraffeRoute list) = flattenGRoutes Delete routes 51 | 52 | let inline HEAD (routes: GiraffeRoute list) = flattenGRoutes Head routes 53 | 54 | let inline OPTIONS (routes: GiraffeRoute list) = flattenGRoutes Options routes 55 | 56 | let inline CUSTOM (method: string) (routes: GiraffeRoute list) = flattenGRoutes (Custom method) routes 57 | -------------------------------------------------------------------------------- /src/Bix/Router.fs: -------------------------------------------------------------------------------- 1 | [] 2 | module Bix.Router.Router 3 | 4 | open Bix.Types 5 | 6 | 7 | let inline route url handler = 8 | { method = All 9 | pattern = unbox url 10 | handler = handler } 11 | 12 | let Empty: list = List.empty 13 | 14 | let inline get 15 | (path: string, [] handler: HttpHandler) 16 | (routes: RouteDefinition list) 17 | : RouteDefinition list = 18 | { method = Get 19 | pattern = unbox path 20 | handler = handler } 21 | :: routes 22 | 23 | let inline post 24 | (path: string, [] handler: HttpHandler) 25 | (routes: RouteDefinition list) 26 | : RouteDefinition list = 27 | { method = Post 28 | pattern = unbox path 29 | handler = handler } 30 | :: routes 31 | 32 | let inline put 33 | (path: string, [] handler: HttpHandler) 34 | (routes: RouteDefinition list) 35 | : RouteDefinition list = 36 | { method = Put 37 | pattern = unbox path 38 | handler = handler } 39 | :: routes 40 | 41 | let inline delete 42 | (path: string, [] handler: HttpHandler) 43 | (routes: RouteDefinition list) 44 | : RouteDefinition list = 45 | { method = Delete 46 | pattern = unbox path 47 | handler = handler } 48 | :: routes 49 | 50 | let inline patch 51 | (path: string, [] handler: HttpHandler) 52 | (routes: RouteDefinition list) 53 | : RouteDefinition list = 54 | { method = Patch 55 | pattern = unbox path 56 | handler = handler } 57 | :: routes 58 | 59 | let inline head 60 | (path: string, [] handler: HttpHandler) 61 | (routes: RouteDefinition list) 62 | : RouteDefinition list = 63 | { method = Head 64 | pattern = unbox path 65 | handler = handler } 66 | :: routes 67 | 68 | let inline all 69 | (path: string, [] handler: HttpHandler) 70 | (routes: RouteDefinition list) 71 | : RouteDefinition list = 72 | { method = All 73 | pattern = unbox path 74 | handler = handler } 75 | :: routes 76 | 77 | let inline custom 78 | (method: string, path: string, [] handler: HttpHandler) 79 | (routes: RouteDefinition list) 80 | : RouteDefinition list = 81 | { method = Custom method 82 | pattern = unbox path 83 | handler = handler } 84 | :: routes 85 | 86 | let inline subRoute 87 | (url: string, newRoutes: RouteDefinition list -> RouteDefinition list) 88 | (routes: RouteDefinition list) 89 | = 90 | (newRoutes [] 91 | |> List.map (fun route -> { route with pattern = unbox $"{url}{route.pattern}" })) 92 | @ routes 93 | -------------------------------------------------------------------------------- /src/Bix.Bun/BixBun.fs: -------------------------------------------------------------------------------- 1 | namespace Bix.Bun 2 | 3 | open Fable.Core 4 | open Fable.Core.JsInterop 5 | 6 | open Fable.Bun 7 | open Fetch 8 | 9 | open Bix 10 | open Bix.Types 11 | 12 | type BixBunServer(server: BunServer) = 13 | 14 | interface IHostServer with 15 | override _.hostname = server.hostname |> Option.ofObj 16 | override _.port = server.port 17 | override _.development = server.development 18 | override _.env = Map.empty 19 | 20 | module Server = 21 | 22 | let inline run (args: seq) = 23 | 24 | let serverNamesObj = 25 | args 26 | |> Seq.tryPick (fun f -> 27 | match f with 28 | | ServerNames names -> Some names 29 | | _ -> None) 30 | |> Option.map (fun args -> 31 | [ for (name, args) in args do 32 | let args = keyValueList CaseRules.LowerFirst args 33 | 34 | name, args ] 35 | |> createObj) 36 | 37 | let restArgs = 38 | args 39 | |> Seq.choose (fun f -> 40 | match f with 41 | | ServerNames _ -> None 42 | | others -> Some others) 43 | |> keyValueList CaseRules.LowerFirst 44 | 45 | match serverNamesObj with 46 | | Some names -> 47 | let options = 48 | unbox Fable.Core.JS.Constructors.Object.assign ({| |}, restArgs, names) 49 | 50 | Bun.serve (options) 51 | | None -> Bun.serve (unbox restArgs) 52 | 53 | let BixHandler 54 | (server: BunServer) 55 | (req: Request) 56 | (routes: RouteDefinition list) 57 | (notFound: HttpHandler option) 58 | : JS.Promise = 59 | 60 | let notFound = defaultArg notFound Handlers.notFoundHandler 61 | let server: IHostServer = BixBunServer(server) 62 | let ctx = HttpContext(server, req, Response.create ("")) 63 | 64 | Server.getRouteMatch (ctx, server.hostname.Value, notFound, routes) 65 | |> Server.handleRouteMatch ctx 66 | 67 | let withRouter (routes: RouteDefinition list) (args: ResizeArray) = 68 | // HACK: we need to ensure that fable doesn't wrap the request handler 69 | // in an anonymnous function or we will lose "this" which equates to the 70 | // bun's server instance 71 | emitJsStatement (routes) "function handler(req) { return Server_BixHandler(this, req, $0); }" 72 | args.Add(Fetch(emitJsExpr () "handler")) 73 | args 74 | 75 | let withRouterAndNotFound 76 | (routes: RouteDefinition list) 77 | (notFound: HttpHandler) 78 | (args: ResizeArray) 79 | = 80 | // HACK: we need to ensure that fable doesn't wrap the request handler 81 | // in an anonymnous function or we will lose "this" which equates to the 82 | // bun's server instance 83 | emitJsStatement (routes, notFound) "function handler(req) { return Server_BixHandler(this, req, $0, $1); }" 84 | args.Add(Fetch(emitJsExpr () "handler")) 85 | args 86 | -------------------------------------------------------------------------------- /src/Bix.Cloudflare/Worker.fs: -------------------------------------------------------------------------------- 1 | module Bix.Cloudflare.Worker 2 | 3 | open Fable.Core 4 | open Browser.Types 5 | open Bix 6 | open Bix.Handlers 7 | open Bix.Types 8 | open Fetch 9 | 10 | type FetchEvent = 11 | inherit Event 12 | 13 | abstract request: Request 14 | abstract clientId: string 15 | abstract preloadResponse: JS.Promise option 16 | abstract replacesClientId: string 17 | abstract resultingClientId: string 18 | 19 | abstract waitUntil: unit -> JS.Promise 20 | abstract respondWith: U2> -> unit 21 | abstract respondWith: JS.Promise -> unit 22 | 23 | type BixWorkerArgs = Fetch of response: (Request -> JS.Promise) 24 | 25 | type WorkerServer(url: URL) = 26 | interface IHostServer with 27 | override _.hostname: string option = url.origin |> Option.ofObj 28 | override _.port: int = url.port |> int 29 | override _.development: bool = false 30 | override _.env: Map = Map.empty 31 | 32 | let BixHandler (routes: RouteDefinition list) (notFound: HttpHandler option) (request: Request) = 33 | let notFound = defaultArg notFound notFoundHandler 34 | let url = Browser.Url.URL.Create request.url 35 | let server: IHostServer = WorkerServer(url) 36 | let ctx = HttpContext(server, request, Response.create ("")) 37 | 38 | Server.getRouteMatch (ctx, server.hostname.Value, notFound, routes) 39 | |> (Server.handleRouteMatch ctx) 40 | 41 | let Empty = ResizeArray() 42 | 43 | let withRouter (routes: RouteDefinition list) (args: ResizeArray) = 44 | #if DEBUG 45 | 46 | for route in routes |> List.sortBy (fun r -> unbox r.pattern) do 47 | let verb = route.method.asString 48 | let pattern = route.pattern 49 | printfn $"Registered: {verb} -> {pattern}" 50 | #endif 51 | args.Add(Fetch(BixHandler routes None)) 52 | args 53 | 54 | let withRouterAndNotFound (routes: RouteDefinition list) (notFound: HttpHandler) (args: ResizeArray) = 55 | #if DEBUG 56 | 57 | for route in routes |> List.sortBy (fun r -> unbox r.pattern) do 58 | let verb = route.method.asString 59 | let pattern = route.pattern 60 | printfn $"Registered: {verb} -> {pattern}" 61 | #endif 62 | args.Add(Fetch(BixHandler routes (Some notFound))) 63 | args 64 | 65 | let inline build (args: seq) : {| fetch: Request -> JS.Promise |} = 66 | let handler = 67 | args 68 | |> Seq.tryPick (fun f -> 69 | match f with 70 | | Fetch handler -> Some handler) 71 | 72 | match handler with 73 | | Some handler -> {| fetch = handler |} 74 | | None -> 75 | eprintfn "A Handler was not assigned for this worker" 76 | eprintfn "Please ensure you called `Worker.withRouter routes |> Worker.run` somewhere in your worker" 77 | 78 | eprintfn 79 | "Or that at least you provided a custom handler via `Worker.run [Fetch (fun event -> Response.create())]`" 80 | 81 | failwith "Missing Handler" 82 | -------------------------------------------------------------------------------- /src/Bix.Deno/BixDeno.fs: -------------------------------------------------------------------------------- 1 | namespace Bix.Deno 2 | 3 | open Fable.Core 4 | open Fable.Core.JsInterop 5 | 6 | open Fetch 7 | 8 | open Fable.Deno 9 | open Fable.Deno.Http 10 | 11 | open Bix 12 | open Bix.Types 13 | 14 | type BixDenoServer(server: Server) = 15 | 16 | interface IHostServer with 17 | override _.hostname = 18 | server.addrs 19 | |> Array.tryHead 20 | |> Option.map (fun f -> 21 | let address: NetAddr = unbox f 22 | address.hostname) 23 | 24 | override _.port = 25 | server.addrs 26 | |> Array.tryHead 27 | |> Option.map (fun f -> 28 | let address: NetAddr = unbox f 29 | address.port) 30 | |> Option.defaultValue 0 31 | 32 | override _.development = true 33 | override _.env = Map.empty 34 | 35 | module Server = 36 | 37 | let inline run (args: seq) = 38 | let initOptions = 39 | args 40 | |> Seq.choose (fun arg -> 41 | match arg with 42 | | Port port -> Some(Port port) 43 | | Hostname hostname -> Some(Hostname hostname) 44 | | Error err -> Some(Error err) 45 | | Fetch handler -> Some(Fetch handler) 46 | | _ -> None) 47 | |> keyValueList CaseRules.LowerFirst 48 | :?> {| port: int option 49 | hostname: string option 50 | error: exn -> U2> 51 | fetch: Request -> U2> |} 52 | 53 | 54 | Http.serve (initOptions.fetch, unbox initOptions) 55 | 56 | let BixHandler 57 | (server: Server) 58 | (req: Request) 59 | (connInfo: ConnInfo) 60 | (routes: RouteDefinition list) 61 | (notFound: HttpHandler option) 62 | : JS.Promise = 63 | let notFound = defaultArg notFound Handlers.notFoundHandler 64 | let server: IHostServer = BixDenoServer(server) 65 | let ctx = HttpContext(server, req, Response.create ("")) 66 | let reqUrl = Browser.Url.URL.Create ctx.Request.url 67 | 68 | Server.getRouteMatch (ctx, reqUrl.origin, notFound, routes) 69 | |> Server.handleRouteMatch ctx 70 | 71 | let withRouter (routes: RouteDefinition list) (args: ResizeArray) = 72 | // HACK: we need to ensure that fable doesn't wrap the request handler 73 | // in an anonymnous function or we will lose "this" which equates to the 74 | // bun's server instance 75 | emitJsStatement 76 | (routes) 77 | "function handler(req, connInfo) { return Server_BixHandler(this, req, connInfo, $0); }" 78 | 79 | args.Add(Fetch(emitJsExpr () "handler")) 80 | args 81 | 82 | let withRouterAndNotFound 83 | (routes: RouteDefinition list) 84 | (notFound: HttpHandler) 85 | (args: ResizeArray) 86 | = 87 | // HACK: we need to ensure that fable doesn't wrap the request handler 88 | // in an anonymnous function or we will lose "this" which equates to the 89 | // bun's server instance 90 | emitJsStatement 91 | (routes, notFound) 92 | "function handler(req, connInfo) { return Server_BixHandler(this, req, connInfo, $0, $1); }" 93 | 94 | args.Add(Fetch(emitJsExpr () "handler")) 95 | args 96 | -------------------------------------------------------------------------------- /samples/Worker/src/Worker.fs: -------------------------------------------------------------------------------- 1 | module Worker 2 | 3 | open Bix 4 | open Bix.Router 5 | open Bix.Types 6 | open Bix.Handlers 7 | open Bix.Cloudflare 8 | 9 | let private postHandler: HttpHandler = 10 | fun next ctx -> 11 | promise { 12 | let! content = ctx.Request.json () 13 | return! (sendJson content) next ctx 14 | } 15 | 16 | 17 | let private basicRouter = 18 | Router.Empty 19 | |> Router.get ("/basic", sendHtml "

Hello, World!

") 20 | |> Router.post ("/text", postHandler) 21 | |> Router.patch ("/json", sendJson {| message = "posted to /json" |}) 22 | |> Router.subRoute ( 23 | "/profiles", 24 | (Router.get ("/", sendText "profiles") 25 | >> Router.post ("/", sendText "create profile") 26 | >> Router.put ("/:id", sendText "update profile") 27 | >> Router.delete ("/:id", sendText "delete profile")) 28 | ) 29 | 30 | [] 31 | module GiraffeLike = 32 | 33 | open Bix.Router.Giraffe 34 | 35 | let routes = 36 | choose 37 | [ route "/g" (sendText "g") 38 | GET [ route "/g1" (sendText "G1") ] 39 | POST [ route "/g2" postHandler ] 40 | subRoute 41 | "/products" 42 | [ GET 43 | [ route "/" (sendText "hit get all products") 44 | route "/:id" (sendText "hit get id product") ] 45 | POST 46 | [ route "/" (sendText "hit products post") 47 | route "/:id/category" (sendText "hit products id category post") ] 48 | subRoute 49 | "/:id/offers" 50 | [ route "/admin" (sendText "hit all offers for product id admin") 51 | GET 52 | [ route "" (sendText "hit get offers") 53 | route "/:id" (sendText "hit get offer id get") ] ] ] ] 54 | 55 | [] 56 | module SaturnLike = 57 | open Bix.Router.Saturn 58 | 59 | let routes = 60 | router { 61 | get "/" (sendHtml "

Hello, World!

") 62 | post "/json" postHandler 63 | 64 | forward 65 | "/offers" 66 | (router { 67 | get "/" (sendText "hit get offers") 68 | forward "/:id/tags" (router { get "/" (sendText "hit get offers id tags") }) 69 | }) 70 | 71 | forward 72 | "/todos" 73 | (controller { 74 | find (fun _ -> Text "Found Hit" |> Promise.lift) 75 | findOne (fun id _ -> Text $"Found Hit %A{id}" |> Promise.lift) 76 | create (fun _ -> Text $"Create Hit" |> Promise.lift) 77 | update (fun _ -> Text $"Update Hit" |> Promise.lift) 78 | updateOne (fun id _ -> Text $"Update Hit %A{id}" |> Promise.lift) 79 | delete (fun id _ -> Text $"Delete Hit %A{id}" |> Promise.lift) 80 | }) 81 | } 82 | 83 | let private worker = 84 | Worker.Empty 85 | |> Worker.withRouter [ yield! basicRouter; yield! SaturnLike.routes; yield! GiraffeLike.routes ] 86 | |> Worker.build 87 | 88 | // ES Modules need to export the fetch handler as per cloudflare documentation 89 | Fable.Core.JsInterop.exportDefault worker 90 | -------------------------------------------------------------------------------- /samples/Deno/deno.lock: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2", 3 | "remote": { 4 | "https://deno.land/std@0.193.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", 5 | "https://deno.land/std@0.193.0/async/abortable.ts": "fd682fa46f3b7b16b4606a5ab52a7ce309434b76f820d3221bdfb862719a15d7", 6 | "https://deno.land/std@0.193.0/async/deadline.ts": "58f72a3cc0fcb731b2cc055ba046f4b5be3349ff6bf98f2e793c3b969354aab2", 7 | "https://deno.land/std@0.193.0/async/debounce.ts": "adab11d04ca38d699444ac8a9d9856b4155e8dda2afd07ce78276c01ea5a4332", 8 | "https://deno.land/std@0.193.0/async/deferred.ts": "42790112f36a75a57db4a96d33974a936deb7b04d25c6084a9fa8a49f135def8", 9 | "https://deno.land/std@0.193.0/async/delay.ts": "73aa04cec034c84fc748c7be49bb15cac3dd43a57174bfdb7a4aec22c248f0dd", 10 | "https://deno.land/std@0.193.0/async/mod.ts": "f04344fa21738e5ad6bea37a6bfffd57c617c2d372bb9f9dcfd118a1b622e576", 11 | "https://deno.land/std@0.193.0/async/mux_async_iterator.ts": "70c7f2ee4e9466161350473ad61cac0b9f115cff4c552eaa7ef9d50c4cbb4cc9", 12 | "https://deno.land/std@0.193.0/async/pool.ts": "f1b8d3df4d7fd3c73f8cbc91cc2e8b8e950910f1eab94230b443944d7584c657", 13 | "https://deno.land/std@0.193.0/async/retry.ts": "b1ccf653954a4e52b3d9731e57d18b864e689a7462e78fb20440b11be9905080", 14 | "https://deno.land/std@0.193.0/async/tee.ts": "47e42d35f622650b02234d43803d0383a89eb4387e1b83b5a40106d18ae36757", 15 | "https://deno.land/std@0.193.0/datetime/to_imf.ts": "8f9c0af8b167031ffe2e03da01a12a3b0672cc7562f89c61942a0ab0129771b2", 16 | "https://deno.land/std@0.193.0/encoding/base64.ts": "144ae6234c1fbe5b68666c711dc15b1e9ee2aef6d42b3b4345bf9a6c91d70d0d", 17 | "https://deno.land/std@0.193.0/http/_negotiation/common.ts": "14d1a52427ab258a4b7161cd80e1d8a207b7cc64b46e911780f57ead5f4323c6", 18 | "https://deno.land/std@0.193.0/http/_negotiation/encoding.ts": "ff747d107277c88cb7a6a62a08eeb8d56dad91564cbcccb30694d5dc126dcc53", 19 | "https://deno.land/std@0.193.0/http/_negotiation/language.ts": "7bcddd8db3330bdb7ce4fc00a213c5547c1968139864201efd67ef2d0d51887d", 20 | "https://deno.land/std@0.193.0/http/_negotiation/media_type.ts": "58847517cd549384ad677c0fe89e0a4815be36fe7a303ea63cee5f6a1d7e1692", 21 | "https://deno.land/std@0.193.0/http/cookie.ts": "934f92d871d50852dbd7a836d721df5a9527b14381db16001b40991d30174ee4", 22 | "https://deno.land/std@0.193.0/http/cookie_map.ts": "d148a5eaf35f19905dd5104126fa47ac71105306dd42f129732365e43108b28a", 23 | "https://deno.land/std@0.193.0/http/etag.ts": "6ad8abbbb1045aabf2307959a2c5565054a8bf01c9824ddee836b1ff22706a58", 24 | "https://deno.land/std@0.193.0/http/http_errors.ts": "bbda34819060af86537cecc9dc8e045f877130808b7e7acde4197c5328e852d0", 25 | "https://deno.land/std@0.193.0/http/http_status.ts": "8a7bcfe3ac025199ad804075385e57f63d055b2aed539d943ccc277616d6f932", 26 | "https://deno.land/std@0.193.0/http/method.ts": "e66c2a015cb46c21ab0bb3589aa4fca43143a506cb324ffdfd42d2edef7bc0c4", 27 | "https://deno.land/std@0.193.0/http/mod.ts": "525fb1b3b1e0d297facb08d8cf84c4908f8fadfc3f3f22809185510967279ef7", 28 | "https://deno.land/std@0.193.0/http/negotiation.ts": "46e74a6bad4b857333a58dc5b50fe8e5a4d5267e97292293ea65f980bd918086", 29 | "https://deno.land/std@0.193.0/http/server.ts": "1b23463b5b36e4eebc495417f6af47a6f7d52e3294827a1226d2a1aab23d9d20", 30 | "https://deno.land/std@0.193.0/http/server_sent_event.ts": "1f3597d175e8935123306a24d7f4423a463667a70953d17b4115af1880459d55", 31 | "https://deno.land/std@0.193.0/http/user_agent.ts": "6f4308670f261118cc6a1518bf37431a5b4f21322b4a4edf0963e182264ce404" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [bun.sh]: https://bun.sh 2 | [deno]: https://deno.land 3 | [giraffe]: https://giraffe.wiki 4 | [saturn]: https://github.com/SaturnFramework/Saturn 5 | [fable]: https://fable.io 6 | [fable.bun]: https://github.com/AngelMunoz/fable-bun 7 | [fable.deno]: https://github.com/AngelMunoz/fable-deno 8 | [cloudflare workers]: https://developers.cloudflare.com/workers/ 9 | 10 | # Bix 11 | 12 | > the "**_Bix_**" name is just a _codename_ for now (until I decide it's good to go). 13 | 14 | > ## Templates 15 | > 16 | > `dotnet new --install Bix.Templates::*` 17 | > 18 | > - `dotnet new bix.bun -o BunProject` 19 | > - `dotnet new bix.cloudflare -o CloudFlareWorker` 20 | > - `dotnet new bix.deno -o DenoProject` 21 | 22 | An F# microframework that provides a router and http handler abstractions for web frameworks that work with a `Request -> Response` http server model. 23 | 24 | Examples of runtimes that work with this model: 25 | 26 | - [Bun.sh] -> [Fable.Bun] + Bix.Bun 27 | - [Deno] -> [Fable.Deno] + Bix.Deno 28 | - Service Workers 29 | - [Cloudflare Workers] -> Bix.Cloudflare 30 | - Browser Service Worker 31 | 32 | This microframework is heavily inspired by [Giraffe], and [Saturn] frameworks from F# land so if you have ever used that server model then Bix will feel fairly similar. 33 | 34 | An hypotetical example could be like the following code: 35 | 36 | ```fsharp 37 | // define a function that takes HttpHandlers to satisfy existing handler constrains 38 | let authenticateOrRedirect (authenticatedRoute: HttpHandler, notAuthenticatedRoute: HttpHandler) = 39 | Handlers.authenticateUser 40 | authenticatedRoute 41 | notAuthenticatedRoute 42 | 43 | // compose different handlers for code reusability 44 | // and granular control of handler execution 45 | let checkAdminCredentials successRoute = 46 | authenticateOrRedirect (successRoute, Admin.Login) 47 | >=> Handlers.requiresAdmin 48 | 49 | let checkUserCredentials successRoute = 50 | authenticateOrRedirect (successRoute, Views.Login) 51 | >=> Handlers.requiresUserOrAbove 52 | 53 | // define routes for this application 54 | let routes = 55 | // check the Cloud flare Worker sample/tempalte to see other router options 56 | // basic, giraffe, and saturn like 57 | Router.Empty 58 | |> Router.get("/", authenticateOrRedirect >=> Views.Landing) 59 | |> Router.get ("/login", authenticateOrRedirect >=> Views.Login) 60 | |> Router.get ("/me", checkUserCredentials(Views.Login)) 61 | |> Router.get ("/portal", checkUserCredentials(Views.Portal)) 62 | |> Router.get ("/admin", checkAdminCredentials(Admin.Portal)) 63 | |> Router.post ("/users", checkAdminCredentials(Api.Users.Create >=> negotiateContent)) 64 | |> Router.patch ("/users/:id", checkAdminCredentials(Api.Users.Update >=> negotiateContent)) 65 | 66 | // Start the web server 67 | Server.Empty 68 | |> Server.withPort 5000 69 | |> Server.withDevelopment true 70 | |> Server.withRouter routes 71 | |> Server.run 72 | ``` 73 | 74 | The idea is to create simple and single purposed functions that work like middleware so you can organize and re-use 75 | 76 | ## Adapters 77 | 78 | Bix currently has two adapters 79 | 80 | - Bix.Deno 81 | - Bix.Bun 82 | 83 | Adapters under investigation: 84 | 85 | - Bix.ServiceWorker 86 | - Bix.CloudflareWorker 87 | 88 | # Development 89 | 90 | This project is developed with VSCode in Linux/Windows/WSL but either rider, and visual studio should work just fine. 91 | 92 | ## Requirements 93 | 94 | - .NET6 and above - https://get.dot.net 95 | - Bun - [bun.sh] - (in case of running bun) 96 | - Deno - [deno] - (in case of running deno) 97 | 98 | ## Try the samples 99 | 100 | Depending on what you want to try change the directory to your selected sample, example: `cd samples/Bix.Bun.Sample` and run one of the following commands 101 | 102 | 1. `dotnet tool restore` (run once per clone) 103 | 2. start the project 104 | - `bun start` 105 | - `deno task start` 106 | 107 | both commands will restore the projects and run fable, bun/deno in watch mode. 108 | -------------------------------------------------------------------------------- /Bix.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30114.105 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1646643F-9D0C-4008-B458-CE928A42875B}" 7 | EndProject 8 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Bix", "src\Bix\Bix.fsproj", "{381119FB-56CE-4D0D-906A-63440A146786}" 9 | EndProject 10 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Bix.Deno", "src\Bix.Deno\Bix.Deno.fsproj", "{B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F}" 11 | EndProject 12 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Bix.Bun", "src\Bix.Bun\Bix.Bun.fsproj", "{C0CEDF08-7966-4871-80F9-018B8283332E}" 13 | EndProject 14 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Bix.Cloudflare", "src\Bix.Cloudflare\Bix.Cloudflare.fsproj", "{363C568F-E924-42E3-81F4-3F9F0A05899D}" 15 | EndProject 16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{A4F85863-D799-46DE-A953-DF376C20D5AE}" 17 | EndProject 18 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Deno", "samples\Deno\Deno.fsproj", "{1A6D2D92-B8A8-4009-A9E3-22424823D340}" 19 | EndProject 20 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Bun", "samples\Bun\Bun.fsproj", "{1EEDC08B-85D0-4347-B2D5-514660868E38}" 21 | EndProject 22 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Worker", "Worker", "{A2BD48CF-2646-4194-8286-5737D5B8995A}" 23 | EndProject 24 | Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Worker", "samples\Worker\src\Worker.fsproj", "{777BEEFD-0C58-49A7-B6FD-7CDED6E108AE}" 25 | EndProject 26 | Global 27 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 28 | Debug|Any CPU = Debug|Any CPU 29 | Release|Any CPU = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 35 | {381119FB-56CE-4D0D-906A-63440A146786}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 36 | {381119FB-56CE-4D0D-906A-63440A146786}.Debug|Any CPU.Build.0 = Debug|Any CPU 37 | {381119FB-56CE-4D0D-906A-63440A146786}.Release|Any CPU.ActiveCfg = Release|Any CPU 38 | {381119FB-56CE-4D0D-906A-63440A146786}.Release|Any CPU.Build.0 = Release|Any CPU 39 | {B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 40 | {B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F}.Debug|Any CPU.Build.0 = Debug|Any CPU 41 | {B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F}.Release|Any CPU.ActiveCfg = Release|Any CPU 42 | {B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F}.Release|Any CPU.Build.0 = Release|Any CPU 43 | {C0CEDF08-7966-4871-80F9-018B8283332E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 44 | {C0CEDF08-7966-4871-80F9-018B8283332E}.Debug|Any CPU.Build.0 = Debug|Any CPU 45 | {C0CEDF08-7966-4871-80F9-018B8283332E}.Release|Any CPU.ActiveCfg = Release|Any CPU 46 | {C0CEDF08-7966-4871-80F9-018B8283332E}.Release|Any CPU.Build.0 = Release|Any CPU 47 | {1A6D2D92-B8A8-4009-A9E3-22424823D340}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 48 | {1A6D2D92-B8A8-4009-A9E3-22424823D340}.Debug|Any CPU.Build.0 = Debug|Any CPU 49 | {1A6D2D92-B8A8-4009-A9E3-22424823D340}.Release|Any CPU.ActiveCfg = Release|Any CPU 50 | {1A6D2D92-B8A8-4009-A9E3-22424823D340}.Release|Any CPU.Build.0 = Release|Any CPU 51 | {1EEDC08B-85D0-4347-B2D5-514660868E38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 52 | {1EEDC08B-85D0-4347-B2D5-514660868E38}.Debug|Any CPU.Build.0 = Debug|Any CPU 53 | {1EEDC08B-85D0-4347-B2D5-514660868E38}.Release|Any CPU.ActiveCfg = Release|Any CPU 54 | {1EEDC08B-85D0-4347-B2D5-514660868E38}.Release|Any CPU.Build.0 = Release|Any CPU 55 | {777BEEFD-0C58-49A7-B6FD-7CDED6E108AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 56 | {777BEEFD-0C58-49A7-B6FD-7CDED6E108AE}.Debug|Any CPU.Build.0 = Debug|Any CPU 57 | {777BEEFD-0C58-49A7-B6FD-7CDED6E108AE}.Release|Any CPU.ActiveCfg = Release|Any CPU 58 | {777BEEFD-0C58-49A7-B6FD-7CDED6E108AE}.Release|Any CPU.Build.0 = Release|Any CPU 59 | {363C568F-E924-42E3-81F4-3F9F0A05899D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 60 | {363C568F-E924-42E3-81F4-3F9F0A05899D}.Debug|Any CPU.Build.0 = Debug|Any CPU 61 | {363C568F-E924-42E3-81F4-3F9F0A05899D}.Release|Any CPU.ActiveCfg = Release|Any CPU 62 | {363C568F-E924-42E3-81F4-3F9F0A05899D}.Release|Any CPU.Build.0 = Release|Any CPU 63 | EndGlobalSection 64 | GlobalSection(NestedProjects) = preSolution 65 | {381119FB-56CE-4D0D-906A-63440A146786} = {1646643F-9D0C-4008-B458-CE928A42875B} 66 | {B3B6FAB5-165F-4862-8EB9-CE474DAA5E8F} = {1646643F-9D0C-4008-B458-CE928A42875B} 67 | {C0CEDF08-7966-4871-80F9-018B8283332E} = {1646643F-9D0C-4008-B458-CE928A42875B} 68 | {1A6D2D92-B8A8-4009-A9E3-22424823D340} = {A4F85863-D799-46DE-A953-DF376C20D5AE} 69 | {1EEDC08B-85D0-4347-B2D5-514660868E38} = {A4F85863-D799-46DE-A953-DF376C20D5AE} 70 | {A2BD48CF-2646-4194-8286-5737D5B8995A} = {A4F85863-D799-46DE-A953-DF376C20D5AE} 71 | {777BEEFD-0C58-49A7-B6FD-7CDED6E108AE} = {A2BD48CF-2646-4194-8286-5737D5B8995A} 72 | {363C568F-E924-42E3-81F4-3F9F0A05899D} = {1646643F-9D0C-4008-B458-CE928A42875B} 73 | EndGlobalSection 74 | EndGlobal 75 | -------------------------------------------------------------------------------- /src/Bix/Saturn.fs: -------------------------------------------------------------------------------- 1 | module Bix.Router.Saturn 2 | 3 | open Fable.Core 4 | open Bix.Types 5 | 6 | let inline itemsHandler (handler: HttpContext -> JS.Promise) (next: HttpFunc) (ctx: HttpContext) = 7 | handler ctx 8 | |> Promise.map (fun bixRes -> 9 | ctx.SetStarted true 10 | Some bixRes) 11 | 12 | let inline singleItemhandler 13 | (handler: string option -> HttpContext -> JS.Promise) 14 | (next: HttpFunc) 15 | (ctx: HttpContext) 16 | = 17 | handler (ctx.PathParams "id") ctx 18 | |> Promise.map (fun bixRes -> 19 | ctx.SetStarted true 20 | Some bixRes) 21 | 22 | type ControllerBuilder() = 23 | member inline _.Yield _ = [] 24 | 25 | [] 26 | member inline _.Find(state, [] handler: HttpContext -> JS.Promise) = 27 | 28 | { method = Get 29 | pattern = unbox "" 30 | handler = itemsHandler handler } 31 | :: state 32 | 33 | [] 34 | member inline _.FindOne 35 | ( 36 | state, 37 | [] handler: string option -> HttpContext -> JS.Promise 38 | ) = 39 | { method = Get 40 | pattern = unbox "/:id" 41 | handler = singleItemhandler handler } 42 | :: state 43 | 44 | [] 45 | member inline _.Create(state, [] handler: HttpContext -> JS.Promise) = 46 | { method = Post 47 | pattern = unbox "" 48 | handler = itemsHandler handler } 49 | :: state 50 | 51 | [] 52 | member inline _.Update(state, [] handler: HttpContext -> JS.Promise) = 53 | { method = Put 54 | pattern = unbox "" 55 | handler = itemsHandler handler } 56 | :: state 57 | 58 | [] 59 | member inline _.UpdateOne 60 | ( 61 | state, 62 | [] handler: string option -> HttpContext -> JS.Promise 63 | ) = 64 | { method = Put 65 | pattern = unbox "/:id" 66 | handler = singleItemhandler handler } 67 | :: state 68 | 69 | [] 70 | member inline _.Delete(state, [] handler: HttpContext -> JS.Promise) = 71 | { method = Delete 72 | pattern = unbox "" 73 | handler = itemsHandler handler } 74 | :: state 75 | 76 | [] 77 | member inline _.Delete(state, [] handler: string option -> HttpContext -> JS.Promise) = 78 | { method = Delete 79 | pattern = unbox "/:id" 80 | handler = singleItemhandler handler } 81 | :: state 82 | 83 | member inline _.Run(state) : RouteDefinition list = state 84 | 85 | type RouterBuilder() = 86 | 87 | member inline _.Yield _ = [] 88 | 89 | [] 90 | member inline _.Get(state, path: string, [] handler: HttpHandler) = 91 | { method = Get 92 | pattern = unbox path 93 | handler = handler } 94 | :: state 95 | 96 | [] 97 | member inline _.Post(state, path: string, [] handler: HttpHandler) = 98 | { method = Post 99 | pattern = unbox path 100 | handler = handler } 101 | :: state 102 | 103 | [] 104 | member inline _.Put(state, path: string, [] handler: HttpHandler) = 105 | { method = Put 106 | pattern = unbox path 107 | handler = handler } 108 | :: state 109 | 110 | [] 111 | member inline _.Patch(state, path: string, [] handler: HttpHandler) = 112 | { method = Patch 113 | pattern = unbox path 114 | handler = handler } 115 | :: state 116 | 117 | [] 118 | member inline _.Delete(state, path: string, [] handler: HttpHandler) = 119 | { method = Delete 120 | pattern = unbox path 121 | handler = handler } 122 | :: state 123 | 124 | [] 125 | member inline _.Delete(state, method: string, path: string, [] handler: HttpHandler) = 126 | { method = Custom method 127 | pattern = unbox path 128 | handler = handler } 129 | :: state 130 | 131 | [] 132 | member inline _.Forward(state: RouteDefinition list, url: string, routes: RouteDefinition list) = 133 | 134 | let routes = 135 | routes 136 | |> List.map (fun r -> { r with pattern = unbox ($"{url}{r.pattern}") }) 137 | |> List.append state 138 | 139 | routes 140 | 141 | member inline _.Run(state) : RouteDefinition list = state 142 | 143 | let router = RouterBuilder() 144 | let controller = ControllerBuilder() 145 | -------------------------------------------------------------------------------- /src/Bix/Bix.fs: -------------------------------------------------------------------------------- 1 | module Bix.Server 2 | 3 | open URLPattern 4 | open Fable.Core 5 | open Fable.Core.JsInterop 6 | open Fetch 7 | 8 | open Bix.Types 9 | open Bix.Handlers 10 | 11 | 12 | let Empty = ResizeArray() 13 | 14 | let inline BixArgs (args: seq) = ResizeArray(args) 15 | 16 | let inline withPort (port: int) (args: ResizeArray) = 17 | args.Add(Port port) 18 | args 19 | 20 | let inline withHostname (hostname: string) (args: ResizeArray) = 21 | args.Add(Hostname hostname) 22 | args 23 | 24 | let inline withBaseURI (baseURI: string) (args: ResizeArray) = 25 | args.Add(BaseURI baseURI) 26 | args 27 | 28 | let inline withMaxRequestBodySize (maxRequestBodySize: float) (args: ResizeArray) = 29 | args.Add(MaxRequestBodySize maxRequestBodySize) 30 | args 31 | 32 | let inline withDevelopment (development: bool) (args: ResizeArray) = 33 | args.Add(Development development) 34 | args 35 | 36 | let inline withKeyFile (keyFile: string) (args: ResizeArray) = 37 | args.Add(KeyFile keyFile) 38 | args 39 | 40 | let inline withCertFile (certFile: string) (args: ResizeArray) = 41 | args.Add(CertFile certFile) 42 | args 43 | 44 | let inline withPassphrase (passphrase: string) (args: ResizeArray) = 45 | args.Add(Passphrase passphrase) 46 | args 47 | 48 | let inline withCaFile (caFile: string) (args: ResizeArray) = 49 | args.Add(CaFile caFile) 50 | args 51 | 52 | let inline withDhParamsFile (dhParamsFile: string) (args: ResizeArray) = 53 | args.Add(DhParamsFile dhParamsFile) 54 | args 55 | 56 | let inline withLowMemoryMode (lowMemoryMode: bool) (args: ResizeArray) = 57 | args.Add(LowMemoryMode lowMemoryMode) 58 | args 59 | 60 | let inline withServerNames (serverNames: (string * BixServerArgs list) list) (args: ResizeArray) = 61 | args.Add(ServerNames serverNames) 62 | args 63 | 64 | let inline withFetch (fetch: RequestHandler) (args: ResizeArray) = 65 | args.Add(Fetch fetch) 66 | args 67 | 68 | let inline withErrorHandler (errHandler: RequestErrorHandler) (args: ResizeArray) = 69 | args.Add(Error errHandler) 70 | args 71 | 72 | 73 | let patternOptions (baseUrl: string, route: RouteDefinition) = 74 | unbox 75 | {| pathname = route.pattern 76 | search = "*" 77 | hash = "*" |} 78 | 79 | let getRouteMatch (ctx: HttpContext, baseUrl: string, notFound: HttpHandler, routes: RouteDefinition list) = 80 | 81 | let routes = 82 | routes 83 | |> List.filter (fun route -> URLPattern(patternOptions (baseUrl, route)).test (unbox ctx.Request.url)) 84 | 85 | if routes.Length > 1 then 86 | routes 87 | |> List.tryFind (fun r -> r.method = All || r.method.asString = ctx.Request.method) 88 | |> Option.map (fun r -> Found r) 89 | |> Option.orElse (Some MethodNotAllowed) 90 | else 91 | routes 92 | |> List.tryFind (fun r -> r.method = All || r.method.asString = ctx.Request.method) 93 | |> Option.map (fun r -> Found r) 94 | |> Option.orElse (Some NotFound) 95 | 96 | |> function 97 | | Some(Found route) -> 98 | let pattern = URLPattern(patternOptions (baseUrl, route)) 99 | pattern.exec (!!ctx.Request.url) |> ctx.SetPattern 100 | route.handler (fun _ -> Promise.lift None) ctx 101 | | Some MethodNotAllowed -> Handlers.setStatusCode 405 (fun _ -> Promise.lift None) ctx 102 | | None 103 | | Some NotFound -> notFound (fun _ -> Promise.lift None) ctx 104 | 105 | let handleRouteMatch (ctx: HttpContext) (bixResponse: JS.Promise) : JS.Promise = 106 | promise { 107 | let! response = bixResponse 108 | let contentType = 109 | ctx.Response.Headers.ContentType |> Option.defaultValue "text/plain" 110 | let status = ctx.Response.Status 111 | let options = [ Status status ] 112 | 113 | return 114 | match response with 115 | | None -> BixResponse.NoValue(contentType, options) 116 | | Some result -> 117 | match result with 118 | | Text value -> BixResponse.OnText(value, options) 119 | | Html value -> BixResponse.OnHtml(value, options) 120 | | Json value -> BixResponse.OnJson(value, options) 121 | | JsonOptions(value, encoder) -> BixResponse.OnJsonOptions(value, encoder, options) 122 | | Blob(content, mimeType) -> BixResponse.OnBlob(content, mimeType, options) 123 | | ArrayBufferView(content, mimeType) -> BixResponse.OnArrayBufferView(content, mimeType, options) 124 | | ArrayBuffer(content, mimeType) -> BixResponse.OnArrayBuffer(content, mimeType, options) 125 | | BixResponse.Custom(content, args) -> 126 | BixResponse.OnCustom(content, contentType, Status status :: options @ args) 127 | } 128 | -------------------------------------------------------------------------------- /src/Bix/Handlers.fs: -------------------------------------------------------------------------------- 1 | module Bix.Handlers 2 | 3 | open Fable.Core 4 | open Fetch 5 | open Browser.Types 6 | 7 | open Bix.Types 8 | 9 | 10 | let sendJson<'T> (value: 'T) : HttpHandler = 11 | fun next ctx -> 12 | ctx.SetStarted true 13 | Promise.lift (Some(Json value)) 14 | 15 | let encodeJson<'T> (value: 'T, encoder: 'T -> string) : HttpHandler = 16 | fun next ctx -> 17 | ctx.SetStarted true 18 | 19 | let jsonResult = JsonOptions(value, unbox encoder) |> Some 20 | Promise.lift jsonResult 21 | 22 | let sendText (value: string) : HttpHandler = 23 | fun next ctx -> 24 | ctx.SetStarted true 25 | Promise.lift (Some(Text value)) 26 | 27 | let sendHtml (value: string) : HttpHandler = 28 | fun next ctx -> 29 | ctx.SetStarted true 30 | Promise.lift (Some(Html value)) 31 | 32 | let setContentType (contentType: string) : HttpHandler = 33 | fun next ctx -> 34 | ctx.Response.Headers.append ("content-type", contentType) 35 | let headers = ctx.Response.Headers :?> seq |> Array.ofSeq 36 | 37 | ctx.SetResponse( 38 | Response.create ( 39 | "", 40 | [ Headers headers 41 | Status ctx.Response.Status 42 | StatusText ctx.Response.StatusText ] 43 | ) 44 | ) 45 | 46 | next ctx 47 | 48 | let setStatusCode (code: int) : HttpHandler = 49 | fun next ctx -> 50 | let headers = ctx.Response.Headers :?> seq |> Array.ofSeq 51 | ctx.SetResponse(Response.create ("", [ Headers headers; Status code; StatusText ctx.Response.StatusText ])) 52 | next ctx 53 | 54 | let notFoundHandler: HttpHandler = 55 | fun next ctx -> (setStatusCode 404 >=> sendText "Not Found") next ctx 56 | 57 | let cleanResponse: HttpHandler = 58 | fun next ctx -> 59 | ctx.SetStarted true 60 | ctx.SetResponse(Response.create ("", [])) 61 | Promise.lift None 62 | 63 | let tryBindJson<'T> 64 | ( 65 | binder: obj -> Result<'T, exn>, 66 | success: 'T -> HttpHandler, 67 | error: exn -> HttpHandler 68 | ) : HttpHandler = 69 | fun next ctx -> 70 | ctx.Request.json () 71 | |> Promise.bind (fun content -> 72 | let content = 73 | try 74 | binder content |> Result.map id 75 | with ex -> 76 | Result.Error ex 77 | 78 | match content with 79 | | Ok content -> (success content) next ctx 80 | | Result.Error err -> (error err) next ctx) 81 | 82 | let tryDecodeJson<'T> 83 | ( 84 | binder: string -> Result<'T, exn>, 85 | success: 'T -> HttpHandler, 86 | error: exn -> HttpHandler 87 | ) : HttpHandler = 88 | fun next ctx -> 89 | ctx.Request.text () 90 | |> Promise.bind (fun content -> 91 | let content = 92 | try 93 | binder content |> Result.map id 94 | with ex -> 95 | Result.Error ex 96 | 97 | match content with 98 | | Ok content -> (success content) next ctx 99 | | Result.Error err -> (error err) next ctx) 100 | 101 | 102 | [] 103 | module BixResponse = 104 | 105 | let NoValue (contentType: string, options: ResponseInitProperties list) = 106 | Response.create ("", Headers [| "content-type", contentType |] :: options) 107 | 108 | let OnText (text: string, options: ResponseInitProperties list) = 109 | Response.create (text, Headers [| "content-type", "text/plain" |] :: options) 110 | 111 | let OnHtml (html: string, options: ResponseInitProperties list) = 112 | Response.create (html, Headers [| "content-type", "text/html" |] :: options) 113 | 114 | let OnJson (json: obj, options: ResponseInitProperties list) = 115 | let content = JS.JSON.stringify (json) 116 | 117 | Response.create (content, Headers [| "content-type", "application/json" |] :: options) 118 | 119 | let OnJsonOptions (value: obj, encoder: obj -> string, options: ResponseInitProperties list) = 120 | 121 | Response.create (encoder value, Headers [| "content-type", "application/json" |] :: options) 122 | 123 | let OnBlob (blob: Blob, mimeType: string, options: ResponseInitProperties list) = 124 | Response.create (blob, Headers [| "content-type", mimeType |] :: options) 125 | 126 | let OnArrayBuffer (arrayBuffer: JS.ArrayBuffer, mimeType: string, options: ResponseInitProperties list) = 127 | Response.create (arrayBuffer, Headers [| "content-type", mimeType |] :: options) 128 | 129 | let OnArrayBufferView 130 | ( 131 | arrayBufferView: JS.ArrayBufferView, 132 | mimeType: string, 133 | options: ResponseInitProperties list 134 | ) = 135 | Response.create (arrayBufferView, Headers [| "content-type", mimeType |] :: options) 136 | 137 | let OnCustom (content, contentType, args) = 138 | Response.create ( 139 | // it might not be a string but 140 | // it is just to satisfy the F# compiler 141 | unbox content, 142 | Headers [| "content-type", contentType |] :: args 143 | ) 144 | -------------------------------------------------------------------------------- /samples/Bun/Handlers.fs: -------------------------------------------------------------------------------- 1 | module Handlers 2 | 3 | open Bix 4 | open Bix.Types 5 | open Bix.Handlers 6 | open Feliz.ViewEngine 7 | open Fetch 8 | 9 | type Html with 10 | static member inline sl_button xs = Interop.createElement "sl-button" xs 11 | 12 | type Views = 13 | static member inline Layout(content: ReactElement, ?head: ReactElement seq, ?scripts: ReactElement seq) = 14 | let head = defaultArg head [] 15 | let scripts = defaultArg scripts [] 16 | 17 | Html.html 18 | [ Html.head 19 | [ prop.children 20 | [ Html.link 21 | [ prop.rel "stylesheet" 22 | prop.media "(prefers-color-scheme:light)" 23 | prop.href 24 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/themes/light.css" ] 25 | Html.link 26 | [ prop.rel "stylesheet" 27 | prop.media "(prefers-color-scheme:dark)" 28 | prop.href 29 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/themes/dark.css" 30 | prop.custom ("onload", "document.documentElement.classList.add('sl-theme-dark');") ] 31 | Html.script 32 | [ prop.type' "module" 33 | prop.src 34 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/shoelace.js" ] 35 | yield! head ] ] 36 | Html.body [ prop.children [ content; yield! scripts ] ] ] 37 | 38 | let Home (req: Request) = 39 | let content = 40 | Html.article 41 | [ Html.nav [] 42 | Html.main 43 | [ Html.h1 $"Hello from {req.method} - {req.url}" 44 | Html.sl_button 45 | [ prop.custom ("variant", "primary") 46 | prop.text "This is a Shoelace Button and rendered in Bun.sh" ] ] 47 | Html.footer [] ] 48 | 49 | let styles = 50 | Html.rawText 51 | """ 52 | 76 | """ 77 | 78 | Views.Layout(content, [ styles ]) 79 | 80 | 81 | 82 | let checkCredentials: HttpHandler = 83 | fun next ctx -> 84 | let req: Request = ctx.Request 85 | let bearer = req.headers.get "Authorization" |> Option.ofObj 86 | Fable.Core.JS.console.log (bearer) 87 | 88 | match bearer with 89 | | None -> (setStatusCode (401) >=> sendText "Not Authorized") next ctx 90 | | Some token -> 91 | match token.Split(" ") with 92 | | [| "Bearer"; token |] -> 93 | if token = "yeah.come.in" then 94 | next ctx 95 | else 96 | (setStatusCode (401) 97 | >=> sendText "Invalid Credentials") 98 | next 99 | ctx 100 | | _ -> 101 | (setStatusCode (400) 102 | >=> sendText "Wrong Bearer Format") 103 | next 104 | ctx 105 | 106 | let login: HttpHandler = sendJson {| Authed = "Apparenly!" |} 107 | 108 | let home: HttpHandler = 109 | fun next ctx -> sendHtml (Home ctx.Request |> Render.htmlDocument) next ctx 110 | 111 | let json: HttpHandler = sendJson {| Hello = "World!" |} 112 | 113 | let text: HttpHandler = sendText "Hello, World!" 114 | 115 | let jsonPostHandler: HttpHandler = 116 | fun next ctx -> 117 | let req: Request = ctx.Request 118 | 119 | req.json () 120 | |> Promise.bind (fun res -> 121 | let content = res |> Option.ofObj 122 | 123 | sendJson content next ctx) 124 | 125 | let paramsHandler: HttpHandler = 126 | fun next ctx -> 127 | let nameAny = ctx.AnyParams "name" 128 | let valueAny = ctx.AnyParams "value" 129 | let namePath = ctx.PathParams "name" 130 | let valuePath = ctx.PathParams "value" 131 | let searchParams = ctx.SearchParams 132 | let searchAny = ctx.AnyParams "age" 133 | 134 | let content = 135 | $"""{nameof nameAny} - {nameAny} 136 | {nameof valueAny} - {valueAny} 137 | {nameof namePath} - {namePath} 138 | {nameof valuePath} - {valuePath} 139 | {nameof searchParams} - {searchParams} 140 | {nameof searchAny} - {searchAny}""" 141 | 142 | sendText content next ctx 143 | -------------------------------------------------------------------------------- /samples/Deno/Handlers.fs: -------------------------------------------------------------------------------- 1 | module Handlers 2 | 3 | open Bix.Types 4 | open Bix.Handlers 5 | open Feliz.ViewEngine 6 | open Fetch 7 | 8 | type Html with 9 | static member inline sl_button xs = Interop.createElement "sl-button" xs 10 | 11 | type Views = 12 | static member inline Layout(content: ReactElement, ?head: ReactElement seq, ?scripts: ReactElement seq) = 13 | let head = defaultArg head [] 14 | let scripts = defaultArg scripts [] 15 | 16 | Html.html 17 | [ Html.head 18 | [ prop.children 19 | [ Html.link 20 | [ prop.rel "stylesheet" 21 | prop.media "(prefers-color-scheme:light)" 22 | prop.href 23 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/themes/light.css" ] 24 | Html.link 25 | [ prop.rel "stylesheet" 26 | prop.media "(prefers-color-scheme:dark)" 27 | prop.href 28 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/themes/dark.css" 29 | prop.custom ("onload", "document.documentElement.classList.add('sl-theme-dark');") ] 30 | Html.script 31 | [ prop.type' "module" 32 | prop.src 33 | "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.77/dist/shoelace.js" ] 34 | yield! head ] ] 35 | Html.body [ prop.children [ content; yield! scripts ] ] ] 36 | 37 | let Home (req: Request) = 38 | let content = 39 | Html.article 40 | [ Html.nav [] 41 | Html.main 42 | [ Html.h1 $"Hello from {req.method} - {req.url}" 43 | Html.sl_button 44 | [ prop.custom ("variant", "primary") 45 | prop.text "This is a Shoelace Button and rendered in deno.land!" ] ] 46 | Html.footer [] ] 47 | 48 | let styles = 49 | Html.rawText 50 | """ 51 | 75 | """ 76 | 77 | Views.Layout(content, [ styles ]) 78 | 79 | 80 | 81 | let checkCredentials: HttpHandler = 82 | fun next ctx -> 83 | let req: Request = ctx.Request 84 | let bearer = req.headers.get "Authorization" |> Option.ofObj 85 | Fable.Core.JS.console.log (bearer) 86 | 87 | match bearer with 88 | | None -> (setStatusCode (401) >=> sendText "Not Authorized") next ctx 89 | | Some token -> 90 | match token.Split(" ") with 91 | | [| "Bearer"; token |] -> 92 | if token = "yeah.come.in" then 93 | next ctx 94 | else 95 | (setStatusCode (401) 96 | >=> sendText "Invalid Credentials") 97 | next 98 | ctx 99 | | _ -> 100 | (setStatusCode (400) 101 | >=> sendText "Wrong Bearer Format") 102 | next 103 | ctx 104 | 105 | let login: HttpHandler = sendJson {| Authed = "Apparenly!" |} 106 | 107 | let home: HttpHandler = 108 | fun next ctx -> sendHtml (Home ctx.Request |> Render.htmlDocument) next ctx 109 | 110 | let json: HttpHandler = fun next ctx -> sendJson {| Hello = "World!" |} next ctx 111 | 112 | let text: HttpHandler = sendText "Hello, World!" 113 | 114 | let jsonPostHandler: HttpHandler = 115 | fun next ctx -> 116 | let req: Request = ctx.Request 117 | 118 | req.json () 119 | |> Promise.bind (fun res -> 120 | let content = res |> Option.ofObj 121 | 122 | sendJson content next ctx) 123 | 124 | let paramsHandler: HttpHandler = 125 | fun next ctx -> 126 | let nameAny = ctx.AnyParams "name" 127 | let valueAny = ctx.AnyParams "value" 128 | let namePath = ctx.PathParams "name" 129 | let valuePath = ctx.PathParams "value" 130 | let searchParams = ctx.SearchParams 131 | let searchAny = ctx.AnyParams "age" 132 | 133 | let content = 134 | $"""{nameof nameAny} - {nameAny} 135 | {nameof valueAny} - {valueAny} 136 | {nameof namePath} - {namePath} 137 | {nameof valuePath} - {valuePath} 138 | {nameof searchParams} - {searchParams} 139 | {nameof searchAny} - {searchAny}""" 140 | 141 | sendText content next ctx 142 | -------------------------------------------------------------------------------- /src/Bix/Types.fs: -------------------------------------------------------------------------------- 1 | module Bix.Types 2 | 3 | #if ENABLE_URLPATTERN_POLYFILL 4 | Fable.Core.JsInterop.importSideEffects "urlpattern-polyfill" 5 | #endif 6 | 7 | open Fable.Core 8 | open Fable.Core.DynamicExtensions 9 | open Browser.Types 10 | open Fetch 11 | open URLPattern 12 | open System 13 | 14 | type RequestHandler = Request -> U2> 15 | type RequestErrorHandler = exn -> U2> 16 | 17 | type BixServerArgs = 18 | | Port of int 19 | | Hostname of string 20 | | BaseURI of string 21 | | MaxRequestBodySize of float 22 | | Development of bool 23 | | KeyFile of string 24 | | CertFile of string 25 | | Passphrase of string 26 | | CaFile of string 27 | | DhParamsFile of string 28 | | LowMemoryMode of bool 29 | | ServerNames of (string * BixServerArgs list) list 30 | | Fetch of req: RequestHandler 31 | | Error of req: RequestErrorHandler 32 | 33 | type BixResponse = 34 | | Text of string 35 | | Html of string 36 | | Blob of content: Blob * mimeType: string 37 | | ArrayBuffer of content: JS.ArrayBuffer * mimeType: string 38 | | ArrayBufferView of content: JS.ArrayBufferView * mimeType: string 39 | | Json of obj 40 | | JsonOptions of obj * (obj -> string) 41 | | Custom of obj * ResponseInitProperties list 42 | 43 | type IHostServer = 44 | abstract hostname: string option 45 | abstract port: int 46 | abstract development: bool 47 | abstract env: Map 48 | 49 | type SearchParamValue = 50 | | String of value: string option 51 | | StringArray of value: string option ResizeArray 52 | 53 | member this.AsString = 54 | match this with 55 | | String(Some value) -> value 56 | | StringArray(values) -> 57 | let values = 58 | [| for value in values do 59 | let value = defaultArg value String.Empty 60 | if String.IsNullOrWhiteSpace value then () else value |] 61 | 62 | System.String.Join(",", values) 63 | | String None -> String.Empty 64 | 65 | member this.Values = 66 | match this with 67 | | String value -> 68 | let r = ResizeArray() 69 | r.Add(value) 70 | r 71 | | StringArray value -> value 72 | 73 | 74 | [] 75 | type HttpContext(server: IHostServer, req: Request, res: Response) = 76 | let mutable _res = res 77 | let mutable hasStarted = false 78 | 79 | let mutable patternResult: URLPatternResult option = None 80 | 81 | member _.Request: Request = req 82 | member _.Server: IHostServer = server 83 | member _.Response: Response = _res 84 | member _.HasStarted: bool = hasStarted 85 | member _.RoutePattern: URLPatternResult option = patternResult 86 | member _.SetStarted(setStarted: bool) = hasStarted <- setStarted 87 | 88 | member _.SetResponse(response: Response) = _res <- response 89 | 90 | member _.SetPattern(pattern: URLPatternResult option) = patternResult <- pattern 91 | 92 | member _.SearchParams: Map = 93 | match patternResult with 94 | | Some result -> 95 | 96 | let di = System.Collections.Generic.Dictionary() 97 | let searchStr = (result.search.groups["0"] :?> string) 98 | 99 | if String.IsNullOrWhiteSpace searchStr then 100 | Map.empty 101 | else 102 | 103 | for param in searchStr.Split("&") do 104 | let split = param.Split("=") 105 | let key = split[0] 106 | let hasValue = split.Length = 2 107 | let hasMultiple = split.Length > 2 108 | 109 | 110 | match di.TryGetValue(key) with 111 | | true, (StringArray values) -> 112 | if hasMultiple then 113 | let mapped = 114 | split[1..] 115 | |> Array.map (fun value -> if String.IsNullOrWhiteSpace value then None else Some value) 116 | 117 | values.AddRange(mapped) 118 | else if hasValue && String.IsNullOrWhiteSpace split[1] then 119 | values.Add None 120 | else 121 | values.Add(Some split[1]) 122 | | true, (String value) -> 123 | if hasMultiple then 124 | let mapped = 125 | split[1..] 126 | |> Array.map (fun value -> if String.IsNullOrWhiteSpace value then None else Some value) 127 | 128 | let mapped = ResizeArray(mapped) 129 | mapped.Add(value) 130 | di[key] <- StringArray mapped 131 | else if hasValue && String.IsNullOrWhiteSpace split[1] then 132 | let mapped = ResizeArray([| value; None |]) 133 | di[key] <- StringArray mapped 134 | else 135 | di[key] <- StringArray(ResizeArray([| value; Some split[1] |])) 136 | 137 | | false, _ -> 138 | if hasMultiple then 139 | let mapped = 140 | split[1..] 141 | |> Array.map (fun value -> if String.IsNullOrWhiteSpace value then None else Some value) 142 | 143 | let mapped = ResizeArray(mapped) 144 | di.Add(key, StringArray mapped) 145 | else if hasValue && String.IsNullOrWhiteSpace split[1] then 146 | di.Add(key, String None) 147 | else 148 | di.Add(key, String(Some split[1])) 149 | 150 | di |> Seq.map (fun kv -> kv.Key, kv.Value) |> Map.ofSeq 151 | | None -> Map.empty 152 | 153 | member _.PathParams(index: string) : string option = 154 | match patternResult with 155 | | Some result -> result.pathname.groups.Item index :?> string |> Option.ofObj 156 | | None -> None 157 | 158 | member _.HashParams(index: string) : string option = 159 | match patternResult with 160 | | Some result -> result.hash.groups.Item index :?> string |> Option.ofObj 161 | | None -> None 162 | 163 | member this.AnyParams(index: string) : string option = 164 | this.PathParams index 165 | |> Option.orElseWith (fun _ -> 166 | this.SearchParams 167 | |> Map.tryFind index 168 | |> Option.map (fun value -> value.AsString)) 169 | |> Option.orElseWith (fun _ -> this.HashParams index) 170 | 171 | 172 | type HttpFuncResult = JS.Promise 173 | 174 | type HttpFunc = HttpContext -> HttpFuncResult 175 | 176 | type HttpHandler = HttpFunc -> HttpFunc 177 | 178 | type RouteType = 179 | | Get 180 | | Post 181 | | Put 182 | | Delete 183 | | Patch 184 | | Head 185 | | Options 186 | | All 187 | | Custom of string 188 | 189 | static member FromString s = 190 | match s with 191 | | "GET" -> Get 192 | | "POST" -> Post 193 | | "PUT" -> Put 194 | | "DELETE" -> Delete 195 | | "PATCH" -> Patch 196 | | "HEAD" -> Head 197 | | "OPTIONS" -> Options 198 | | "ALL" -> All 199 | | custom -> Custom custom 200 | 201 | member this.asString = 202 | match this with 203 | | Get -> "GET" 204 | | Post -> "POST" 205 | | Put -> "PUT" 206 | | Delete -> "DELETE" 207 | | Patch -> "PATCH" 208 | | Head -> "HEAD" 209 | | Options -> "OPTIONS" 210 | | All -> "ALL" 211 | | Custom custom -> custom 212 | 213 | 214 | type RouteDefinition = 215 | { method: RouteType 216 | pattern: URLPatternInput 217 | handler: HttpHandler } 218 | 219 | type RouteList = RouteDefinition list 220 | 221 | type RouteMap = Map 222 | 223 | type RouteMatch = 224 | | Found of RouteDefinition 225 | | NotFound 226 | | MethodNotAllowed 227 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # Tye 66 | .tye/ 67 | 68 | # ASP.NET Scaffolding 69 | ScaffoldingReadMe.txt 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio LightSwitch build output 300 | **/*.HTMLClient/GeneratedArtifacts 301 | **/*.DesktopClient/GeneratedArtifacts 302 | **/*.DesktopClient/ModelManifest.xml 303 | **/*.Server/GeneratedArtifacts 304 | **/*.Server/ModelManifest.xml 305 | _Pvt_Extensions 306 | 307 | # Paket dependency manager 308 | .paket/paket.exe 309 | paket-files/ 310 | 311 | # FAKE - F# Make 312 | .fake/ 313 | 314 | # CodeRush personal settings 315 | .cr/personal 316 | 317 | # Python Tools for Visual Studio (PTVS) 318 | __pycache__/ 319 | *.pyc 320 | 321 | # Cake - Uncomment if you are using it 322 | # tools/** 323 | # !tools/packages.config 324 | 325 | # Tabs Studio 326 | *.tss 327 | 328 | # Telerik's JustMock configuration file 329 | *.jmconfig 330 | 331 | # BizTalk build output 332 | *.btp.cs 333 | *.btm.cs 334 | *.odx.cs 335 | *.xsd.cs 336 | 337 | # OpenCover UI analysis results 338 | OpenCover/ 339 | 340 | # Azure Stream Analytics local run output 341 | ASALocalRun/ 342 | 343 | # MSBuild Binary and Structured Log 344 | *.binlog 345 | 346 | # NVidia Nsight GPU debugger configuration file 347 | *.nvuser 348 | 349 | # MFractors (Xamarin productivity tool) working folder 350 | .mfractor/ 351 | 352 | # Local History for Visual Studio 353 | .localhistory/ 354 | 355 | # BeatPulse healthcheck temp database 356 | healthchecksdb 357 | 358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 359 | MigrationBackup/ 360 | 361 | # Ionide (cross platform F# VS Code tools) working folder 362 | .ionide/ 363 | 364 | # Fody - auto-generated XML schema 365 | FodyWeavers.xsd 366 | 367 | ## 368 | ## Visual studio for Mac 369 | ## 370 | 371 | 372 | # globs 373 | Makefile.in 374 | *.userprefs 375 | *.usertasks 376 | config.make 377 | config.status 378 | aclocal.m4 379 | install-sh 380 | autom4te.cache/ 381 | *.tar.gz 382 | tarballs/ 383 | test-results/ 384 | 385 | # Mac bundle stuff 386 | *.dmg 387 | *.app 388 | 389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 390 | # General 391 | .DS_Store 392 | .AppleDouble 393 | .LSOverride 394 | 395 | # Icon must end with two \r 396 | Icon 397 | 398 | 399 | # Thumbnails 400 | ._* 401 | 402 | # Files that might appear in the root of a volume 403 | .DocumentRevisions-V100 404 | .fseventsd 405 | .Spotlight-V100 406 | .TemporaryItems 407 | .Trashes 408 | .VolumeIcon.icns 409 | .com.apple.timemachine.donotpresent 410 | 411 | # Directories potentially created on remote AFP share 412 | .AppleDB 413 | .AppleDesktop 414 | Network Trash Folder 415 | Temporary Items 416 | .apdisk 417 | 418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 419 | # Windows thumbnail cache files 420 | Thumbs.db 421 | ehthumbs.db 422 | ehthumbs_vista.db 423 | 424 | # Dump file 425 | *.stackdump 426 | 427 | # Folder config file 428 | [Dd]esktop.ini 429 | 430 | # Recycle Bin used on file shares 431 | $RECYCLE.BIN/ 432 | 433 | # Windows Installer files 434 | *.cab 435 | *.msi 436 | *.msix 437 | *.msm 438 | *.msp 439 | 440 | # Windows shortcuts 441 | *.lnk 442 | 443 | # JetBrains Rider 444 | .idea/ 445 | *.sln.iml 446 | 447 | ## 448 | ## Visual Studio Code 449 | ## 450 | .vscode/* 451 | !.vscode/settings.json 452 | !.vscode/tasks.json 453 | !.vscode/launch.json 454 | !.vscode/extensions.json 455 | 456 | dist/ 457 | nugets/ 458 | 459 | *.fs.js 460 | *.fs.js.map -------------------------------------------------------------------------------- /src/Templates/templates/Bun/.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # Tye 66 | .tye/ 67 | 68 | # ASP.NET Scaffolding 69 | ScaffoldingReadMe.txt 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio LightSwitch build output 300 | **/*.HTMLClient/GeneratedArtifacts 301 | **/*.DesktopClient/GeneratedArtifacts 302 | **/*.DesktopClient/ModelManifest.xml 303 | **/*.Server/GeneratedArtifacts 304 | **/*.Server/ModelManifest.xml 305 | _Pvt_Extensions 306 | 307 | # Paket dependency manager 308 | .paket/paket.exe 309 | paket-files/ 310 | 311 | # FAKE - F# Make 312 | .fake/ 313 | 314 | # CodeRush personal settings 315 | .cr/personal 316 | 317 | # Python Tools for Visual Studio (PTVS) 318 | __pycache__/ 319 | *.pyc 320 | 321 | # Cake - Uncomment if you are using it 322 | # tools/** 323 | # !tools/packages.config 324 | 325 | # Tabs Studio 326 | *.tss 327 | 328 | # Telerik's JustMock configuration file 329 | *.jmconfig 330 | 331 | # BizTalk build output 332 | *.btp.cs 333 | *.btm.cs 334 | *.odx.cs 335 | *.xsd.cs 336 | 337 | # OpenCover UI analysis results 338 | OpenCover/ 339 | 340 | # Azure Stream Analytics local run output 341 | ASALocalRun/ 342 | 343 | # MSBuild Binary and Structured Log 344 | *.binlog 345 | 346 | # NVidia Nsight GPU debugger configuration file 347 | *.nvuser 348 | 349 | # MFractors (Xamarin productivity tool) working folder 350 | .mfractor/ 351 | 352 | # Local History for Visual Studio 353 | .localhistory/ 354 | 355 | # BeatPulse healthcheck temp database 356 | healthchecksdb 357 | 358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 359 | MigrationBackup/ 360 | 361 | # Ionide (cross platform F# VS Code tools) working folder 362 | .ionide/ 363 | 364 | # Fody - auto-generated XML schema 365 | FodyWeavers.xsd 366 | 367 | ## 368 | ## Visual studio for Mac 369 | ## 370 | 371 | 372 | # globs 373 | Makefile.in 374 | *.userprefs 375 | *.usertasks 376 | config.make 377 | config.status 378 | aclocal.m4 379 | install-sh 380 | autom4te.cache/ 381 | *.tar.gz 382 | tarballs/ 383 | test-results/ 384 | 385 | # Mac bundle stuff 386 | *.dmg 387 | *.app 388 | 389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 390 | # General 391 | .DS_Store 392 | .AppleDouble 393 | .LSOverride 394 | 395 | # Icon must end with two \r 396 | Icon 397 | 398 | 399 | # Thumbnails 400 | ._* 401 | 402 | # Files that might appear in the root of a volume 403 | .DocumentRevisions-V100 404 | .fseventsd 405 | .Spotlight-V100 406 | .TemporaryItems 407 | .Trashes 408 | .VolumeIcon.icns 409 | .com.apple.timemachine.donotpresent 410 | 411 | # Directories potentially created on remote AFP share 412 | .AppleDB 413 | .AppleDesktop 414 | Network Trash Folder 415 | Temporary Items 416 | .apdisk 417 | 418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 419 | # Windows thumbnail cache files 420 | Thumbs.db 421 | ehthumbs.db 422 | ehthumbs_vista.db 423 | 424 | # Dump file 425 | *.stackdump 426 | 427 | # Folder config file 428 | [Dd]esktop.ini 429 | 430 | # Recycle Bin used on file shares 431 | $RECYCLE.BIN/ 432 | 433 | # Windows Installer files 434 | *.cab 435 | *.msi 436 | *.msix 437 | *.msm 438 | *.msp 439 | 440 | # Windows shortcuts 441 | *.lnk 442 | 443 | # JetBrains Rider 444 | .idea/ 445 | *.sln.iml 446 | 447 | ## 448 | ## Visual Studio Code 449 | ## 450 | .vscode/* 451 | !.vscode/settings.json 452 | !.vscode/tasks.json 453 | !.vscode/launch.json 454 | !.vscode/extensions.json 455 | 456 | dist/ 457 | nugets/ 458 | 459 | *.fs.js 460 | *.fs.js.map -------------------------------------------------------------------------------- /src/Templates/templates/Deno/.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # Tye 66 | .tye/ 67 | 68 | # ASP.NET Scaffolding 69 | ScaffoldingReadMe.txt 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio LightSwitch build output 300 | **/*.HTMLClient/GeneratedArtifacts 301 | **/*.DesktopClient/GeneratedArtifacts 302 | **/*.DesktopClient/ModelManifest.xml 303 | **/*.Server/GeneratedArtifacts 304 | **/*.Server/ModelManifest.xml 305 | _Pvt_Extensions 306 | 307 | # Paket dependency manager 308 | .paket/paket.exe 309 | paket-files/ 310 | 311 | # FAKE - F# Make 312 | .fake/ 313 | 314 | # CodeRush personal settings 315 | .cr/personal 316 | 317 | # Python Tools for Visual Studio (PTVS) 318 | __pycache__/ 319 | *.pyc 320 | 321 | # Cake - Uncomment if you are using it 322 | # tools/** 323 | # !tools/packages.config 324 | 325 | # Tabs Studio 326 | *.tss 327 | 328 | # Telerik's JustMock configuration file 329 | *.jmconfig 330 | 331 | # BizTalk build output 332 | *.btp.cs 333 | *.btm.cs 334 | *.odx.cs 335 | *.xsd.cs 336 | 337 | # OpenCover UI analysis results 338 | OpenCover/ 339 | 340 | # Azure Stream Analytics local run output 341 | ASALocalRun/ 342 | 343 | # MSBuild Binary and Structured Log 344 | *.binlog 345 | 346 | # NVidia Nsight GPU debugger configuration file 347 | *.nvuser 348 | 349 | # MFractors (Xamarin productivity tool) working folder 350 | .mfractor/ 351 | 352 | # Local History for Visual Studio 353 | .localhistory/ 354 | 355 | # BeatPulse healthcheck temp database 356 | healthchecksdb 357 | 358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 359 | MigrationBackup/ 360 | 361 | # Ionide (cross platform F# VS Code tools) working folder 362 | .ionide/ 363 | 364 | # Fody - auto-generated XML schema 365 | FodyWeavers.xsd 366 | 367 | ## 368 | ## Visual studio for Mac 369 | ## 370 | 371 | 372 | # globs 373 | Makefile.in 374 | *.userprefs 375 | *.usertasks 376 | config.make 377 | config.status 378 | aclocal.m4 379 | install-sh 380 | autom4te.cache/ 381 | *.tar.gz 382 | tarballs/ 383 | test-results/ 384 | 385 | # Mac bundle stuff 386 | *.dmg 387 | *.app 388 | 389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 390 | # General 391 | .DS_Store 392 | .AppleDouble 393 | .LSOverride 394 | 395 | # Icon must end with two \r 396 | Icon 397 | 398 | 399 | # Thumbnails 400 | ._* 401 | 402 | # Files that might appear in the root of a volume 403 | .DocumentRevisions-V100 404 | .fseventsd 405 | .Spotlight-V100 406 | .TemporaryItems 407 | .Trashes 408 | .VolumeIcon.icns 409 | .com.apple.timemachine.donotpresent 410 | 411 | # Directories potentially created on remote AFP share 412 | .AppleDB 413 | .AppleDesktop 414 | Network Trash Folder 415 | Temporary Items 416 | .apdisk 417 | 418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 419 | # Windows thumbnail cache files 420 | Thumbs.db 421 | ehthumbs.db 422 | ehthumbs_vista.db 423 | 424 | # Dump file 425 | *.stackdump 426 | 427 | # Folder config file 428 | [Dd]esktop.ini 429 | 430 | # Recycle Bin used on file shares 431 | $RECYCLE.BIN/ 432 | 433 | # Windows Installer files 434 | *.cab 435 | *.msi 436 | *.msix 437 | *.msm 438 | *.msp 439 | 440 | # Windows shortcuts 441 | *.lnk 442 | 443 | # JetBrains Rider 444 | .idea/ 445 | *.sln.iml 446 | 447 | ## 448 | ## Visual Studio Code 449 | ## 450 | .vscode/* 451 | !.vscode/settings.json 452 | !.vscode/tasks.json 453 | !.vscode/launch.json 454 | !.vscode/extensions.json 455 | 456 | dist/ 457 | nugets/ 458 | 459 | *.fs.js 460 | *.fs.js.map -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # Tye 66 | .tye/ 67 | 68 | # ASP.NET Scaffolding 69 | ScaffoldingReadMe.txt 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio LightSwitch build output 300 | **/*.HTMLClient/GeneratedArtifacts 301 | **/*.DesktopClient/GeneratedArtifacts 302 | **/*.DesktopClient/ModelManifest.xml 303 | **/*.Server/GeneratedArtifacts 304 | **/*.Server/ModelManifest.xml 305 | _Pvt_Extensions 306 | 307 | # Paket dependency manager 308 | .paket/paket.exe 309 | paket-files/ 310 | 311 | # FAKE - F# Make 312 | .fake/ 313 | 314 | # CodeRush personal settings 315 | .cr/personal 316 | 317 | # Python Tools for Visual Studio (PTVS) 318 | __pycache__/ 319 | *.pyc 320 | 321 | # Cake - Uncomment if you are using it 322 | # tools/** 323 | # !tools/packages.config 324 | 325 | # Tabs Studio 326 | *.tss 327 | 328 | # Telerik's JustMock configuration file 329 | *.jmconfig 330 | 331 | # BizTalk build output 332 | *.btp.cs 333 | *.btm.cs 334 | *.odx.cs 335 | *.xsd.cs 336 | 337 | # OpenCover UI analysis results 338 | OpenCover/ 339 | 340 | # Azure Stream Analytics local run output 341 | ASALocalRun/ 342 | 343 | # MSBuild Binary and Structured Log 344 | *.binlog 345 | 346 | # NVidia Nsight GPU debugger configuration file 347 | *.nvuser 348 | 349 | # MFractors (Xamarin productivity tool) working folder 350 | .mfractor/ 351 | 352 | # Local History for Visual Studio 353 | .localhistory/ 354 | 355 | # BeatPulse healthcheck temp database 356 | healthchecksdb 357 | 358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 359 | MigrationBackup/ 360 | 361 | # Ionide (cross platform F# VS Code tools) working folder 362 | .ionide/ 363 | 364 | # Fody - auto-generated XML schema 365 | FodyWeavers.xsd 366 | 367 | ## 368 | ## Visual studio for Mac 369 | ## 370 | 371 | 372 | # globs 373 | Makefile.in 374 | *.userprefs 375 | *.usertasks 376 | config.make 377 | config.status 378 | aclocal.m4 379 | install-sh 380 | autom4te.cache/ 381 | *.tar.gz 382 | tarballs/ 383 | test-results/ 384 | 385 | # Mac bundle stuff 386 | *.dmg 387 | *.app 388 | 389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 390 | # General 391 | .DS_Store 392 | .AppleDouble 393 | .LSOverride 394 | 395 | # Icon must end with two \r 396 | Icon 397 | 398 | 399 | # Thumbnails 400 | ._* 401 | 402 | # Files that might appear in the root of a volume 403 | .DocumentRevisions-V100 404 | .fseventsd 405 | .Spotlight-V100 406 | .TemporaryItems 407 | .Trashes 408 | .VolumeIcon.icns 409 | .com.apple.timemachine.donotpresent 410 | 411 | # Directories potentially created on remote AFP share 412 | .AppleDB 413 | .AppleDesktop 414 | Network Trash Folder 415 | Temporary Items 416 | .apdisk 417 | 418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 419 | # Windows thumbnail cache files 420 | Thumbs.db 421 | ehthumbs.db 422 | ehthumbs_vista.db 423 | 424 | # Dump file 425 | *.stackdump 426 | 427 | # Folder config file 428 | [Dd]esktop.ini 429 | 430 | # Recycle Bin used on file shares 431 | $RECYCLE.BIN/ 432 | 433 | # Windows Installer files 434 | *.cab 435 | *.msi 436 | *.msix 437 | *.msm 438 | *.msp 439 | 440 | # Windows shortcuts 441 | *.lnk 442 | 443 | # JetBrains Rider 444 | .idea/ 445 | *.sln.iml 446 | 447 | ## 448 | ## Visual Studio Code 449 | ## 450 | .vscode/* 451 | !.vscode/settings.json 452 | !.vscode/tasks.json 453 | !.vscode/launch.json 454 | !.vscode/extensions.json 455 | 456 | dist/ 457 | nugets/ 458 | 459 | *.fs.js 460 | *.fs.js.map -------------------------------------------------------------------------------- /samples/Worker/pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: 5.4 2 | 3 | specifiers: 4 | wrangler: 2.0.22 5 | 6 | devDependencies: 7 | wrangler: 2.0.22 8 | 9 | packages: 10 | 11 | /@cloudflare/kv-asset-handler/0.2.0: 12 | resolution: {integrity: sha512-MVbXLbTcAotOPUj0pAMhVtJ+3/kFkwJqc5qNOleOZTv6QkZZABDMS21dSrSlVswEHwrpWC03e4fWytjqKvuE2A==} 13 | dependencies: 14 | mime: 3.0.0 15 | dev: true 16 | 17 | /@esbuild-plugins/node-globals-polyfill/0.1.1_esbuild@0.14.47: 18 | resolution: {integrity: sha512-MR0oAA+mlnJWrt1RQVQ+4VYuRJW/P2YmRTv1AsplObyvuBMnPHiizUF95HHYiSsMGLhyGtWufaq2XQg6+iurBg==} 19 | peerDependencies: 20 | esbuild: '*' 21 | dependencies: 22 | esbuild: 0.14.47 23 | dev: true 24 | 25 | /@esbuild-plugins/node-modules-polyfill/0.1.4_esbuild@0.14.47: 26 | resolution: {integrity: sha512-uZbcXi0zbmKC/050p3gJnne5Qdzw8vkXIv+c2BW0Lsc1ji1SkrxbKPUy5Efr0blbTu1SL8w4eyfpnSdPg3G0Qg==} 27 | peerDependencies: 28 | esbuild: '*' 29 | dependencies: 30 | esbuild: 0.14.47 31 | escape-string-regexp: 4.0.0 32 | rollup-plugin-node-polyfills: 0.2.1 33 | dev: true 34 | 35 | /@iarna/toml/2.2.5: 36 | resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} 37 | dev: true 38 | 39 | /@miniflare/cache/2.6.0: 40 | resolution: {integrity: sha512-4oh8MgpquoxaslI7Z8sMzmEZR0Dc+L3aEh69o9d8ZCs4nUdOENnfKlY50O5nEnL7nhhyAljkMBaXD2wAH2DLeQ==} 41 | engines: {node: '>=16.7'} 42 | dependencies: 43 | '@miniflare/core': 2.6.0 44 | '@miniflare/shared': 2.6.0 45 | http-cache-semantics: 4.1.0 46 | undici: 5.5.1 47 | dev: true 48 | 49 | /@miniflare/cli-parser/2.6.0: 50 | resolution: {integrity: sha512-dJDoIPAUqWhzvBHHyqyhobdzDedBYRWZ4yItBi9m4MTU/EneLJ5jryB340SwUnmtBMZxUh/LWdAuUEkKpdVNyA==} 51 | engines: {node: '>=16.7'} 52 | dependencies: 53 | '@miniflare/shared': 2.6.0 54 | kleur: 4.1.5 55 | dev: true 56 | 57 | /@miniflare/core/2.6.0: 58 | resolution: {integrity: sha512-CmofhIRot++GI7NHPMwzNb65+0hWLN186L91BrH/doPVHnT/itmEfzYQpL9bFLD0c/i14dfv+IUNetDdGEBIrw==} 59 | engines: {node: '>=16.7'} 60 | dependencies: 61 | '@iarna/toml': 2.2.5 62 | '@miniflare/shared': 2.6.0 63 | '@miniflare/watcher': 2.6.0 64 | busboy: 1.6.0 65 | dotenv: 10.0.0 66 | kleur: 4.1.5 67 | set-cookie-parser: 2.5.0 68 | undici: 5.5.1 69 | urlpattern-polyfill: 4.0.3 70 | dev: true 71 | 72 | /@miniflare/durable-objects/2.6.0: 73 | resolution: {integrity: sha512-uzWoGFtkIIh3m3HAzqd5f86nOSC0xFli6dq2q7ilE3UjgouOcLqObxJyE/IzvSwsj4DUWFv6//YDfHihK2fGAA==} 74 | engines: {node: '>=16.7'} 75 | dependencies: 76 | '@miniflare/core': 2.6.0 77 | '@miniflare/shared': 2.6.0 78 | '@miniflare/storage-memory': 2.6.0 79 | undici: 5.5.1 80 | dev: true 81 | 82 | /@miniflare/html-rewriter/2.6.0: 83 | resolution: {integrity: sha512-+JqFlIDLzstb/Spj+j/kI6uHzolrqjsMks3Tf24Q4YFo9YYdZguqUFcDz2yr79ZTP/SKXaZH+AYqosnJps4dHQ==} 84 | engines: {node: '>=16.7'} 85 | dependencies: 86 | '@miniflare/core': 2.6.0 87 | '@miniflare/shared': 2.6.0 88 | html-rewriter-wasm: 0.4.1 89 | undici: 5.5.1 90 | dev: true 91 | 92 | /@miniflare/http-server/2.6.0: 93 | resolution: {integrity: sha512-FhcAVIpipMEzMCsJBc/b0JhNEJ66GPX60vA2NcqjGKHYbwoPCPlwCFQq2giPzW/R95ugrEjPfo4/5Q4UbnpoGA==} 94 | engines: {node: '>=16.7'} 95 | dependencies: 96 | '@miniflare/core': 2.6.0 97 | '@miniflare/shared': 2.6.0 98 | '@miniflare/web-sockets': 2.6.0 99 | kleur: 4.1.5 100 | selfsigned: 2.0.1 101 | undici: 5.5.1 102 | ws: 8.8.1 103 | youch: 2.2.2 104 | transitivePeerDependencies: 105 | - bufferutil 106 | - utf-8-validate 107 | dev: true 108 | 109 | /@miniflare/kv/2.6.0: 110 | resolution: {integrity: sha512-7Q+Q0Wwinsz85qpKLlBeXSCLweiVowpMJ5AmQpmELnTya59HQ24cOUHxPd64hXFhdYXVIxOmk6lQaZ21JhdHGQ==} 111 | engines: {node: '>=16.7'} 112 | dependencies: 113 | '@miniflare/shared': 2.6.0 114 | dev: true 115 | 116 | /@miniflare/r2/2.6.0: 117 | resolution: {integrity: sha512-Ymbqu17ajtuk9b11txF2h1Ewqqlu3XCCpAwAgCQa6AK1yRidQECCPq9w9oXZxE1p5aaSuLTOUbgSdtveFCsLxQ==} 118 | engines: {node: '>=16.7'} 119 | dependencies: 120 | '@miniflare/shared': 2.6.0 121 | undici: 5.5.1 122 | dev: true 123 | 124 | /@miniflare/runner-vm/2.6.0: 125 | resolution: {integrity: sha512-ZxsiVMMUcjb01LwrO2t50YbU5PT5s3k7DrmR5185R/n04K5BikqZz8eQf8lKlQQYem0BROqmmQgurZGw0a2HUw==} 126 | engines: {node: '>=16.7'} 127 | dependencies: 128 | '@miniflare/shared': 2.6.0 129 | dev: true 130 | 131 | /@miniflare/scheduler/2.6.0: 132 | resolution: {integrity: sha512-BM+RDF+8twkTCOb7Oz0NIs5phzAVJ/Gx7tFZR23fGsZjWRnE3TBeqfzaNutU9pcoWDZtBQqEJMeTeb0KZTo75Q==} 133 | engines: {node: '>=16.7'} 134 | dependencies: 135 | '@miniflare/core': 2.6.0 136 | '@miniflare/shared': 2.6.0 137 | cron-schedule: 3.0.6 138 | dev: true 139 | 140 | /@miniflare/shared/2.6.0: 141 | resolution: {integrity: sha512-/7k4C37GF0INu99LNFmFhHYL6U9/oRY/nWDa5sr6+lPEKKm2rkmfvDIA+YNAj7Ql61ZWMgEMj0S3NhV0rWkj7Q==} 142 | engines: {node: '>=16.7'} 143 | dependencies: 144 | ignore: 5.2.0 145 | kleur: 4.1.5 146 | dev: true 147 | 148 | /@miniflare/sites/2.6.0: 149 | resolution: {integrity: sha512-XfWhpREC638LOGNmuHaPn1MAz1sh2mz+VdMsjRCzUo6NwPl4IcUhnorJR62Xr0qmI/RqVMTZbvzrChXio4Bi4A==} 150 | engines: {node: '>=16.7'} 151 | dependencies: 152 | '@miniflare/kv': 2.6.0 153 | '@miniflare/shared': 2.6.0 154 | '@miniflare/storage-file': 2.6.0 155 | dev: true 156 | 157 | /@miniflare/storage-file/2.6.0: 158 | resolution: {integrity: sha512-xprDVJClQ2X1vXVPM16WQZz3rS+6fNuCYC8bfEFHABDByQoUNDpk8q+m1IpTaFXYivYxRhE+xr7eK2QQP068tA==} 159 | engines: {node: '>=16.7'} 160 | dependencies: 161 | '@miniflare/shared': 2.6.0 162 | '@miniflare/storage-memory': 2.6.0 163 | dev: true 164 | 165 | /@miniflare/storage-memory/2.6.0: 166 | resolution: {integrity: sha512-0EwELTG2r6IC4AMlQv0YXRZdw9g/lCydceuGKeFkWAVb55pY+yMBxkJO9VV7QOrEx8MLsR8tsfl5SBK3AkfLtA==} 167 | engines: {node: '>=16.7'} 168 | dependencies: 169 | '@miniflare/shared': 2.6.0 170 | dev: true 171 | 172 | /@miniflare/watcher/2.6.0: 173 | resolution: {integrity: sha512-mttfhNDmEIFo2rWF73JeWj1TLN+3cQC1TFhbtLApz9bXilLywArXMYqDJGA8PUnJCFM/8k2FDjaFNiPy6ggIJw==} 174 | engines: {node: '>=16.7'} 175 | dependencies: 176 | '@miniflare/shared': 2.6.0 177 | dev: true 178 | 179 | /@miniflare/web-sockets/2.6.0: 180 | resolution: {integrity: sha512-ePbcuP9LrStVTllZzqx2oNVoOpceyU3jJF3nGDMNW5+bqB+BdeTggSF8rhER7omcSCswCMY2Do6VelIcAXHkXA==} 181 | engines: {node: '>=16.7'} 182 | dependencies: 183 | '@miniflare/core': 2.6.0 184 | '@miniflare/shared': 2.6.0 185 | undici: 5.5.1 186 | ws: 8.8.1 187 | transitivePeerDependencies: 188 | - bufferutil 189 | - utf-8-validate 190 | dev: true 191 | 192 | /@types/stack-trace/0.0.29: 193 | resolution: {integrity: sha512-TgfOX+mGY/NyNxJLIbDWrO9DjGoVSW9+aB8H2yy1fy32jsvxijhmyJI9fDFgvz3YP4lvJaq9DzdR/M1bOgVc9g==} 194 | dev: true 195 | 196 | /blake3-wasm/2.1.5: 197 | resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} 198 | dev: true 199 | 200 | /buffer-from/1.1.2: 201 | resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} 202 | dev: true 203 | 204 | /busboy/1.6.0: 205 | resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} 206 | engines: {node: '>=10.16.0'} 207 | dependencies: 208 | streamsearch: 1.1.0 209 | dev: true 210 | 211 | /cookie/0.4.2: 212 | resolution: {integrity: sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==} 213 | engines: {node: '>= 0.6'} 214 | dev: true 215 | 216 | /cron-schedule/3.0.6: 217 | resolution: {integrity: sha512-izfGgKyzzIyLaeb1EtZ3KbglkS6AKp9cv7LxmiyoOu+fXfol1tQDC0Cof0enVZGNtudTHW+3lfuW9ZkLQss4Wg==} 218 | dev: true 219 | 220 | /dotenv/10.0.0: 221 | resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==} 222 | engines: {node: '>=10'} 223 | dev: true 224 | 225 | /esbuild-android-64/0.14.47: 226 | resolution: {integrity: sha512-R13Bd9+tqLVFndncMHssZrPWe6/0Kpv2/dt4aA69soX4PRxlzsVpCvoJeFE8sOEoeVEiBkI0myjlkDodXlHa0g==} 227 | engines: {node: '>=12'} 228 | cpu: [x64] 229 | os: [android] 230 | requiresBuild: true 231 | dev: true 232 | optional: true 233 | 234 | /esbuild-android-arm64/0.14.47: 235 | resolution: {integrity: sha512-OkwOjj7ts4lBp/TL6hdd8HftIzOy/pdtbrNA4+0oVWgGG64HrdVzAF5gxtJufAPOsEjkyh1oIYvKAUinKKQRSQ==} 236 | engines: {node: '>=12'} 237 | cpu: [arm64] 238 | os: [android] 239 | requiresBuild: true 240 | dev: true 241 | optional: true 242 | 243 | /esbuild-darwin-64/0.14.47: 244 | resolution: {integrity: sha512-R6oaW0y5/u6Eccti/TS6c/2c1xYTb1izwK3gajJwi4vIfNs1s8B1dQzI1UiC9T61YovOQVuePDcfqHLT3mUZJA==} 245 | engines: {node: '>=12'} 246 | cpu: [x64] 247 | os: [darwin] 248 | requiresBuild: true 249 | dev: true 250 | optional: true 251 | 252 | /esbuild-darwin-arm64/0.14.47: 253 | resolution: {integrity: sha512-seCmearlQyvdvM/noz1L9+qblC5vcBrhUaOoLEDDoLInF/VQ9IkobGiLlyTPYP5dW1YD4LXhtBgOyevoIHGGnw==} 254 | engines: {node: '>=12'} 255 | cpu: [arm64] 256 | os: [darwin] 257 | requiresBuild: true 258 | dev: true 259 | optional: true 260 | 261 | /esbuild-freebsd-64/0.14.47: 262 | resolution: {integrity: sha512-ZH8K2Q8/Ux5kXXvQMDsJcxvkIwut69KVrYQhza/ptkW50DC089bCVrJZZ3sKzIoOx+YPTrmsZvqeZERjyYrlvQ==} 263 | engines: {node: '>=12'} 264 | cpu: [x64] 265 | os: [freebsd] 266 | requiresBuild: true 267 | dev: true 268 | optional: true 269 | 270 | /esbuild-freebsd-arm64/0.14.47: 271 | resolution: {integrity: sha512-ZJMQAJQsIOhn3XTm7MPQfCzEu5b9STNC+s90zMWe2afy9EwnHV7Ov7ohEMv2lyWlc2pjqLW8QJnz2r0KZmeAEQ==} 272 | engines: {node: '>=12'} 273 | cpu: [arm64] 274 | os: [freebsd] 275 | requiresBuild: true 276 | dev: true 277 | optional: true 278 | 279 | /esbuild-linux-32/0.14.47: 280 | resolution: {integrity: sha512-FxZOCKoEDPRYvq300lsWCTv1kcHgiiZfNrPtEhFAiqD7QZaXrad8LxyJ8fXGcWzIFzRiYZVtB3ttvITBvAFhKw==} 281 | engines: {node: '>=12'} 282 | cpu: [ia32] 283 | os: [linux] 284 | requiresBuild: true 285 | dev: true 286 | optional: true 287 | 288 | /esbuild-linux-64/0.14.47: 289 | resolution: {integrity: sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw==} 290 | engines: {node: '>=12'} 291 | cpu: [x64] 292 | os: [linux] 293 | requiresBuild: true 294 | dev: true 295 | optional: true 296 | 297 | /esbuild-linux-arm/0.14.47: 298 | resolution: {integrity: sha512-ZGE1Bqg/gPRXrBpgpvH81tQHpiaGxa8c9Rx/XOylkIl2ypLuOcawXEAo8ls+5DFCcRGt/o3sV+PzpAFZobOsmA==} 299 | engines: {node: '>=12'} 300 | cpu: [arm] 301 | os: [linux] 302 | requiresBuild: true 303 | dev: true 304 | optional: true 305 | 306 | /esbuild-linux-arm64/0.14.47: 307 | resolution: {integrity: sha512-ywfme6HVrhWcevzmsufjd4iT3PxTfCX9HOdxA7Hd+/ZM23Y9nXeb+vG6AyA6jgq/JovkcqRHcL9XwRNpWG6XRw==} 308 | engines: {node: '>=12'} 309 | cpu: [arm64] 310 | os: [linux] 311 | requiresBuild: true 312 | dev: true 313 | optional: true 314 | 315 | /esbuild-linux-mips64le/0.14.47: 316 | resolution: {integrity: sha512-mg3D8YndZ1LvUiEdDYR3OsmeyAew4MA/dvaEJxvyygahWmpv1SlEEnhEZlhPokjsUMfRagzsEF/d/2XF+kTQGg==} 317 | engines: {node: '>=12'} 318 | cpu: [mips64el] 319 | os: [linux] 320 | requiresBuild: true 321 | dev: true 322 | optional: true 323 | 324 | /esbuild-linux-ppc64le/0.14.47: 325 | resolution: {integrity: sha512-WER+f3+szmnZiWoK6AsrTKGoJoErG2LlauSmk73LEZFQ/iWC+KhhDsOkn1xBUpzXWsxN9THmQFltLoaFEH8F8w==} 326 | engines: {node: '>=12'} 327 | cpu: [ppc64] 328 | os: [linux] 329 | requiresBuild: true 330 | dev: true 331 | optional: true 332 | 333 | /esbuild-linux-riscv64/0.14.47: 334 | resolution: {integrity: sha512-1fI6bP3A3rvI9BsaaXbMoaOjLE3lVkJtLxsgLHqlBhLlBVY7UqffWBvkrX/9zfPhhVMd9ZRFiaqXnB1T7BsL2g==} 335 | engines: {node: '>=12'} 336 | cpu: [riscv64] 337 | os: [linux] 338 | requiresBuild: true 339 | dev: true 340 | optional: true 341 | 342 | /esbuild-linux-s390x/0.14.47: 343 | resolution: {integrity: sha512-eZrWzy0xFAhki1CWRGnhsHVz7IlSKX6yT2tj2Eg8lhAwlRE5E96Hsb0M1mPSE1dHGpt1QVwwVivXIAacF/G6mw==} 344 | engines: {node: '>=12'} 345 | cpu: [s390x] 346 | os: [linux] 347 | requiresBuild: true 348 | dev: true 349 | optional: true 350 | 351 | /esbuild-netbsd-64/0.14.47: 352 | resolution: {integrity: sha512-Qjdjr+KQQVH5Q2Q1r6HBYswFTToPpss3gqCiSw2Fpq/ua8+eXSQyAMG+UvULPqXceOwpnPo4smyZyHdlkcPppQ==} 353 | engines: {node: '>=12'} 354 | cpu: [x64] 355 | os: [netbsd] 356 | requiresBuild: true 357 | dev: true 358 | optional: true 359 | 360 | /esbuild-openbsd-64/0.14.47: 361 | resolution: {integrity: sha512-QpgN8ofL7B9z8g5zZqJE+eFvD1LehRlxr25PBkjyyasakm4599iroUpaj96rdqRlO2ShuyqwJdr+oNqWwTUmQw==} 362 | engines: {node: '>=12'} 363 | cpu: [x64] 364 | os: [openbsd] 365 | requiresBuild: true 366 | dev: true 367 | optional: true 368 | 369 | /esbuild-sunos-64/0.14.47: 370 | resolution: {integrity: sha512-uOeSgLUwukLioAJOiGYm3kNl+1wJjgJA8R671GYgcPgCx7QR73zfvYqXFFcIO93/nBdIbt5hd8RItqbbf3HtAQ==} 371 | engines: {node: '>=12'} 372 | cpu: [x64] 373 | os: [sunos] 374 | requiresBuild: true 375 | dev: true 376 | optional: true 377 | 378 | /esbuild-windows-32/0.14.47: 379 | resolution: {integrity: sha512-H0fWsLTp2WBfKLBgwYT4OTfFly4Im/8B5f3ojDv1Kx//kiubVY0IQunP2Koc/fr/0wI7hj3IiBDbSrmKlrNgLQ==} 380 | engines: {node: '>=12'} 381 | cpu: [ia32] 382 | os: [win32] 383 | requiresBuild: true 384 | dev: true 385 | optional: true 386 | 387 | /esbuild-windows-64/0.14.47: 388 | resolution: {integrity: sha512-/Pk5jIEH34T68r8PweKRi77W49KwanZ8X6lr3vDAtOlH5EumPE4pBHqkCUdELanvsT14yMXLQ/C/8XPi1pAtkQ==} 389 | engines: {node: '>=12'} 390 | cpu: [x64] 391 | os: [win32] 392 | requiresBuild: true 393 | dev: true 394 | optional: true 395 | 396 | /esbuild-windows-arm64/0.14.47: 397 | resolution: {integrity: sha512-HFSW2lnp62fl86/qPQlqw6asIwCnEsEoNIL1h2uVMgakddf+vUuMcCbtUY1i8sst7KkgHrVKCJQB33YhhOweCQ==} 398 | engines: {node: '>=12'} 399 | cpu: [arm64] 400 | os: [win32] 401 | requiresBuild: true 402 | dev: true 403 | optional: true 404 | 405 | /esbuild/0.14.47: 406 | resolution: {integrity: sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA==} 407 | engines: {node: '>=12'} 408 | hasBin: true 409 | requiresBuild: true 410 | optionalDependencies: 411 | esbuild-android-64: 0.14.47 412 | esbuild-android-arm64: 0.14.47 413 | esbuild-darwin-64: 0.14.47 414 | esbuild-darwin-arm64: 0.14.47 415 | esbuild-freebsd-64: 0.14.47 416 | esbuild-freebsd-arm64: 0.14.47 417 | esbuild-linux-32: 0.14.47 418 | esbuild-linux-64: 0.14.47 419 | esbuild-linux-arm: 0.14.47 420 | esbuild-linux-arm64: 0.14.47 421 | esbuild-linux-mips64le: 0.14.47 422 | esbuild-linux-ppc64le: 0.14.47 423 | esbuild-linux-riscv64: 0.14.47 424 | esbuild-linux-s390x: 0.14.47 425 | esbuild-netbsd-64: 0.14.47 426 | esbuild-openbsd-64: 0.14.47 427 | esbuild-sunos-64: 0.14.47 428 | esbuild-windows-32: 0.14.47 429 | esbuild-windows-64: 0.14.47 430 | esbuild-windows-arm64: 0.14.47 431 | dev: true 432 | 433 | /escape-string-regexp/4.0.0: 434 | resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} 435 | engines: {node: '>=10'} 436 | dev: true 437 | 438 | /estree-walker/0.6.1: 439 | resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} 440 | dev: true 441 | 442 | /fsevents/2.3.2: 443 | resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} 444 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 445 | os: [darwin] 446 | requiresBuild: true 447 | dev: true 448 | optional: true 449 | 450 | /html-rewriter-wasm/0.4.1: 451 | resolution: {integrity: sha512-lNovG8CMCCmcVB1Q7xggMSf7tqPCijZXaH4gL6iE8BFghdQCbaY5Met9i1x2Ex8m/cZHDUtXK9H6/znKamRP8Q==} 452 | dev: true 453 | 454 | /http-cache-semantics/4.1.0: 455 | resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==} 456 | dev: true 457 | 458 | /ignore/5.2.0: 459 | resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} 460 | engines: {node: '>= 4'} 461 | dev: true 462 | 463 | /kleur/4.1.5: 464 | resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} 465 | engines: {node: '>=6'} 466 | dev: true 467 | 468 | /magic-string/0.25.9: 469 | resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} 470 | dependencies: 471 | sourcemap-codec: 1.4.8 472 | dev: true 473 | 474 | /mime/3.0.0: 475 | resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} 476 | engines: {node: '>=10.0.0'} 477 | hasBin: true 478 | dev: true 479 | 480 | /miniflare/2.6.0: 481 | resolution: {integrity: sha512-KDAQZV2aDZ044X1ihlCIa6DPdq1w3fUJFW4xZ+r+DPUxj9t1AuehjR9Fc6zCmZQrk12gLXDSZSyNft1ozm1X7Q==} 482 | engines: {node: '>=16.7'} 483 | hasBin: true 484 | peerDependencies: 485 | '@miniflare/storage-redis': 2.6.0 486 | cron-schedule: ^3.0.4 487 | ioredis: ^4.27.9 488 | peerDependenciesMeta: 489 | '@miniflare/storage-redis': 490 | optional: true 491 | cron-schedule: 492 | optional: true 493 | ioredis: 494 | optional: true 495 | dependencies: 496 | '@miniflare/cache': 2.6.0 497 | '@miniflare/cli-parser': 2.6.0 498 | '@miniflare/core': 2.6.0 499 | '@miniflare/durable-objects': 2.6.0 500 | '@miniflare/html-rewriter': 2.6.0 501 | '@miniflare/http-server': 2.6.0 502 | '@miniflare/kv': 2.6.0 503 | '@miniflare/r2': 2.6.0 504 | '@miniflare/runner-vm': 2.6.0 505 | '@miniflare/scheduler': 2.6.0 506 | '@miniflare/shared': 2.6.0 507 | '@miniflare/sites': 2.6.0 508 | '@miniflare/storage-file': 2.6.0 509 | '@miniflare/storage-memory': 2.6.0 510 | '@miniflare/web-sockets': 2.6.0 511 | kleur: 4.1.5 512 | semiver: 1.1.0 513 | source-map-support: 0.5.21 514 | undici: 5.5.1 515 | transitivePeerDependencies: 516 | - bufferutil 517 | - utf-8-validate 518 | dev: true 519 | 520 | /mustache/4.2.0: 521 | resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} 522 | hasBin: true 523 | dev: true 524 | 525 | /nanoid/3.3.4: 526 | resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==} 527 | engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} 528 | hasBin: true 529 | dev: true 530 | 531 | /node-forge/1.3.1: 532 | resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} 533 | engines: {node: '>= 6.13.0'} 534 | dev: true 535 | 536 | /path-to-regexp/6.2.1: 537 | resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} 538 | dev: true 539 | 540 | /rollup-plugin-inject/3.0.2: 541 | resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==} 542 | deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject. 543 | dependencies: 544 | estree-walker: 0.6.1 545 | magic-string: 0.25.9 546 | rollup-pluginutils: 2.8.2 547 | dev: true 548 | 549 | /rollup-plugin-node-polyfills/0.2.1: 550 | resolution: {integrity: sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==} 551 | dependencies: 552 | rollup-plugin-inject: 3.0.2 553 | dev: true 554 | 555 | /rollup-pluginutils/2.8.2: 556 | resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} 557 | dependencies: 558 | estree-walker: 0.6.1 559 | dev: true 560 | 561 | /selfsigned/2.0.1: 562 | resolution: {integrity: sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ==} 563 | engines: {node: '>=10'} 564 | dependencies: 565 | node-forge: 1.3.1 566 | dev: true 567 | 568 | /semiver/1.1.0: 569 | resolution: {integrity: sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==} 570 | engines: {node: '>=6'} 571 | dev: true 572 | 573 | /set-cookie-parser/2.5.0: 574 | resolution: {integrity: sha512-cHMAtSXilfyBePduZEBVPTCftTQWz6ehWJD5YNUg4mqvRosrrjKbo4WS8JkB0/RxonMoohHm7cOGH60mDkRQ9w==} 575 | dev: true 576 | 577 | /source-map-support/0.5.21: 578 | resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} 579 | dependencies: 580 | buffer-from: 1.1.2 581 | source-map: 0.6.1 582 | dev: true 583 | 584 | /source-map/0.6.1: 585 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} 586 | engines: {node: '>=0.10.0'} 587 | dev: true 588 | 589 | /sourcemap-codec/1.4.8: 590 | resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} 591 | dev: true 592 | 593 | /stack-trace/0.0.10: 594 | resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} 595 | dev: true 596 | 597 | /streamsearch/1.1.0: 598 | resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} 599 | engines: {node: '>=10.0.0'} 600 | dev: true 601 | 602 | /undici/5.5.1: 603 | resolution: {integrity: sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==} 604 | engines: {node: '>=12.18'} 605 | dev: true 606 | 607 | /urlpattern-polyfill/4.0.3: 608 | resolution: {integrity: sha512-DOE84vZT2fEcl9gqCUTcnAw5ZY5Id55ikUcziSUntuEFL3pRvavg5kwDmTEUJkeCHInTlV/HexFomgYnzO5kdQ==} 609 | dev: true 610 | 611 | /wrangler/2.0.22: 612 | resolution: {integrity: sha512-mCKNvv3Yq8ClBaiEKZ/KGTYhwhf5r5ElkTNtUj50Y0Qo9JJYvLnphMteEjfnID5iopv2FxmHDeRSn/Jx7zSAkw==} 613 | engines: {node: '>=16.7.0'} 614 | hasBin: true 615 | dependencies: 616 | '@cloudflare/kv-asset-handler': 0.2.0 617 | '@esbuild-plugins/node-globals-polyfill': 0.1.1_esbuild@0.14.47 618 | '@esbuild-plugins/node-modules-polyfill': 0.1.4_esbuild@0.14.47 619 | blake3-wasm: 2.1.5 620 | esbuild: 0.14.47 621 | miniflare: 2.6.0 622 | nanoid: 3.3.4 623 | path-to-regexp: 6.2.1 624 | selfsigned: 2.0.1 625 | xxhash-wasm: 1.0.1 626 | optionalDependencies: 627 | fsevents: 2.3.2 628 | transitivePeerDependencies: 629 | - '@miniflare/storage-redis' 630 | - bufferutil 631 | - cron-schedule 632 | - ioredis 633 | - utf-8-validate 634 | dev: true 635 | 636 | /ws/8.8.1: 637 | resolution: {integrity: sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==} 638 | engines: {node: '>=10.0.0'} 639 | peerDependencies: 640 | bufferutil: ^4.0.1 641 | utf-8-validate: ^5.0.2 642 | peerDependenciesMeta: 643 | bufferutil: 644 | optional: true 645 | utf-8-validate: 646 | optional: true 647 | dev: true 648 | 649 | /xxhash-wasm/1.0.1: 650 | resolution: {integrity: sha512-Lc9CTvDrH2vRoiaUzz25q7lRaviMhz90pkx6YxR9EPYtF99yOJnv2cB+CQ0hp/TLoqrUsk8z/W2EN31T568Azw==} 651 | dev: true 652 | 653 | /youch/2.2.2: 654 | resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} 655 | dependencies: 656 | '@types/stack-trace': 0.0.29 657 | cookie: 0.4.2 658 | mustache: 4.2.0 659 | stack-trace: 0.0.10 660 | dev: true 661 | -------------------------------------------------------------------------------- /src/Templates/templates/Cloudflare/pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: 5.4 2 | 3 | specifiers: 4 | wrangler: 2.0.22 5 | 6 | devDependencies: 7 | wrangler: 2.0.22 8 | 9 | packages: 10 | 11 | /@cloudflare/kv-asset-handler/0.2.0: 12 | resolution: {integrity: sha512-MVbXLbTcAotOPUj0pAMhVtJ+3/kFkwJqc5qNOleOZTv6QkZZABDMS21dSrSlVswEHwrpWC03e4fWytjqKvuE2A==} 13 | dependencies: 14 | mime: 3.0.0 15 | dev: true 16 | 17 | /@esbuild-plugins/node-globals-polyfill/0.1.1_esbuild@0.14.47: 18 | resolution: {integrity: sha512-MR0oAA+mlnJWrt1RQVQ+4VYuRJW/P2YmRTv1AsplObyvuBMnPHiizUF95HHYiSsMGLhyGtWufaq2XQg6+iurBg==} 19 | peerDependencies: 20 | esbuild: '*' 21 | dependencies: 22 | esbuild: 0.14.47 23 | dev: true 24 | 25 | /@esbuild-plugins/node-modules-polyfill/0.1.4_esbuild@0.14.47: 26 | resolution: {integrity: sha512-uZbcXi0zbmKC/050p3gJnne5Qdzw8vkXIv+c2BW0Lsc1ji1SkrxbKPUy5Efr0blbTu1SL8w4eyfpnSdPg3G0Qg==} 27 | peerDependencies: 28 | esbuild: '*' 29 | dependencies: 30 | esbuild: 0.14.47 31 | escape-string-regexp: 4.0.0 32 | rollup-plugin-node-polyfills: 0.2.1 33 | dev: true 34 | 35 | /@iarna/toml/2.2.5: 36 | resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} 37 | dev: true 38 | 39 | /@miniflare/cache/2.6.0: 40 | resolution: {integrity: sha512-4oh8MgpquoxaslI7Z8sMzmEZR0Dc+L3aEh69o9d8ZCs4nUdOENnfKlY50O5nEnL7nhhyAljkMBaXD2wAH2DLeQ==} 41 | engines: {node: '>=16.7'} 42 | dependencies: 43 | '@miniflare/core': 2.6.0 44 | '@miniflare/shared': 2.6.0 45 | http-cache-semantics: 4.1.0 46 | undici: 5.5.1 47 | dev: true 48 | 49 | /@miniflare/cli-parser/2.6.0: 50 | resolution: {integrity: sha512-dJDoIPAUqWhzvBHHyqyhobdzDedBYRWZ4yItBi9m4MTU/EneLJ5jryB340SwUnmtBMZxUh/LWdAuUEkKpdVNyA==} 51 | engines: {node: '>=16.7'} 52 | dependencies: 53 | '@miniflare/shared': 2.6.0 54 | kleur: 4.1.5 55 | dev: true 56 | 57 | /@miniflare/core/2.6.0: 58 | resolution: {integrity: sha512-CmofhIRot++GI7NHPMwzNb65+0hWLN186L91BrH/doPVHnT/itmEfzYQpL9bFLD0c/i14dfv+IUNetDdGEBIrw==} 59 | engines: {node: '>=16.7'} 60 | dependencies: 61 | '@iarna/toml': 2.2.5 62 | '@miniflare/shared': 2.6.0 63 | '@miniflare/watcher': 2.6.0 64 | busboy: 1.6.0 65 | dotenv: 10.0.0 66 | kleur: 4.1.5 67 | set-cookie-parser: 2.5.0 68 | undici: 5.5.1 69 | urlpattern-polyfill: 4.0.3 70 | dev: true 71 | 72 | /@miniflare/durable-objects/2.6.0: 73 | resolution: {integrity: sha512-uzWoGFtkIIh3m3HAzqd5f86nOSC0xFli6dq2q7ilE3UjgouOcLqObxJyE/IzvSwsj4DUWFv6//YDfHihK2fGAA==} 74 | engines: {node: '>=16.7'} 75 | dependencies: 76 | '@miniflare/core': 2.6.0 77 | '@miniflare/shared': 2.6.0 78 | '@miniflare/storage-memory': 2.6.0 79 | undici: 5.5.1 80 | dev: true 81 | 82 | /@miniflare/html-rewriter/2.6.0: 83 | resolution: {integrity: sha512-+JqFlIDLzstb/Spj+j/kI6uHzolrqjsMks3Tf24Q4YFo9YYdZguqUFcDz2yr79ZTP/SKXaZH+AYqosnJps4dHQ==} 84 | engines: {node: '>=16.7'} 85 | dependencies: 86 | '@miniflare/core': 2.6.0 87 | '@miniflare/shared': 2.6.0 88 | html-rewriter-wasm: 0.4.1 89 | undici: 5.5.1 90 | dev: true 91 | 92 | /@miniflare/http-server/2.6.0: 93 | resolution: {integrity: sha512-FhcAVIpipMEzMCsJBc/b0JhNEJ66GPX60vA2NcqjGKHYbwoPCPlwCFQq2giPzW/R95ugrEjPfo4/5Q4UbnpoGA==} 94 | engines: {node: '>=16.7'} 95 | dependencies: 96 | '@miniflare/core': 2.6.0 97 | '@miniflare/shared': 2.6.0 98 | '@miniflare/web-sockets': 2.6.0 99 | kleur: 4.1.5 100 | selfsigned: 2.0.1 101 | undici: 5.5.1 102 | ws: 8.8.1 103 | youch: 2.2.2 104 | transitivePeerDependencies: 105 | - bufferutil 106 | - utf-8-validate 107 | dev: true 108 | 109 | /@miniflare/kv/2.6.0: 110 | resolution: {integrity: sha512-7Q+Q0Wwinsz85qpKLlBeXSCLweiVowpMJ5AmQpmELnTya59HQ24cOUHxPd64hXFhdYXVIxOmk6lQaZ21JhdHGQ==} 111 | engines: {node: '>=16.7'} 112 | dependencies: 113 | '@miniflare/shared': 2.6.0 114 | dev: true 115 | 116 | /@miniflare/r2/2.6.0: 117 | resolution: {integrity: sha512-Ymbqu17ajtuk9b11txF2h1Ewqqlu3XCCpAwAgCQa6AK1yRidQECCPq9w9oXZxE1p5aaSuLTOUbgSdtveFCsLxQ==} 118 | engines: {node: '>=16.7'} 119 | dependencies: 120 | '@miniflare/shared': 2.6.0 121 | undici: 5.5.1 122 | dev: true 123 | 124 | /@miniflare/runner-vm/2.6.0: 125 | resolution: {integrity: sha512-ZxsiVMMUcjb01LwrO2t50YbU5PT5s3k7DrmR5185R/n04K5BikqZz8eQf8lKlQQYem0BROqmmQgurZGw0a2HUw==} 126 | engines: {node: '>=16.7'} 127 | dependencies: 128 | '@miniflare/shared': 2.6.0 129 | dev: true 130 | 131 | /@miniflare/scheduler/2.6.0: 132 | resolution: {integrity: sha512-BM+RDF+8twkTCOb7Oz0NIs5phzAVJ/Gx7tFZR23fGsZjWRnE3TBeqfzaNutU9pcoWDZtBQqEJMeTeb0KZTo75Q==} 133 | engines: {node: '>=16.7'} 134 | dependencies: 135 | '@miniflare/core': 2.6.0 136 | '@miniflare/shared': 2.6.0 137 | cron-schedule: 3.0.6 138 | dev: true 139 | 140 | /@miniflare/shared/2.6.0: 141 | resolution: {integrity: sha512-/7k4C37GF0INu99LNFmFhHYL6U9/oRY/nWDa5sr6+lPEKKm2rkmfvDIA+YNAj7Ql61ZWMgEMj0S3NhV0rWkj7Q==} 142 | engines: {node: '>=16.7'} 143 | dependencies: 144 | ignore: 5.2.0 145 | kleur: 4.1.5 146 | dev: true 147 | 148 | /@miniflare/sites/2.6.0: 149 | resolution: {integrity: sha512-XfWhpREC638LOGNmuHaPn1MAz1sh2mz+VdMsjRCzUo6NwPl4IcUhnorJR62Xr0qmI/RqVMTZbvzrChXio4Bi4A==} 150 | engines: {node: '>=16.7'} 151 | dependencies: 152 | '@miniflare/kv': 2.6.0 153 | '@miniflare/shared': 2.6.0 154 | '@miniflare/storage-file': 2.6.0 155 | dev: true 156 | 157 | /@miniflare/storage-file/2.6.0: 158 | resolution: {integrity: sha512-xprDVJClQ2X1vXVPM16WQZz3rS+6fNuCYC8bfEFHABDByQoUNDpk8q+m1IpTaFXYivYxRhE+xr7eK2QQP068tA==} 159 | engines: {node: '>=16.7'} 160 | dependencies: 161 | '@miniflare/shared': 2.6.0 162 | '@miniflare/storage-memory': 2.6.0 163 | dev: true 164 | 165 | /@miniflare/storage-memory/2.6.0: 166 | resolution: {integrity: sha512-0EwELTG2r6IC4AMlQv0YXRZdw9g/lCydceuGKeFkWAVb55pY+yMBxkJO9VV7QOrEx8MLsR8tsfl5SBK3AkfLtA==} 167 | engines: {node: '>=16.7'} 168 | dependencies: 169 | '@miniflare/shared': 2.6.0 170 | dev: true 171 | 172 | /@miniflare/watcher/2.6.0: 173 | resolution: {integrity: sha512-mttfhNDmEIFo2rWF73JeWj1TLN+3cQC1TFhbtLApz9bXilLywArXMYqDJGA8PUnJCFM/8k2FDjaFNiPy6ggIJw==} 174 | engines: {node: '>=16.7'} 175 | dependencies: 176 | '@miniflare/shared': 2.6.0 177 | dev: true 178 | 179 | /@miniflare/web-sockets/2.6.0: 180 | resolution: {integrity: sha512-ePbcuP9LrStVTllZzqx2oNVoOpceyU3jJF3nGDMNW5+bqB+BdeTggSF8rhER7omcSCswCMY2Do6VelIcAXHkXA==} 181 | engines: {node: '>=16.7'} 182 | dependencies: 183 | '@miniflare/core': 2.6.0 184 | '@miniflare/shared': 2.6.0 185 | undici: 5.5.1 186 | ws: 8.8.1 187 | transitivePeerDependencies: 188 | - bufferutil 189 | - utf-8-validate 190 | dev: true 191 | 192 | /@types/stack-trace/0.0.29: 193 | resolution: {integrity: sha512-TgfOX+mGY/NyNxJLIbDWrO9DjGoVSW9+aB8H2yy1fy32jsvxijhmyJI9fDFgvz3YP4lvJaq9DzdR/M1bOgVc9g==} 194 | dev: true 195 | 196 | /blake3-wasm/2.1.5: 197 | resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} 198 | dev: true 199 | 200 | /buffer-from/1.1.2: 201 | resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} 202 | dev: true 203 | 204 | /busboy/1.6.0: 205 | resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} 206 | engines: {node: '>=10.16.0'} 207 | dependencies: 208 | streamsearch: 1.1.0 209 | dev: true 210 | 211 | /cookie/0.4.2: 212 | resolution: {integrity: sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==} 213 | engines: {node: '>= 0.6'} 214 | dev: true 215 | 216 | /cron-schedule/3.0.6: 217 | resolution: {integrity: sha512-izfGgKyzzIyLaeb1EtZ3KbglkS6AKp9cv7LxmiyoOu+fXfol1tQDC0Cof0enVZGNtudTHW+3lfuW9ZkLQss4Wg==} 218 | dev: true 219 | 220 | /dotenv/10.0.0: 221 | resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==} 222 | engines: {node: '>=10'} 223 | dev: true 224 | 225 | /esbuild-android-64/0.14.47: 226 | resolution: {integrity: sha512-R13Bd9+tqLVFndncMHssZrPWe6/0Kpv2/dt4aA69soX4PRxlzsVpCvoJeFE8sOEoeVEiBkI0myjlkDodXlHa0g==} 227 | engines: {node: '>=12'} 228 | cpu: [x64] 229 | os: [android] 230 | requiresBuild: true 231 | dev: true 232 | optional: true 233 | 234 | /esbuild-android-arm64/0.14.47: 235 | resolution: {integrity: sha512-OkwOjj7ts4lBp/TL6hdd8HftIzOy/pdtbrNA4+0oVWgGG64HrdVzAF5gxtJufAPOsEjkyh1oIYvKAUinKKQRSQ==} 236 | engines: {node: '>=12'} 237 | cpu: [arm64] 238 | os: [android] 239 | requiresBuild: true 240 | dev: true 241 | optional: true 242 | 243 | /esbuild-darwin-64/0.14.47: 244 | resolution: {integrity: sha512-R6oaW0y5/u6Eccti/TS6c/2c1xYTb1izwK3gajJwi4vIfNs1s8B1dQzI1UiC9T61YovOQVuePDcfqHLT3mUZJA==} 245 | engines: {node: '>=12'} 246 | cpu: [x64] 247 | os: [darwin] 248 | requiresBuild: true 249 | dev: true 250 | optional: true 251 | 252 | /esbuild-darwin-arm64/0.14.47: 253 | resolution: {integrity: sha512-seCmearlQyvdvM/noz1L9+qblC5vcBrhUaOoLEDDoLInF/VQ9IkobGiLlyTPYP5dW1YD4LXhtBgOyevoIHGGnw==} 254 | engines: {node: '>=12'} 255 | cpu: [arm64] 256 | os: [darwin] 257 | requiresBuild: true 258 | dev: true 259 | optional: true 260 | 261 | /esbuild-freebsd-64/0.14.47: 262 | resolution: {integrity: sha512-ZH8K2Q8/Ux5kXXvQMDsJcxvkIwut69KVrYQhza/ptkW50DC089bCVrJZZ3sKzIoOx+YPTrmsZvqeZERjyYrlvQ==} 263 | engines: {node: '>=12'} 264 | cpu: [x64] 265 | os: [freebsd] 266 | requiresBuild: true 267 | dev: true 268 | optional: true 269 | 270 | /esbuild-freebsd-arm64/0.14.47: 271 | resolution: {integrity: sha512-ZJMQAJQsIOhn3XTm7MPQfCzEu5b9STNC+s90zMWe2afy9EwnHV7Ov7ohEMv2lyWlc2pjqLW8QJnz2r0KZmeAEQ==} 272 | engines: {node: '>=12'} 273 | cpu: [arm64] 274 | os: [freebsd] 275 | requiresBuild: true 276 | dev: true 277 | optional: true 278 | 279 | /esbuild-linux-32/0.14.47: 280 | resolution: {integrity: sha512-FxZOCKoEDPRYvq300lsWCTv1kcHgiiZfNrPtEhFAiqD7QZaXrad8LxyJ8fXGcWzIFzRiYZVtB3ttvITBvAFhKw==} 281 | engines: {node: '>=12'} 282 | cpu: [ia32] 283 | os: [linux] 284 | requiresBuild: true 285 | dev: true 286 | optional: true 287 | 288 | /esbuild-linux-64/0.14.47: 289 | resolution: {integrity: sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw==} 290 | engines: {node: '>=12'} 291 | cpu: [x64] 292 | os: [linux] 293 | requiresBuild: true 294 | dev: true 295 | optional: true 296 | 297 | /esbuild-linux-arm/0.14.47: 298 | resolution: {integrity: sha512-ZGE1Bqg/gPRXrBpgpvH81tQHpiaGxa8c9Rx/XOylkIl2ypLuOcawXEAo8ls+5DFCcRGt/o3sV+PzpAFZobOsmA==} 299 | engines: {node: '>=12'} 300 | cpu: [arm] 301 | os: [linux] 302 | requiresBuild: true 303 | dev: true 304 | optional: true 305 | 306 | /esbuild-linux-arm64/0.14.47: 307 | resolution: {integrity: sha512-ywfme6HVrhWcevzmsufjd4iT3PxTfCX9HOdxA7Hd+/ZM23Y9nXeb+vG6AyA6jgq/JovkcqRHcL9XwRNpWG6XRw==} 308 | engines: {node: '>=12'} 309 | cpu: [arm64] 310 | os: [linux] 311 | requiresBuild: true 312 | dev: true 313 | optional: true 314 | 315 | /esbuild-linux-mips64le/0.14.47: 316 | resolution: {integrity: sha512-mg3D8YndZ1LvUiEdDYR3OsmeyAew4MA/dvaEJxvyygahWmpv1SlEEnhEZlhPokjsUMfRagzsEF/d/2XF+kTQGg==} 317 | engines: {node: '>=12'} 318 | cpu: [mips64el] 319 | os: [linux] 320 | requiresBuild: true 321 | dev: true 322 | optional: true 323 | 324 | /esbuild-linux-ppc64le/0.14.47: 325 | resolution: {integrity: sha512-WER+f3+szmnZiWoK6AsrTKGoJoErG2LlauSmk73LEZFQ/iWC+KhhDsOkn1xBUpzXWsxN9THmQFltLoaFEH8F8w==} 326 | engines: {node: '>=12'} 327 | cpu: [ppc64] 328 | os: [linux] 329 | requiresBuild: true 330 | dev: true 331 | optional: true 332 | 333 | /esbuild-linux-riscv64/0.14.47: 334 | resolution: {integrity: sha512-1fI6bP3A3rvI9BsaaXbMoaOjLE3lVkJtLxsgLHqlBhLlBVY7UqffWBvkrX/9zfPhhVMd9ZRFiaqXnB1T7BsL2g==} 335 | engines: {node: '>=12'} 336 | cpu: [riscv64] 337 | os: [linux] 338 | requiresBuild: true 339 | dev: true 340 | optional: true 341 | 342 | /esbuild-linux-s390x/0.14.47: 343 | resolution: {integrity: sha512-eZrWzy0xFAhki1CWRGnhsHVz7IlSKX6yT2tj2Eg8lhAwlRE5E96Hsb0M1mPSE1dHGpt1QVwwVivXIAacF/G6mw==} 344 | engines: {node: '>=12'} 345 | cpu: [s390x] 346 | os: [linux] 347 | requiresBuild: true 348 | dev: true 349 | optional: true 350 | 351 | /esbuild-netbsd-64/0.14.47: 352 | resolution: {integrity: sha512-Qjdjr+KQQVH5Q2Q1r6HBYswFTToPpss3gqCiSw2Fpq/ua8+eXSQyAMG+UvULPqXceOwpnPo4smyZyHdlkcPppQ==} 353 | engines: {node: '>=12'} 354 | cpu: [x64] 355 | os: [netbsd] 356 | requiresBuild: true 357 | dev: true 358 | optional: true 359 | 360 | /esbuild-openbsd-64/0.14.47: 361 | resolution: {integrity: sha512-QpgN8ofL7B9z8g5zZqJE+eFvD1LehRlxr25PBkjyyasakm4599iroUpaj96rdqRlO2ShuyqwJdr+oNqWwTUmQw==} 362 | engines: {node: '>=12'} 363 | cpu: [x64] 364 | os: [openbsd] 365 | requiresBuild: true 366 | dev: true 367 | optional: true 368 | 369 | /esbuild-sunos-64/0.14.47: 370 | resolution: {integrity: sha512-uOeSgLUwukLioAJOiGYm3kNl+1wJjgJA8R671GYgcPgCx7QR73zfvYqXFFcIO93/nBdIbt5hd8RItqbbf3HtAQ==} 371 | engines: {node: '>=12'} 372 | cpu: [x64] 373 | os: [sunos] 374 | requiresBuild: true 375 | dev: true 376 | optional: true 377 | 378 | /esbuild-windows-32/0.14.47: 379 | resolution: {integrity: sha512-H0fWsLTp2WBfKLBgwYT4OTfFly4Im/8B5f3ojDv1Kx//kiubVY0IQunP2Koc/fr/0wI7hj3IiBDbSrmKlrNgLQ==} 380 | engines: {node: '>=12'} 381 | cpu: [ia32] 382 | os: [win32] 383 | requiresBuild: true 384 | dev: true 385 | optional: true 386 | 387 | /esbuild-windows-64/0.14.47: 388 | resolution: {integrity: sha512-/Pk5jIEH34T68r8PweKRi77W49KwanZ8X6lr3vDAtOlH5EumPE4pBHqkCUdELanvsT14yMXLQ/C/8XPi1pAtkQ==} 389 | engines: {node: '>=12'} 390 | cpu: [x64] 391 | os: [win32] 392 | requiresBuild: true 393 | dev: true 394 | optional: true 395 | 396 | /esbuild-windows-arm64/0.14.47: 397 | resolution: {integrity: sha512-HFSW2lnp62fl86/qPQlqw6asIwCnEsEoNIL1h2uVMgakddf+vUuMcCbtUY1i8sst7KkgHrVKCJQB33YhhOweCQ==} 398 | engines: {node: '>=12'} 399 | cpu: [arm64] 400 | os: [win32] 401 | requiresBuild: true 402 | dev: true 403 | optional: true 404 | 405 | /esbuild/0.14.47: 406 | resolution: {integrity: sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA==} 407 | engines: {node: '>=12'} 408 | hasBin: true 409 | requiresBuild: true 410 | optionalDependencies: 411 | esbuild-android-64: 0.14.47 412 | esbuild-android-arm64: 0.14.47 413 | esbuild-darwin-64: 0.14.47 414 | esbuild-darwin-arm64: 0.14.47 415 | esbuild-freebsd-64: 0.14.47 416 | esbuild-freebsd-arm64: 0.14.47 417 | esbuild-linux-32: 0.14.47 418 | esbuild-linux-64: 0.14.47 419 | esbuild-linux-arm: 0.14.47 420 | esbuild-linux-arm64: 0.14.47 421 | esbuild-linux-mips64le: 0.14.47 422 | esbuild-linux-ppc64le: 0.14.47 423 | esbuild-linux-riscv64: 0.14.47 424 | esbuild-linux-s390x: 0.14.47 425 | esbuild-netbsd-64: 0.14.47 426 | esbuild-openbsd-64: 0.14.47 427 | esbuild-sunos-64: 0.14.47 428 | esbuild-windows-32: 0.14.47 429 | esbuild-windows-64: 0.14.47 430 | esbuild-windows-arm64: 0.14.47 431 | dev: true 432 | 433 | /escape-string-regexp/4.0.0: 434 | resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} 435 | engines: {node: '>=10'} 436 | dev: true 437 | 438 | /estree-walker/0.6.1: 439 | resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} 440 | dev: true 441 | 442 | /fsevents/2.3.2: 443 | resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} 444 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 445 | os: [darwin] 446 | requiresBuild: true 447 | dev: true 448 | optional: true 449 | 450 | /html-rewriter-wasm/0.4.1: 451 | resolution: {integrity: sha512-lNovG8CMCCmcVB1Q7xggMSf7tqPCijZXaH4gL6iE8BFghdQCbaY5Met9i1x2Ex8m/cZHDUtXK9H6/znKamRP8Q==} 452 | dev: true 453 | 454 | /http-cache-semantics/4.1.0: 455 | resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==} 456 | dev: true 457 | 458 | /ignore/5.2.0: 459 | resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} 460 | engines: {node: '>= 4'} 461 | dev: true 462 | 463 | /kleur/4.1.5: 464 | resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} 465 | engines: {node: '>=6'} 466 | dev: true 467 | 468 | /magic-string/0.25.9: 469 | resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} 470 | dependencies: 471 | sourcemap-codec: 1.4.8 472 | dev: true 473 | 474 | /mime/3.0.0: 475 | resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} 476 | engines: {node: '>=10.0.0'} 477 | hasBin: true 478 | dev: true 479 | 480 | /miniflare/2.6.0: 481 | resolution: {integrity: sha512-KDAQZV2aDZ044X1ihlCIa6DPdq1w3fUJFW4xZ+r+DPUxj9t1AuehjR9Fc6zCmZQrk12gLXDSZSyNft1ozm1X7Q==} 482 | engines: {node: '>=16.7'} 483 | hasBin: true 484 | peerDependencies: 485 | '@miniflare/storage-redis': 2.6.0 486 | cron-schedule: ^3.0.4 487 | ioredis: ^4.27.9 488 | peerDependenciesMeta: 489 | '@miniflare/storage-redis': 490 | optional: true 491 | cron-schedule: 492 | optional: true 493 | ioredis: 494 | optional: true 495 | dependencies: 496 | '@miniflare/cache': 2.6.0 497 | '@miniflare/cli-parser': 2.6.0 498 | '@miniflare/core': 2.6.0 499 | '@miniflare/durable-objects': 2.6.0 500 | '@miniflare/html-rewriter': 2.6.0 501 | '@miniflare/http-server': 2.6.0 502 | '@miniflare/kv': 2.6.0 503 | '@miniflare/r2': 2.6.0 504 | '@miniflare/runner-vm': 2.6.0 505 | '@miniflare/scheduler': 2.6.0 506 | '@miniflare/shared': 2.6.0 507 | '@miniflare/sites': 2.6.0 508 | '@miniflare/storage-file': 2.6.0 509 | '@miniflare/storage-memory': 2.6.0 510 | '@miniflare/web-sockets': 2.6.0 511 | kleur: 4.1.5 512 | semiver: 1.1.0 513 | source-map-support: 0.5.21 514 | undici: 5.5.1 515 | transitivePeerDependencies: 516 | - bufferutil 517 | - utf-8-validate 518 | dev: true 519 | 520 | /mustache/4.2.0: 521 | resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} 522 | hasBin: true 523 | dev: true 524 | 525 | /nanoid/3.3.4: 526 | resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==} 527 | engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} 528 | hasBin: true 529 | dev: true 530 | 531 | /node-forge/1.3.1: 532 | resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} 533 | engines: {node: '>= 6.13.0'} 534 | dev: true 535 | 536 | /path-to-regexp/6.2.1: 537 | resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} 538 | dev: true 539 | 540 | /rollup-plugin-inject/3.0.2: 541 | resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==} 542 | deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject. 543 | dependencies: 544 | estree-walker: 0.6.1 545 | magic-string: 0.25.9 546 | rollup-pluginutils: 2.8.2 547 | dev: true 548 | 549 | /rollup-plugin-node-polyfills/0.2.1: 550 | resolution: {integrity: sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==} 551 | dependencies: 552 | rollup-plugin-inject: 3.0.2 553 | dev: true 554 | 555 | /rollup-pluginutils/2.8.2: 556 | resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} 557 | dependencies: 558 | estree-walker: 0.6.1 559 | dev: true 560 | 561 | /selfsigned/2.0.1: 562 | resolution: {integrity: sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ==} 563 | engines: {node: '>=10'} 564 | dependencies: 565 | node-forge: 1.3.1 566 | dev: true 567 | 568 | /semiver/1.1.0: 569 | resolution: {integrity: sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==} 570 | engines: {node: '>=6'} 571 | dev: true 572 | 573 | /set-cookie-parser/2.5.0: 574 | resolution: {integrity: sha512-cHMAtSXilfyBePduZEBVPTCftTQWz6ehWJD5YNUg4mqvRosrrjKbo4WS8JkB0/RxonMoohHm7cOGH60mDkRQ9w==} 575 | dev: true 576 | 577 | /source-map-support/0.5.21: 578 | resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} 579 | dependencies: 580 | buffer-from: 1.1.2 581 | source-map: 0.6.1 582 | dev: true 583 | 584 | /source-map/0.6.1: 585 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} 586 | engines: {node: '>=0.10.0'} 587 | dev: true 588 | 589 | /sourcemap-codec/1.4.8: 590 | resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} 591 | dev: true 592 | 593 | /stack-trace/0.0.10: 594 | resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} 595 | dev: true 596 | 597 | /streamsearch/1.1.0: 598 | resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} 599 | engines: {node: '>=10.0.0'} 600 | dev: true 601 | 602 | /undici/5.5.1: 603 | resolution: {integrity: sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==} 604 | engines: {node: '>=12.18'} 605 | dev: true 606 | 607 | /urlpattern-polyfill/4.0.3: 608 | resolution: {integrity: sha512-DOE84vZT2fEcl9gqCUTcnAw5ZY5Id55ikUcziSUntuEFL3pRvavg5kwDmTEUJkeCHInTlV/HexFomgYnzO5kdQ==} 609 | dev: true 610 | 611 | /wrangler/2.0.22: 612 | resolution: {integrity: sha512-mCKNvv3Yq8ClBaiEKZ/KGTYhwhf5r5ElkTNtUj50Y0Qo9JJYvLnphMteEjfnID5iopv2FxmHDeRSn/Jx7zSAkw==} 613 | engines: {node: '>=16.7.0'} 614 | hasBin: true 615 | dependencies: 616 | '@cloudflare/kv-asset-handler': 0.2.0 617 | '@esbuild-plugins/node-globals-polyfill': 0.1.1_esbuild@0.14.47 618 | '@esbuild-plugins/node-modules-polyfill': 0.1.4_esbuild@0.14.47 619 | blake3-wasm: 2.1.5 620 | esbuild: 0.14.47 621 | miniflare: 2.6.0 622 | nanoid: 3.3.4 623 | path-to-regexp: 6.2.1 624 | selfsigned: 2.0.1 625 | xxhash-wasm: 1.0.1 626 | optionalDependencies: 627 | fsevents: 2.3.2 628 | transitivePeerDependencies: 629 | - '@miniflare/storage-redis' 630 | - bufferutil 631 | - cron-schedule 632 | - ioredis 633 | - utf-8-validate 634 | dev: true 635 | 636 | /ws/8.8.1: 637 | resolution: {integrity: sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==} 638 | engines: {node: '>=10.0.0'} 639 | peerDependencies: 640 | bufferutil: ^4.0.1 641 | utf-8-validate: ^5.0.2 642 | peerDependenciesMeta: 643 | bufferutil: 644 | optional: true 645 | utf-8-validate: 646 | optional: true 647 | dev: true 648 | 649 | /xxhash-wasm/1.0.1: 650 | resolution: {integrity: sha512-Lc9CTvDrH2vRoiaUzz25q7lRaviMhz90pkx6YxR9EPYtF99yOJnv2cB+CQ0hp/TLoqrUsk8z/W2EN31T568Azw==} 651 | dev: true 652 | 653 | /youch/2.2.2: 654 | resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} 655 | dependencies: 656 | '@types/stack-trace': 0.0.29 657 | cookie: 0.4.2 658 | mustache: 4.2.0 659 | stack-trace: 0.0.10 660 | dev: true 661 | --------------------------------------------------------------------------------