@stacksjs/tunnel 0.62.0 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -16
- package/dist/index.js.map +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
async function localTunnel(options) {
|
|
4
|
-
const port = 3000;
|
|
5
|
-
if (!options?.port)
|
|
6
|
-
options = { port };
|
|
7
|
-
console.log("Creating local tunnel", options.port);
|
|
8
|
-
return "localTunnel";
|
|
9
|
-
}
|
|
2
|
+
async function r(n){if(!n?.port)n={port:3000};return console.log("Creating local tunnel",n.port),"localTunnel"}async function t(n){return await r({port:n})}export{r as localTunnel,t as createLocalTunnel};
|
|
10
3
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return await localTunnel({ port });
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
localTunnel,
|
|
17
|
-
createLocalTunnel
|
|
18
|
-
};
|
|
4
|
+
//# debugId=C0155D8C9DB3B68C64756E2164756E21
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/tunnel.ts", "../src/index.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"export async function localTunnel(options?: { port: number }) {\n const port = 3000\n\n if (!options?.port) options = { port }\n\n console.log('Creating local tunnel', options.port)\n\n return 'localTunnel'\n}\n",
|
|
6
|
+
"import { localTunnel } from './tunnel'\n\nexport async function createLocalTunnel(port: number) {\n return await localTunnel({ port })\n}\n\nexport { localTunnel }\n"
|
|
7
|
+
],
|
|
8
|
+
"mappings": ";AAAA,eAAsB,CAAW,CAAC,EAA4B,CAG5D,IAAK,GAAS,KAAM,EAAU,CAAE,KAFnB,IAEwB,EAIrC,OAFA,QAAQ,IAAI,wBAAyB,EAAQ,IAAI,EAE1C,cCLT,eAAsB,CAAiB,CAAC,EAAc,CACpD,OAAO,MAAM,EAAY,CAAE,MAAK,CAAC",
|
|
9
|
+
"debugId": "C0155D8C9DB3B68C64756E2164756E21",
|
|
10
|
+
"names": []
|
|
11
|
+
}
|