diff --git a/package.json b/package.json index 9c874db..d9567b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@szmarczak/http-timer", - "version": "5.0.0", + "version": "5.0.1", "description": "Timings for HTTP requests", "type": "module", "exports": "./dist/source/index.js", @@ -66,7 +66,8 @@ "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-member-access": "off", - "@typescript-eslint/no-unsafe-call": "off" + "@typescript-eslint/no-unsafe-call": "off", + "unicorn/prefer-node-protocol": "off" } }, "ava": { diff --git a/source/index.ts b/source/index.ts index 9c5eaf2..781e0bf 100644 --- a/source/index.ts +++ b/source/index.ts @@ -1,8 +1,8 @@ -import {errorMonitor} from 'node:events'; -import {types} from 'node:util'; -import type {EventEmitter} from 'node:events'; -import type {Socket} from 'node:net'; -import type {ClientRequest, IncomingMessage} from 'node:http'; +import {errorMonitor} from 'events'; +import {types} from 'util'; +import type {EventEmitter} from 'events'; +import type {Socket} from 'net'; +import type {ClientRequest, IncomingMessage} from 'http'; import deferToConnect from 'defer-to-connect'; export interface Timings {