Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zuplo/cli

Package Overview
Dependencies
Maintainers
3
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zuplo/cli - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0

dist/cmds/delete.js

4

dist/cli.js

@@ -6,3 +6,5 @@ import * as dotenv from "dotenv";

import yargs from "yargs/yargs";
import deleteZup from "./cmds/delete.js";
import deploy from "./cmds/deploy.js";
import list from "./cmds/list.js";
import test from "./cmds/test.js";

@@ -15,3 +17,5 @@ import { printCriticalFailureToConsoleAndExit } from "./common/output.js";

.version(false)
.command(deleteZup)
.command(deploy)
.command(list)
.command(test)

@@ -18,0 +22,0 @@ .demandCommand()

8

dist/deploy/handler.js

@@ -31,3 +31,3 @@ import { parse } from "path";

const fileId = parse(new URL(uploadUrl).pathname).base.replace(ARCHIVE_EXTENSION, "");
const { url } = await pollDeployment(argv, fileId, account, project);
const { url, buildResult } = await pollDeployment(argv, fileId, account, project);
if (url) {

@@ -37,3 +37,3 @@ printResultToConsoleAndExitGracefully(`Deployed to ${url}`);

else {
printCriticalFailureToConsoleAndExit(`Failed to deploy the current branch ${archiveMetadata.metadata.branch} to project ${project} on account ${account}.`);
printCriticalFailureToConsoleAndExit(`Failed to deploy the current branch ${archiveMetadata.metadata.branch} to project ${project} on account ${account}. Here's the build result: ${JSON.stringify(buildResult, null, 2)}`);
}

@@ -54,3 +54,3 @@ }

}, "Failed to retrieve uploadUrl");
printDiagnosticsToConsole("Error: Failed to determine where to upload your files. Try again later.");
printCriticalFailureToConsoleAndExit("Error: Failed to determine where to upload your files. Try again later.");
}

@@ -60,5 +60,5 @@ }

logger.error({ status: whoAmIResponse.status, statusText: whoAmIResponse.statusText }, "Failed to determine who-am-i");
printDiagnosticsToConsole("Error: Failed to validate the API key. Check your API key.");
printCriticalFailureToConsoleAndExit("Error: Failed to validate the API key. Check your API key.");
}
}
//# sourceMappingURL=handler.js.map

@@ -0,1 +1,2 @@

import { logger } from "../common/logger.js";
import { printDiagnosticsToConsole } from "../common/output.js";

@@ -16,3 +17,4 @@ import settings from "../common/settings.js";

if (response.ok) {
const { status, url } = await response.json();
const rawJSON = await response.text();
const { status, url, buildResult } = JSON.parse(rawJSON);
switch (status) {

@@ -27,2 +29,3 @@ case "IN_PROGRESS":

url,
buildResult,
};

@@ -35,3 +38,3 @@ }

return {
url: undefined,
buildResult,
};

@@ -45,9 +48,8 @@ }

else {
throw new Error(`Unexpected response from server: ${response.status} ${response.statusText}`);
logger.error(`Unexpected error from server while polling for deployment: ${response.status} ${response.statusText} ${await response.text()}`);
throw new Error(`Unexpected response from server while polling for deployment: ${response.status} ${response.statusText}`);
}
}
return {
url: undefined,
};
return {};
}
//# sourceMappingURL=poll-deployment.js.map
{
"name": "@zuplo/cli",
"version": "1.18.0",
"version": "1.19.0",
"type": "module",

@@ -5,0 +5,0 @@ "repository": "https://github.com/zuplo/cli",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc