juo 0.0.1-alpha.2 → 0.0.1-alpha.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/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g juo
20
20
  $ juo COMMAND
21
21
  running command...
22
22
  $ juo (--version)
23
- juo/0.0.1-alpha.2 darwin-arm64 node-v22.13.1
23
+ juo/0.0.1-alpha.3 darwin-arm64 node-v22.13.1
24
24
  $ juo --help [COMMAND]
25
25
  USAGE
26
26
  $ juo COMMAND
@@ -44,7 +44,7 @@ export class BaseCommand extends Command {
44
44
  const questions = [];
45
45
  if (!config.JUO_API_URL || reconfigure) {
46
46
  questions.push({
47
- default: config.JUO_API_URL,
47
+ default: 'https://api.juo.io',
48
48
  message: 'Enter the Juo API URL:',
49
49
  name: 'JUO_API_URL',
50
50
  type: 'input',
@@ -114,9 +114,6 @@ export class BaseCommand extends Command {
114
114
  fs.writeFileSync(this.configFilePath, JSON.stringify(config, null, 2), { encoding: 'utf8' });
115
115
  }
116
116
  validateConfig(config) {
117
- return Boolean(config.JUO_API_KEY &&
118
- config.JUO_API_KEY.length > 0 &&
119
- config.JUO_API_URL &&
120
- config.JUO_API_URL.length > 0);
117
+ return Boolean(config.JUO_API_KEY && config.JUO_API_KEY.length > 0 && config.JUO_API_URL && config.JUO_API_URL.length > 0);
121
118
  }
122
119
  }
@@ -54,12 +54,12 @@ Reconfigure settings and publish.
54
54
  async getAwsConnectionInfo(config, themeName) {
55
55
  try {
56
56
  // eslint-disable-next-line n/no-unsupported-features/node-builtins
57
- const response = await fetch(`${config.JUO_API_URL}/get-publish-token`, {
57
+ const response = await fetch(`${config.JUO_API_URL}/merchant/get-publish-token`, {
58
58
  body: JSON.stringify({ theme: themeName }),
59
59
  headers: {
60
60
  Accept: 'application/json',
61
61
  'Content-Type': 'application/json',
62
- 'X-Juo-Admin-Api-Key': config.JUO_API_KEY,
62
+ 'X-Juo-Access-Token': config.JUO_API_KEY,
63
63
  },
64
64
  method: 'POST',
65
65
  });
@@ -44,5 +44,5 @@
44
44
  ]
45
45
  }
46
46
  },
47
- "version": "0.0.1-alpha.2"
47
+ "version": "0.0.1-alpha.3"
48
48
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "juo",
3
3
  "description": "A CLI tool for the Juo platform",
4
- "version": "0.0.1-alpha.2",
4
+ "version": "0.0.1-alpha.3",
5
5
  "author": "Juo (https://juo.io)",
6
6
  "bin": {
7
7
  "juo": "./bin/run.js"
@@ -50,7 +50,7 @@
50
50
  "type": "module",
51
51
  "oclif": {
52
52
  "bin": "juo",
53
- "dirname": "orion",
53
+ "dirname": "juo",
54
54
  "commands": "./dist/commands",
55
55
  "plugins": [
56
56
  "@oclif/plugin-help"