Socket
Socket
Sign inDemoInstall

puppeteer-extra-plugin-user-data-dir

Package Overview
Dependencies
31
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

17

index.js

@@ -66,7 +66,20 @@ 'use strict'

deleteUserDataDir() {
debug('removeUserDataDir')
debug('removeUserDataDir', this._userDataDir)
try {
// We're doing it sync to improve chances to cleanup
// correctly in the event of ultimate disaster.
fse.rmdirSync(this._userDataDir, { recursive: true })
if ('rmSync' in fs) {
// Only available in node >= v14.14.0
fs.rmSync(this._userDataDir, {
recursive: true,
force: true, // exceptions will be ignored if path does not exist
maxRetries: 3
})
} else {
// Deprecated since node >= v14.14.0
fs.rmdirSync(this._userDataDir, {
recursive: true,
maxRetries: 3
})
}
} catch (e) {

@@ -73,0 +86,0 @@ debug(e)

6

package.json
{
"name": "puppeteer-extra-plugin-user-data-dir",
"version": "2.3.0",
"version": "2.3.1",
"description": "Custom user data directory for puppeteer.",

@@ -36,6 +36,6 @@ "main": "index.js",

"debug": "^4.1.1",
"fs-extra": "^9.1.0",
"fs-extra": "^10.0.0",
"puppeteer-extra-plugin": "^3.2.0"
},
"gitHead": "008c114b7f056cb1993ea27f45bb837058f62646"
"gitHead": "b4a21d20d0065423dd6cf5139a105815716917ae"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc