Socket
Socket
Sign inDemoInstall

undici

Package Overview
Dependencies
Maintainers
2
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

undici - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

20

docs/api/Connector.md

@@ -70,3 +70,3 @@ # Connector

socket.destroy()
cb(new Error('Fingerprint does not match'))
cb(new Error('Fingerprint does not match or malformed certificate'))
} else {

@@ -98,11 +98,15 @@ cb(null, socket)

while (certificate && Object.keys(certificate).length > 0) {
if (certificate.issuerCertificate !== undefined) {
// For self-signed certificates, `issuerCertificate` may be a circular reference.
if (certificate.fingerprint256 === certificate.issuerCertificate.fingerprint256) {
break
}
certificate = certificate.issuerCertificate
} else {
// invalid certificate
if (certificate.issuerCertificate == null) {
return null
}
// We have reached the root certificate.
// In case of self-signed certificates, `issuerCertificate` may be a circular reference.
if (certificate.fingerprint256 === certificate.issuerCertificate.fingerprint256) {
break
}
// continue the loop
certificate = certificate.issuerCertificate
}

@@ -109,0 +113,0 @@ return certificate

2

lib/core/errors.js

@@ -75,3 +75,3 @@ 'use strict'

Error.captureStackTrace(this, RequestAbortedError)
this.name = 'RequestAbortedError'
this.name = 'AbortError'
this.message = message || 'Request aborted'

@@ -78,0 +78,0 @@ this.code = 'UND_ERR_ABORTED'

{
"name": "undici",
"version": "4.3.0",
"version": "4.3.1",
"description": "An HTTP/1.1 client, written from scratch for Node.js",

@@ -5,0 +5,0 @@ "homepage": "https://undici.nodejs.org",

@@ -17,7 +17,2 @@ import { URL } from 'url'

destroyed: boolean;
/** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
dispatch(options: Client.ClientDispatchOptions, handler: Dispatcher.DispatchHandlers): void;
/** Performs an HTTP request. */
request(options: Client.ClientRequestOptions): Promise<Dispatcher.ResponseData>;
request(options: Client.ClientRequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void;
}

@@ -48,10 +43,2 @@

}
export interface ClientDispatchOptions extends Partial<DispatchOptions> {
origin?: string | URL;
}
export interface ClientRequestOptions extends Partial<RequestOptions> {
origin?: string | URL;
}
}

@@ -40,3 +40,3 @@ import { URL } from 'url'

export interface DispatchOptions {
origin: string | URL;
origin?: string | URL;
path: string;

@@ -43,0 +43,0 @@ method: string;

import Client from './client'
import Dispatcher, { DispatchOptions, RequestOptions } from './dispatcher'
import Dispatcher from './dispatcher'
import { URL } from 'url'

@@ -13,7 +13,2 @@

destroyed: boolean;
/** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
dispatch(options: Pool.PoolDispatchOptions, handler: Dispatcher.DispatchHandlers): void;
/** Performs an HTTP request. */
request(options: Pool.PoolRequestOptions): Promise<Dispatcher.ResponseData>;
request(options: Pool.PoolRequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void;
}

@@ -28,10 +23,2 @@

}
export interface PoolDispatchOptions extends Partial<DispatchOptions> {
origin?: string | URL;
}
export interface PoolRequestOptions extends Partial<RequestOptions> {
origin?: string | URL;
}
}
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