Socket
Socket
Sign inDemoInstall

firefox-profile

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firefox-profile - npm Package Compare versions

Comparing version 0.1.4 to 0.2.1

11

CHANGELOG.md

@@ -0,1 +1,12 @@

# 0.2.1
* setAcceptUntrustedCerts and setAssumeUntrustedCertIssuer now expects real boolean (contribution from [testingBot](https://github.com/testingbot))
# 0.2.0
* Fixed Windows support
# 0.1.1
* fixed potential EMFILE when installing multiple extensions (contribution from https://github.com/circusbred)
# 0.1.0

@@ -2,0 +13,0 @@

13

lib/firefox_profile.js

@@ -1,2 +0,1 @@

'use strict';

@@ -245,3 +244,3 @@

FirefoxProfile.prototype.setAcceptUntrustedCerts = function (val) {
this.defaultPreferences['webdriver_accept_untrusted_certs'] = val? true : false;
this.defaultPreferences['webdriver_accept_untrusted_certs'] = val;
};

@@ -264,3 +263,3 @@

FirefoxProfile.prototype.setAssumeUntrustedCertIssuer = function (val) {
this.defaultPreferences['webdriver_assume_untrusted_issuer'] = val? true : false;
this.defaultPreferences['webdriver_assume_untrusted_issuer'] = val;
};

@@ -283,3 +282,3 @@

FirefoxProfile.prototype.setNativeEventsEnabled = function (val) {
this.defaultPreferences['webdriver_enable_native_events'] = val? true : false;
this.defaultPreferences['webdriver_enable_native_events'] = val;
};

@@ -387,3 +386,3 @@

if (addon.slice(-4) === '.xpi') {
tmpDir = this._createTempFolder(addon.split(path.sep).slice(-1));
tmpDir = this._createTempFolder(addon.split('/').slice(-1));
var zip = new AdmZip(addon);

@@ -475,4 +474,4 @@ zip.extractAllTo(tmpDir, true);

FirefoxProfile.prototype._createTempFolder = function(suffix) {
suffix = suffix || '';
var folderName = path.join(os.tmpDir(), uuid.v4() + suffix + '/');
suffix = suffix || '';
var folderName = path.resolve(path.join(os.tmpDir(), uuid.v4() + suffix + '/'));
fs.mkdirSync(folderName);

@@ -479,0 +478,0 @@ // console.log('created folder: ', folderName);

{
"name": "firefox-profile",
"version": "0.1.4",
"version": "0.2.1",
"description": "firefox profile for selenium WebDriverJs, admc/wd or any other node selenium driver that supports capabilities",

@@ -5,0 +5,0 @@ "main": "lib/firefox_profile",

@@ -90,3 +90,3 @@ # firefox-profile-js

var FirefoxProfile = require('./lib/firefox_profile'),
var FirefoxProfile = require('firefox-profile'),
wd = require('wd');

@@ -104,3 +104,3 @@

// you can install multiple extensions at the same time
fp.addExtensions(['test/extensions/firebug-1.12.4-fx.xpi'], function() {
fp.addExtensions(['./test/extensions/firebug-1.12.4-fx.xpi'], function() {
fp.encoded(function(zippedProfile) {

@@ -107,0 +107,0 @@ browser = wd.promiseChainRemote();

@@ -42,3 +42,3 @@ /*jshint camelcase:false*/

var fp = new FirefoxProfile(testProfiles.emptyProfile.path);
expect(fp.profileDir.slice(-6)).to.be.equal('-copy/');
expect(fp.profileDir.slice(-5)).to.be.equal('-copy');
expect(fs.statSync(fp.profileDir).isDirectory()).to.be.true;

@@ -227,3 +227,3 @@ ['.parentlock', 'lock', 'parent.lock'].forEach(function(lockFile) {

it('should properly set value', function() {
fp.setAssumeUntrustedCertIssuer(0); // falsy
fp.setAssumeUntrustedCertIssuer(false);
expect(fp.canAssumeUntrustedCertIssuer()).to.be.false;

@@ -230,0 +230,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