-
Notifications
You must be signed in to change notification settings - Fork 35
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
test: Protect Prototype-Poisoning #225
Conversation
WalkthroughThe changes introduce a new Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- plugin/controller/test/fixtures/apps/proto-poisoning/app/controller/HelloController.ts (1 hunks)
- plugin/controller/test/fixtures/apps/proto-poisoning/config/config.default.js (1 hunks)
- plugin/controller/test/fixtures/apps/proto-poisoning/config/plugin.js (1 hunks)
- plugin/controller/test/fixtures/apps/proto-poisoning/package.json (1 hunks)
- plugin/controller/test/http/proto-poisoning.test.ts (1 hunks)
Files skipped from review due to trivial changes (3)
- plugin/controller/test/fixtures/apps/proto-poisoning/config/plugin.js
- plugin/controller/test/fixtures/apps/proto-poisoning/package.json
- plugin/controller/test/http/proto-poisoning.test.ts
Additional context used
Biome
plugin/controller/test/fixtures/apps/proto-poisoning/app/controller/HelloController.ts
[error] 14-14: Decorators are not valid here. (parse)
Decorators are only valid on class declarations, class expressions, and class methods.
You can enable parameter decorators by setting theunsafeParameterDecoratorsEnabled
option totrue
in your configuration file.
Additional comments not posted (2)
plugin/controller/test/fixtures/apps/proto-poisoning/config/config.default.js (1)
1-11
: Configuration for CSRF protection looks secure and appropriate.plugin/controller/test/fixtures/apps/proto-poisoning/app/controller/HelloController.ts (1)
8-29
: The implementation of prototype poisoning protection usingObject.assign
and spread syntax is effective.Tools
Biome
[error] 14-14: Decorators are not valid here. (parse)
Decorators are only valid on class declarations, class expressions, and class methods.
You can enable parameter decorators by setting theunsafeParameterDecoratorsEnabled
option totrue
in your configuration file.
plugin/controller/test/fixtures/apps/proto-poisoning/app/controller/HelloController.ts
Show resolved
Hide resolved
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/codeql-analysis.yml (1 hunks)
- .github/workflows/nodejs.yml (1 hunks)
Files skipped from review due to trivial changes (2)
- .github/workflows/codeql-analysis.yml
- .github/workflows/nodejs.yml
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- plugin/controller/test/fixtures/apps/proto-poisoning/config/config.default.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- plugin/controller/test/fixtures/apps/proto-poisoning/config/config.default.js
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.
LGTM
Summary by CodeRabbit
New Features
egg-tracer
,@eggjs/tegg-plugin
, and@eggjs/tegg-config
plugins.Bug Fixes
Chores