chrome-webstore-upload-cli
Advanced tools
Comparing version 3.3.0 to 3.3.1
24
cli.js
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
import process from 'node:process'; | ||
import ora from 'ora'; | ||
import meow from 'meow'; | ||
@@ -67,13 +66,7 @@ import createConfig from './config.js'; | ||
const spinner = ora(); | ||
const spinnerStart = text => { | ||
spinner.text = text; | ||
return spinner.start(); | ||
}; | ||
async function doAutoPublish() { | ||
spinnerStart('Fetching token'); | ||
console.log('Fetching token...'); | ||
const token = await fetchToken(apiConfig); | ||
spinnerStart(`Uploading ${path.basename(zipPath)}`); | ||
console.log(`Uploading ${path.basename(zipPath)}...`); | ||
@@ -90,3 +83,3 @@ const uploadResponse = await upload({ | ||
spinnerStart('Publishing'); | ||
console.log('Publishing...'); | ||
const publishResponse = await publish( | ||
@@ -97,3 +90,3 @@ { apiConfig, token }, | ||
); | ||
spinner.stop(); | ||
handlePublishStatus(publishResponse); | ||
@@ -103,3 +96,3 @@ } | ||
async function doUpload() { | ||
spinnerStart(`Uploading ${path.basename(zipPath)}`); | ||
console.log(`Uploading ${path.basename(zipPath)}`); | ||
const response = await upload({ | ||
@@ -110,3 +103,2 @@ apiConfig, | ||
spinner.stop(); | ||
if (!isUploadSuccess(response)) { | ||
@@ -120,3 +112,3 @@ throw response; | ||
async function doPublish() { | ||
spinnerStart('Publishing'); | ||
console.log('Publishing'); | ||
@@ -128,3 +120,3 @@ const response = await publish( | ||
); | ||
spinner.stop(); | ||
handlePublishStatus(response); | ||
@@ -134,4 +126,2 @@ } | ||
function errorHandler(error) { | ||
spinner.stop(); | ||
console.log(error?.response?.body ?? error); | ||
@@ -138,0 +128,0 @@ process.exitCode = 1; |
{ | ||
"name": "chrome-webstore-upload-cli", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "CLI tool to upload Chrome Extensions to the Chrome Web Store", | ||
@@ -52,3 +52,2 @@ "keywords": [ | ||
"meow": "^12.1.1", | ||
"ora": "^7.0.1", | ||
"recursive-readdir": "^2.2.3", | ||
@@ -55,0 +54,0 @@ "yazl": "^2.5.1" |
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
5
17249
285
- Removedora@^7.0.1
- Removedansi-regex@6.1.0(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbl@5.1.0(transitive)
- Removedbuffer@6.0.3(transitive)
- Removedchalk@5.3.0(transitive)
- Removedcli-cursor@4.0.0(transitive)
- Removedcli-spinners@2.9.2(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@10.4.0(transitive)
- Removedieee754@1.2.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-interactive@2.0.0(transitive)
- Removedis-unicode-supported@1.3.0(transitive)
- Removedlog-symbols@5.1.0(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedonetime@5.1.2(transitive)
- Removedora@7.0.1(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrestore-cursor@4.0.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstdin-discarder@0.1.0(transitive)
- Removedstring-width@6.1.0(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@7.1.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)