Prefix node protocol (#26391)

This commit is contained in:
Volnei Munhoz authored and GitHub committed 2026-01-02 12:47:00 +00:00
1 parent fed6899c36
commit a1e5384859
129 files changed
+182 -177

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
const http = require("http");
const http = require("node:http");
const connect = require("connect");
const { createProxyMiddleware } = require("http-proxy-middleware");
+1 -1
View File
@@ -1,4 +1,4 @@
const path = require("path");
const path = require("node:path");
const i18nConfig = require("@calcom/config/next-i18next.config");
/** @type {import("next-i18next").UserConfig} */
+1 -1
View File
@@ -1,6 +1,6 @@
// This is a workaround for https://github.com/jsdom/jsdom/issues/2524#issuecomment-902027138
// See https://github.com/microsoft/accessibility-insights-web/blob/40416a4ae6b91baf43102f58e069eff787de4de2/src/tests/unit/jest-setup.ts
const { TextEncoder, TextDecoder } = require("util");
const { TextEncoder, TextDecoder } = require("node:util");
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
+1 -1
View File
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const path = require("node:path");
const i18nConfig = require("@calcom/config/next-i18next.config");
/** @type {import("next-i18next").UserConfig} */
+1 -1
View File
@@ -1,4 +1,4 @@
import { execSync } from "child_process";
import { execSync } from "node:child_process";
function checkCommandExists(command: string): boolean {
try {
+1 -1
View File
@@ -1,4 +1,4 @@
import { createHash } from "crypto";
import { createHash } from "node:crypto";
export const sha256Hash = (token: string): string => createHash("sha256").update(token).digest("hex");
+1 -1
View File
@@ -1,4 +1,4 @@
import { IncomingHttpHeaders } from "http";
import { IncomingHttpHeaders } from "node:http";
export function filterReqHeaders(headers: IncomingHttpHeaders): Partial<IncomingHttpHeaders> {
return {
@@ -1,7 +1,7 @@
import { Injectable, Logger, OnModuleDestroy } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import * as path from "path";
import { Worker } from "worker_threads";
import * as path from "node:path";
import { Worker } from "node:worker_threads";
// Import WorkerOptions type
import type { GetScheduleOptions } from "@calcom/trpc/server/routers/viewer/slots/types";
@@ -1,8 +1,8 @@
import { AvailableSlotsService } from "@/lib/services/available-slots.service";
import { Logger } from "@nestjs/common";
import { NestFactory } from "@nestjs/core";
import { IncomingMessage } from "http";
import { parentPort, isMainThread } from "worker_threads";
import { IncomingMessage } from "node:http";
import { parentPort, isMainThread } from "node:worker_threads";
import { SlotsWorkerModule } from "./slots.worker.module";
@@ -1,5 +1,5 @@
import * as fs from "fs-extra";
import * as path from "path";
import * as path from "node:path";
// First, copyNestSwagger is required to enable "@nestjs/swagger" in the "nest-cli.json",
// because nest-cli.json is resolving "@nestjs/swagger" plugin from
+2 -2
View File
@@ -8,8 +8,8 @@ import type {
OperationObject,
} from "@nestjs/swagger/dist/interfaces/open-api-spec.interface";
import "dotenv/config";
import * as fs from "fs";
import type { Server } from "http";
import * as fs from "node:fs";
import type { Server } from "node:http";
import { spawnSync } from "node:child_process";
import { createRequire } from "node:module";
@@ -1,7 +1,7 @@
import { PrismaReadService } from "@/modules/prisma/prisma-read.service";
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
import { TestingModule } from "@nestjs/testing";
import { randomBytes, createHash } from "crypto";
import { randomBytes, createHash } from "node:crypto";
export class ApiKeysRepositoryFixture {
private prismaReadClient: PrismaReadService["prisma"];
@@ -1,7 +1,7 @@
import { PrismaReadService } from "@/modules/prisma/prisma-read.service";
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
import { TestingModule } from "@nestjs/testing";
import * as crypto from "crypto";
import * as crypto from "node:crypto";
import { DateTime } from "luxon";
export class TokensRepositoryFixture {