Skip to content

Conversation

@danielroe
Copy link
Member

cc: @Kai-ros

@danielroe danielroe requested a review from serhalp January 27, 2026 00:13
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 27, 2026 1:33am

Request Review

Copy link
Contributor

@Kai-ros Kai-ros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I offered a couple suggestions in the server

Copy link
Collaborator

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 This is beautiful!

Someone's read Parse, don't validate! 😁

Comment on lines +181 to +187
// Validate each operation's params
for (let i = 0; i < parsed.data.length; i++) {
const op = parsed.data[i]
if (!op) continue
try {
validateOperationParams(op.type, op.params)
} catch (err) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@serhalp serhalp merged commit d0ee386 into main Jan 27, 2026
8 checks passed
@serhalp serhalp deleted the feat/cli-validation branch January 27, 2026 01:34
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants