loaner-sdk 0.6.0 → 0.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/dist/cli/commands.json
CHANGED
package/dist/cli/jobs/deploy.js
CHANGED
|
@@ -64,7 +64,7 @@ const followed = async (ctx, first, next, ready) => {
|
|
|
64
64
|
/** Sends a folder to an upload link and follows the deploy, needing no sign-in: the link is the key. */
|
|
65
65
|
const toLink = async (ctx, folder, link) => {
|
|
66
66
|
const url = new URL(link);
|
|
67
|
-
if (
|
|
67
|
+
if (!/\/api\/v1\/uploads\/[A-Za-z0-9]+$/.test(url.pathname))
|
|
68
68
|
ctx.fail({ title: `${link} is not an upload link (…/api/v1/uploads/<token>)`, status: 400 });
|
|
69
69
|
ctx.progress(`Packing ${resolve(folder)}`);
|
|
70
70
|
const archive = await packFolder(folder);
|
package/package.json
CHANGED