node-curl-impersonate
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -11,2 +11,3 @@ /* | ||
import * as path from 'path'; | ||
import * as fs from "fs"; | ||
const __dirname = import.meta.dirname; | ||
@@ -41,2 +42,8 @@ export class CurlImpersonate { | ||
this.setProperBinary(); | ||
if (this.binary) { | ||
if (!fs.existsSync(path.join(__dirname, '..', 'bin', this.binary))) { | ||
throw new Error("Binary not found! Please check your installation."); | ||
} | ||
fs.chmodSync(path.join(__dirname, '..', 'bin', this.binary), 0o755); | ||
} | ||
this.checkIfPresetAndMerge(); | ||
@@ -43,0 +50,0 @@ let headers = this.convertHeaderObjectToCURL(); |
{ | ||
"name": "node-curl-impersonate", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "A wrapper around cURL-impersonate, a binary which can be used to bypass TLS fingerprinting.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20929339
431
2