@rubytech/create-maxy 1.0.638 → 1.0.639

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Maxy</title>
7
7
  <link rel="icon" href="/favicon.ico">
8
- <script type="module" crossorigin src="/assets/admin-tPrH6zWV.js"></script>
8
+ <script type="module" crossorigin src="/assets/admin-Cscyi34W.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-Be6NvmcD.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-rov5CBGT.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-3Qblv7wH.js">
@@ -2943,6 +2943,21 @@ function sanitizeClientCorrId(raw2) {
2943
2943
  // app/lib/remote-auth.ts
2944
2944
  import { scrypt, randomBytes, timingSafeEqual } from "crypto";
2945
2945
  import { readFileSync as readFileSync2, writeFileSync, existsSync as existsSync3 } from "fs";
2946
+
2947
+ // app/lib/password-strength.ts
2948
+ function validatePasswordStrength(password) {
2949
+ return [
2950
+ { key: "length", label: "At least 8 characters", met: password.length >= 8 },
2951
+ { key: "number", label: "Contains a number", met: /\d/.test(password) },
2952
+ { key: "special", label: "Contains a special character", met: /[^A-Za-z0-9]/.test(password) },
2953
+ { key: "whitespace", label: "No spaces", met: password.length > 0 && !/\s/.test(password) }
2954
+ ];
2955
+ }
2956
+ function isPasswordValid(password) {
2957
+ return validatePasswordStrength(password).every((r) => r.met);
2958
+ }
2959
+
2960
+ // app/lib/remote-auth.ts
2946
2961
  var SCRYPT_N = 16384;
2947
2962
  var SCRYPT_R = 8;
2948
2963
  var SCRYPT_P = 1;
@@ -2976,17 +2991,6 @@ async function verifyPassword(password, stored) {
2976
2991
  return false;
2977
2992
  }
2978
2993
  }
2979
- function validatePasswordStrength(password) {
2980
- return [
2981
- { key: "length", label: "At least 8 characters", met: password.length >= 8 },
2982
- { key: "number", label: "Contains a number", met: /\d/.test(password) },
2983
- { key: "special", label: "Contains a special character", met: /[^A-Za-z0-9]/.test(password) },
2984
- { key: "whitespace", label: "No spaces", met: password.length > 0 && !/\s/.test(password) }
2985
- ];
2986
- }
2987
- function isPasswordValid(password) {
2988
- return validatePasswordStrength(password).every((r) => r.met);
2989
- }
2990
2994
  function isRemoteAuthConfigured() {
2991
2995
  if (!existsSync3(REMOTE_PASSWORD_FILE)) return false;
2992
2996
  const content = readFileSync2(REMOTE_PASSWORD_FILE, "utf-8").trim();