@shopletzy/cli
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@shopletzy/cli", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Shopletzy CLI is a command line interface tool for interacting with the Shopletzy eCommerce platform", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -13,2 +13,3 @@ import { slzconfig } from "../common/auth.js"; | ||
const apiUrl = "https://api.testing.shopletzy.com"; | ||
// const apiUrl = "http://localhost:3978"; | ||
const preSignedUrls = {}; | ||
@@ -296,3 +297,3 @@ let isReady = false; | ||
log(chalk.green("\nCreated successfully")); | ||
log("Theme ID: " + data._id); | ||
log("Theme ID: " + data.id); | ||
log(); | ||
@@ -320,3 +321,3 @@ } catch (error) { | ||
// Define the table header and format using Chalk | ||
const header = chalk.bold(`${"id".padEnd(30)}\t${"name".padEnd(15)}\tversion\t\trelease\t\tstatus`); | ||
const header = chalk.bold(`${"id".padEnd(40)}\t${"name".padEnd(15)}\tversion\t\trelease\t\tstatus`); | ||
log(header); | ||
@@ -326,6 +327,6 @@ | ||
let latestReleaseVersion; | ||
if (theme.releases) { | ||
if (theme.releases && theme.releases.length > 0) { | ||
latestReleaseVersion = theme.releases[theme.releases.length - 1].version; | ||
} | ||
const row = `${theme._id.padEnd(30)}\t${theme.name.padEnd(15)}\t${theme.curVer || ""}\t\t${ | ||
const row = `${theme.id.padEnd(40)}\t${theme.name.padEnd(15)}\t${theme.curVer || ""}\t\t${ | ||
latestReleaseVersion || "" | ||
@@ -357,2 +358,5 @@ }\t\t${theme.status}`; | ||
function addFilesToZip(dir) { | ||
if (dir.startsWith(".git")) { | ||
return; | ||
} | ||
const files = fs.readdirSync(dir); | ||
@@ -359,0 +363,0 @@ for (const file of files) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20635
549