-
Notifications
You must be signed in to change notification settings - Fork 400
Add back JSONParse helper
#2319
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@saleor/handlebars": patch | ||
| "saleor-app-smtp": patch | ||
| --- | ||
|
|
||
| Re-added `JSONparse` handlebars helper | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,7 +131,8 @@ export const ALLOWED_HELPERS: Record<string, string[]> = { | |||||||
| "toPrecision", | ||||||||
| ], | ||||||||
|
|
||||||||
| // --- object: removed entirely --- | ||||||||
| // --- object (extend, merge removed – prototype pollution risk) --- | ||||||||
| object: ["JSONparse"], | ||||||||
|
Comment on lines
+134
to
+135
|
||||||||
| // --- object (extend, merge removed – prototype pollution risk) --- | |
| object: ["JSONparse"], | |
| // --- object: removed entirely (JSONparse disabled for security) --- |
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.
This changeset bumps
saleor-app-smtp, but the code change is in@saleor/handlebars(seepackages/handlebars/package.json). As written, the release will publish a version bump/changelog for the wrong package and won’t version the helper change correctly.