From 0601cf433dc778388e2698a9517d428d608465c3 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 16 Apr 2021 10:36:17 +1000 Subject: [PATCH] chore(twilio-run): updates to the latest ngrok version --- packages/twilio-run/package.json | 2 +- packages/twilio-run/src/config/start.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 0c4d3f57..e646f164 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -77,7 +77,7 @@ "yargs": "^13.2.2" }, "optionalDependencies": { - "ngrok": "^3.3.0" + "ngrok": "^4.0.1" }, "devDependencies": { "@types/cheerio": "^0.22.12", diff --git a/packages/twilio-run/src/config/start.ts b/packages/twilio-run/src/config/start.ts index 4737d073..ac841e91 100644 --- a/packages/twilio-run/src/config/start.ts +++ b/packages/twilio-run/src/config/start.ts @@ -13,7 +13,7 @@ import { fileExists } from '../utils/fs'; import { getDebugFunction, logger } from '../utils/logger'; import { readSpecializedConfig } from './global'; import { mergeFlagsAndConfig } from './utils/mergeFlagsAndConfig'; -import { INgrokOptions } from 'ngrok'; +import { Ngrok } from 'ngrok'; import { parse } from 'yaml'; const debug = getDebugFunction('twilio-run:cli:config'); @@ -71,7 +71,7 @@ export async function getUrl(cli: StartCliFlags, port: string | number) { debug('Starting ngrok tunnel'); // Setup default ngrok config, setting the protocol and the port number to // forward to. - const defaultConfig: INgrokOptions = { addr: port, proto: 'http' }; + const defaultConfig: Ngrok.Options = { addr: port, proto: 'http' }; let tunnelConfig = defaultConfig; let ngrokConfig; if (typeof cli.ngrokConfig === 'string') {