New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gobble-cli

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gobble-cli - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

11

lib/build.js

@@ -14,5 +14,14 @@ module.exports = function ( command, gobblefile ) {

delete require.cache[ gobblefile ];
task = require( gobblefile ).build({
task = require( gobblefile );
if ( !task._gobble ) {
throw new Error( 'Did you forget to export something in your gobblefile?' );
}
task.build({
dest: dest,
force: command.force
}).catch( function ( err ) {
logger.error( err );
process.exit( 1 );
});

@@ -19,0 +28,0 @@

@@ -108,2 +108,3 @@ #!/usr/bin/env node

process.env.GOBBLE_ENV = command.env || 'production';
process.env.GOBBLE_COMMAND = 'build';
return build( command, env.configPath );

@@ -114,2 +115,3 @@ }

process.env.GOBBLE_ENV = command.env || 'development';
process.env.GOBBLE_COMMAND = 'watch';
return watch( command, env.configPath );

@@ -120,2 +122,3 @@ }

process.env.GOBBLE_ENV = command.env || 'development';
process.env.GOBBLE_COMMAND = 'serve';
return serve( command, env.configPath );

@@ -122,0 +125,0 @@ }

@@ -9,2 +9,3 @@ /*global console */

frames = require( './frames' ),
frameLength = plainText( frames[0] ).length,
summariseChanges = require( './summariseChanges' ),

@@ -65,2 +66,18 @@ tryInstallPlugin = require( './tryInstallPlugin' ),

function clearLineAfter ( offset, text ) {
var cols;
if ( !process.stderr.isTTY ) {
return text;
}
cols = process.stderr.columns - ( offset + text.length );
if ( cols > 0 ) {
return text + new Array( cols ).join( ' ' );
} else {
return text.substring( 0, process.stderr.columns - offset - 1 );
}
}
function plainText ( str ) {

@@ -245,3 +262,3 @@ // strip control codes

info: function ( details ) {
var fn, message;
var fn, message, args;

@@ -255,2 +272,8 @@ if ( progressIndicator ) {

message = fn( details );
} else if ( typeof details.message === 'string' ) {
args = [ details.message ];
if ( details.parameters ) {
args = args.concat( details.parameters );
}
message = util.format.apply( null, args );
} else {

@@ -261,2 +284,3 @@ message = util.format.apply( null, arguments );

if ( details.progressIndicator ) {
message = clearLineAfter( frameLength, message );
progressIndicator = stevedore({

@@ -263,0 +287,0 @@ message: message,

@@ -47,2 +47,6 @@ module.exports = function ( gobblefile, getTask ) {

if ( !node._gobble ) {
throw new Error( 'Did you forget to export something in your gobblefile?' );
}
if ( task ) {

@@ -49,0 +53,0 @@ task.resume( node );

2

package.json
{
"name": "gobble-cli",
"description": "Command line interface for gobble",
"version": "0.3.4",
"version": "0.3.5",
"author": "Rich Harris",

@@ -6,0 +6,0 @@ "license": "MIT",

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