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

pagedip

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagedip - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1-rc.0

186

cli.js

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

var version = "5.2.0";
var version = "5.2.1-rc.0";

@@ -24,175 +24,9 @@ var main$1 = "Usage: pagedip <command> [--debug] [--silent] [--dev] [--help]\n [--version]\n\n The Pagedip CLI tool.\n\nCommands\n register Register this host with a Pagedip License key.\n install Install a Pagedip package by name.\n run Run a Pagedip app.\n start, server, ee Start a basic Pagedip Enterprise server.\n\n This is the main Pagedip CLI tool. With this tool you can install Pagedip\n packages, run servers, and more.\n\n The following app names can be used as commands directly: api, auth,\n couchdb-setup, editor, enterprise-edition, live, setup, theme, theme-server\n\n Run --help on any command for further help documentation.\n\nOptions\n --debug Show debug messages.\n -s, --silent All logs will be hidden.\n --dev Run in development mode.\n -h, -H, --help Shows this message.\n -v, -V, --version Prints the version and exits.";

var apps = [".babelrc", ".template", "api", "auth", "couchdb-setup", "editor", "enterprise-edition", "live", "setup", "theme", "theme-server"];
var apps = [".babelrc", ".template", "api", "auth", "couchdb-setup", "editor", "enterprise-edition", "iis-install", "live", "setup", "theme", "theme-server"];
var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve,
reject: reject,
next: null
};
if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(function (arg) {
resume("next", arg);
}, function (arg) {
resume("throw", arg);
});
} else {
settle(result.done ? "return" : "normal", result.value);
}
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({
value: value,
done: true
});
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({
value: value,
done: false
});
break;
}
front = front.next;
if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}
this._invoke = send;
if (typeof gen.return !== "function") {
this.return = undefined;
}
}
if (typeof Symbol === "function" && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
return this;
};
}
AsyncGenerator.prototype.next = function (arg) {
return this._invoke("next", arg);
};
AsyncGenerator.prototype.throw = function (arg) {
return this._invoke("throw", arg);
};
AsyncGenerator.prototype.return = function (arg) {
return this._invoke("return", arg);
};
return {
wrap: function (fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function (value) {
return new AwaitValue(value);
}
};
}();
var asyncToGenerator = function (fn) {
return function () {
var gen = fn.apply(this, arguments);
return new Promise(function (resolve, reject) {
function step(key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
return Promise.resolve(value).then(function (value) {
step("next", value);
}, function (err) {
step("throw", err);
});
}
}
return step("next");
});
};
};
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
var install = function () {
var _ref2 = asyncToGenerator(function* (args, config, logger) {
if (!args.length || this.help()) {
var _ref2 = _asyncToGenerator(function* (args, config, logger) {
if (!args.length || this.help && this.help()) {
logger.info(install$1);

@@ -211,3 +45,3 @@ return;

var run = function () {
var _ref3 = asyncToGenerator(function* (args, config, logger) {
var _ref3 = _asyncToGenerator(function* (args, config, logger) {
if (!args.length) {

@@ -251,3 +85,3 @@ logger.info(run$1);

var license = function () {
var _ref5 = asyncToGenerator(function* (args, config, logger) {
var _ref5 = _asyncToGenerator(function* (args, config, logger) {
if (this.help()) {

@@ -268,3 +102,3 @@ logger.info(license$1);

var register = function () {
var _ref6 = asyncToGenerator(function* (args, config, logger) {
var _ref6 = _asyncToGenerator(function* (args, config, logger) {
if (!args.length || this.help()) {

@@ -286,2 +120,4 @@ logger.info(register$1);

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
var cli = command("pagedip", {

@@ -293,3 +129,3 @@ module: module,

}, function () {
var _ref = asyncToGenerator(function* (args, config, logger) {
var _ref = _asyncToGenerator(function* (args, config, logger) {
var isApp = apps.includes(args[0]);

@@ -296,0 +132,0 @@

@@ -11,170 +11,4 @@ 'use strict';

var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve$$1, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve$$1(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve$$1, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve$$1,
reject: reject,
next: null
};
if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(function (arg) {
resume("next", arg);
}, function (arg) {
resume("throw", arg);
});
} else {
settle(result.done ? "return" : "normal", result.value);
}
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({
value: value,
done: true
});
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({
value: value,
done: false
});
break;
}
front = front.next;
if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}
this._invoke = send;
if (typeof gen.return !== "function") {
this.return = undefined;
}
}
if (typeof Symbol === "function" && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
return this;
};
}
AsyncGenerator.prototype.next = function (arg) {
return this._invoke("next", arg);
};
AsyncGenerator.prototype.throw = function (arg) {
return this._invoke("throw", arg);
};
AsyncGenerator.prototype.return = function (arg) {
return this._invoke("return", arg);
};
return {
wrap: function (fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function (value) {
return new AwaitValue(value);
}
};
}();
var asyncToGenerator = function (fn) {
return function () {
var gen = fn.apply(this, arguments);
return new Promise(function (resolve$$1, reject) {
function step(key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve$$1(value);
} else {
return Promise.resolve(value).then(function (value) {
step("next", value);
}, function (err) {
step("throw", err);
});
}
}
return step("next");
});
};
};
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
function formatPackageName(pkg) {

@@ -193,3 +27,3 @@ if (typeof pkg !== "string" || !pkg) {

var install = (function () {
var _ref = asyncToGenerator(function* (pkgs, opts) {
var _ref = _asyncToGenerator(function* (pkgs, opts) {
if (!Array.isArray(pkgs)) pkgs = pkgs == null ? [] : [pkgs];

@@ -218,4 +52,8 @@

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _asyncToGenerator$1(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve$$1, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve$$1(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
var load = (function () {
var _ref = asyncToGenerator(function* (pkgname, opts) {
var _ref = _asyncToGenerator$1(function* (pkgname, opts) {
var cliFile = yield resolve__default(pkgname, _extends({}, opts, {

@@ -222,0 +60,0 @@ leads: ["@pagedip/", ""],

20

package.json

@@ -5,3 +5,3 @@ {

"public": true,
"version": "5.2.0",
"version": "5.2.1-rc.0",
"author": "Tyler Johnson <tyler@beneaththeink.com>",

@@ -27,8 +27,8 @@ "repository": {

"dependencies": {
"@pagedip/lib-command": "^1.0.0",
"@pagedip/lib-rc": "^1.0.0",
"@pagedip/lib-license-tools": "^1.0.0",
"@pagedip/util-resolve": "^1.0.0",
"@pagedip/util-npm": "^1.0.0",
"inquirer": "^3.1.1",
"@pagedip/lib-command": "^1.0.1-rc.3",
"@pagedip/lib-rc": "^1.0.1-rc.3",
"@pagedip/lib-license-tools": "^1.0.1-rc.3",
"@pagedip/util-resolve": "^1.0.1-rc.3",
"@pagedip/util-npm": "^1.0.1-rc.3",
"inquirer": "^4.0.2",
"npm-cli-path": "^2.0.0"

@@ -38,4 +38,4 @@ },

"@pagedip/tool-rollup-cli-help": "*",
"npm-run-all": "^4.1.1",
"rollup": "^0.50.0",
"npm-run-all": "^4.1.2",
"rollup": "^0.53.3",
"shx": "^0.2.2"

@@ -48,3 +48,3 @@ },

],
"gitHead": "8aae2d936f98f6f3b228a7c1a97f36ef409ea957"
"gitHead": "02a7733d507bfa9f47b0e7931a140dd7b7d4873b"
}
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