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

@zeplin/cli

Package Overview
Dependencies
Maintainers
5
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeplin/cli - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

dist/src/util/package.d.ts

7

dist/package.json
{
"name": "@zeplin/cli",
"version": "1.0.4",
"version": "1.0.5",
"description": "Zeplin CLI",

@@ -59,3 +59,3 @@ "main": "./dist/src/app",

"@hapi/joi": "^17.1.1",
"axios": "^0.19.0",
"axios": "^0.21.1",
"chalk": "^3.0.0",

@@ -68,4 +68,7 @@ "chokidar": "^3.3.1",

"fs-extra": "^8.1.0",
"has-yarn": "^2.1.0",
"http-status-codes": "^1.4.0",
"inquirer": "^7.0.0",
"is-installed-globally": "^0.3.2",
"is-yarn-global": "^0.3.0",
"jsonwebtoken": "^8.5.1",

@@ -72,0 +75,0 @@ "mask-json": "^1.0.3",

@@ -42,2 +42,4 @@ "use strict";

const logger_1 = __importDefault(require("../../util/logger"));
const package_1 = require("../../util/package");
const text_1 = require("../../util/text");
const ALLOWED_LINK_TYPES = [

@@ -56,4 +58,4 @@ "styleguidist" /* styleguidist */,

Could not find plugin ${chalk_1.default.bold(pluginName)} failed.
Please make sure that it's globally installed and try again.
npm install -g ${pluginName}
Please make sure that it's ${package_1.isRunningFromGlobal() ? "globally " : ""}installed and try again.
${text_1.getInstallCommand(pluginName)}
`);

@@ -60,0 +62,0 @@ error.stack = e.stack;

declare const indent: (multiLineText: string, opts?: {
character: string;
}) => string;
export { indent };
declare const getInstallCommand: (packageName: string) => string;
export { indent, getInstallCommand };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.indent = void 0;
exports.getInstallCommand = exports.indent = void 0;
const package_1 = require("./package");
const indentRegex = /^(?!\s*$)/gm;

@@ -8,2 +9,15 @@ const indentCount = 4;

exports.indent = indent;
const getInstallCommand = (packageName) => {
if (package_1.isRunningFromYarnGlobal()) {
return `yarn global add ${packageName}`;
}
else if (package_1.isRunningFromGlobal()) {
return `npm install -g ${packageName}`;
}
else if (package_1.projectHasYarn()) {
return `yarn add ${packageName}`;
}
return `npm install ${packageName}`;
};
exports.getInstallCommand = getInstallCommand;
//# sourceMappingURL=text.js.map
{
"name": "@zeplin/cli",
"version": "1.0.4",
"version": "1.0.5",
"description": "Zeplin CLI",

@@ -59,3 +59,3 @@ "main": "./dist/src/app",

"@hapi/joi": "^17.1.1",
"axios": "^0.19.0",
"axios": "^0.21.1",
"chalk": "^3.0.0",

@@ -68,4 +68,7 @@ "chokidar": "^3.3.1",

"fs-extra": "^8.1.0",
"has-yarn": "^2.1.0",
"http-status-codes": "^1.4.0",
"inquirer": "^7.0.0",
"is-installed-globally": "^0.3.2",
"is-yarn-global": "^0.3.0",
"jsonwebtoken": "^8.5.1",

@@ -72,0 +75,0 @@ "mask-json": "^1.0.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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