@pb33f/wiretap 0.0.24 → 0.0.26
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 +16 -0
- package/npm-install/postinstall.js +1 -1
- package/package.json +5 -4
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}/wiretap`), 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/
|
|
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pb33f/wiretap",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "The world's coolest OpenAPI contract compliance API Proxy
|
|
3
|
+
"version": "0.0.26",
|
|
4
|
+
"description": "The world's coolest OpenAPI contract compliance API Proxy testing tool.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"author": "Princess Beef Heavy Industries, LLC / Quobix",
|
|
6
|
+
"author": "Princess Beef Heavy Industries, LLC / Quobix / DaveShanley",
|
|
7
7
|
"license": "GPL-3.0",
|
|
8
8
|
"homepage": "https://pb33f.io/wiretap",
|
|
9
9
|
"repository": {
|
|
@@ -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
|
},
|