cloudron 5.6.0 → 5.6.2
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/package.json +1 -1
- package/src/actions.js +1 -1
- package/src/templates/Dockerfile.ejs +1 -1
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -524,7 +524,7 @@ async function downloadManifest(appstoreId) {
|
|
|
524
524
|
const [ id, version ] = appstoreId.split('@');
|
|
525
525
|
|
|
526
526
|
if (!manifestFormat.isId(id)) throw new Error('Invalid appstore ID');
|
|
527
|
-
if (!semver.valid(version)) throw new Error('Invalid appstore version, not a semver');
|
|
527
|
+
if (version && !semver.valid(version)) throw new Error('Invalid appstore version, not a semver');
|
|
528
528
|
|
|
529
529
|
// encodeURIComponent required to protect against passing junk in the URL (e.g appstoreId=org.wordpress.cloudronapp?foo=bar)
|
|
530
530
|
const url = config.appStoreOrigin() + '/api/v1/apps/' + id + (version ? '/versions/' + version : '');
|