@rubriclab/bunl 0.0.18 → 0.0.19

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.
Files changed (2) hide show
  1. package/build/client.js +24 -23
  2. package/package.json +2 -2
package/build/client.js CHANGED
@@ -1,25 +1,26 @@
1
- #! /usr/bin/env node
1
+ #! /usr/bin/env bun
2
+ // @bun
2
3
  // client.ts
3
4
  import {parseArgs} from "util";
4
5
 
5
6
  // node_modules/open/index.js
6
- import process6 from "node:process";
7
- import {Buffer} from "node:buffer";
8
- import path from "node:path";
9
- import {fileURLToPath} from "node:url";
10
- import childProcess from "node:child_process";
11
- import fs4, {constants as fsConstants} from "node:fs/promises";
7
+ import process6 from "process";
8
+ import {Buffer} from "buffer";
9
+ import path from "path";
10
+ import {fileURLToPath} from "url";
11
+ import childProcess from "child_process";
12
+ import fs4, {constants as fsConstants} from "fs/promises";
12
13
 
13
14
  // node_modules/is-wsl/index.js
14
- import process2 from "node:process";
15
- import os from "node:os";
16
- import fs3 from "node:fs";
15
+ import process2 from "process";
16
+ import os from "os";
17
+ import fs3 from "fs";
17
18
 
18
19
  // node_modules/is-inside-container/index.js
19
- import fs2 from "node:fs";
20
+ import fs2 from "fs";
20
21
 
21
22
  // node_modules/is-docker/index.js
22
- import fs from "node:fs";
23
+ import fs from "fs";
23
24
  var hasDockerEnv = function() {
24
25
  try {
25
26
  fs.statSync("/.dockerenv");
@@ -98,14 +99,14 @@ function defineLazyProperty(object, propertyName, valueGetter) {
98
99
  }
99
100
 
100
101
  // node_modules/default-browser/index.js
101
- import {promisify as promisify4} from "node:util";
102
- import process5 from "node:process";
103
- import {execFile as execFile4} from "node:child_process";
102
+ import {promisify as promisify4} from "util";
103
+ import process5 from "process";
104
+ import {execFile as execFile4} from "child_process";
104
105
 
105
106
  // node_modules/default-browser-id/index.js
106
- import {promisify} from "node:util";
107
- import process3 from "node:process";
108
- import {execFile} from "node:child_process";
107
+ import {promisify} from "util";
108
+ import process3 from "process";
109
+ import {execFile} from "child_process";
109
110
  var execFileAsync = promisify(execFile);
110
111
  async function defaultBrowserId() {
111
112
  if (process3.platform !== "darwin") {
@@ -117,9 +118,9 @@ async function defaultBrowserId() {
117
118
  }
118
119
 
119
120
  // node_modules/run-applescript/index.js
120
- import process4 from "node:process";
121
- import {promisify as promisify2} from "node:util";
122
- import {execFile as execFile2, execFileSync} from "node:child_process";
121
+ import process4 from "process";
122
+ import {promisify as promisify2} from "util";
123
+ import {execFile as execFile2, execFileSync} from "child_process";
123
124
  async function runAppleScript(script, { humanReadableOutput = true } = {}) {
124
125
  if (process4.platform !== "darwin") {
125
126
  throw new Error("macOS only");
@@ -137,8 +138,8 @@ tell application "System Events" to get value of property list item "CFBundleNam
137
138
  }
138
139
 
139
140
  // node_modules/default-browser/windows.js
140
- import {promisify as promisify3} from "node:util";
141
- import {execFile as execFile3} from "node:child_process";
141
+ import {promisify as promisify3} from "util";
142
+ import {execFile as execFile3} from "child_process";
142
143
  var execFileAsync3 = promisify3(execFile3);
143
144
  var windowsBrowserProgIds = {
144
145
  AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
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.18",
7
+ "version": "0.0.19",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "client": "bun --hot client.ts",
25
25
  "demo": "bun --hot demo.ts",
26
26
  "client:upgrade": "bun rm -g @rubriclab/bunl && bun i -g @rubriclab/bunl@latest",
27
- "build": "BUILD=build/client.js && bun build client.ts --outdir build --target node && echo -e \"#! /usr/bin/env node\n$(cat $BUILD)\" > $BUILD",
27
+ "build": "BUILD=build/client.js && bun build client.ts --outdir build --target bun && echo -e \"#! /usr/bin/env bun\n$(cat $BUILD)\" > $BUILD",
28
28
  "npm:publish": "bun run build && npm publish"
29
29
  },
30
30
  "type": "module",