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

dozerjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dozerjs - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

lib/install.js

16

lib/create.js

@@ -12,5 +12,5 @@ var repo = 'https://github.com/DozerJS/dozerjs.git';

// Well, this one creates a new project...so, yeah.
var createProject = function(name) {
var createProject = function(name, cb) {
var nameRegEx = /^[a-z0-9]+$/i;
var nameRegEx = /^[a-zA-Z0-9-_]+$/;
var path = cwd + '/' + name;

@@ -24,3 +24,3 @@ var proc;

if (!name || !nameRegEx.test(name)) {
callback('You must provide an alpha-numeric project name.');
callback('Project name must consist of only letters, numbers, underscores and hyphens.');
} else {

@@ -34,3 +34,3 @@ callback(null);

if (fs.existsSync(path)) {
callback('Directory already exists: ' + path);
callback('Directory already exists: ' + path + '.');
} else {

@@ -46,3 +46,3 @@ callback(null);

if (err) {
callback('Error cloning from source');
callback('Error cloning from source.');
} else {

@@ -56,3 +56,3 @@ callback(null);

cleanupDir: function (callback) {
output('success', 'Removing unneeded assets');
output('success', 'Removing unneeded assets.');
fsx.remove(path + '/.git', function (err) {

@@ -93,2 +93,6 @@ if (err) {

output('success', 'Project created at ' + path);
// Check for callback and run (used by stage)
if (cb && typeof cb === 'function') {
cb();
}
}

@@ -95,0 +99,0 @@ });

var commander = require('commander');
var args;
var showTitle = require('./title.js');
var createProject = require('./create.js');
var generateAssets = require('./generate.js');
var startDozer = require('./start.js');
var stageProject = require('./stage.js');
var installExtension = require('./install.js');
var output = require('./output.js');

@@ -12,2 +15,5 @@

// Show the title
showTitle();
// Get the arrrrgs!

@@ -26,2 +32,8 @@ args = commander.parse(process.argv).args;

break;
case 'stage':
stageProject();
break;
case 'install':
installExtension(args[1]);
break;
default:

@@ -28,0 +40,0 @@ output('error', 'Sorry, your command does not compute.');

@@ -7,6 +7,6 @@ var clc = require('cli-color');

case 'success':
console.log(clc.white('#> ') + clc.greenBright(message));
console.log(clc.greenBright(' #> ') + clc.white(message));
break;
case 'error':
console.log(clc.redBright('#> ') + clc.white(message));
console.log(clc.redBright(' #> ') + clc.white(message));
break;

@@ -13,0 +13,0 @@ }

{
"name": "dozerjs",
"version": "0.1.5",
"version": "0.1.6",
"description": "NPM for Managing DozerJS",

@@ -5,0 +5,0 @@ "repository": {

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