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

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 4.2.1 to 4.2.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 4.2.2
- another fix for cleanOnExit
# 4.2.1

@@ -2,0 +6,0 @@

33

lib/firefox_profile.js

@@ -80,4 +80,6 @@ /**

*/
function isValidAOMAddonId (s) {
return /^(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}|[a-z0-9-\._]*\@[a-z0-9-\._]+)$/i.test(s || "");
function isValidAOMAddonId(s) {
return /^(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}|[a-z0-9-\._]*\@[a-z0-9-\._]+)$/i.test(
s || ''
);
}

@@ -144,3 +146,3 @@

this.profileDir = opts.profileDirectory;
this.defaultPreferences = {...config.DEFAULT_PREFERENCES};
this.defaultPreferences = { ...config.DEFAULT_PREFERENCES };
// if true, the profile folder is deleted after

@@ -290,3 +292,8 @@ this._deleteOnExit = !hasDestDir;

try {
fs.rmSync(this.profileDir, {recursive: true, force: true});
// node 14.4+
if (fs.rmSync) {
fs.rmSync(this.profileDir, { recursive: true, force: true });
} else {
fs.removeSync(this.profileDir);
}
} catch (e) {

@@ -371,3 +378,3 @@ console.warn(

var addExtension = util.promisify(this.addExtension.bind(this));
var promises = extensions.map(extension =>
var promises = extensions.map((extension) =>
addExtension(path.normalize(extension))

@@ -603,9 +610,5 @@ );

await fs.mkdir(addonPath);
await fs.copy(
addon,
addonPath,
{
clobber: true,
}
);
await fs.copy(addon, addonPath, {
clobber: true,
});
}

@@ -618,3 +621,3 @@

return addonDetails;
})(cb)
})(cb);
});

@@ -723,3 +726,5 @@ };

// Don't use an empty string for `prefix` or it might not work on some CIs (Travis)
return fs.mkdtempSync(path.resolve(os.tmpdir(), prefix || 'firefox-profile')) + '/';
return (
fs.mkdtempSync(path.resolve(os.tmpdir(), prefix || 'firefox-profile')) + '/'
);
};

@@ -726,0 +731,0 @@

{
"name": "firefox-profile",
"version": "4.2.1",
"version": "4.2.2",
"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",

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