@stacksjs/tunnel 0.59.11 → 0.61.0

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 CHANGED
@@ -10,8 +10,7 @@ async function localTunnel(options) {
10
10
 
11
11
  // src/index.ts
12
12
  async function createLocalTunnel(port) {
13
- const tunnel2 = await localTunnel({ port });
14
- return tunnel2.url;
13
+ return await localTunnel({ port });
15
14
  }
16
15
  export {
17
16
  localTunnel,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.59.11",
4
+ "version": "0.61.0",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { localTunnel } from './tunnel'
2
2
 
3
3
  export async function createLocalTunnel(port: number) {
4
- const tunnel = await localTunnel({ port })
5
- return tunnel.url
4
+ return await localTunnel({ port })
6
5
  }
7
6
 
8
7
  export { localTunnel }
package/src/tunnel.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  export async function localTunnel(options?: { port: number }) {
2
2
  const port = 3000
3
3
 
4
- if (!options?.port)
5
- options = { port }
4
+ if (!options?.port) options = { port }
6
5
 
7
- // eslint-disable-next-line no-console
8
6
  console.log('Creating local tunnel', options.port)
9
7
 
10
8
  return 'localTunnel'
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { localTunnel } from './tunnel';
2
- export declare function createLocalTunnel(port: number): Promise<any>;
3
- export { localTunnel };
package/dist/tunnel.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare function localTunnel(options?: {
2
- port: number;
3
- }): Promise<string>;