@tinycloud/cli 1.3.0-beta.39 → 1.3.0-beta.40

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.
@@ -900,11 +900,11 @@ function readSecure(name2, required) {
900
900
  }
901
901
  const dirMode = fs.statSync(profileDir()).mode & 511;
902
902
  if ((dirMode & 63) !== 0) {
903
- throw new CourierError("insecure-profile", `${profileDir()} must not be accessible by group or others (mode ${dirMode.toString(8)}).`);
903
+ throw new CourierError("profile-permissions", `${profileDir()} must be owner-only (mode 0700); found mode ${dirMode.toString(8)}.`);
904
904
  }
905
905
  const mode = fs.statSync(file).mode & 511;
906
906
  if ((mode & 63) !== 0) {
907
- throw new CourierError("insecure-profile", `${name2} must not be accessible by group or others (mode ${mode.toString(8)}).`);
907
+ throw new CourierError("profile-permissions", `${name2} must be owner-only (mode 0600); found mode ${mode.toString(8)}.`);
908
908
  }
909
909
  try {
910
910
  return JSON.parse(fs.readFileSync(file, "utf8"));