Socket
Socket
Sign inDemoInstall

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-rc.8 to 5.2.0-rc.9

2

cli.js

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

var version = "5.2.0-rc.8";
var version = "5.2.0-rc.9";

@@ -13,0 +13,0 @@ 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.";

@@ -7,8 +7,7 @@ 'use strict';

var child_process = require('child_process');
var getNpmCliPath = _interopDefault(require('npm-cli-path'));
var utilNpm = require('@pagedip/util-npm');
var resolve = require('@pagedip/util-resolve');
var resolve__default = _interopDefault(resolve);
var fs = _interopDefault(require('mz/fs'));
var child_process$1 = require('mz/child_process');
var child_process = require('mz/child_process');
var libRc = require('@pagedip/lib-rc');

@@ -185,46 +184,2 @@ var path = require('path');

var toConsumableArray = function (arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
} else {
return Array.from(arr);
}
};
function formatPackageName(pkg) {

@@ -242,42 +197,2 @@ if (typeof pkg !== "string" || !pkg) {

var npmCli = void 0;
var npmPath = function () {
var _ref = asyncToGenerator(function* () {
if (npmCli) return npmCli;
var p = yield getNpmCliPath();
npmCli = p;
return p;
});
return function npmPath() {
return _ref.apply(this, arguments);
};
}();
var npmCommand = function () {
var _ref2 = asyncToGenerator(function* (args) {
var cli = yield npmPath();
return yield new Promise(function (resolve$$1, reject) {
var cp = child_process.spawn("node", [cli].concat(toConsumableArray(args)), {
stdio: "inherit"
});
cp.on("exit", function (code) {
code ? reject(new Error("npm command failed")) : resolve$$1();
});
cp.on("error", reject);
});
});
return function npmCommand(_x) {
return _ref2.apply(this, arguments);
};
}();
function npmInstall(pkgname) {
return npmCommand(["i", pkgname, "-g"]);
}
var install = (function () {

@@ -288,7 +203,7 @@ var _ref = asyncToGenerator(function* (pkgs, opts) {

opts = opts || {};
pkgs = pkgs.map(formatPackageName);
for (var i = 0; i < pkgs.length; i++) {
if (opts.logger) opts.logger.debug("Installing package '%s'", pkgs[i]);
yield npmInstall(formatPackageName(pkgs[i]));
}
if (opts.logger) opts.logger.debug("Installing packages '%s'", pkgs);
yield utilNpm.npmInstall(pkgs.concat("-g"));
});

@@ -332,4 +247,4 @@

yield fs.writeFile(path.join(libRc.globalPath, ".pdlicense"), license);
yield child_process$1.exec("npm config set @pagedip:registry https://license.system.pagedip.com/npm");
yield child_process$1.exec("npm config set //license.system.pagedip.com/:_authToken " + license);
yield child_process.exec("npm config set @pagedip:registry https://license.system.pagedip.com/npm");
yield child_process.exec("npm config set //license.system.pagedip.com/:_authToken " + license);
});

@@ -336,0 +251,0 @@

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

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

@@ -30,2 +30,3 @@ "repository": {

"@pagedip/util-resolve": "^1.0.0-rc.4",
"@pagedip/util-npm": "^1.0.0-rc.0",
"inquirer": "^3.1.1",

@@ -46,3 +47,3 @@ "mz": "^2.7.0",

],
"gitHead": "ec545a5ce43b80b4a16db5d2689c7a2a6c0807d6"
"gitHead": "ce3fa13eca8a4eb4e82e0890ae9889b961d8fec0"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc