diff --git a/package-lock.json b/package-lock.json index 44d8908fc50..4569f229a17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10519,12 +10519,12 @@ }, "packages/cli": { "name": "nango", - "version": "0.24.4", + "version": "0.24.5", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "@babel/traverse": "^7.22.5", "@inquirer/prompts": "^2.3.0", - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@vercel/ncc": "^0.36.1", "axios": "^1.2.0", "byots": "^5.0.0-dev.20221103.1.34", @@ -10594,12 +10594,12 @@ }, "packages/frontend": { "name": "@nangohq/frontend", - "version": "0.24.4", + "version": "0.24.5", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY" }, "packages/node-client": { "name": "@nangohq/node", - "version": "0.24.4", + "version": "0.24.5", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "axios": "^1.2.0" @@ -10610,11 +10610,11 @@ }, "packages/server": { "name": "@nangohq/nango-server", - "version": "0.24.4", + "version": "0.24.5", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "@hapi/boom": "^10.0.1", - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@sentry/node": "^7.37.2", "@temporalio/client": "^1.7.4", "axios": "^1.3.4", @@ -10673,12 +10673,12 @@ }, "packages/shared": { "name": "@nangohq/shared", - "version": "0.24.4", + "version": "0.24.5", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "@aws-sdk/client-s3": "^3.348.0", "@hapi/boom": "^10.0.1", - "@nangohq/node": "0.24.4", + "@nangohq/node": "0.24.5", "@sentry/node": "^7.37.2", "@temporalio/client": "^1.5.2", "@types/fs-extra": "^11.0.1", @@ -10794,9 +10794,9 @@ }, "packages/worker": { "name": "@nangohq/nango-worker", - "version": "0.24.4", + "version": "0.24.5", "dependencies": { - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@temporalio/activity": "^1.5.2", "@temporalio/client": "^1.5.2", "@temporalio/worker": "^1.5.2", diff --git a/packages/cli/docker/docker-compose.yaml b/packages/cli/docker/docker-compose.yaml index f43cf52f5e3..7da1f94ca05 100644 --- a/packages/cli/docker/docker-compose.yaml +++ b/packages/cli/docker/docker-compose.yaml @@ -15,7 +15,7 @@ services: - nango nango-server: - image: nangohq/nango-server:0.24.4 + image: nangohq/nango-server:0.24.5 container_name: nango-server environment: - TEMPORAL_ADDRESS=temporal:7233 @@ -47,7 +47,7 @@ services: - nango nango-worker: - image: nangohq/nango-worker:0.24.4 + image: nangohq/nango-worker:0.24.5 container_name: nango-worker restart: always ports: diff --git a/packages/cli/lib/sync.ts b/packages/cli/lib/sync.ts index d564d567b21..60019e4b4d7 100644 --- a/packages/cli/lib/sync.ts +++ b/packages/cli/lib/sync.ts @@ -23,7 +23,8 @@ import type { NangoConfig, Connection as NangoConnection, NangoIntegration, - NangoIntegrationData + NangoIntegrationData, + SimplifiedNangoIntegration } from '@nangohq/shared'; import { loadSimplifiedConfig, cloudHost, stagingHost, SyncType, syncRunService, nangoConfigFile, checkForIntegrationFile } from '@nangohq/shared'; import { @@ -37,7 +38,6 @@ import { buildInterfaces, enrichHeaders, getNangoRootPath, - getProviderBySyncName, printDebug } from './utils.js'; import type { DeployOptions, GlobalOptions } from './types.js'; @@ -283,7 +283,7 @@ const createModelFile = (notify = false) => { } }; -const getConfig = async (debug = false) => { +const getConfig = async (debug = false): Promise => { const config = await loadSimplifiedConfig('./'); if (!config) { @@ -508,7 +508,8 @@ async function deploySyncs(url: string, body: { syncs: IncomingSyncConfig[]; rec } export const dryRun = async (options: RunArgs, environment: string, debug = false) => { - let syncName, connectionId, suppliedLastSyncDate; + let syncName = ''; + let connectionId, suppliedLastSyncDate; await parseSecretKey(environment, debug); @@ -537,7 +538,9 @@ export const dryRun = async (options: RunArgs, environment: string, debug = fals return; } - const providerConfigKey = await getProviderBySyncName({ syncName }, debug); + const config = await getConfig(debug); + + const providerConfigKey = config.find((config) => config.syncs.find((sync) => sync.name === syncName))?.providerConfigKey; if (!providerConfigKey) { console.log(chalk.red(`Provider config key not found, please check that the provider exists for this sync name: ${syncName}`)); diff --git a/packages/cli/package.json b/packages/cli/package.json index 562917f1dd4..7a692e68039 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "nango", - "version": "0.24.4", + "version": "0.24.5", "description": "Nango's CLI tool.", "type": "module", "main": "dist/index.js", @@ -23,7 +23,7 @@ "dependencies": { "@babel/traverse": "^7.22.5", "@inquirer/prompts": "^2.3.0", - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@vercel/ncc": "^0.36.1", "axios": "^1.2.0", "byots": "^5.0.0-dev.20221103.1.34", diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 84d713b6de8..f40d45cbbb9 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/frontend", - "version": "0.24.4", + "version": "0.24.5", "description": "Nango's frontend library for OAuth handling.", "type": "module", "main": "dist/index.js", diff --git a/packages/node-client/package.json b/packages/node-client/package.json index 1d664ef2448..9cf95336c47 100644 --- a/packages/node-client/package.json +++ b/packages/node-client/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/node", - "version": "0.24.4", + "version": "0.24.5", "description": "Nango's Node client.", "type": "module", "main": "dist/index.js", diff --git a/packages/server/package.json b/packages/server/package.json index c440469486f..6ae4198a074 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/nango-server", - "version": "0.24.4", + "version": "0.24.5", "description": "Nango OAuth's server.", "type": "module", "main": "dist/server.js", @@ -21,7 +21,7 @@ }, "dependencies": { "@hapi/boom": "^10.0.1", - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@sentry/node": "^7.37.2", "@temporalio/client": "^1.7.4", "axios": "^1.3.4", diff --git a/packages/shared/package.json b/packages/shared/package.json index 629a96c36ef..1f648aa08d9 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/shared", - "version": "0.24.4", + "version": "0.24.5", "description": "Nango's shared components.", "type": "module", "main": "dist/lib/index.js", @@ -18,7 +18,7 @@ "dependencies": { "@aws-sdk/client-s3": "^3.348.0", "@hapi/boom": "^10.0.1", - "@nangohq/node": "0.24.4", + "@nangohq/node": "0.24.5", "@sentry/node": "^7.37.2", "@temporalio/client": "^1.5.2", "@types/fs-extra": "^11.0.1", diff --git a/packages/webapp/package-lock.json b/packages/webapp/package-lock.json index 81faf209d3c..cea1b379f1a 100644 --- a/packages/webapp/package-lock.json +++ b/packages/webapp/package-lock.json @@ -1,19 +1,19 @@ { "name": "webapp", - "version": "0.24.4", + "version": "0.24.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "webapp", - "version": "0.24.4", + "version": "0.24.5", "dependencies": { "@geist-ui/core": "^2.3.8", "@geist-ui/icons": "^1.0.2", "@headlessui/react": "^1.7.12", "@heroicons/react": "^2.0.16", "@mantine/prism": "^5.10.5", - "@nangohq/frontend": "0.24.4", + "@nangohq/frontend": "0.24.5", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -3052,9 +3052,9 @@ } }, "node_modules/@nangohq/frontend": { - "version": "0.24.4", - "resolved": "https://registry.npmjs.org/@nangohq/frontend/-/frontend-0.24.4.tgz", - "integrity": "sha512-P6cO0pr3WKa1Cgw1I/GebY664D4VEMpG61AGvjxOTXOEF1T8wewsap7A7yzPDLZDMnwQLPgOoXC+L5O0o+6XvQ==" + "version": "0.24.5", + "resolved": "https://registry.npmjs.org/@nangohq/frontend/-/frontend-0.24.5.tgz", + "integrity": "sha512-uMqkhmMk/heQb37lTvm3z94qPBRpfjcgPGb97NY6XxuhxPPVyby1+3dHP1zr+LUxMn9I7pTg0Jkl8JqoL2x5MA==" }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", @@ -18645,9 +18645,9 @@ "requires": {} }, "@nangohq/frontend": { - "version": "0.24.4", - "resolved": "https://registry.npmjs.org/@nangohq/frontend/-/frontend-0.24.4.tgz", - "integrity": "sha512-P6cO0pr3WKa1Cgw1I/GebY664D4VEMpG61AGvjxOTXOEF1T8wewsap7A7yzPDLZDMnwQLPgOoXC+L5O0o+6XvQ==" + "version": "0.24.5", + "resolved": "https://registry.npmjs.org/@nangohq/frontend/-/frontend-0.24.5.tgz", + "integrity": "sha512-uMqkhmMk/heQb37lTvm3z94qPBRpfjcgPGb97NY6XxuhxPPVyby1+3dHP1zr+LUxMn9I7pTg0Jkl8JqoL2x5MA==" }, "@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", diff --git a/packages/webapp/package.json b/packages/webapp/package.json index ad427e4c5f8..48f7021e918 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -1,6 +1,6 @@ { "name": "webapp", - "version": "0.24.4", + "version": "0.24.5", "private": true, "dependencies": { "@geist-ui/core": "^2.3.8", @@ -8,7 +8,7 @@ "@headlessui/react": "^1.7.12", "@heroicons/react": "^2.0.16", "@mantine/prism": "^5.10.5", - "@nangohq/frontend": "0.24.4", + "@nangohq/frontend": "0.24.5", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/packages/worker/package.json b/packages/worker/package.json index a7d6f0fd728..0536ec4dfd2 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/nango-worker", - "version": "0.24.4", + "version": "0.24.5", "type": "module", "main": "dist/worker.js", "scripts": { @@ -15,7 +15,7 @@ "directory": "packages/worker" }, "dependencies": { - "@nangohq/shared": "0.24.4", + "@nangohq/shared": "0.24.5", "@temporalio/activity": "^1.5.2", "@temporalio/client": "^1.5.2", "@temporalio/worker": "^1.5.2",