eprolo-cli 1.0.18 → 1.0.20
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/bin/eprolo-cli.js +2 -9
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -8,7 +8,7 @@ const os = require("os");
|
|
|
8
8
|
const path = require("path");
|
|
9
9
|
const readline = require("readline");
|
|
10
10
|
|
|
11
|
-
const BASE_URL = "
|
|
11
|
+
const BASE_URL = "http://43.153.35.208:8080/aw/auth";
|
|
12
12
|
const CONFIG_DIR = path.join(os.homedir(), ".dxb-toolkit");
|
|
13
13
|
const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
|
|
14
14
|
|
|
@@ -211,14 +211,7 @@ async function main() {
|
|
|
211
211
|
// })
|
|
212
212
|
const args = parseArgs(process.argv.slice(2));
|
|
213
213
|
const [group, command] = args._;
|
|
214
|
-
const baseUrl = BASE_URL;
|
|
215
|
-
printResult({
|
|
216
|
-
success: true,
|
|
217
|
-
connected: true,
|
|
218
|
-
account: null,
|
|
219
|
-
defaultStoreName: null
|
|
220
|
-
}, args.json);
|
|
221
|
-
return;
|
|
214
|
+
const baseUrl = args.baseUrl || BASE_URL;
|
|
222
215
|
const auth = requireAuth(args);
|
|
223
216
|
const target = requireTaskTarget(args);
|
|
224
217
|
printResult(await postJson(baseUrl, "", {
|
package/package.json
CHANGED