Skip to content

Commit

Permalink
chore: added support for SafeList query params (#565)
Browse files Browse the repository at this point in the history
* chore: added support for SafeList query params

* chore: updated sendgrid/mail version
  • Loading branch information
tiwarishubham635 authored Jan 9, 2024
1 parent b04d546 commit 4294166
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@oclif/plugin-update": "^2.1.3",
"@oclif/plugin-version": "^1.1.1",
"@oclif/plugin-warn-if-update-available": "^2.0.2",
"@sendgrid/mail": "^7.2.1",
"@sendgrid/mail": "^8.0.0",
"@twilio/cli-core": "^7.0.0",
"chalk": "^4.1.2",
"file-type": "^16.5.4",
Expand Down
7 changes: 7 additions & 0 deletions src/hooks/init/twilio-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class TwilioRestApiPlugin extends Plugin {
Object.keys(actionDefinition.resource.operations).forEach((methodName) => {
actionDefinition.methodName = methodName;
actionDefinition.actionName = METHOD_TO_ACTION_MAP[pathType][methodName];
if (
actionDefinition.actionName !== 'create' &&
pathType === 'list' &&
'delete' in actionDefinition.resource.operations
) {
actionDefinition.actionName = METHOD_TO_ACTION_MAP.instance[methodName];
}
this.scanAction(actionDefinition);
}, this);
}
Expand Down

0 comments on commit 4294166

Please sign in to comment.