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

urllib

Package Overview
Dependencies
Maintainers
12
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urllib - npm Package Compare versions

Comparing version 3.18.0 to 3.18.1

11

package.json
{
"name": "urllib",
"version": "3.18.0",
"version": "3.18.1",
"publishConfig": {

@@ -53,4 +53,7 @@ "tag": "latest"

"build:esm:test": "cd test/esm && rm -rf node_modules && npm link ../.. && node index.js",
"build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test && npm run test-tsc",
"test-tsc": "tsc -p ./test/fixtures/ts/tsconfig.json",
"build:mts:test": "cd test/mts && rm -rf node_modules && npm link ../.. && tsc",
"build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test && npm run build:mts:test && npm run test-tsc",
"test-tsc": "npm run test-tsc:cjs",
"test-tsc:cjs": "tsc -p ./test/fixtures/ts/tsconfig.json",
"test-tsc:esm": "tsc -p ./test/fixtures/ts-esm/tsconfig.json",
"test": "npm run lint && vitest run",

@@ -86,2 +89,4 @@ "test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts",

"@vitest/coverage-v8": "^0.32.0",
"@tsconfig/node18": "^18.2.1",
"@tsconfig/strictest": "^2.0.2",
"busboy": "^1.6.0",

@@ -88,0 +93,0 @@ "cross-env": "^7.0.3",

/// <reference types="node" />
import { LookupFunction } from 'node:net';
import { Agent } from 'undici';
import type Dispatcher from 'undici/types/dispatcher';
import type buildConnector from 'undici/types/connector';
import { Agent, Dispatcher, buildConnector } from 'undici';
export type CheckAddressFunction = (ip: string, family: number | string) => boolean;

@@ -7,0 +5,0 @@ export type HttpAgentOptions = {

@@ -76,3 +76,3 @@ "use strict";

}
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.18.0');
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.18.1');
function getFileName(stream) {

@@ -79,0 +79,0 @@ const filePath = stream.path;

@@ -7,3 +7,3 @@ /// <reference types="node" />

import type { IncomingHttpHeaders } from 'node:http';
import type Dispatcher from 'undici/types/dispatcher';
import type { Dispatcher } from 'undici';
import type { HttpClientResponse } from './Response';

@@ -10,0 +10,0 @@ export type HttpMethod = Dispatcher.HttpMethod;

/// <reference types="node" />
import { LookupFunction } from 'node:net';
import { Agent } from 'undici';
import type Dispatcher from 'undici/types/dispatcher';
import type buildConnector from 'undici/types/connector';
import { Agent, Dispatcher, buildConnector } from 'undici';
export type CheckAddressFunction = (ip: string, family: number | string) => boolean;

@@ -7,0 +5,0 @@ export type HttpAgentOptions = {

@@ -6,5 +6,5 @@ /// <reference types="node" />

import { LookupFunction } from 'node:net';
import { CheckAddressFunction } from './HttpAgent';
import { RequestURL, RequestOptions, RequestMeta } from './Request';
import { RawResponseWithMeta, HttpClientResponse } from './Response';
import { CheckAddressFunction } from './HttpAgent.js';
import { RequestURL, RequestOptions, RequestMeta } from './Request.js';
import { RawResponseWithMeta, HttpClientResponse } from './Response.js';
export type ClientOptions = {

@@ -11,0 +11,0 @@ defaultArgs?: RequestOptions;

@@ -70,3 +70,3 @@ import diagnosticsChannel from 'node:diagnostics_channel';

}
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.18.0');
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.18.1');
function getFileName(stream) {

@@ -73,0 +73,0 @@ const filePath = stream.path;

@@ -1,8 +0,8 @@

import { RequestOptions, RequestURL } from './Request';
export declare function request<T = any>(url: RequestURL, options?: RequestOptions): Promise<import("./Response").HttpClientResponse<T>>;
export declare function curl<T = any>(url: RequestURL, options?: RequestOptions): Promise<import("./Response").HttpClientResponse<T>>;
import { RequestOptions, RequestURL } from './Request.js';
export declare function request<T = any>(url: RequestURL, options?: RequestOptions): Promise<import("./Response.js").HttpClientResponse<T>>;
export declare function curl<T = any>(url: RequestURL, options?: RequestOptions): Promise<import("./Response.js").HttpClientResponse<T>>;
export { MockAgent, ProxyAgent, Agent, Dispatcher, setGlobalDispatcher, getGlobalDispatcher, } from 'undici';
export { HttpClient, HttpClient as HttpClient2, HEADER_USER_AGENT as USER_AGENT, RequestDiagnosticsMessage, ResponseDiagnosticsMessage, } from './HttpClient';
export { RequestOptions, RequestOptions as RequestOptions2, RequestURL, HttpMethod, FixJSONCtlCharsHandler, FixJSONCtlChars, } from './Request';
export { SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse } from './Response';
export { HttpClient, HttpClient as HttpClient2, HEADER_USER_AGENT as USER_AGENT, RequestDiagnosticsMessage, ResponseDiagnosticsMessage, } from './HttpClient.js';
export { RequestOptions, RequestOptions as RequestOptions2, RequestURL, HttpMethod, FixJSONCtlCharsHandler, FixJSONCtlChars, } from './Request.js';
export { SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse } from './Response.js';
declare const _default: {

@@ -9,0 +9,0 @@ request: typeof request;

@@ -7,4 +7,4 @@ /// <reference types="node" />

import type { IncomingHttpHeaders } from 'node:http';
import type Dispatcher from 'undici/types/dispatcher';
import type { HttpClientResponse } from './Response';
import type { Dispatcher } from 'undici';
import type { HttpClientResponse } from './Response.js';
export type HttpMethod = Dispatcher.HttpMethod;

@@ -11,0 +11,0 @@ export type RequestURL = string | URL;

@@ -1,2 +0,2 @@

import { FixJSONCtlChars } from './Request';
import { FixJSONCtlChars } from './Request.js';
export declare function parseJSON(data: string, fixJSONCtlChars?: FixJSONCtlChars): string;

@@ -3,0 +3,0 @@ export declare function sleep(ms: number): Promise<void>;

@@ -5,5 +5,5 @@ import dns from 'node:dns';

Agent,
Dispatcher,
buildConnector,
} from 'undici';
import type Dispatcher from 'undici/types/dispatcher';
import type buildConnector from 'undici/types/connector';

@@ -10,0 +10,0 @@ export type CheckAddressFunction = (ip: string, family: number | string) => boolean;

import { Readable, Writable } from 'node:stream';
import type { IncomingHttpHeaders } from 'node:http';
import type Dispatcher from 'undici/types/dispatcher';
import type { Dispatcher } from 'undici';
import type {

@@ -5,0 +5,0 @@ HttpClientResponse,

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