@pb33f/wiretap 0.0.24 → 0.0.25

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/bin/wiretap.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import { execFileSync } from "child_process";
3
+ import path from "path";
4
+ import { exit } from "process";
5
+ import { fileURLToPath } from "url";
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+
10
+ try {
11
+ execFileSync(path.resolve(`${__dirname}/vacuum`), process.argv.slice(2), {
12
+ stdio: "inherit",
13
+ });
14
+ } catch (e) {
15
+ exit(1)
16
+ }
@@ -11,7 +11,7 @@ async function install() {
11
11
  if (process.platform === "android") {
12
12
  console.log("Installing, may take a moment...");
13
13
  const cmd =
14
- "pkg upgrade && pkg install golang git -y && git clone https://github.com/pb33f/wiertap.git && make build";
14
+ "pkg upgrade && pkg install golang git -y && git clone https://github.com/pb33f/wiretap.git && make build";
15
15
  execSync(cmd, { encoding: "utf-8" });
16
16
  console.log("Installation successful!");
17
17
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pb33f/wiretap",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "The world's coolest OpenAPI contract compliance API Proxy in the world.",
5
5
  "type": "module",
6
6
  "author": "Princess Beef Heavy Industries, LLC / Quobix",
@@ -17,12 +17,13 @@
17
17
  "postinstall": "node ./npm-install/postinstall.js"
18
18
  },
19
19
  "bin": {
20
- "wiretap": "bin/wiretap"
20
+ "wiretap": "bin/wiretap.js"
21
21
  },
22
22
  "files": [
23
23
  "npm-install"
24
24
  ],
25
25
  "dependencies": {
26
+ "global": "^4.4.0",
26
27
  "node-fetch": "^3.3.1",
27
28
  "tar": "^6.1.15"
28
29
  },