Socket
Socket
Sign inDemoInstall

node-curl-impersonate

Package Overview
Dependencies
37
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.6 to 1.3.8

dist/interfaces.d.ts

23

dist/index.d.ts

@@ -1,11 +0,3 @@

interface CurlImpersonateOptions {
method: string;
headers: Object;
flags?: Array<string>;
body?: Object;
timeout?: number | 10000;
followRedirects?: boolean | true;
verbose?: boolean | false;
}
export interface CurlImpersonate {
import { CurlImpersonateOptions, CurlResponse } from "./interfaces";
export declare class CurlImpersonate {
url: string;

@@ -15,13 +7,2 @@ options: CurlImpersonateOptions;

binary: string;
}
export interface CurlResponse {
ipAddress: string | undefined;
port: number | undefined;
statusCode: number | undefined;
response: string;
responseHeaders: Object;
requestHeaders: Object;
verboseStatus: boolean | undefined;
}
export declare class CurlImpersonate {
constructor(url: string, options: CurlImpersonateOptions);

@@ -28,0 +9,0 @@ makeRequest(): Promise<CurlResponse>;

@@ -37,2 +37,6 @@ "use strict";

class CurlImpersonate {
url;
options;
validMethods;
binary;
constructor(url, options) {

@@ -39,0 +43,0 @@ this.url = url;

{
"name": "node-curl-impersonate",
"version": "1.3.6",
"version": "1.3.8",
"description": "A wrapper around cURL-impersonate, a binary which can be used to bypass TLS fingerprinting.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -27,13 +27,6 @@ /*

interface CurlImpersonateOptions {
method: string;
headers: Object;
flags?: Array<string>;
body?: Object;
timeout?: number | 10000;
followRedirects?: boolean | true;
verbose?: boolean | false;
}
import { CurlImpersonateOptions, CurlResponse } from "./interfaces";
export interface CurlImpersonate {
export class CurlImpersonate {
url: string;

@@ -43,15 +36,3 @@ options: CurlImpersonateOptions;

binary: string;
}
export interface CurlResponse {
ipAddress: string | undefined,
port: number | undefined,
statusCode: number | undefined;
response: string;
responseHeaders: Object;
requestHeaders: Object;
verboseStatus: boolean | undefined,
}
export class CurlImpersonate {
constructor(url: string, options: CurlImpersonateOptions) {

@@ -58,0 +39,0 @@ this.url = url

Sorry, the diff of this file is not supported yet

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