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 +1 -1
- package/dist/base-command.js +2 -5
- package/dist/commands/publish/index.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/base-command.js
CHANGED
|
@@ -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:
|
|
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-
|
|
62
|
+
'X-Juo-Access-Token': config.JUO_API_KEY,
|
|
63
63
|
},
|
|
64
64
|
method: 'POST',
|
|
65
65
|
});
|
package/oclif.manifest.json
CHANGED
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.
|
|
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": "
|
|
53
|
+
"dirname": "juo",
|
|
54
54
|
"commands": "./dist/commands",
|
|
55
55
|
"plugins": [
|
|
56
56
|
"@oclif/plugin-help"
|