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

@icetee/ftp

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icetee/ftp - npm Package Compare versions

Comparing version 0.3.14 to 0.3.15

20

lib/connection.js

@@ -63,2 +63,5 @@ var fs = require('fs'),

this._feat = undefined;
this._featUtf8 = false;
this._featEpsv = false;
this._featEprt = false;
this._curReq = undefined;

@@ -71,3 +74,2 @@ this._queue = [];

this._parser = undefined;
this._utf8 = false;
this.options = {

@@ -151,7 +153,7 @@ host: undefined,

this._socket = socket;
if (this.options.secure === 'implicit')
this._socket = tls.connect(secureOptions, onconnect);
socket = tls.connect(secureOptions, onconnect);
else {
socket.once('connect', onconnect);
this._socket = socket;
}

@@ -247,7 +249,7 @@

self._feat = Parser.parseFeat(text);
self._utf8 = self._feat.indexOf('UTF8') > -1; // RFC #2640
self._epsv = self._feat.indexOf('EPSV') > -1;
self._eprt = self._feat.indexOf('EPRT') > -1;
self._featUtf8 = self._feat.indexOf('UTF8') > -1; // RFC #2640
self._featEpsv = self._feat.indexOf('EPSV') > -1;
self._featEprt = self._feat.indexOf('EPRT') > -1;
}
if (self._utf8) {
if (self._featUtf8) {
// required by MS IIS 7.x FTP implementation which think based on

@@ -469,3 +471,3 @@ // http://tools.ietf.org/html/draft-ietf-ftpext-utf-8-option-00

source.on('data', function(chunk) {
buffer += chunk.toString(self._utf8 ? 'utf8' : 'binary');
buffer += chunk.toString(self._featUtf8 ? 'utf8' : 'binary');
});

@@ -903,3 +905,3 @@ source.once('error', function(err) {

var pasvCmd = (self._epsv && !this.options.forcePasv) ? 'EPSV' : 'PASV';
var pasvCmd = (self._featEpsv && !this.options.forcePasv) ? 'EPSV' : 'PASV';
this._send(pasvCmd, function(err, text) {

@@ -906,0 +908,0 @@ if (err)

@@ -0,0 +0,0 @@ var WritableStream = require('stream').Writable

{
"name": "@icetee/ftp",
"version": "0.3.14",
"version": "0.3.15",
"author": "Tamás András Horváth <htomy92@gmail.com>",

@@ -5,0 +5,0 @@ "contributors": [

@@ -0,0 +0,0 @@ Description

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