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

famous-cli

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

famous-cli - npm Package Compare versions

Comparing version 0.1.2 to 0.1.4

npm-debug.log.0d044a9fadb78e94b2515f7714377198

6

bin/famous.js

@@ -14,5 +14,7 @@ #!/usr/bin/env node

var auto = require('../lib/autoupdate');
auto(function(){
program
.version('0.0.1');
.version(require('../package').version);
// .command('user <cmd>', 'famous hub user CLI')

@@ -75,2 +77,2 @@ // .command('container <cmd>', 'famous hub container CLI')

}
});

@@ -6,2 +6,3 @@ 'use strict';

var chalk = require('chalk');
var ver = require('latest-version');

@@ -16,21 +17,10 @@ /**

var current = pkg.version;
var versions;
var latest;
var child = spawn('npm', ['view', 'famous-cli', 'versions']);
child.stdout.on('data', function(data) {
versions = data.toString();
versions = versions.replace(/\s|\]/g, '');
versions = versions.replace(/\'/g, '');
versions = versions.split(',');
latest = versions[versions.length -1];
if (current < latest) {
console.log(chalk.bold('Famous'), 'CLI version', current, 'is out of date.', 'Updating to', latest);
ver('famous-cli', function(err, version) {
if (current < version) {
console.log(chalk.bold('Famous'), 'CLI version', current, 'is out of date.', 'Updating to', version);
return update(callback);
}
return callback();
});
});
};

@@ -44,3 +34,3 @@

var update = function (callback) {
var child = spawn('npm', ['update', '-g', 'famous-cli']);
var child = spawn('npm', ['install', '-g', 'famous-cli']);

@@ -47,0 +37,0 @@ child.on('close', function (code) {

@@ -57,2 +57,6 @@ 'use strict';

inquirer.prompt([emailPrompt, usernamePrompt, passPrompt, trackingPrompt, eulaPrompt], function(answers) {
if (!answers.eula) {
console.log(chalk.bold.red('You must agree to the eula to register with Hub'));
process.exit(1);
}
metrics.setTracking(answers.tracking, function() {

@@ -59,0 +63,0 @@ callback(null, answers);

@@ -11,2 +11,11 @@ 'use strict';

var getUser = function() {
var auto = require('../autoupdate');
console.log('calling auto');
auto(function(){
console.log('autoupdate finished');
});
getGlobal(function (error, session) {

@@ -13,0 +22,0 @@ if (error) {

{
"name": "famous-cli",
"version": "0.1.2",
"version": "0.1.4",
"description": "CLI interface for Famous Industries Web Services",

@@ -31,2 +31,3 @@ "main": "index.js",

"isbinaryfile": "2.0.3",
"latest-version": "^1.0.0",
"mime": "^1.3.4",

@@ -33,0 +34,0 @@ "mime-types": "^2.0.12",

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