nango 0.22.20-beta → 0.22.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +6 -14
- package/dist/index.js.map +1 -1
- package/docker/docker-compose.yaml +2 -2
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2023 Nango, all rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { Command } from 'commander';
|
|
6
6
|
import chalk from 'chalk';
|
|
@@ -9,7 +9,7 @@ import path from 'path';
|
|
|
9
9
|
import * as dotenv from 'dotenv';
|
|
10
10
|
import { nangoConfigFile, loadSimplifiedConfig } from '@nangohq/shared';
|
|
11
11
|
import { init, run, generate, tsc, tscWatch, configWatch, dockerRun, version, deploy } from './sync.js';
|
|
12
|
-
import {
|
|
12
|
+
import { upgradeAction, NANGO_INTEGRATIONS_LOCATION, verifyNecessaryFiles } from './utils.js';
|
|
13
13
|
class NangoCommand extends Command {
|
|
14
14
|
createCommand(name) {
|
|
15
15
|
const cmd = new Command(name);
|
|
@@ -23,15 +23,13 @@ class NangoCommand extends Command {
|
|
|
23
23
|
}
|
|
24
24
|
const program = new NangoCommand();
|
|
25
25
|
dotenv.config();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.name('nango')
|
|
29
|
-
.description(`A CLI tool to configure Nango:\n- By defaults, the CLI assumes that you are running Nango on localhost:${port}\n- For Nango Cloud: Set the NANGO_HOSTPORT & NANGO_SECRET_KEY env variables\n- For Self-Hosting: set the NANGO_HOSTPORT env variable`);
|
|
26
|
+
program.name('nango').description(`By default, the CLI assumes that you are using Nango Cloud so you need to set the NANGO_SECRET_KEY env variable or pass in the --secret-key flag with each command.
|
|
27
|
+
For Self-Hosting: set the NANGO_HOSTPORT env variable or pass in the --host flag with each command.`);
|
|
30
28
|
program.addHelpText('before', chalk.green(figlet.textSync('Nango CLI')));
|
|
31
29
|
program
|
|
32
30
|
.command('version')
|
|
33
31
|
.alias('v')
|
|
34
|
-
.description('Print the version of the Nango CLI')
|
|
32
|
+
.description('Print the version of the Nango CLI, Nango Worker, and Nango Server.')
|
|
35
33
|
.action(() => {
|
|
36
34
|
version();
|
|
37
35
|
});
|
|
@@ -70,9 +68,6 @@ program
|
|
|
70
68
|
if (compileInterfaces) {
|
|
71
69
|
configWatch();
|
|
72
70
|
}
|
|
73
|
-
//if (!process.env['NANGO_HOSTPORT'] || process.env['NANGO_HOSTPORT'] === `http://localhost:${port}`) {
|
|
74
|
-
//configDeploy();
|
|
75
|
-
//}
|
|
76
71
|
tscWatch();
|
|
77
72
|
});
|
|
78
73
|
program
|
|
@@ -95,9 +90,6 @@ program
|
|
|
95
90
|
if (compileInterfaces) {
|
|
96
91
|
configWatch();
|
|
97
92
|
}
|
|
98
|
-
//if (!process.env['NANGO_HOSTPORT'] || process.env['NANGO_HOSTPORT'] === `http://localhost:${port}`) {
|
|
99
|
-
//configDeploy();
|
|
100
|
-
//}
|
|
101
93
|
tscWatch();
|
|
102
94
|
await dockerRun();
|
|
103
95
|
});
|
|
@@ -128,7 +120,7 @@ program
|
|
|
128
120
|
program
|
|
129
121
|
.command('sync:run')
|
|
130
122
|
.alias('sr')
|
|
131
|
-
.description('Run the sync process to help with debugging')
|
|
123
|
+
.description('Run the sync process to help with debugging. Assumes local development environment.')
|
|
132
124
|
.option('-s, --sync <syncName>', 'The name of the sync (e.g. account-sync).')
|
|
133
125
|
.option('-p, --provider <provider_config_key>', 'The unique key of the provider configuration (chosen by you upon creating this provider configuration).')
|
|
134
126
|
.option('-c, --connection <connection_id>', 'The ID of the Connection.')
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"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ACvE,MAAM,CAAC,mCAAmC,EAAE,qEAAqE,CAAC;KAClH,MAAM,CAAC,KAAK;IACT,MAAM,oBAAoB,EAAE,CAAC;IAC7B,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEP,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
- nango
|
|
16
16
|
|
|
17
17
|
nango-server:
|
|
18
|
-
image: nangohq/nango-server:0.22.
|
|
18
|
+
image: nangohq/nango-server:0.22.28
|
|
19
19
|
container_name: nango-server
|
|
20
20
|
environment:
|
|
21
21
|
- TEMPORAL_ADDRESS=temporal:7233
|
|
@@ -51,7 +51,7 @@ services:
|
|
|
51
51
|
- nango
|
|
52
52
|
|
|
53
53
|
nango-worker:
|
|
54
|
-
image: nangohq/nango-worker:0.22.
|
|
54
|
+
image: nangohq/nango-worker:0.22.28
|
|
55
55
|
container_name: nango-worker
|
|
56
56
|
restart: always
|
|
57
57
|
ports:
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nango",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.28",
|
|
4
4
|
"description": "Nango's CLI tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": "./dist/index.js",
|
|
8
|
+
"types": "dist/nango-sync.d.ts",
|
|
8
9
|
"keywords": [],
|
|
9
10
|
"author": "bastien@nango.dev",
|
|
10
11
|
"repository": {
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"@babel/traverse": "^7.22.5",
|
|
24
|
-
"@nangohq/shared": "0.22.
|
|
25
|
+
"@nangohq/shared": "0.22.28",
|
|
25
26
|
"@vercel/ncc": "^0.36.1",
|
|
26
27
|
"axios": "^1.2.0",
|
|
27
28
|
"byots": "^5.0.0-dev.20221103.1.34",
|