@hahnpro/flow-cli 2.17.2 → 2.17.3
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/lib/auth.mjs +5 -5
- package/lib/cli.mjs +2 -2
- package/package.json +11 -11
package/lib/auth.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { HttpsProxyAgent } from 'https-proxy-agent';
|
|
|
5
5
|
import nconf from 'nconf';
|
|
6
6
|
import open from 'open';
|
|
7
7
|
import openidClient, { custom } from 'openid-client';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
import url from 'node:url';
|
|
10
10
|
|
|
11
11
|
import { logger } from './utils.mjs';
|
|
12
12
|
|
|
@@ -16,11 +16,11 @@ const CLIENT_SECRET = process.env.CLIENT_SECRET || process.env.API_KEY;
|
|
|
16
16
|
const REALM = process.env.REALM;
|
|
17
17
|
const BUFFER = 120;
|
|
18
18
|
|
|
19
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
20
|
-
const viewsPath = join(__dirname, 'views');
|
|
19
|
+
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
20
|
+
const viewsPath = path.join(__dirname, 'views');
|
|
21
21
|
|
|
22
22
|
let server = null;
|
|
23
|
-
nconf.file({ file: join(__dirname, 'config') });
|
|
23
|
+
nconf.file({ file: path.join(__dirname, 'config') });
|
|
24
24
|
|
|
25
25
|
if (process.env.https_proxy || process.env.http_proxy) {
|
|
26
26
|
custom.setHttpOptionsDefaults({
|
package/lib/cli.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import fs from 'node:fs';
|
|
|
15
15
|
import { createRequire } from 'node:module';
|
|
16
16
|
import path from 'node:path';
|
|
17
17
|
import ora from 'ora';
|
|
18
|
-
import
|
|
18
|
+
import url from 'node:url';
|
|
19
19
|
|
|
20
20
|
import { getAccessToken, login, logout } from './auth.mjs';
|
|
21
21
|
import { handleApiError, handleConvertedOutput, logger, prepareTsFile } from './utils.mjs';
|
|
@@ -26,7 +26,7 @@ const require = createRequire(import.meta.url);
|
|
|
26
26
|
const BASE_URL = process.env.BASE_URL || process.env.PLATFORM_URL;
|
|
27
27
|
const BUILD_DIR = process.env.BUILD_DIR || 'dist';
|
|
28
28
|
|
|
29
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
29
|
+
const __filename = url.fileURLToPath(import.meta.url);
|
|
30
30
|
const __dirname = path.dirname(__filename);
|
|
31
31
|
|
|
32
32
|
let axios = Axios.create();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/flow-cli",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.3",
|
|
4
4
|
"description": "CLI for managing Flow Modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"archiver": "7.0.1",
|
|
30
|
-
"axios": "1.
|
|
30
|
+
"axios": "1.7.2",
|
|
31
31
|
"chalk": "5.3.0",
|
|
32
32
|
"class-transformer": "0.5.1",
|
|
33
33
|
"class-validator": "0.14.1",
|
|
34
|
-
"class-validator-jsonschema": "5.0.
|
|
35
|
-
"commander": "12.
|
|
34
|
+
"class-validator-jsonschema": "5.0.1",
|
|
35
|
+
"commander": "12.1.0",
|
|
36
36
|
"copyfiles": "2.4.1",
|
|
37
37
|
"dotenv": "16.4.5",
|
|
38
|
-
"ejs": "3.1.
|
|
39
|
-
"execa": "
|
|
38
|
+
"ejs": "3.1.10",
|
|
39
|
+
"execa": "9.2.0",
|
|
40
40
|
"express": "4.19.2",
|
|
41
41
|
"form-data": "4.0.0",
|
|
42
42
|
"get-port": "7.1.0",
|
|
43
|
-
"glob": "10.
|
|
43
|
+
"glob": "10.4.2",
|
|
44
44
|
"https-proxy-agent": "7.0.4",
|
|
45
45
|
"nconf": "0.12.1",
|
|
46
46
|
"open": "10.1.0",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"@types/express": "4.17.21",
|
|
54
54
|
"@types/jest": "29.5.12",
|
|
55
55
|
"@types/nconf": "0.10.6",
|
|
56
|
-
"@types/node": "20.
|
|
56
|
+
"@types/node": "20.14.5",
|
|
57
57
|
"eslint": "8.57.0",
|
|
58
|
-
"eslint-plugin-unicorn": "
|
|
58
|
+
"eslint-plugin-unicorn": "54.0.0",
|
|
59
59
|
"jest": "29.7.0",
|
|
60
|
-
"prettier": "3.2
|
|
61
|
-
"typescript": "5.4.
|
|
60
|
+
"prettier": "3.3.2",
|
|
61
|
+
"typescript": "5.4.5"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=v18"
|