@stacksjs/tunnel 0.68.1 → 0.69.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.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/tunnel.d.ts +11 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { LocalTunnel } from './tunnel';
|
|
1
2
|
import { localTunnel } from './tunnel';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
4
|
+
export declare function createLocalTunnel(port: number): Promise<LocalTunnel>;
|
|
5
|
+
|
|
6
|
+
export { localTunnel }
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
async function
|
|
2
|
+
async function e(r){if(!r?.port)r={port:3000};return console.log("Creating local tunnel",r.port),"localTunnel"}async function l(r){return await e({port:r})}export{e as localTunnel,l as createLocalTunnel};
|
package/dist/tunnel.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export declare type LocalTunnel = string
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export async function localTunnel(options?: { port: number }): Promise<LocalTunnel> {
|
|
4
|
+
const port = 3000
|
|
5
|
+
|
|
6
|
+
if (!options?.port)
|
|
7
|
+
options = { port }
|
|
8
|
+
|
|
9
|
+
console.log('Creating local tunnel', options.port)
|
|
10
|
+
|
|
11
|
+
return 'localTunnel'
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/tunnel",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.69.1",
|
|
5
5
|
"description": "Local development tunnel.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"prepublishOnly": "bun run build"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@stacksjs/development": "0.
|
|
37
|
+
"@stacksjs/development": "0.68.2"
|
|
38
38
|
}
|
|
39
39
|
}
|