home-hosted 0.9.2 → 0.9.3

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/cli.js CHANGED
@@ -12021,9 +12021,18 @@ async function listZip(file) {
12021
12021
  await reader.close();
12022
12022
  }
12023
12023
  }
12024
- /** True when the archive rejected the password we used. */
12024
+ /**
12025
+ * True when the archive rejected the password we used.
12026
+ *
12027
+ * Matched on the wording zip.js raises for a bad password, not on the word alone: the message is
12028
+ * `Invalid password`, while a *file it cannot open* produces `ENOENT: … stat '/tmp/…/my-password-
12029
+ * backup.zip'` — which carries the word because the caller named the archive that. A substring test
12030
+ * read that as a wrong password and told the person to re-enter one, when the archive was simply
12031
+ * not there. (Caught by CI, where Node's fs message names the path; the local run said
12032
+ * `Unable to open file as blob`, so the same call looked fine.)
12033
+ */
12025
12034
  function isInvalidPassword(error) {
12026
- return error instanceof Error && /password/i.test(error.message);
12035
+ return error instanceof Error && /invalid password/i.test(error.message);
12027
12036
  }
12028
12037
  /**
12029
12038
  * Writes the contents of `sourceDir` into `destination`, preserving the tree.