Skip to content

Comments

Fix cwe117 and test:e2e compilation#135

Open
armfazh wants to merge 4 commits intocloudflare:mainfrom
armfazh:fixCWE117
Open

Fix cwe117 and test:e2e compilation#135
armfazh wants to merge 4 commits intocloudflare:mainfrom
armfazh:fixCWE117

Conversation

@armfazh
Copy link
Contributor

@armfazh armfazh commented Jan 24, 2026

Fix cwe117 vuln reported by sempgrep.
Fixes test:e2e compilation by including @types/node dependency.

@armfazh armfazh changed the title Fix cwe117 andteste:e2e compilation Fix cwe117 and test:e2e compilation Jan 24, 2026
@armfazh armfazh requested a review from thibmeu January 24, 2026 01:51
Comment on lines -13 to 17
"rootDir": "src"
"rootDir": "."
},
"include": ["src"],
"exclude": ["node_modules", "dist", "test"]
"exclude": ["node_modules", "dist"]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this do? Is it relevant to this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

before running npm run test:e2e failed to compile the test files.

Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't the rootDir change above address that already? agree with @mendess it's a big confusing. maybe test:e2e should have a dedicated tsconfig.json

"types": "dist/types/index.d.ts",
"main": "dist/worker.mjs",
"license": "Apache-2.0",
"lockfileVersion": 3,
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +42 to +43
"@types/node": "25.2.3",
"@types/node-fetch": "2.6.13",
Copy link
Contributor

Choose a reason for hiding this comment

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

good call

Comment on lines -13 to 17
"rootDir": "src"
"rootDir": "."
},
"include": ["src"],
"exclude": ["node_modules", "dist", "test"]
"exclude": ["node_modules", "dist"]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't the rootDir change above address that already? agree with @mendess it's a big confusing. maybe test:e2e should have a dedicated tsconfig.json

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.

3 participants