Unverified Commit 647b86ab authored by Bradley Hilton's avatar Bradley Hilton Committed by GitHub
Browse files

Fix errors related to publishing an app (#55)

* Fix issues with the invalid cloud auth
* Don't point to beta, point to production
parent c6a84e2b
...@@ -2155,9 +2155,9 @@ ...@@ -2155,9 +2155,9 @@
"dev": true "dev": true
}, },
"handlebars": { "handlebars": {
"version": "4.4.0", "version": "4.5.3",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.4.0.tgz", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",
"integrity": "sha512-xkRtOt3/3DzTKMOt3xahj2M/EqNhY988T+imYSlMgs5fVhLN2fmKVVj0LtEGmb+3UUYV5Qmm1052Mm3dIQxOvw==", "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",
"dev": true, "dev": true,
"requires": { "requires": {
"neo-async": "^2.6.0", "neo-async": "^2.6.0",
...@@ -4185,20 +4185,20 @@ ...@@ -4185,20 +4185,20 @@
"integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==" "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g=="
}, },
"uglify-js": { "uglify-js": {
"version": "3.6.0", "version": "3.6.9",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.9.tgz",
"integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", "integrity": "sha512-pcnnhaoG6RtrvHJ1dFncAe8Od6Nuy30oaJ82ts6//sGSXOP5UjBMEthiProjXmMNHOfd93sqlkztifFMcb+4yw==",
"dev": true, "dev": true,
"optional": true, "optional": true,
"requires": { "requires": {
"commander": "~2.20.0", "commander": "~2.20.3",
"source-map": "~0.6.1" "source-map": "~0.6.1"
}, },
"dependencies": { "dependencies": {
"commander": { "commander": {
"version": "2.20.1", "version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.1.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-cCuLsMhJeWQ/ZpsFTbE765kvVfoeSddc4nU3up4fV+fDBcfUXnbITJ+JzhkdjzOqhURjZgujxaioam4RM9yGUg==", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true, "dev": true,
"optional": true "optional": true
}, },
......
...@@ -180,7 +180,7 @@ export default class Submit extends Command { ...@@ -180,7 +180,7 @@ export default class Submit extends Command {
// tslint:disable:promise-function-async // tslint:disable:promise-function-async
// tslint:disable-next-line:max-line-length // tslint:disable-next-line:max-line-length
private async asyncSubmitData(data: FormData, flags: { [key: string]: any }, fd: FolderDetails, token: string): Promise<any> { private async asyncSubmitData(data: FormData, flags: { [key: string]: any }, fd: FolderDetails, token: string): Promise<any> {
let url = 'https://marketplace-beta.rocket.chat/v1/apps'; let url = 'https://marketplace.rocket.chat/v1/apps';
if (flags.update) { if (flags.update) {
url += `/${fd.info.id}`; url += `/${fd.info.id}`;
} }
......
...@@ -88,7 +88,8 @@ export class CloudAuth { ...@@ -88,7 +88,8 @@ export class CloudAuth {
const item: ICloudAuthStorage = this.config.get('rcc'); const item: ICloudAuthStorage = this.config.get('rcc');
if (!item) { if (!item) {
throw new Error('invalid cloud auth storage item'); // when there isn't an item, we will not return anything or error out
return '';
} }
if (new Date() < new Date(item.expiresAt)) { if (new Date() < new Date(item.expiresAt)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment