@rubriclab/bunl 0.0.22 → 0.0.23

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/build/client.js CHANGED
@@ -434,53 +434,6 @@ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
434
434
  defineLazyProperty(apps, "browser", () => "browser");
435
435
  defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
436
436
  var open_default = open;
437
- // package.json
438
- var package_default = {
439
- bin: {
440
- bunl: "build/client.js"
441
- },
442
- name: "@rubriclab/bunl",
443
- description: "Expose localhost to the world",
444
- version: "0.0.22",
445
- license: "MIT",
446
- repository: {
447
- type: "git",
448
- url: "git+https://github.com/RubricLab/bunl.git"
449
- },
450
- dependencies: {
451
- "human-id": "^4.1.1",
452
- open: "^10.1.0"
453
- },
454
- devDependencies: {
455
- "@types/bun": "latest"
456
- },
457
- main: "build/client.js",
458
- scripts: {
459
- server: "bun server.ts",
460
- "dev:server": "bun --hot server.ts",
461
- client: "bun --hot client.ts",
462
- demo: "bun --hot demo.ts",
463
- "client:upgrade": "bun rm -g @rubriclab/bunl && bun i -g @rubriclab/bunl@latest",
464
- build: "BUILD=build/client.js && bun build client.ts --outdir build --target bun && echo -e \"#! /usr/bin/env bun
465
- $(cat $BUILD)\" > $BUILD",
466
- "npm:publish": "bun run build && npm publish"
467
- },
468
- type: "module",
469
- peerDependencies: {
470
- typescript: "^5.0.0"
471
- },
472
- publishConfig: {
473
- "@RubricLab:registry": "https://registry.npmjs.org",
474
- access: "public",
475
- registry: "https://registry.npmjs.org"
476
- },
477
- homepage: "https://github.com/RubricLab/bunl#readme",
478
- keywords: [
479
- "local",
480
- "tunnel",
481
- "rubric"
482
- ]
483
- };
484
437
 
485
438
  // client.ts
486
439
  async function main({
@@ -504,7 +457,6 @@ async function main({
504
457
  if (open2)
505
458
  open_default(data.url);
506
459
  }
507
- console.log(data.pathname);
508
460
  if (data.method) {
509
461
  const res = await fetch(`${url}${data.pathname || ""}`, {
510
462
  method: data.method,
@@ -561,7 +513,7 @@ var { values } = parseArgs({
561
513
  allowPositionals: true
562
514
  });
563
515
  if (values.version) {
564
- console.log(package_default.version);
516
+ console.log("0.0.23");
565
517
  process.exit();
566
518
  }
567
519
  if (!values.port)
package/client.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { parseArgs } from "util";
2
2
  import browser from "open";
3
- import app from "./package.json";
4
3
 
5
4
  async function main({
6
5
  url,
@@ -28,8 +27,6 @@ async function main({
28
27
  if (open) browser(data.url);
29
28
  }
30
29
 
31
- console.log(data.pathname);
32
-
33
30
  if (data.method) {
34
31
  const res = await fetch(`${url}${data.pathname || ""}`, {
35
32
  method: data.method,
@@ -97,7 +94,7 @@ const { values } = parseArgs({
97
94
  });
98
95
 
99
96
  if (values.version) {
100
- console.log(app.version);
97
+ console.log(process.env.npm_package_version);
101
98
  process.exit();
102
99
  }
103
100
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@rubriclab/bunl",
6
6
  "description": "Expose localhost to the world",
7
- "version": "0.0.22",
7
+ "version": "0.0.23",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",