Skip to content

Commit 62f6b38

Browse files
committed
5.0.1
TypeScript is having issues with the node: protocol
1 parent b8dabf9 commit 62f6b38

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@szmarczak/http-timer",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "Timings for HTTP requests",
55
"type": "module",
66
"exports": "./dist/source/index.js",
@@ -66,7 +66,8 @@
6666
"@typescript-eslint/no-non-null-assertion": "off",
6767
"@typescript-eslint/no-unsafe-assignment": "off",
6868
"@typescript-eslint/no-unsafe-member-access": "off",
69-
"@typescript-eslint/no-unsafe-call": "off"
69+
"@typescript-eslint/no-unsafe-call": "off",
70+
"unicorn/prefer-node-protocol": "off"
7071
}
7172
},
7273
"ava": {

source/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {errorMonitor} from 'node:events';
2-
import {types} from 'node:util';
3-
import type {EventEmitter} from 'node:events';
4-
import type {Socket} from 'node:net';
5-
import type {ClientRequest, IncomingMessage} from 'node:http';
1+
import {errorMonitor} from 'events';
2+
import {types} from 'util';
3+
import type {EventEmitter} from 'events';
4+
import type {Socket} from 'net';
5+
import type {ClientRequest, IncomingMessage} from 'http';
66
import deferToConnect from 'defer-to-connect';
77

88
export interface Timings {

0 commit comments

Comments
 (0)