You can see your dependencies in the dependencies tab in the Functions Editor and on Build status via API.
You should now always see
@twilio/runtime-handler in the dependencies pane if you are using the UI and build details using API.
The default version of the Twilio SDK dependency and Runtime handler are included on all Builds. These dependencies are visible on all existing Builds on API and Functions UI Editor. This does not apply to Functions(Classic).
These dependencies are responsible for interpreting and executing your code and providing stability and scalability as your business grows.
You can determine the latest version of Twilio Node helper library here or simply add the latest dependencies on your twilio functions with a
latest. Keeping twilio helper libraries up to date enables you to take advantage o the latest Twilio product functionality.
This Serverless handler is responsible for combining together the three components of the .zip file and deploy the code also providing additional Twilio specific functionality to user code:
- Add logging around
- start time
- end times
- error codes
- Override exception handling
- Hijack the console log object
- Security around the auth token, redact the auth token so we don't print it out.
- If there is an account sid and auth token we create the twilio client automatically
- Give you the ability to return TwiML
- Helps expose your functions and assets
- Get private asset
- Get to other functions
- In the context object
- Domain name
- Environment variables
- In the event object
- Parameters that you call their function with
- Provides a consistent response. It is an object with
- status code