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

mozilla-get-url

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mozilla-get-url - npm Package Compare versions

Comparing version 0.2.0 to 0.4.0

3

HISTORY.md

@@ -0,1 +1,4 @@

- 0.4.0
- Add inacivitiy timeout.
- 0.2.0

@@ -2,0 +5,0 @@ - add xullrunner support

14

lib/ftp_filter.js
var FTP = require('jsftp'),
urls = require('./urls'),
debug = require('debug')('mozilla-get-url:ftp_filter')
debug = require('debug')('mozilla-get-url:ftp_filter'),
pathUtils = require('path');
var TIMEOUT = 60 * 60 * 1000; // 1 min
/**

@@ -10,5 +12,11 @@ Internal wrapper around jsftp

function ftpClient() {
return new FTP({
var ftp = new FTP({
host: urls.FTP_HOST
});
ftp.socket.setTimeout(TIMEOUT);
ftp.socket.once('timeout', function(data) {
ftp.socket.destroy(); // should call the "ls" callback "err"
});
return ftp;
}

@@ -50,3 +58,3 @@

pick = pick.map(appendFileToPath.bind(null, path));
function next() {

@@ -53,0 +61,0 @@ var nextPath;

{
"name": "mozilla-get-url",
"version": "0.2.0",
"version": "0.4.0",
"description": "Utility to get the url of a particular version/release of a mozilla product (like firefox/b2g)",

@@ -29,4 +29,4 @@ "main": "lib/locate.js",

"dependencies": {
"jsftp": "~1.1.1",
"debug": "~0.7.2",
"jsftp": "~1.3.1",
"debug": "~1.0.3",
"commander": "~2.0.0"

@@ -33,0 +33,0 @@ },

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