@selvajs/cli 4.20.0 → 4.20.1-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selvajs/cli",
3
- "version": "4.20.0",
3
+ "version": "4.20.1-beta.0",
4
4
  "description": "Scaffold and operate a Selva white-label deployment. `npx @selvajs/cli <dir>` to bootstrap, `selva <cmd>` to manage.",
5
5
  "license": "MIT",
6
6
  "author": "VektorNode",
@@ -18,6 +18,12 @@ function composeManifest(parts) {
18
18
  }
19
19
  return out;
20
20
  }
21
+ // ../platform/src/utils/trim.ts
22
+ function trimTrailing(s, ch) {
23
+ let end = s.length;
24
+ while (end > 0 && s[end - 1] === ch) end--;
25
+ return s.slice(0, end);
26
+ }
21
27
  // ../platform/src/config/resolve.ts
22
28
  var TRUE = /* @__PURE__ */ new Set(['true', '1', 'yes', 'on']);
23
29
  var FALSE = /* @__PURE__ */ new Set(['false', '0', 'no', 'off']);
@@ -49,7 +55,7 @@ function parse(spec, raw) {
49
55
  new URL(v);
50
56
  return {
51
57
  ok: true,
52
- value: v.replace(/\/+$/, '')
58
+ value: trimTrailing(v, '/')
53
59
  };
54
60
  } catch {
55
61
  return {
@@ -122,7 +128,7 @@ function parse(spec, raw) {
122
128
  function isKey32(v) {
123
129
  if (/^[0-9a-fA-F]{64}$/.test(v)) return true;
124
130
  const buf = Buffer.from(v, 'base64');
125
- return buf.length === 32 && buf.toString('base64').replace(/=+$/, '') === v.replace(/=+$/, '');
131
+ return buf.length === 32 && trimTrailing(buf.toString('base64'), '=') === trimTrailing(v, '=');
126
132
  }
127
133
  /** What `raw` meant to the reader before it parsed strictly. */
128
134
  function legacyValue(spec, raw) {
@@ -1107,7 +1113,8 @@ var RETIRED_KEYS = {
1107
1113
  SUPABASE_PRIVATE_URL_PREFIX: 'fixed at /api/files',
1108
1114
  COMPUTE_SOLVE_DEADLINE_MS: 'set --timeout (RHINO_COMPUTE_TIMEOUT) on the compute server',
1109
1115
  MAX_SOLVE_DURATION_MS: 'set --timeout (RHINO_COMPUTE_TIMEOUT) on the compute server',
1110
- COMPUTE_REUSE_DEFINITION_CACHE: 'on whenever the compute server reports /limits'
1116
+ COMPUTE_REUSE_DEFINITION_CACHE: 'on whenever the compute server reports /limits',
1117
+ COMPUTE_CACHE_ERRORED_SOLVES: 'removed'
1111
1118
  };
1112
1119
  /**
1113
1120
  * The manifest for this deployment: engine and app keys, plus the slices of