@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.
- package/build/client.js +24 -23
- package/package.json +2 -2
package/build/client.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
#! /usr/bin/env
|
|
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 "
|
|
7
|
-
import {Buffer} from "
|
|
8
|
-
import path from "
|
|
9
|
-
import {fileURLToPath} from "
|
|
10
|
-
import childProcess from "
|
|
11
|
-
import fs4, {constants as fsConstants} from "
|
|
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 "
|
|
15
|
-
import os from "
|
|
16
|
-
import fs3 from "
|
|
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 "
|
|
20
|
+
import fs2 from "fs";
|
|
20
21
|
|
|
21
22
|
// node_modules/is-docker/index.js
|
|
22
|
-
import fs from "
|
|
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 "
|
|
102
|
-
import process5 from "
|
|
103
|
-
import {execFile as execFile4} from "
|
|
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 "
|
|
107
|
-
import process3 from "
|
|
108
|
-
import {execFile} from "
|
|
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 "
|
|
121
|
-
import {promisify as promisify2} from "
|
|
122
|
-
import {execFile as execFile2, execFileSync} from "
|
|
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 "
|
|
141
|
-
import {execFile as execFile3} from "
|
|
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.
|
|
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
|
|
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",
|