Skip to content

Commit 875ffd3

Browse files
lmac-1josephjclark
andauthored
Twilio import (#1649)
* updates import * updates changeset * updates version * bump package json --------- Co-authored-by: Joe Clark <joe@openfn.org>
1 parent 758d93a commit 875ffd3

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

packages/twilio/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

packages/twilio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {

packages/twilio/src/Adaptor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { execute as commonExecute, composeNextState } from '@openfn/language-common';
22
import { 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 })

0 commit comments

Comments
 (0)