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.
@@ -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: opts.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-ZPZK5F4Q.js");
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-B6IKYBLU.js";
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-ZPZK5F4Q.js");
3466
+ const { runDaemonChild: runDaemonChild2 } = await import("./daemonChild-MT6TRMRR.js");
3467
3467
  await runDaemonChild2();
3468
3468
  return;
3469
3469
  }
@@ -6,8 +6,8 @@ import {
6
6
  trackIPCTunnelStart,
7
7
  trackTunnelStart,
8
8
  trackTunnelStop
9
- } from "./chunk-P7XRY5N4.js";
10
- import "./chunk-B6IKYBLU.js";
9
+ } from "./chunk-4J5YBB4H.js";
10
+ import "./chunk-2HAVQORM.js";
11
11
  import "./chunk-MT44NAXX.js";
12
12
  import {
13
13
  DaemonHost
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: opts.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-B6IKYBLU.js";
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-VBWX7HTB.js");
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-P7XRY5N4.js";
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-B6IKYBLU.js";
16
+ } from "./chunk-2HAVQORM.js";
17
17
  import "./chunk-MT44NAXX.js";
18
18
  import {
19
19
  DaemonHost
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinggy",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Create secure, shareable tunnels to your localhost and manage them from the command line. ",