Skip to content

Commit 546f9b6

Browse files
committed
use node:https instead of https import
1 parent 1345e74 commit 546f9b6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/node-experimental/src/proxy/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
*/
2828

2929
/* eslint-disable jsdoc/require-jsdoc */
30-
import * as http from 'http';
31-
import * as https from 'https';
30+
import * as http from 'node:http';
31+
import * as https from 'node:https';
3232
import type { Readable } from 'stream';
3333

3434
export type ThenableRequest = http.ClientRequest & {

packages/node-experimental/src/transports/http-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ClientRequest, IncomingHttpHeaders, RequestOptions as HTTPRequestOptions } from 'http';
2-
import type { RequestOptions as HTTPSRequestOptions } from 'https';
1+
import type { ClientRequest, IncomingHttpHeaders, RequestOptions as HTTPRequestOptions } from 'node:http';
2+
import type { RequestOptions as HTTPSRequestOptions } from 'node:https';
33

44
export type HTTPModuleRequestOptions = HTTPRequestOptions | HTTPSRequestOptions | string | URL;
55

packages/node-experimental/src/transports/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as http from 'http';
2-
import * as https from 'https';
1+
import * as http from 'node:http';
2+
import * as https from 'node:https';
33
import { Readable } from 'stream';
44
import { createGzip } from 'zlib';
55
import { createTransport } from '@sentry/core';

0 commit comments

Comments
 (0)