@tmlmobilidade/ssh 20260710.2210.9 → 20260711.15.7

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.
@@ -24,10 +24,7 @@ export function createSshTunnelFactory(type) {
24
24
  function buildSshTunnel(type, options) {
25
25
  const { dstAddr, dstPort, maxRetries } = options;
26
26
  const env = (name) => process.env[`${type}_${name}`];
27
- if (env('TUNNEL_ENABLED') !== 'true' && env('TUNNEL_ENABLED') !== 'false') {
28
- throw new Error(`Missing ${type}_TUNNEL_ENABLED. Please indicate whether SSH tunneling is required by setting ${type}_TUNNEL_ENABLED to "true" or "false".`);
29
- }
30
- if (env('TUNNEL_ENABLED') === 'false') {
27
+ if (env('TUNNEL_ENABLED') !== 'true') {
31
28
  return null;
32
29
  }
33
30
  if (!env('TUNNEL_SSH_HOST')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ssh",
3
- "version": "20260710.2210.9",
3
+ "version": "20260711.15.7",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"