Socket
Socket
Sign inDemoInstall

cowmand

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cowmand - npm Package Compare versions

Comparing version 0.0.5-beta.0 to 0.0.5-beta.1

39

dist/program.js

@@ -11,9 +11,2 @@ "use strict";

};
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -46,21 +39,23 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

program.start = function start(callback) {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
try {
// eslint-disable-next-line no-restricted-syntax
for (var _b = __asyncValues(this.stack), _c; _c = yield _b.next(), !_c.done;) {
const execution = _c.value;
if (!execution.match(this.params.command)) {
let index = 0;
const next = (error) => {
if (error)
console.log(error);
if (index >= this.stack.length)
return;
let layerStack;
let match;
while (match !== true && index < this.stack.length) {
layerStack = this.stack[index];
match = layerStack.match(this.params.command);
if (!match) {
index++;
continue;
}
yield execution.handle({ session: this.session, params: this.params }, terminal_1.terminal, () => console.log('next'));
layerStack.handle({ session: this.session, params: this.params }, terminal_1.terminal, next);
return;
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
};
next();
if (callback)

@@ -67,0 +62,0 @@ callback();

{
"name": "cowmand",
"version": "0.0.5-beta.0",
"version": "0.0.5-beta.1",
"description": "Fast helper to create a cli",

@@ -5,0 +5,0 @@ "tags": [

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