pinggy 0.5.8 → 0.5.9
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/dist/{chunk-B6IKYBLU.js → chunk-2HAVQORM.js} +5 -2
- package/dist/{chunk-P7XRY5N4.js → chunk-4J5YBB4H.js} +2 -2
- package/dist/{daemonChild-ZPZK5F4Q.js → daemonChild-MT6TRMRR.js} +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.js +2 -2
- package/dist/{main-VBWX7HTB.js → main-KY2O5KNA.js} +2 -2
- package/package.json +1 -1
|
@@ -305,7 +305,10 @@ function pinggyOptionsToTunnelConfigV1(opts, configStoredInCli) {
|
|
|
305
305
|
originalRequestUrl: opts.originalRequestUrl ?? false,
|
|
306
306
|
allowPreflight: opts.allowPreflight ?? false,
|
|
307
307
|
haProxy: opts.haProxy,
|
|
308
|
-
optional:
|
|
308
|
+
optional: {
|
|
309
|
+
...configStoredInCli.optional || {},
|
|
310
|
+
...opts.optional || {}
|
|
311
|
+
}
|
|
309
312
|
};
|
|
310
313
|
}
|
|
311
314
|
function tunnelConfigToPinggyOptions(config) {
|
|
@@ -1679,7 +1682,7 @@ async function ensureDaemonRunning() {
|
|
|
1679
1682
|
return existing;
|
|
1680
1683
|
}
|
|
1681
1684
|
if (process.versions.electron) {
|
|
1682
|
-
const { runDaemonChild } = await import("./daemonChild-
|
|
1685
|
+
const { runDaemonChild } = await import("./daemonChild-MT6TRMRR.js");
|
|
1683
1686
|
const handle = await runDaemonChild({
|
|
1684
1687
|
installSignalHandlers: false,
|
|
1685
1688
|
exitOnFailure: false,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
startDaemon,
|
|
14
14
|
startRemoteManagement,
|
|
15
15
|
stopDaemon
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2HAVQORM.js";
|
|
17
17
|
import {
|
|
18
18
|
readDaemonConfig
|
|
19
19
|
} from "./chunk-MT44NAXX.js";
|
|
@@ -3463,7 +3463,7 @@ async function main() {
|
|
|
3463
3463
|
const { values, positionals, hasAnyArgs } = parseCliArgs(cliOptions);
|
|
3464
3464
|
configureLogger(values);
|
|
3465
3465
|
if (values["_daemon-child"]) {
|
|
3466
|
-
const { runDaemonChild: runDaemonChild2 } = await import("./daemonChild-
|
|
3466
|
+
const { runDaemonChild: runDaemonChild2 } = await import("./daemonChild-MT6TRMRR.js");
|
|
3467
3467
|
await runDaemonChild2();
|
|
3468
3468
|
return;
|
|
3469
3469
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2209,7 +2209,10 @@ function pinggyOptionsToTunnelConfigV1(opts, configStoredInCli) {
|
|
|
2209
2209
|
originalRequestUrl: opts.originalRequestUrl ?? false,
|
|
2210
2210
|
allowPreflight: opts.allowPreflight ?? false,
|
|
2211
2211
|
haProxy: opts.haProxy,
|
|
2212
|
-
optional:
|
|
2212
|
+
optional: {
|
|
2213
|
+
...configStoredInCli.optional || {},
|
|
2214
|
+
...opts.optional || {}
|
|
2215
|
+
}
|
|
2213
2216
|
};
|
|
2214
2217
|
}
|
|
2215
2218
|
function tunnelConfigToPinggyOptions(config) {
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
initiateRemoteManagement,
|
|
15
15
|
isDaemonRunning,
|
|
16
16
|
startRemoteManagement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2HAVQORM.js";
|
|
18
18
|
import "./chunk-I4HXBP5G.js";
|
|
19
19
|
import {
|
|
20
20
|
bulkReplace,
|
|
@@ -139,7 +139,7 @@ async function verifyAndLoad() {
|
|
|
139
139
|
process.exit(1);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
await import("./main-
|
|
142
|
+
await import("./main-KY2O5KNA.js");
|
|
143
143
|
}
|
|
144
144
|
verifyAndLoad().catch((err) => {
|
|
145
145
|
printer_default.fatal(`Failed to start CLI:, ${err}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runDaemonChild
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4J5YBB4H.js";
|
|
5
5
|
import {
|
|
6
6
|
RemoteManagementUnauthorizedError,
|
|
7
7
|
TunnelOperations,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getRemoteManagementState,
|
|
14
14
|
initiateRemoteManagement,
|
|
15
15
|
isDaemonRunning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2HAVQORM.js";
|
|
17
17
|
import "./chunk-MT44NAXX.js";
|
|
18
18
|
import {
|
|
19
19
|
DaemonHost
|