diff --git a/README.md b/README.md index bf3707f..99e1b76 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,3 @@ If you execute this code on a deployed Bunny.net Edge Scripting script, the serv be used to execute requests on a connected PullZone. Full list of examples is in the [example folder](./example/). - diff --git a/docs-json/sdk-0.11.2.json b/docs-json/sdk-0.11.2.json index 432c906..ed66606 100644 --- a/docs-json/sdk-0.11.2.json +++ b/docs-json/sdk-0.11.2.json @@ -11,6 +11,22 @@ "variant": "declaration", "kind": 4, "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Docs for " + }, + { + "kind": "code", + "text": "`net`" + }, + { + "kind": "text", + "text": " module" + } + ] + }, "children": [ { "id": 66, @@ -2049,13 +2065,8 @@ } ], "type": { - "type": "reference", - "target": { - "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Symbol" - }, - "name": "Symbol", - "package": "typescript" + "type": "intrinsic", + "name": "symbol" }, "defaultValue": "addr_symbol" }, @@ -3146,7 +3157,6 @@ } ], "packageName": "@bunny.net/edgescript-sdk", - "packageVersion": "0.11.2", "readme": [ { "kind": "text", diff --git a/docs-json/sdk-latest.json b/docs-json/sdk-latest.json new file mode 100644 index 0000000..a07f301 --- /dev/null +++ b/docs-json/sdk-latest.json @@ -0,0 +1,3741 @@ +{ + "id": 0, + "name": "@bunny.net/edgescript-sdk/latest", + "variant": "project", + "kind": 1, + "flags": {}, + "children": [ + { + "id": 1, + "name": "net", + "variant": "declaration", + "kind": 4, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Docs for " + }, + { + "kind": "code", + "text": "`net`" + }, + { + "kind": "text", + "text": " module" + } + ] + }, + "children": [ + { + "id": 66, + "name": "http", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 70, + "name": "OriginRequestContext", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 111, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 71, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 72, + "name": "request", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 112, + "character": 2 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Request" + }, + "name": "Request", + "package": "@types/node", + "qualifiedName": "__global.Request" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 72 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 111, + "character": 35 + } + ] + } + } + }, + { + "id": 73, + "name": "OriginResponseContext", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 115, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 74, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 75, + "name": "request", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 116, + "character": 2 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Request" + }, + "name": "Request", + "package": "@types/node", + "qualifiedName": "__global.Request" + } + }, + { + "id": 76, + "name": "response", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 117, + "character": 2 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Response" + }, + "name": "Response", + "package": "@types/node", + "qualifiedName": "__global.Response" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 75, + 76 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 115, + "character": 36 + } + ] + } + } + }, + { + "id": 77, + "name": "PullZoneHandler", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 120, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 78, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 79, + "name": "onOriginRequest", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Add a Middleware for the requests being processed." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 124, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 80, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 124, + "character": 19 + } + ], + "signatures": [ + { + "id": 81, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 82, + "name": "middleware", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 83, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 125, + "character": 16 + } + ], + "signatures": [ + { + "id": 84, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 85, + "name": "ctx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 70, + "name": "OriginRequestContext", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Request" + }, + "name": "Request", + "package": "@types/node", + "qualifiedName": "__global.Request" + } + ], + "name": "Promise", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Response" + }, + "name": "Response", + "package": "@types/node", + "qualifiedName": "__global.Response" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 77, + "name": "PullZoneHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + } + } + }, + { + "id": 86, + "name": "onOriginResponse", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Add a Middleware for the response being processed." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 133, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 87, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 133, + "character": 20 + } + ], + "signatures": [ + { + "id": 88, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 89, + "name": "middleware", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 90, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 134, + "character": 16 + } + ], + "signatures": [ + { + "id": 91, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 92, + "name": "ctx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 73, + "name": "OriginResponseContext", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Response" + }, + "name": "Response", + "package": "@types/node", + "qualifiedName": "__global.Response" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 77, + "name": "PullZoneHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 79, + 86 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 120, + "character": 30 + } + ] + } + } + }, + { + "id": 67, + "name": "PullZoneHandlerOptions", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 107, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 68, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 69, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 108, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 69 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 107, + "character": 37 + } + ] + } + } + }, + { + "id": 105, + "name": "ServeHandler", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 22, + "character": 5 + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 106, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 22, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "unknown" + } + ] + } + }, + { + "id": 119, + "name": "ServerHandler", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A handler for HTTP Requests.\nConsumes a request and return a response." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 20, + "character": 5 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 120, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 20, + "character": 21 + } + ], + "signatures": [ + { + "id": 121, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 122, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Request" + }, + "name": "Request", + "package": "@types/node", + "qualifiedName": "__global.Request" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Response" + }, + "name": "Response", + "package": "@types/node", + "qualifiedName": "__global.Response" + }, + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.Response" + }, + "name": "Response", + "package": "@types/node", + "qualifiedName": "__global.Response" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + } + } + }, + { + "id": 93, + "name": "serve", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 43, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 44, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 48, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 49, + "character": 9 + } + ], + "signatures": [ + { + "id": 94, + "name": "serve", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Serves HTTP requests with the provided handler." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 43, + "character": 9 + } + ], + "parameters": [ + { + "id": 95, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 119, + "name": "ServerHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 105, + "name": "ServeHandler", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 96, + "name": "serve", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 44, + "character": 9 + } + ], + "parameters": [ + { + "id": 97, + "name": "listener", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 98, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 100, + "name": "hostname", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 45, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 99, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 45, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 100, + 99 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 45, + "character": 12 + } + ] + } + } + }, + { + "id": 101, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 119, + "name": "ServerHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 105, + "name": "ServeHandler", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 102, + "name": "serve", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 48, + "character": 9 + } + ], + "parameters": [ + { + "id": 103, + "name": "listener", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 104, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 119, + "name": "ServerHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 105, + "name": "ServeHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + }, + { + "id": 107, + "name": "servePullZone", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 146, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 147, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 151, + "character": 9 + }, + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 155, + "character": 9 + } + ], + "signatures": [ + { + "id": 108, + "name": "servePullZone", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Serves HTTP requests for a PullZone\n\nIf you have an associated PullZone within Bunny, we'll use it on production\nand for local development you can configure it with the " + }, + { + "kind": "code", + "text": "`url`" + }, + { + "kind": "text", + "text": " option." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 146, + "character": 9 + } + ], + "parameters": [ + { + "id": 109, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 67, + "name": "PullZoneHandlerOptions", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 77, + "name": "PullZoneHandler", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 110, + "name": "servePullZone", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 147, + "character": 9 + } + ], + "parameters": [ + { + "id": 111, + "name": "listener", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 112, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 114, + "name": "hostname", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 148, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 113, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 148, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 114, + 113 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 148, + "character": 12 + } + ] + } + } + }, + { + "id": 115, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 67, + "name": "PullZoneHandlerOptions", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 77, + "name": "PullZoneHandler", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 116, + "name": "servePullZone", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 151, + "character": 9 + } + ], + "parameters": [ + { + "id": 117, + "name": "listener", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 118, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 67, + "name": "PullZoneHandlerOptions", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 77, + "name": "PullZoneHandler", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + } + ], + "groups": [ + { + "title": "Type Aliases", + "children": [ + 70, + 73, + 77, + 67, + 105, + 119 + ] + }, + { + "title": "Functions", + "children": [ + 93, + 107 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/serve.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 123, + "name": "ip", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 130, + "name": "Enumerate", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 1, + "character": 12 + } + ], + "typeParameters": [ + { + "id": 131, + "name": "N", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 132, + "name": "Acc", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + }, + "default": { + "type": "tuple" + } + } + ], + "type": { + "type": "conditional", + "checkType": { + "type": "indexedAccess", + "indexType": { + "type": "literal", + "value": "length" + }, + "objectType": { + "type": "reference", + "target": 132, + "name": "Acc", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + }, + "extendsType": { + "type": "reference", + "target": 131, + "name": "N", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + }, + "trueType": { + "type": "indexedAccess", + "indexType": { + "type": "intrinsic", + "name": "number" + }, + "objectType": { + "type": "reference", + "target": 132, + "name": "Acc", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + }, + "falseType": { + "type": "reference", + "target": 130, + "typeArguments": [ + { + "type": "reference", + "target": 131, + "name": "N", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + }, + { + "type": "tuple", + "elements": [ + { + "type": "rest", + "elementType": { + "type": "reference", + "target": 132, + "name": "Acc", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + }, + { + "type": "indexedAccess", + "indexType": { + "type": "literal", + "value": "length" + }, + "objectType": { + "type": "reference", + "target": 132, + "name": "Acc", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + } + ] + } + ], + "name": "Enumerate", + "package": "@bunny.net/edgescript-sdk" + } + } + }, + { + "id": 136, + "name": "IPv4", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 7, + "character": 12 + } + ], + "type": { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 133, + "typeArguments": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 255 + } + ], + "name": "Range", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": 133, + "typeArguments": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 255 + } + ], + "name": "Range", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": 133, + "typeArguments": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 255 + } + ], + "name": "Range", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": 133, + "typeArguments": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 255 + } + ], + "name": "Range", + "package": "@bunny.net/edgescript-sdk" + } + ] + } + }, + { + "id": 133, + "name": "Range", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 5, + "character": 12 + } + ], + "typeParameters": [ + { + "id": 134, + "name": "F", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 135, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Exclude" + }, + "typeArguments": [ + { + "type": "reference", + "target": 130, + "typeArguments": [ + { + "type": "reference", + "target": 135, + "name": "T", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + ], + "name": "Enumerate", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": 130, + "typeArguments": [ + { + "type": "reference", + "target": 134, + "name": "F", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + ], + "name": "Enumerate", + "package": "@bunny.net/edgescript-sdk" + } + ], + "name": "Exclude", + "package": "typescript" + }, + { + "type": "reference", + "target": 135, + "name": "T", + "package": "@bunny.net/edgescript-sdk", + "refersToTypeParameter": true + } + ] + } + }, + { + "id": 124, + "name": "toString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 9, + "character": 16 + } + ], + "signatures": [ + { + "id": 125, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 9, + "character": 16 + } + ], + "parameters": [ + { + "id": 126, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 136, + "name": "IPv4", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 127, + "name": "tryParseFromString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 16, + "character": 16 + } + ], + "signatures": [ + { + "id": 128, + "name": "tryParseFromString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Try to parse na IP" + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 16, + "character": 16 + } + ], + "parameters": [ + { + "id": 129, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 136, + "name": "IPv4", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "SyntaxError" + }, + "name": "SyntaxError", + "package": "typescript" + } + ] + } + } + ] + } + ], + "groups": [ + { + "title": "Type Aliases", + "children": [ + 130, + 136, + 133 + ] + }, + { + "title": "Functions", + "children": [ + 124, + 127 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/ip.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 2, + "name": "socketAddr", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 6, + "name": "v4", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 16, + "name": "SocketAddrV4", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 3, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 17, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 18, + "name": "_tag", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 4, + "character": 11 + } + ], + "type": { + "type": "literal", + "value": "SocketAddrV4" + } + }, + { + "id": 20, + "name": "ip", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 6, + "character": 2 + } + ], + "type": { + "type": "reference", + "target": 136, + "name": "IP.IPv4", + "package": "@bunny.net/edgescript-sdk", + "qualifiedName": "IPv4" + } + }, + { + "id": 19, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 5, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 18, + 20, + 19 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 3, + "character": 27 + } + ] + } + } + }, + { + "id": 10, + "name": "ip", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 19, + "character": 16 + } + ], + "signatures": [ + { + "id": 11, + "name": "ip", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the IP address associated with this socket address." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 19, + "character": 16 + } + ], + "parameters": [ + { + "id": 12, + "name": "addr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16, + "name": "SocketAddrV4", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 136, + "name": "IP.IPv4", + "package": "@bunny.net/edgescript-sdk", + "qualifiedName": "IPv4" + } + } + ] + }, + { + "id": 7, + "name": "port", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 12, + "character": 16 + } + ], + "signatures": [ + { + "id": 8, + "name": "port", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the port number associated with this socket address." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 12, + "character": 16 + } + ], + "parameters": [ + { + "id": 9, + "name": "addr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16, + "name": "SocketAddrV4", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 13, + "name": "tryFromString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 26, + "character": 16 + } + ], + "signatures": [ + { + "id": 14, + "name": "tryFromString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Try to parse a SocketAddrV4" + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 26, + "character": 16 + } + ], + "parameters": [ + { + "id": 15, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 16, + "name": "SocketAddrV4", + "package": "@bunny.net/edgescript-sdk" + }, + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "SyntaxError" + }, + "name": "SyntaxError", + "package": "typescript" + } + ] + } + } + ] + } + ], + "groups": [ + { + "title": "Type Aliases", + "children": [ + 16 + ] + }, + { + "title": "Functions", + "children": [ + 10, + 7, + 13 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket/v4.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 26, + "name": "InvalidAddr", + "variant": "declaration", + "kind": 128, + "flags": {}, + "children": [ + { + "id": 37, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 24, + "character": 2 + } + ], + "signatures": [ + { + "id": 38, + "name": "new InvalidAddr", + "variant": "signature", + "kind": 16384, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 24, + "character": 2 + } + ], + "parameters": [ + { + "id": 39, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 26, + "name": "InvalidAddr", + "package": "@bunny.net/edgescript-sdk" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor" + } + }, + { + "id": 40, + "name": "_guard", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 22, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "symbol" + }, + "defaultValue": "addr_symbol" + }, + { + "id": 46, + "name": "cause", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es2022.error.d.ts", + "line": 24, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.cause" + } + }, + { + "id": 44, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1077, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.message" + } + }, + { + "id": 43, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1076, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.name" + } + }, + { + "id": 45, + "name": "stack", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1078, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.stack" + } + }, + { + "id": 31, + "name": "prepareStackTrace", + "variant": "declaration", + "kind": 1024, + "flags": { + "isStatic": true, + "isExternal": true, + "isOptional": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional override for formatting stack traces" + } + ], + "blockTags": [ + { + "tag": "@see", + "content": [ + { + "kind": "text", + "text": "https://v8.dev/docs/stack-trace-api#customizing-stack-traces" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 28, + "character": 8 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 32, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 28, + "character": 29 + } + ], + "signatures": [ + { + "id": 33, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 28, + "character": 29 + } + ], + "parameters": [ + { + "id": 34, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + }, + { + "id": 35, + "name": "stackTraces", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.NodeJS.CallSite" + }, + "name": "CallSite", + "package": "@types/node", + "qualifiedName": "__global.NodeJS.CallSite" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.prepareStackTrace" + } + }, + { + "id": 36, + "name": "stackTraceLimit", + "variant": "declaration", + "kind": 1024, + "flags": { + "isStatic": true, + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 30, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.stackTraceLimit" + } + }, + { + "id": 41, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 29, + "character": 11 + } + ], + "signatures": [ + { + "id": 42, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an object." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 29, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 27, + "name": "captureStackTrace", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true, + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 21, + "character": 8 + } + ], + "signatures": [ + { + "id": 28, + "name": "captureStackTrace", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create .stack property on a target object" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "line": 21, + "character": 8 + } + ], + "parameters": [ + { + "id": 29, + "name": "targetObject", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 30, + "name": "constructorOpt", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Function" + }, + "name": "Function", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.captureStackTrace" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Error.captureStackTrace" + } + } + ], + "groups": [ + { + "title": "Constructors", + "children": [ + 37 + ] + }, + { + "title": "Properties", + "children": [ + 40, + 46, + 44, + 43, + 45, + 31, + 36 + ] + }, + { + "title": "Methods", + "children": [ + 41, + 27 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 21, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] + }, + { + "id": 21, + "name": "NoAddr", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 5, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 22, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 23, + "name": "_tag", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 6, + "character": 11 + } + ], + "type": { + "type": "literal", + "value": "NoAddr" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 23 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 5, + "character": 21 + } + ] + } + } + }, + { + "id": 24, + "name": "SocketAddr", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 9, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 16, + "name": "v4.SocketAddrV4", + "package": "@bunny.net/edgescript-sdk", + "qualifiedName": "SocketAddrV4" + }, + { + "type": "reference", + "target": 21, + "name": "NoAddr", + "package": "@bunny.net/edgescript-sdk" + } + ] + } + }, + { + "id": 25, + "name": "SocketAddrError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 18, + "character": 12 + } + ], + "type": { + "type": "reference", + "target": 26, + "name": "InvalidAddr", + "package": "@bunny.net/edgescript-sdk" + } + }, + { + "id": 3, + "name": "isV4", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 14, + "character": 16 + } + ], + "signatures": [ + { + "id": 4, + "name": "isV4", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tell if it's a v4 [SocketAddr]." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 14, + "character": 16 + } + ], + "parameters": [ + { + "id": 5, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 24, + "name": "SocketAddr", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 16, + "name": "SocketAddrV4", + "package": "@bunny.net/edgescript-sdk" + } + } + } + ] + } + ], + "groups": [ + { + "title": "Namespaces", + "children": [ + 6 + ] + }, + { + "title": "Classes", + "children": [ + 26 + ] + }, + { + "title": "Type Aliases", + "children": [ + 21, + 24, + 25 + ] + }, + { + "title": "Functions", + "children": [ + 3 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/socket_addr.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 47, + "name": "tcp", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 62, + "name": "TcpListener", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 4, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 63, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 64, + "name": "_tag", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Prevent the construction" + } + ], + "modifierTags": [ + "@internal" + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 9, + "character": 11 + } + ], + "type": { + "type": "literal", + "value": "TcpListener" + } + }, + { + "id": 65, + "name": "addr", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 10, + "character": 2 + } + ], + "type": { + "type": "reference", + "target": 24, + "name": "SocketAddr.SocketAddr", + "package": "@bunny.net/edgescript-sdk", + "qualifiedName": "SocketAddr" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 64, + 65 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 4, + "character": 26 + } + ] + } + } + }, + { + "id": 59, + "name": "bind", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 67, + "character": 16 + } + ], + "signatures": [ + { + "id": 60, + "name": "bind", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Bind an Addr" + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 67, + "character": 16 + } + ], + "parameters": [ + { + "id": 61, + "name": "addr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16, + "name": "SocketAddrV4", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + }, + { + "id": 48, + "name": "isTcpListener", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 13, + "character": 16 + } + ], + "signatures": [ + { + "id": 49, + "name": "isTcpListener", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 13, + "character": 16 + } + ], + "parameters": [ + { + "id": 50, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + } + } + ] + }, + { + "id": 54, + "name": "toString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 27, + "character": 16 + } + ], + "signatures": [ + { + "id": 55, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Format the associated [TcpListener] to a String" + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 27, + "character": 16 + } + ], + "parameters": [ + { + "id": 56, + "name": "tcp", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 51, + "name": "unstable_local_addr", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 20, + "character": 16 + } + ], + "signatures": [ + { + "id": 52, + "name": "unstable_local_addr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the local socket address of this listener." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 20, + "character": 16 + } + ], + "parameters": [ + { + "id": 53, + "name": "tcp", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + } + ], + "type": { + "type": "reference", + "target": 24, + "name": "SocketAddr.SocketAddr", + "package": "@bunny.net/edgescript-sdk", + "qualifiedName": "SocketAddr" + } + } + ] + }, + { + "id": 57, + "name": "unstable_new", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 39, + "character": 16 + } + ], + "signatures": [ + { + "id": 58, + "name": "unstable_new", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new [TcpListener]." + } + ] + }, + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 39, + "character": 16 + } + ], + "type": { + "type": "reference", + "target": 62, + "name": "TcpListener", + "package": "@bunny.net/edgescript-sdk" + } + } + ] + } + ], + "groups": [ + { + "title": "Type Aliases", + "children": [ + 62 + ] + }, + { + "title": "Functions", + "children": [ + 59, + 48, + 54, + 51, + 57 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/tcp.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Namespaces", + "children": [ + 66, + 123, + 2, + 47 + ] + } + ], + "sources": [ + { + "fileName": "libs/bunny-sdk/src/net/index.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Namespaces", + "children": [ + 1 + ] + } + ], + "packageName": "@bunny.net/edgescript-sdk", + "packageVersion": "0.11.2", + "readme": [ + { + "kind": "text", + "text": "# @bunny.net/edge-script-sdk\n---\n\nThe " + }, + { + "kind": "code", + "text": "`@bunny.net/edge-script-sdk`" + } + ], + "symbolIdMap": { + "0": { + "sourceFileName": "src/lib.ts", + "qualifiedName": "" + }, + "1": { + "sourceFileName": "src/net/index.ts", + "qualifiedName": "" + }, + "2": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "" + }, + "3": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "isV4" + }, + "4": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "isV4" + }, + "5": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "value" + }, + "6": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "" + }, + "7": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "port" + }, + "8": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "port" + }, + "9": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "addr" + }, + "10": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "ip" + }, + "11": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "ip" + }, + "12": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "addr" + }, + "13": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "tryFromString" + }, + "14": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "tryFromString" + }, + "15": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "value" + }, + "16": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "SocketAddrV4" + }, + "17": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "__type" + }, + "18": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "__type._tag" + }, + "19": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "__type.port" + }, + "20": { + "sourceFileName": "src/net/socket/v4.ts", + "qualifiedName": "__type.ip" + }, + "21": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "NoAddr" + }, + "22": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "__type" + }, + "23": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "__type._tag" + }, + "24": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "SocketAddr" + }, + "25": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "SocketAddrError" + }, + "26": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr" + }, + "27": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.ErrorConstructor.captureStackTrace" + }, + "28": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.ErrorConstructor.captureStackTrace" + }, + "29": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "targetObject" + }, + "30": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "constructorOpt" + }, + "31": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.ErrorConstructor.prepareStackTrace" + }, + "32": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__type" + }, + "33": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__type" + }, + "34": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "err" + }, + "35": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "stackTraces" + }, + "36": { + "sourceFileName": "../../node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts", + "qualifiedName": "__global.ErrorConstructor.stackTraceLimit" + }, + "37": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr.__constructor" + }, + "38": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr" + }, + "39": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "message" + }, + "40": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr._guard" + }, + "41": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr.toString" + }, + "42": { + "sourceFileName": "src/net/socket_addr.ts", + "qualifiedName": "InvalidAddr.toString" + }, + "43": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error.name" + }, + "44": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error.message" + }, + "45": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error.stack" + }, + "46": { + "sourceFileName": "../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es2022.error.d.ts", + "qualifiedName": "Error.cause" + }, + "47": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "" + }, + "48": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "isTcpListener" + }, + "49": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "isTcpListener" + }, + "50": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "value" + }, + "51": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "unstable_local_addr" + }, + "52": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "unstable_local_addr" + }, + "53": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "tcp" + }, + "54": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "toString" + }, + "55": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "toString" + }, + "56": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "tcp" + }, + "57": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "unstable_new" + }, + "58": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "unstable_new" + }, + "59": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "bind" + }, + "60": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "bind" + }, + "61": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "addr" + }, + "62": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "TcpListener" + }, + "63": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "__type" + }, + "64": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "__type._tag" + }, + "65": { + "sourceFileName": "src/net/tcp.ts", + "qualifiedName": "__type.addr" + }, + "66": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "" + }, + "67": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "PullZoneHandlerOptions" + }, + "68": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "69": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.url" + }, + "70": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "OriginRequestContext" + }, + "71": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "72": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.request" + }, + "73": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "OriginResponseContext" + }, + "74": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "75": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.request" + }, + "76": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.response" + }, + "77": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "PullZoneHandler" + }, + "78": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "79": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.onOriginRequest" + }, + "80": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "81": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "82": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "middleware" + }, + "83": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "84": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "85": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "ctx" + }, + "86": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.onOriginResponse" + }, + "87": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "88": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "89": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "middleware" + }, + "90": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "91": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "92": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "ctx" + }, + "93": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "serve" + }, + "94": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "serve" + }, + "95": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "handler" + }, + "96": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "serve" + }, + "97": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "listener" + }, + "98": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "99": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.port" + }, + "100": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.hostname" + }, + "101": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "handler" + }, + "102": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "serve" + }, + "103": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "listener" + }, + "104": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "handler" + }, + "105": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "ServeHandler" + }, + "106": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "107": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "servePullZone" + }, + "108": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "servePullZone" + }, + "109": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "options" + }, + "110": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "servePullZone" + }, + "111": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "listener" + }, + "112": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "113": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.port" + }, + "114": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type.hostname" + }, + "115": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "options" + }, + "116": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "servePullZone" + }, + "117": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "listener" + }, + "118": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "options" + }, + "119": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "ServerHandler" + }, + "120": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "121": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "__type" + }, + "122": { + "sourceFileName": "src/net/serve.ts", + "qualifiedName": "request" + }, + "123": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "" + }, + "124": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "toString" + }, + "125": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "toString" + }, + "126": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "ip" + }, + "127": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "tryParseFromString" + }, + "128": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "tryParseFromString" + }, + "129": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "ip" + }, + "130": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "Enumerate" + }, + "131": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "N" + }, + "132": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "Acc" + }, + "133": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "Range" + }, + "134": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "F" + }, + "135": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "T" + }, + "136": { + "sourceFileName": "src/net/ip.ts", + "qualifiedName": "IPv4" + } + }, + "files": { + "entries": { + "1": "src/lib.ts", + "2": "src/net/index.ts", + "3": "src/net/socket_addr.ts", + "4": "src/net/socket/v4.ts", + "5": "src/net/tcp.ts", + "6": "src/net/serve.ts", + "7": "src/net/ip.ts" + }, + "reflections": { + "1": 0, + "2": 1, + "3": 2, + "4": 6, + "5": 47, + "6": 66, + "7": 123 + } + } +} diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index d0efb42..0f1051b 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE8WX3W6bMABG34XrLg0o+8vVpqnVKk1r1Ey7WFUhB9zEimMz22SLpr37DF3ABgeIi13lKgR/x+DPkHP/JxDwtwjmwYdVTshhQqC4hOka8oShTLzi6Ta4CJINwimDJJjfV+dPJ2E4CeWPGRAb+X1H0xxDfhmXObHMieucWObE0zgM43CyETssh20RSYN5ZA6Xoy2S5S96+sycvhEis44X2SDGLUNrRO7gzxxy8YmS8nDFFIfsLKIprXEjp+/fhq+jvxetGfCMEg5Hm4IW1zeHRY7xD0rgZ0BSDJk9vRF0Jvc2E0jOejT8/7y+WSwh2z//0tWUQUQ2DpINZPLi5Jr1mJOkvDtn8MoInfNm1kQc12AE1DGqhXxQoMj2GYGGPSGuSL6DDAhotU4SUgX0rdDNYj+zhRRj+/LvAFlbX0U5uI8g6FIwRNbWay9Bx4yOngl2WADG4TWjuxGArbTOvnGabKH4mKbMsnd1wKD+qZ2w5TS7cQK1rEZ8tyuijlTj+pqj7uIzl1CHNne1VpyMMjESp4jqrugI7dSRWmZnR2/IHmCU6iVNMODcYiWVMB0aRu8U5leq4+xq85TS+/407EE73vLEZuxiXjFGRwSXcb37g6tb0r5GRU5ndURi+z6VIwc9Zb4l2RfEBSSWf30KjpLRd+dWxXHbO1ewioCOnY648YIsQFpS17PluW/ZAjbgNZsTLsAKwxjTBOAYaNvNAmnIG0In8Nc4WBlkqP6DVv9Sl6Ozd0DkTJcjt7oc1X+5PemyQnwpXTZMwaMuK/SX0OXTePe6rLB96XIT6VqXFZ5rXW6iXOly5EOXK4hLXa4grnS5ArjW5QrkS5droDddjjzpcovjXpdNSOe6bIK60GUTx7Eum5B+dLlFdqnLLZhjXW7xfOlyB9ilLrewTnQ58qTLNce9Ltcsx7pcgzzocg3zpss10qsuG7CndVl+/gGxPERGkR4AAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE8WXXW+bMBhG/wvXXRpQ9tWrTlOnVZrWqJl2sapCBLwEhRhmm2zRtP8+QxuwjflyeR3lKiF+jsGPgfPw12HoD3OunOt1jvFxhhG7RNEG0ZDEGXtFo51z4YTbOIkIws7VQ/X/+cx1Zy4/mAVsy7/v0yhPEL30yxyf5/h1js9z/Lnvur4727J9woftYhw5V54+nI82SOZH5PSFPn3LWGYcz7JBjDsSb2J8j37liLKPKS5/rpjsmI0i6tKUCzl//9Z97f27aMyAZimmaLIpSHF9c1jmSfIjxehzgKMEEXO6EjSSe5exmM96MvxzXt8sVogcXn7qYsogIpkGSQYyafHnmvUzx2F5dUbwygiZ82ahIk5rMAHqFNVAPgrQ2PQeEQ+7Q9zgfI9IwJDROnFIFdC3QrfLw8IUUozty78P8Mb4LMrBfQSWrhiJ8cZ47TnolNHRM0aOy4BQ9Imk+wmAjbTOvtE03CH2IYqIYe/qgEH9EzthylG70YJaVSO+mxVRRopxfc0Rd/HIJZSh6q6WipOlhE3EKaK6KzpBO2WklNnZ0Vt8CJI4kksaJgGlBisphMlQ13snML+mMs6sNk8pvc9PzR40461aNmMX84aQdEJwGde7P6i4Jc1rVOR0VoeFps9TPnLQXeZbmH2JKUPY8NWn4AgZfVduXfxueuUKVhHQsdNjqj0hA5CU1HVveelTtoANeMzmmLJgnSA/ScMg8QNpuxkgNXlD6Bj9ngbLgzTVf5TqX+qyN3oHeGC67MHqsle/clvSZYF4Ll3WTMGiLgv0c+hyOx5elwW2LV1WkdC6LPCgdVlFQemyZ0OXKwikLlcQKF2uANC6XIFs6XINtKbLniVdbnDgdVmHBNdlHRRCl3UcYF3WIe3ocoMMqcsNGLAuN3i2dLkDDKnLDSyILnuWdLnmwOtyzQLW5RpkQZdrmDVdrpFWdVmDHaLLCX9Po6Ok9mkEhC4/J0PpshRvRZdV4hl0uW0KdnRZpVvW5R48qC6rbAu6rEUC6rLKA9RlLQpAlwUOnC7LECBdliEAuiwDAHVZBlnQZQVoQ5cFJKgu6zmgutyKhNTlVujEutzKgdPlViS4LuvJQLqsh8Hpsp5nQZf7wEC6rMdOrcsCBVSXFQ6oLissOF1WQLC6rMBs6LKCtKXLbdh2Xeaf/2EulyDALQAA" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 4bf1a17..397916f 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE9Wc34/bNhLH/xf31XXEX6KUpzscergCh2vRHvpwi4Xh7CqJEa/tk71pc0H+94oSZXE4pEVL5F7yks1a4vA71GdIDjXrz4v68Ptp8fru8+LDdv+4eE2Xi/3mqVq8XvzlzfN+/2m1r86vqsd31emh3h7P358eP7zKVoSsyGK5eK53zY1Ph8fnXXV6tW4brJsG66HBummwztaErMnq/flp17R62G1Op6rpdLH4suz75Zd+m/a3m26uOMwvF8dNXe3PId64pLw/n49TtZyP8wSpK4YompWSiOHp/FRv3233v1T/fa5O578d9ufqj2HYzp+ONwl1GZuvvrVtuJALwfKLA+u1Uhlf8ncXwzOVO7sw3CEZHUipu7uSubMaOkjh1koP2jhvp+Nhf6piAQesfSPEYc3xkYOjnJg5r0MJoIN9Ieos/7q7kzp46eKFPLTj6ufn3e4/h331j83+cVfVk3217HzlseRS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87ievs3z78J/7Mk7iO/+3zf+JPPonrDYD+rH3r+bGqz9Xjj93bz7u7S3nK58VavxIV/Svczwve/PNluZDdj4ai7ifTP4X+qa9TfZ3p61xfF7T7mWtzub5f6vulvl/q+6W+XujrZd9f1ndIWotfhjez7ceXl7PqmhqBvsp08I1Rwznamw201pauDLaaALjYYto1nmuXteSS933kvXQW1Fn3st8QXgydid4o4UG2ugoSw1Zp2LoMqQiz5XjFbtrOBtOZftpZkGFQ4GxoJcYD6/nLSJDJavgTycEgMZyn2vkizPfu+7gMbYYl7WsYSduuwBc9Y2PweNb7GjZ8W6CMGLRQTQvTzrI+uvTnpf68lIEdqb9KM6LAEE015EUeZup0fjjuLpVDg01u2BSXwAk1CvUxczor+0Etg2ypKkTT1cGSJjEPA3F/QI/aYIdf5oiwcD7sD+1XVVy+Hsl47sbAEc2kDGNysNp/oYhh1ghC0q8JgWJNqQ/993YZj9qYQ/WYhk2QUK3DsjE7a4TyMIK6v/4xHrsRTEybYoUOGv17WYSZft7t/nfYV+/7b0UYejGmJaJjX4aFvmX00H8fifH8THK1Yhk2GHX359HGaBgs0H4qCZs6HMDmRqBrW/pZ6V/zsIF1UWs8Nh33eVjYD99QCQbRWtnCzVAAvBH5gUuj/mIHQ4oxbFSHeREW5q0tB37ECESih0sGDpcy2UMIbBohSHV0F2HR3dqsXTqN6ZzqOCkCh7GtdrdnYmrOQNog11yXl0U4DPChh6r76wRjwje64UVvNgzuway19BoYMI1BGYZBW9pvqDPjsHeahA2rZw1nxsMX/caNhK2X58NJF+gazhpzGNUDyDVUop+HLgPbZwwk7MGd609v68OTo1djWmY6LMqwsGhsHtU3GXgMm5tHbbgIM+wsCzYmGGOiEv2AkDDSYM2uYdMYfNFvokigXPXFSUYAG44TLU+GqbPoN2YC1meKAXzdLxfH7bHabZvJ6vXd/ZcvfwIPW/A79YQAAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE9Vd32/jNhL+X9xX1/WQlCjt0x0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at end of file diff --git a/docs/classes/_bunny_net_edgescript_sdk_0_11_2.net.socketAddr.InvalidAddr.html b/docs/classes/_bunny_net_edgescript_sdk_0_11_2.net.socketAddr.InvalidAddr.html index e76463f..a8233f8 100644 --- a/docs/classes/_bunny_net_edgescript_sdk_0_11_2.net.socketAddr.InvalidAddr.html +++ b/docs/classes/_bunny_net_edgescript_sdk_0_11_2.net.socketAddr.InvalidAddr.html @@ -8,7 +8,7 @@ stackTraceLimit

