@insforge/cli 0.1.72 → 0.1.73

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/index.js CHANGED
@@ -1952,6 +1952,7 @@ function extractEnvPairs(content) {
1952
1952
  }
1953
1953
  return out;
1954
1954
  }
1955
+ var MASKED_PASSWORD_PATTERN = /:\*+@/;
1955
1956
  function refreshStaleEnvDefaults(existing, manifestDefaults, platformValues) {
1956
1957
  const refreshed = [];
1957
1958
  const lines = existing.split("\n").map((line) => {
@@ -1961,7 +1962,10 @@ function refreshStaleEnvDefaults(existing, manifestDefaults, platformValues) {
1961
1962
  const userValue = m[2];
1962
1963
  const def = manifestDefaults.get(key);
1963
1964
  const real = platformValues.get(key);
1964
- if (def !== void 0 && real !== void 0 && userValue === def && real !== def) {
1965
+ if (def === void 0 || real === void 0 || real === def) return line;
1966
+ const matchesDefault = userValue === def;
1967
+ const isMaskedPassword = MASKED_PASSWORD_PATTERN.test(userValue);
1968
+ if (matchesDefault || isMaskedPassword) {
1965
1969
  refreshed.push(key);
1966
1970
  return `${key}=${real}`;
1967
1971
  }
@@ -6892,7 +6896,7 @@ function registerDiagnoseCommands(diagnoseCmd2) {
6892
6896
  const s = !json ? clack15.spinner() : null;
6893
6897
  s?.start("Collecting diagnostic data...");
6894
6898
  const data2 = await collectDiagnosticData(projectId, ossMode, apiUrl);
6895
- const cliVersion = "0.1.72";
6899
+ const cliVersion = "0.1.73";
6896
6900
  s?.stop("Data collected");
6897
6901
  if (!json) {
6898
6902
  console.log(`