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

chrome-webstore-upload-cli

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-webstore-upload-cli - npm Package Compare versions

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"

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