Methods

toString captureStackTrace -

Constructors

Properties

_guard: Symbol = addr_symbol
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

_guard: symbol = addr_symbol
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Returns a string representation of an object.

    Returns string

  • Create .stack property on a target object

    diff --git a/docs/classes/_bunny_net_edgescript_sdk_latest.net.socketAddr.InvalidAddr.html b/docs/classes/_bunny_net_edgescript_sdk_latest.net.socketAddr.InvalidAddr.html new file mode 100644 index 0000000..56b2392 --- /dev/null +++ b/docs/classes/_bunny_net_edgescript_sdk_latest.net.socketAddr.InvalidAddr.html @@ -0,0 +1,15 @@ +InvalidAddr | Edge Script SDK Documentation

    Hierarchy

    • Error
      • InvalidAddr

    Constructors

    Properties

    _guard: symbol = addr_symbol
    cause?: unknown
    message: string
    name: string
    stack?: string
    prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

    Optional override for formatting stack traces

    +
    stackTraceLimit: number

    Methods

    • Returns a string representation of an object.

      +

      Returns string

    • Create .stack property on a target object

      +

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.serve.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.serve.html new file mode 100644 index 0000000..98b6412 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.serve.html @@ -0,0 +1,2 @@ +serve | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.servePullZone.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.servePullZone.html new file mode 100644 index 0000000..b0e5b89 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.http.servePullZone.html @@ -0,0 +1,4 @@ +servePullZone | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.toString.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.toString.html new file mode 100644 index 0000000..e8e42d6 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.toString.html @@ -0,0 +1 @@ +toString | Edge Script SDK Documentation
    • Parameters

      Returns string

    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.tryParseFromString.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.tryParseFromString.html new file mode 100644 index 0000000..c8ce0e3 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.ip.tryParseFromString.html @@ -0,0 +1,2 @@ +tryParseFromString | Edge Script SDK Documentation
    • Try to parse na IP

      +

      Parameters

      • ip: string

      Returns net.ip.IPv4 | SyntaxError

    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.isV4.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.isV4.html new file mode 100644 index 0000000..05654a1 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.isV4.html @@ -0,0 +1,2 @@ +isV4 | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.ip.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.ip.html new file mode 100644 index 0000000..939fee4 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.ip.html @@ -0,0 +1,2 @@ +ip | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.port.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.port.html new file mode 100644 index 0000000..80c9203 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.port.html @@ -0,0 +1,2 @@ +port | Edge Script SDK Documentation
    • Returns the port number associated with this socket address.

      +

      Parameters

      Returns number

    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.tryFromString.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.tryFromString.html new file mode 100644 index 0000000..087a2a6 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.tryFromString.html @@ -0,0 +1,2 @@ +tryFromString | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.bind.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.bind.html new file mode 100644 index 0000000..2cef439 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.bind.html @@ -0,0 +1,2 @@ +bind | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.isTcpListener.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.isTcpListener.html new file mode 100644 index 0000000..4292919 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.isTcpListener.html @@ -0,0 +1 @@ +isTcpListener | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.toString.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.toString.html new file mode 100644 index 0000000..5772716 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.toString.html @@ -0,0 +1,2 @@ +toString | Edge Script SDK Documentation
    • Format the associated [TcpListener] to a String

      +

      Parameters

      Returns string

    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_local_addr.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_local_addr.html new file mode 100644 index 0000000..3a327f4 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_local_addr.html @@ -0,0 +1,2 @@ +unstable_local_addr | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_new.html b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_new.html new file mode 100644 index 0000000..cf543c3 --- /dev/null +++ b/docs/functions/_bunny_net_edgescript_sdk_latest.net.tcp.unstable_new.html @@ -0,0 +1,2 @@ +unstable_new | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/images/bunny.png b/docs/images/bunny.png deleted file mode 100644 index 7187c74..0000000 Binary files a/docs/images/bunny.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html index ed3af59..4190297 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,33 +1,23 @@ Edge Script SDK Documentation

    Edge Script SDK Documentation

    -

    Bunny - edgescript-sdk

    This repository contains one library for now: the @bunny.net/edgescript-sdk -which is a little lib which intend to help you develop applications running -over Bunny.

    -

    We choose to run Bunny Scripts with a Deno modified runtime that leverage our -networks and products. To be able to also develop locally as if you were inside -the Bunny Network, we are creating a library which will help you leveraging your -prefered Javascript/Typescript environment locally and benefit from the Bunny -Network for your deployed script.

    +

    Bunny.net - edgescript-sdk

    This repository contains SDK to enable local development of Bunny.net Edge Scripting: @bunny.net/edgescript-sdk

    +

    Bunny.net Edge Scripting is built with a custom Deno runtime that runs on the Bunny.net Edge Scripting. +This SDK provides similar environment to Bunny.net Edge Scripting locally, +so that you can run and debug scripts in your local environment before publishing them.

    Even if the Bunny Runtime is very similar to the Deno & Node Runtime, some API -might differ or not being available due to the fact we leverage our network +might differ or not being available due to the fact we leverage our CDN and run scripts in a serverless environment.

    -

    We also have a roadmap and some items are just not priorized yet, if you want -to have those available, reach out to us any times!

    With @bunny.net/edgescript-sdk you can write a script which will work with Deno, with Node, and within our network.

    import * as BunnySDK from "@bunny.net/edgescript-sdk";

    function sleep(ms: number): Promise<void> {
    return new Promise((resolve) => setTimeout(resolve, ms));
    }

    console.log("Starting server...");

    BunnySDK.net.http.serve({ port: 8080, hostname: '127.0.0.1' }, async (req) => {
    console.log(`[INFO]: ${req.method} - ${req.url}`);
    await sleep(1);
    return new Response("blbl");
    });
    -

    If you execute this code on a deployed Bunny Script, the serve function will -always be used to allow requests that goes from your PullZone (let's assume you -have https://domain-test.b-cdn.net as a PullZone).

    -

    In this case, every curl request to https://domain-test.b-cdn.net will be -redirect to the associated Bunny Script.

    -

    You have a full list of examples in the example folder you can -use.

    -
    \ No newline at end of file +

    If you execute this code on a deployed Bunny.net Edge Scripting script, the serve function will +be used to execute requests on a connected PullZone.

    +

    Full list of examples is in the example folder.

    +
    \ No newline at end of file diff --git a/docs/media/example/deno-middleware-http/package.json b/docs/media/example/deno-middleware-http/package.json index 6ca1148..a91f378 100644 --- a/docs/media/example/deno-middleware-http/package.json +++ b/docs/media/example/deno-middleware-http/package.json @@ -21,5 +21,8 @@ "dev": "deno run src/main.ts", "release": "echo \"No release\"" }, + "dependencies": { + "@bunny.net/edgescript-sdk": "^0.11.0" + }, "devDependencies": {} } diff --git a/docs/media/example/deno-middleware-http/src/main.ts b/docs/media/example/deno-middleware-http/src/main.ts index 56742fb..8bce624 100644 --- a/docs/media/example/deno-middleware-http/src/main.ts +++ b/docs/media/example/deno-middleware-http/src/main.ts @@ -6,14 +6,12 @@ function sleep(ms: number): Promise { console.log("Starting server..."); -BunnySDK.net.http.servePullZone({ url: "https://perdu.com/" }).onOriginRequest( - async (ctx) => { - const req = ctx.request; - console.log(`[INFO]: ${req.method} - ${req.url}`); - await sleep(1); - return ctx.request; - }, -).onOriginResponse(async (ctx) => { +BunnySDK.net.http.servePullZone({ url: "https://perdu.com/" }).onOriginRequest(async (ctx) => { + const req = ctx.request; + console.log(`[INFO]: ${req.method} - ${req.url}`); + await sleep(1); + return ctx.request; +}).onOriginResponse(async (ctx) => { const res = ctx.response; console.log(`[INFO]: ${res.status}`); await sleep(1); diff --git a/docs/modules/_bunny_net_edgescript_sdk_0_11_2.html b/docs/modules/_bunny_net_edgescript_sdk_0_11_2.html index bc5cd34..880955f 100644 --- a/docs/modules/_bunny_net_edgescript_sdk_0_11_2.html +++ b/docs/modules/_bunny_net_edgescript_sdk_0_11_2.html @@ -1,4 +1,4 @@ -@bunny.net/edgescript-sdk/0.11.2 - v0.11.2 | Edge Script SDK Documentation

    Module @bunny.net/edgescript-sdk/0.11.2 - v0.11.2

    @bunny.net/edge-script-sdk


    +@bunny.net/edgescript-sdk/0.11.2 | Edge Script SDK Documentation

    @bunny.net/edge-script-sdk


    The @bunny.net/edge-script-sdk

    Index

    Namespaces

    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_0_11_2.net.html b/docs/modules/_bunny_net_edgescript_sdk_0_11_2.net.html index a96c760..fcd781e 100644 --- a/docs/modules/_bunny_net_edgescript_sdk_0_11_2.net.html +++ b/docs/modules/_bunny_net_edgescript_sdk_0_11_2.net.html @@ -1,4 +1,5 @@ -net | Edge Script SDK Documentation

    Index

    Namespaces

    http +net | Edge Script SDK Documentation

    Docs for net module

    +

    Index

    Namespaces

    http ip socketAddr tcp diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.html b/docs/modules/_bunny_net_edgescript_sdk_latest.html new file mode 100644 index 0000000..1c91491 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.html @@ -0,0 +1,4 @@ +@bunny.net/edgescript-sdk/latest - v0.11.2 | Edge Script SDK Documentation

    Module @bunny.net/edgescript-sdk/latest - v0.11.2

    @bunny.net/edge-script-sdk


    +

    The @bunny.net/edge-script-sdk

    +

    Index

    Namespaces

    net +
    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.html new file mode 100644 index 0000000..96e2c16 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.html @@ -0,0 +1,6 @@ +net | Edge Script SDK Documentation

    Docs for net module

    +

    Index

    Namespaces

    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.http.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.http.html new file mode 100644 index 0000000..39f88a7 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.http.html @@ -0,0 +1,9 @@ +http | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.ip.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.ip.html new file mode 100644 index 0000000..53cf669 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.ip.html @@ -0,0 +1,6 @@ +ip | Edge Script SDK Documentation

    Index

    Type Aliases

    Functions

    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.html new file mode 100644 index 0000000..67c3b73 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.html @@ -0,0 +1,7 @@ +socketAddr | Edge Script SDK Documentation

    Index

    Namespaces

    v4 +

    Classes

    Type Aliases

    Functions

    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.html new file mode 100644 index 0000000..20285c1 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.html @@ -0,0 +1,5 @@ +v4 | Edge Script SDK Documentation

    Index

    Type Aliases

    Functions

    \ No newline at end of file diff --git a/docs/modules/_bunny_net_edgescript_sdk_latest.net.tcp.html b/docs/modules/_bunny_net_edgescript_sdk_latest.net.tcp.html new file mode 100644 index 0000000..df11c54 --- /dev/null +++ b/docs/modules/_bunny_net_edgescript_sdk_latest.net.tcp.html @@ -0,0 +1,7 @@ +tcp | Edge Script SDK Documentation

    Index

    Type Aliases

    Functions

    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginRequestContext.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginRequestContext.html new file mode 100644 index 0000000..9eff51d --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginRequestContext.html @@ -0,0 +1 @@ +OriginRequestContext | Edge Script SDK Documentation
    OriginRequestContext: {
        request: Request;
    }
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginResponseContext.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginResponseContext.html new file mode 100644 index 0000000..2a2eae9 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.OriginResponseContext.html @@ -0,0 +1 @@ +OriginResponseContext | Edge Script SDK Documentation
    OriginResponseContext: {
        request: Request;
        response: Response;
    }
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandler.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandler.html new file mode 100644 index 0000000..0017fd6 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandler.html @@ -0,0 +1,3 @@ +PullZoneHandler | Edge Script SDK Documentation
    PullZoneHandler: {
        onOriginRequest: ((middleware: ((ctx: net.http.OriginRequestContext) => Promise<Request> | Promise<Response>)) => net.http.PullZoneHandler);
        onOriginResponse: ((middleware: ((ctx: net.http.OriginResponseContext) => Promise<Response>)) => net.http.PullZoneHandler);
    }

    Type declaration

    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandlerOptions.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandlerOptions.html new file mode 100644 index 0000000..a6547e9 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.PullZoneHandlerOptions.html @@ -0,0 +1 @@ +PullZoneHandlerOptions | Edge Script SDK Documentation
    PullZoneHandlerOptions: {
        url: string;
    }
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServeHandler.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServeHandler.html new file mode 100644 index 0000000..c59e1e2 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServeHandler.html @@ -0,0 +1 @@ +ServeHandler | Edge Script SDK Documentation
    ServeHandler: {} & unknown
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServerHandler.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServerHandler.html new file mode 100644 index 0000000..8313aa7 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.http.ServerHandler.html @@ -0,0 +1,3 @@ +ServerHandler | Edge Script SDK Documentation
    ServerHandler: ((request: Request) => Response | Promise<Response>)

    A handler for HTTP Requests. +Consumes a request and return a response.

    +
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Enumerate.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Enumerate.html new file mode 100644 index 0000000..6c992e5 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Enumerate.html @@ -0,0 +1 @@ +Enumerate | Edge Script SDK Documentation
    Enumerate<N, Acc>: Acc["length"] extends N
        ? Acc[number]
        : net.ip.Enumerate<N, [...Acc, Acc["length"]]>

    Type Parameters

    • N extends number
    • Acc extends number[] = []
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.IPv4.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.IPv4.html new file mode 100644 index 0000000..9b604ee --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.IPv4.html @@ -0,0 +1 @@ +IPv4 | Edge Script SDK Documentation
    IPv4: [net.ip.Range<0, 255>, net.ip.Range<0, 255>, net.ip.Range<0, 255>, net.ip.Range<0, 255>]
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Range.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Range.html new file mode 100644 index 0000000..810f45c --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.ip.Range.html @@ -0,0 +1 @@ +Range | Edge Script SDK Documentation
    Range<F, T>: Exclude<net.ip.Enumerate<T>, net.ip.Enumerate<F>> | T

    Type Parameters

    • F extends number
    • T extends number
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.NoAddr.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.NoAddr.html new file mode 100644 index 0000000..804c510 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.NoAddr.html @@ -0,0 +1 @@ +NoAddr | Edge Script SDK Documentation
    NoAddr: {
        _tag: "NoAddr";
    }
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddr.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddr.html new file mode 100644 index 0000000..c71802c --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddr.html @@ -0,0 +1 @@ +SocketAddr | Edge Script SDK Documentation
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddrError.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddrError.html new file mode 100644 index 0000000..e31ba09 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.SocketAddrError.html @@ -0,0 +1 @@ +SocketAddrError | Edge Script SDK Documentation
    SocketAddrError: net.socketAddr.InvalidAddr
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.SocketAddrV4.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.SocketAddrV4.html new file mode 100644 index 0000000..5f71781 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.socketAddr.v4.SocketAddrV4.html @@ -0,0 +1 @@ +SocketAddrV4 | Edge Script SDK Documentation
    SocketAddrV4: {
        _tag: "SocketAddrV4";
        ip: net.ip.IPv4;
        port: number;
    }
    \ No newline at end of file diff --git a/docs/types/_bunny_net_edgescript_sdk_latest.net.tcp.TcpListener.html b/docs/types/_bunny_net_edgescript_sdk_latest.net.tcp.TcpListener.html new file mode 100644 index 0000000..30bab68 --- /dev/null +++ b/docs/types/_bunny_net_edgescript_sdk_latest.net.tcp.TcpListener.html @@ -0,0 +1,2 @@ +TcpListener | Edge Script SDK Documentation
    TcpListener: {
        _tag: "TcpListener";
        addr: net.socketAddr.SocketAddr;
    }

    Type declaration

    \ No newline at end of file diff --git a/scripts/build-doc.sh b/scripts/build-doc.sh index d237fff..2010e51 100755 --- a/scripts/build-doc.sh +++ b/scripts/build-doc.sh @@ -5,7 +5,8 @@ cd "$repo_base" echo "Creating doc for bunny-sdk" cd libs/bunny-sdk/ -npx typedoc --json ../../docs-json/sdk-$(cat package.json | jq -r '.version').json --options typedoc.json --validation.invalidLink false --name $(cat package.json | jq -r '.name')/$(cat package.json | jq -r '.version') --includeVersion true +npx typedoc --json ../../docs-json/sdk-latest.json --options typedoc.json --validation.invalidLink false --name "$(cat package.json | jq -r '.name')/latest" --includeVersion true +npx typedoc --json ../../docs-json/sdk-$(cat package.json | jq -r '.version').json --options typedoc.json --validation.invalidLink false --name $(cat package.json | jq -r '.name')/$(cat package.json | jq -r '.version') --includeVersion false cd "$repo_base" npx typedoc --entryPointStrategy merge "docs-json/*.json"