@stacksjs/tunnel 0.66.0 → 0.68.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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { type LocalTunnel, localTunnel } from "./tunnel";
2
- export declare function createLocalTunnel(port: number): Promise<LocalTunnel>;
3
- export { localTunnel };
1
+ import { localTunnel } from './tunnel';
2
+
3
+ export { localTunnel }
4
+ export declare function createLocalTunnel(port: number): Promise<LocalTunnel>;
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
1
  // @bun
2
2
  async function a(r){if(!r?.port)r={port:3000};return console.log("Creating local tunnel",r.port),"localTunnel"}async function l(r){return await a({port:r})}export{a as localTunnel,l as createLocalTunnel};
3
-
4
- //# debugId=DA8CF3995797566764756E2164756E21
5
- //# sourceMappingURL=index.js.map
package/dist/tunnel.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export type LocalTunnel = string;
2
- export declare function localTunnel(options?: { port: number }): Promise<LocalTunnel>;
1
+ export declare type LocalTunnel = string
2
+ export declare function localTunnel(options?: { port: number }): Promise<LocalTunnel>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.66.0",
4
+ "version": "0.68.0",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -19,23 +19,21 @@
19
19
  "keywords": ["tunnel", "local", "bun", "stacks"],
20
20
  "exports": {
21
21
  ".": {
22
- "bun": "./src/index.ts",
23
22
  "import": "./dist/index.js"
24
23
  },
25
24
  "./*": {
26
- "bun": "./src/*",
27
25
  "import": "./dist/*"
28
26
  }
29
27
  },
30
28
  "module": "dist/index.js",
31
29
  "types": "dist/index.d.ts",
32
- "files": ["README.md", "dist", "src"],
30
+ "files": ["README.md", "dist"],
33
31
  "scripts": {
34
32
  "build": "bun build.ts",
35
33
  "typecheck": "bun tsc --noEmit",
36
34
  "prepublishOnly": "bun run build"
37
35
  },
38
36
  "devDependencies": {
39
- "@stacksjs/development": "0.65.1"
37
+ "@stacksjs/development": "0.67.0"
40
38
  }
41
39
  }
package/dist/index.js.map DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/tunnel.ts", "../src/index.ts"],
4
- "sourcesContent": [
5
- "// wip\nexport type LocalTunnel = string\n\nexport async function localTunnel(options?: { port: number }): Promise<LocalTunnel> {\n const port = 3000\n\n if (!options?.port)\n options = { port }\n\n // eslint-disable-next-line no-console\n console.log('Creating local tunnel', options.port)\n\n return 'localTunnel'\n}\n",
6
- "import { type LocalTunnel, localTunnel } from './tunnel'\n\nexport async function createLocalTunnel(port: number): Promise<LocalTunnel> {\n return await localTunnel({ port })\n}\n\nexport { localTunnel }\n"
7
- ],
8
- "mappings": ";AAGA,eAAsB,CAAW,CAAC,EAAkD,CAGlF,IAAK,GAAS,KACZ,EAAU,CAAE,KAHD,IAGM,EAKnB,OAFA,QAAQ,IAAI,wBAAyB,EAAQ,IAAI,EAE1C,cCVT,eAAsB,CAAiB,CAAC,EAAoC,CAC1E,OAAO,MAAM,EAAY,CAAE,MAAK,CAAC",
9
- "debugId": "DA8CF3995797566764756E2164756E21",
10
- "names": []
11
- }
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- import { type LocalTunnel, localTunnel } from './tunnel'
2
-
3
- export async function createLocalTunnel(port: number): Promise<LocalTunnel> {
4
- return await localTunnel({ port })
5
- }
6
-
7
- export { localTunnel }
package/src/tunnel.ts DELETED
@@ -1,14 +0,0 @@
1
- // wip
2
- export type LocalTunnel = string
3
-
4
- export async function localTunnel(options?: { port: number }): Promise<LocalTunnel> {
5
- const port = 3000
6
-
7
- if (!options?.port)
8
- options = { port }
9
-
10
- // eslint-disable-next-line no-console
11
- console.log('Creating local tunnel', options.port)
12
-
13
- return 'localTunnel'
14
- }