New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sftp-deployer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftp-deployer - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

dist/util/remove-undefineds.d.ts

17

dist/bin/sftp-deployer.js

@@ -14,2 +14,3 @@ #!/usr/bin/env node

const __1 = require("..");
const remove_undefineds_1 = require("../util/remove-undefineds");
const pkgPath = path_1.default.join(__dirname, '..', '..', 'package.json');

@@ -74,3 +75,3 @@ const descriptionPath = path_1.default.join(__dirname, '..', '..', 'cmd-description.txt');

const configFromFile = await loadConfigFromFile(opts.config);
const mergedOptions = Object.assign(Object.assign({}, configFromFile), removeUndefineds(opts));
const mergedOptions = Object.assign(Object.assign({}, configFromFile), remove_undefineds_1.removeUndefineds(opts));
return {

@@ -93,3 +94,4 @@ config: requireProp(mergedOptions, 'config'),

catch (err) {
if (err.code === 'ENOENT' && configFile === DEFAULT_CONFIG_FILENAME) {
const exception = err;
if (exception.code === 'ENOENT' && configFile === DEFAULT_CONFIG_FILENAME) {
return {};

@@ -102,15 +104,6 @@ }

if (!obj[propName]) {
throw new Error(`Missing --${propName}. Use --help for syntax help`);
throw new Error(`Missing --${String(propName)}. Use --help for syntax help`);
}
return obj[propName];
}
function removeUndefineds(obj) {
const result = {};
Object.entries(obj).map(([key, value]) => {
if (typeof value !== 'undefined') {
result[key] = value;
}
});
return result;
}
//# sourceMappingURL=sftp-deployer.js.map
{
"name": "sftp-deployer",
"version": "0.3.5",
"version": "0.3.6",
"description": "A command-line tool for lightning-fast SFTP deployments",

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

# sftp-deployer
![Build status](https://github.com/svandriel/sftp-deployer/actions/workflows/node.js.yml/badge.svg?branch=master)
![Version](https://img.shields.io/github/package-json/v/svandriel/sftp-deployer?color=%2300d000&label=Latest%20version&style=plastic)
A command-line tool for lightning-fast SFTP deployments.

@@ -4,0 +8,0 @@

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