Skip to content

Commit 1c44ad1

Browse files
committed
chore: npm run format (Prettier)
Signed-off-by: Tierney Cyren <[email protected]>
1 parent 5bcaf7f commit 1c44ad1

File tree

24 files changed

+127
-94
lines changed

24 files changed

+127
-94
lines changed

experimental-flex-dialpad/assets/helpers/flex-plugins.private.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,8 @@ exports.uploadFlexPlugin = async (
253253
serverlessClient
254254
);
255255

256-
const currentEnvironment = await helpers.environment.getCurrentEnvironment(
257-
context
258-
);
256+
const currentEnvironment =
257+
await helpers.environment.getCurrentEnvironment(context);
259258
await helpers.environment.setEnvironmentVariable(
260259
context,
261260
currentEnvironment,

experimental-flex-dialpad/assets/helpers/setup.private.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ async function getWorkspaceSid(twilioClient) {
2121

2222
exports.setupProject = async (context) => {
2323
const twilioClient = context.getTwilioClient();
24-
const currentEnvironment = await helpers.environment.getCurrentEnvironment(
25-
context
26-
);
24+
const currentEnvironment =
25+
await helpers.environment.getCurrentEnvironment(context);
2726
if (!currentEnvironment) {
2827
console.error('Could not find enviroment');
2928
return { setupDone: false };

experimental-flex-dialpad/functions/setup.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
exports.handler = async function (context, event, callback) {
2-
const { setupProject, isConfigured } = require(Runtime.getAssets()[
3-
'/helpers/setup.js'
4-
].path);
5-
const {
6-
uploadFlexPlugin,
7-
Status,
8-
getStatus,
9-
deployPlugin,
10-
} = require(Runtime.getAssets()['/helpers/flex-plugins.js'].path);
2+
const { setupProject, isConfigured } = require(
3+
Runtime.getAssets()['/helpers/setup.js'].path
4+
);
5+
const { uploadFlexPlugin, Status, getStatus, deployPlugin } = require(
6+
Runtime.getAssets()['/helpers/flex-plugins.js'].path
7+
);
118
try {
129
const pluginName = 'flex-dialpad-addon';
1310
const version = '1.0.0';

frontline-quickstart/functions/callbacks/routing.protected.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const routeConversation = async (context, conversationSid, customerNumber) => {
22
const assets = Runtime.getAssets();
3-
const { findWorkerForCustomer, findRandomWorker } = require(assets[
4-
'/providers/customers.js'
5-
].path);
3+
const { findWorkerForCustomer, findRandomWorker } = require(
4+
assets['/providers/customers.js'].path
5+
);
66
let workerIdentity = await findWorkerForCustomer(context, customerNumber);
77
if (!workerIdentity) {
88
// Customer doesn't have a worker

frontline-quickstart/functions/callbacks/twilio-conversations.protected.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ const setCustomerParticipantProperties = async (
3030
// eslint-disable-next-line consistent-return
3131
exports.handler = async function (context, event, callback) {
3232
const assets = Runtime.getAssets();
33-
const { getCustomerByNumber } = require(assets['/providers/customers.js']
34-
.path);
33+
const { getCustomerByNumber } = require(
34+
assets['/providers/customers.js'].path
35+
);
3536

3637
console.log('[ Outgoing Conversations Callback ]');
3738

list-numbers/assets/styles.css

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,18 @@ pre {
2525

2626
body {
2727
margin: 0;
28-
font-family: 'Inter var experimental', 'Inter var', -apple-system,
29-
BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
30-
'Helvetica Neue', sans-serif;
28+
font-family:
29+
'Inter var experimental',
30+
'Inter var',
31+
-apple-system,
32+
BlinkMacSystemFont,
33+
'Segoe UI',
34+
Roboto,
35+
Oxygen-Sans,
36+
Ubuntu,
37+
Cantarell,
38+
'Helvetica Neue',
39+
sans-serif;
3140
font-size: 16px;
3241
line-height: 1.5rem;
3342
color: rgb(18, 28, 45);
@@ -256,13 +265,26 @@ svg.logo {
256265
display: inline-block;
257266
border: none;
258267
outline: none;
259-
-webkit-transition: background-color 100ms ease-in, box-shadow 100ms ease-in,
268+
-webkit-transition:
269+
background-color 100ms ease-in,
270+
box-shadow 100ms ease-in,
260271
color 100ms ease-in;
261-
transition: background-color 100ms ease-in, box-shadow 100ms ease-in,
272+
transition:
273+
background-color 100ms ease-in,
274+
box-shadow 100ms ease-in,
262275
color 100ms ease-in;
263-
font-family: 'Inter var experimental', 'Inter var', -apple-system,
264-
BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
265-
'Helvetica Neue', sans-serif;
276+
font-family:
277+
'Inter var experimental',
278+
'Inter var',
279+
-apple-system,
280+
BlinkMacSystemFont,
281+
'Segoe UI',
282+
Roboto,
283+
Oxygen-Sans,
284+
Ubuntu,
285+
Cantarell,
286+
'Helvetica Neue',
287+
sans-serif;
266288
font-weight: 600;
267289
-webkit-text-decoration: none;
268290
text-decoration: none;
@@ -301,13 +323,26 @@ svg.logo {
301323
display: inline-block;
302324
border: none;
303325
outline: none;
304-
-webkit-transition: background-color 100ms ease-in, box-shadow 100ms ease-in,
326+
-webkit-transition:
327+
background-color 100ms ease-in,
328+
box-shadow 100ms ease-in,
305329
color 100ms ease-in;
306-
transition: background-color 100ms ease-in, box-shadow 100ms ease-in,
330+
transition:
331+
background-color 100ms ease-in,
332+
box-shadow 100ms ease-in,
307333
color 100ms ease-in;
308-
font-family: 'Inter var experimental', 'Inter var', -apple-system,
309-
BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
310-
'Helvetica Neue', sans-serif;
334+
font-family:
335+
'Inter var experimental',
336+
'Inter var',
337+
-apple-system,
338+
BlinkMacSystemFont,
339+
'Segoe UI',
340+
Roboto,
341+
Oxygen-Sans,
342+
Ubuntu,
343+
Cantarell,
344+
'Helvetica Neue',
345+
sans-serif;
311346
font-weight: 600;
312347
-webkit-text-decoration: none;
313348
text-decoration: none;
@@ -404,7 +439,9 @@ explicitly, e.g.
404439
transition: -webkit-box-shadow 100ms ease-in 0s;
405440
-o-transition: box-shadow 100ms ease-in 0s;
406441
transition: box-shadow 100ms ease-in 0s;
407-
transition: box-shadow 100ms ease-in 0s, -webkit-box-shadow 100ms ease-in 0s;
442+
transition:
443+
box-shadow 100ms ease-in 0s,
444+
-webkit-box-shadow 100ms ease-in 0s;
408445
cursor: text;
409446
}
410447

sip-quickstart/assets/admin/statuses.private.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const { stripIndents } = require('common-tags');
22

33
const assets = Runtime.getAssets();
4-
const { getCurrentEnvironment, urlForSiblingPage } = require(assets[
5-
'/admin/shared.js'
6-
].path);
4+
const { getCurrentEnvironment, urlForSiblingPage } = require(
5+
assets['/admin/shared.js'].path
6+
);
77
const extensions = require(assets['/extensions.js'].path);
88

99
async function checkEnvironmentInitialization(context) {
@@ -172,8 +172,8 @@ async function getCredentialListStatus(context) {
172172
Your default credential list [${
173173
credentialList.friendlyName
174174
}](https://www.twilio.com/console/voice/sip/cls/${
175-
credentialList.sid
176-
}) is missing the following accounts:
175+
credentialList.sid
176+
}) is missing the following accounts:
177177
178178
${missing.join(', ')}
179179
`;

sip-quickstart/functions/admin/login.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const assets = Runtime.getAssets();
2-
const { checkAuthorization, createToken } = require(assets['/admin/shared.js']
3-
.path);
2+
const { checkAuthorization, createToken } = require(
3+
assets['/admin/shared.js'].path
4+
);
45

56
// eslint-disable-next-line consistent-return
67
exports.handler = function (context, event, callback) {

verified-broadcast/functions/broadcast.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
*/
1010
exports.handler = async (context, event, callback) => {
1111
const { isAuthenticated } = require(Runtime.getAssets()['/auth.js'].path);
12-
const { setupResourcesIfRequired } = require(Runtime.getAssets()['/setup.js']
13-
.path);
12+
const { setupResourcesIfRequired } = require(
13+
Runtime.getAssets()['/setup.js'].path
14+
);
1415

1516
const response = new Twilio.Response();
1617
response.appendHeader('Content-Type', 'application/json');

verified-broadcast/functions/start-verify.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
*/
1010

1111
exports.handler = async function (context, event, callback) {
12-
const { setupResourcesIfRequired } = require(Runtime.getAssets()['/setup.js']
13-
.path);
12+
const { setupResourcesIfRequired } = require(
13+
Runtime.getAssets()['/setup.js'].path
14+
);
1415
const response = new Twilio.Response();
1516
response.appendHeader('Content-Type', 'application/json');
1617

verified-broadcast/functions/subscribe.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ function sendSubscribedNotification(notifyService, identity) {
2020
}
2121

2222
exports.handler = async (context, event, callback) => {
23-
const { setupResourcesIfRequired } = require(Runtime.getAssets()['/setup.js']
24-
.path);
23+
const { setupResourcesIfRequired } = require(
24+
Runtime.getAssets()['/setup.js'].path
25+
);
2526
const response = new Twilio.Response();
2627
response.appendHeader('Content-Type', 'application/json');
2728

verify-retry/functions/check-verify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* }
1717
*/
1818
const assets = Runtime.getAssets();
19-
const { detectMissingParams, VerificationException } = require(assets[
20-
'/utils.js'
21-
].path);
19+
const { detectMissingParams, VerificationException } = require(
20+
assets['/utils.js'].path
21+
);
2222

2323
async function checkVerification(client, service, to, code) {
2424
const check = await client.verify

verify-retry/functions/start-verify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
*/
1919

2020
const assets = Runtime.getAssets();
21-
const { detectMissingParams, VerificationException } = require(assets[
22-
'/utils.js'
23-
].path);
21+
const { detectMissingParams, VerificationException } = require(
22+
assets['/utils.js'].path
23+
);
2424

2525
async function getLineType(client, to) {
2626
try {

verify-sna/assets/services/verifications.private.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const {
77
createNewVerification,
88
deleteVerification,
99
} = require(assets['/data/operations.js'].path);
10-
const { RESOURCE_NOT_FOUND_ERROR_CODE, PENDING_STATUS } = require(assets[
11-
'/services/constants.js'
12-
].path);
10+
const { RESOURCE_NOT_FOUND_ERROR_CODE, PENDING_STATUS } = require(
11+
assets['/services/constants.js'].path
12+
);
1313

1414
const getVerifications = async (context) => {
1515
return new Promise(async (resolve, reject) => {

verify-sna/functions/verify-check.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
*/
3131

3232
const assets = Runtime.getAssets();
33-
const { checkVerification } = require(assets['/services/verifications.js']
34-
.path);
33+
const { checkVerification } = require(
34+
assets['/services/verifications.js'].path
35+
);
3536
const { detectMissingParams } = require(assets['/services/helpers.js'].path);
3637

3738
const {

verify-sna/functions/verify-start.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
*/
3131

3232
const assets = Runtime.getAssets();
33-
const { createVerification } = require(assets['/services/verifications.js']
34-
.path);
33+
const { createVerification } = require(
34+
assets['/services/verifications.js'].path
35+
);
3536
const { detectMissingParams } = require(assets['/services/helpers.js'].path);
3637

3738
const { PHONE_NUMBER_FIELD } = require(assets['/services/constants.js'].path);

verify-totp-sms/assets/helpers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ function showSessionData() {
5252
if (identity === null) {
5353
hide(document.getElementById('validate-code'));
5454
} else {
55-
document.getElementById(
56-
'session-data'
57-
).textContent = `Demo is running for username '${friendlyName}' with identity '${identity}'.`;
55+
document.getElementById('session-data').textContent =
56+
`Demo is running for username '${friendlyName}' with identity '${identity}'.`;
5857
document.getElementById('validate-code').style.display = 'inline';
5958
}
6059
}

verify-totp/assets/helpers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ function showSessionData() {
4545
if (identity === null) {
4646
hide(document.getElementById('validate-code'));
4747
} else {
48-
document.getElementById(
49-
'session-data'
50-
).textContent = `Demo is running for username '${friendlyName}' with identity '${identity}'.`;
48+
document.getElementById('session-data').textContent =
49+
`Demo is running for username '${friendlyName}' with identity '${identity}'.`;
5150
document.getElementById('validate-code').style.display = 'inline';
5251
}
5352
}

voice-client-javascript/assets/admin/statuses.private.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
const { stripIndents } = require('common-tags');
33

44
const assets = Runtime.getAssets();
5-
const { getCurrentEnvironment, urlForSiblingPage } = require(assets[
6-
'/admin/shared.js'
7-
].path);
5+
const { getCurrentEnvironment, urlForSiblingPage } = require(
6+
assets['/admin/shared.js'].path
7+
);
88

99
async function checkEnvironmentInitialization(context) {
1010
const environment = await getCurrentEnvironment(context);

voice-client-javascript/functions/admin/login.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const assets = Runtime.getAssets();
2-
const { checkAuthorization, createToken } = require(assets['/admin/shared.js']
3-
.path);
2+
const { checkAuthorization, createToken } = require(
3+
assets['/admin/shared.js'].path
4+
);
45

56
// eslint-disable-next-line consistent-return
67
exports.handler = function (context, event, callback) {

voice-client-javascript/tests/admin/private/statuses.test.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ describe('voice-client-javascript/admin/private/statuses', () => {
207207
process.env.APP_NAME = 'My Amazing App';
208208

209209
// Act
210-
const result = await statusFunctions.getAPIKeyAndSecretFromEnvStatus(
211-
CONTEXT
212-
);
210+
const result =
211+
await statusFunctions.getAPIKeyAndSecretFromEnvStatus(CONTEXT);
213212

214213
// Assert
215214
expect(result).toBeDefined();
@@ -229,9 +228,8 @@ describe('voice-client-javascript/admin/private/statuses', () => {
229228
});
230229

231230
// Act
232-
const result = await statusFunctions.getAPIKeyAndSecretFromEnvStatus(
233-
CONTEXT
234-
);
231+
const result =
232+
await statusFunctions.getAPIKeyAndSecretFromEnvStatus(CONTEXT);
235233

236234
// Assert
237235
expect(mockKeys.fetch).toHaveBeenCalled();
@@ -255,9 +253,8 @@ describe('voice-client-javascript/admin/private/statuses', () => {
255253
);
256254

257255
// Act
258-
const result = await statusFunctions.getAPIKeyAndSecretFromEnvStatus(
259-
CONTEXT
260-
);
256+
const result =
257+
await statusFunctions.getAPIKeyAndSecretFromEnvStatus(CONTEXT);
261258

262259
// Assert
263260
expect(mockKeys.fetch).toHaveBeenCalled();

voice-javascript-sdk/assets/admin/statuses.private.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
const { stripIndents } = require('common-tags');
33

44
const assets = Runtime.getAssets();
5-
const { getCurrentEnvironment, urlForSiblingPage } = require(assets[
6-
'/admin/shared.js'
7-
].path);
5+
const { getCurrentEnvironment, urlForSiblingPage } = require(
6+
assets['/admin/shared.js'].path
7+
);
88

99
async function checkEnvironmentInitialization(context) {
1010
const environment = await getCurrentEnvironment(context);

0 commit comments

Comments
 (0)