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

narp

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

narp - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

38

dist/cli.js

@@ -31,12 +31,14 @@ 'use strict';

var buildOptions = function buildOptions(password, verbose) {
return {
transifex: {
password: password
},
verbose: verbose
};
};
var askForPassword = function askForPassword(fn) {
(0, _read2.default)({ prompt: 'Password: ', silent: true }, function (er, password) {
var options = {
transifex: {
password: password
},
verbose: args.verbose
};
var options = buildOptions(password, args.verbose);
fn(options);

@@ -47,11 +49,19 @@ });

if (args._[0] === 'pull') {
askForPassword(function (options) {
api.pull(options);
});
if (!args.password) {
askForPassword(function (options) {
api.pull(options);
});
} else {
api.pull(buildOptions(args.password, args.verbose));
}
}
if (args._[0] === 'push') {
askForPassword(function (options) {
api.push(options);
});
if (!args.password) {
askForPassword(function (options) {
api.push(options);
});
} else {
api.push(buildOptions(args.password, args.verbose));
}
}
{
"name": "narp",
"version": "2.0.2",
"version": "2.0.3",
"description": "The worlds best super translation manager package handler",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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