Comparing version 0.1.0 to 0.1.1
#!/usr/bin/env node | ||
var app, argv, bodyParser, express, fslib, http, util, yargs, _ref; | ||
var app, argv, bodyParser, express, fslib, http, ref, util, yargs; | ||
@@ -37,7 +37,7 @@ fslib = require('fs'); | ||
if ((_ref = argv.templates) != null) { | ||
_ref.split(/\s*,\s*/).forEach(function(filepath) { | ||
var template; | ||
if ((ref = argv.templates) != null) { | ||
ref.split(/\s*,\s*/).forEach(function(filepath) { | ||
var templates; | ||
if (fslib.existsSync(filepath)) { | ||
template = util.parseFile(filepath); | ||
templates = util.parseFile(filepath); | ||
} else { | ||
@@ -44,0 +44,0 @@ throw "Cannot parse template file: " + filepath; |
@@ -28,5 +28,5 @@ var Command, createHandler, debug, exec, extend, fslib, parse, parseFile; | ||
exports.Command = Command = (function() { | ||
function Command(_at_template, _at_safe) { | ||
this.template = _at_template; | ||
this.safe = _at_safe != null ? _at_safe : true; | ||
function Command(template, safe) { | ||
this.template = template; | ||
this.safe = safe != null ? safe : true; | ||
if (this._fn == null) { | ||
@@ -64,8 +64,8 @@ this._fn = this.compile(); | ||
Command.prototype.exec = function(obj, opts, cb) { | ||
var cmd, e, _ref, _ref1; | ||
var cmd, e, ref, ref1; | ||
if (cb == null) { | ||
_ref = [opts, null], cb = _ref[0], opts = _ref[1]; | ||
ref = [opts, null], cb = ref[0], opts = ref[1]; | ||
} | ||
if (cb == null) { | ||
_ref1 = [obj, null], cb = _ref1[0], obj = _ref1[1]; | ||
ref1 = [obj, null], cb = ref1[0], obj = ref1[1]; | ||
} | ||
@@ -72,0 +72,0 @@ try { |
{ | ||
"name": "shrvr", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Shell server", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
15693