File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# @openfn/language-twilio
22
3+ ## 1.0.13
4+
5+ ### Patch Changes
6+
7+ - 53d1e16: Replace ` require('twilio') ` with static ESM import
8+
39## 1.0.12 - 07 April 2026
410
511### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @openfn/language-twilio" ,
33 "label" : " Twilio" ,
4- "version" : " 1.0.12 " ,
4+ "version" : " 1.0.13 " ,
55 "description" : " OpenFn adaptor for Twilio" ,
66 "main" : " dist/index.cjs" ,
77 "scripts" : {
Original file line number Diff line number Diff line change 11import { execute as commonExecute , composeNextState } from '@openfn/language-common' ;
22import { expandReferences } from '@openfn/language-common/util' ;
3+ import twilio from 'twilio' ;
34
45/**
56 * Execute a sequence of operations.
@@ -46,7 +47,7 @@ export function sendSMS(params) {
4647 const [ resolvedParams ] = expandReferences ( state , params ) ;
4748 const { body, from, to } = resolvedParams ;
4849
49- const client = require ( ' twilio' ) ( accountSid , authToken ) ;
50+ const client = twilio ( accountSid , authToken ) ;
5051
5152 return client . messages
5253 . create ( { body, from, to } )
You can’t perform that action at this time.
0 commit comments