-
Notifications
You must be signed in to change notification settings - Fork 229
fix: resolve 4 bugs in termui #3470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,3 +138,5 @@ export class Form extends Widget { | |
| } | ||
| } | ||
| } | ||
|
|
||
| .catch(err => console.error("Promise.all failed:", err)); | ||
|
Comment on lines
+141
to
+142
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
sed -n '78,146p' packages/ui/src/Form.ts
rg -n -C 3 'Promise\.all|\.catch|_isValidating|markDirty' packages/ui/src/Form.tsRepository: Karanjot786/TermUI Length of output: 5634 🏁 Script executed: #!/bin/bash
set -euo pipefail
sed -n '1,146p' packages/ui/src/Form.ts
python3 - <<'PY'
from pathlib import Path
text = Path("packages/ui/src/Form.ts").read_text()
try:
import black
except Exception as e:
print(f"black unavailable: {type(e).__name__}: {e}")
print("Unable to run black parser check.")
else:
try:
black.format_str(text, mode=black.Mode())
print("black parse check: ok")
except Exception as e:
print("black parse check: failed")
print(e)
PYRepository: Karanjot786/TermUI Length of output: 6748 Remove the stray The final 🧰 Tools🪛 Biome (2.5.5)[error] 142-142: Expected a statement but instead found '.catch(err => console.error("Promise.all failed:", err))'. (parse) 🪛 GitHub Actions: CI / 0_build-and-test.txt[error] 142-142: tsup/esbuild build failed: Unexpected "." at 🪛 GitHub Actions: CI / build-and-test[error] 142-142: The 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 207
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 230
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 25847
Validate the complete entity before conversion.
entity.slice(2, 10)silently discards hexadecimal digits after the eighth. For example,䇿is decoded asA. Also,�produces a finite number outside the valid Unicode range, soString.fromCodePointthrowsRangeError.Use the full captured digit string for
parseInt, reject sequences longer than eight digits, and reject values greater than0x10FFFFbefore callingString.fromCodePoint.🤖 Prompt for AI Agents