Prefix node protocol (#26391)
This commit is contained in:
1 parent
fed6899c36
commit
a1e5384859
129 files changed
+182
-177
No files matched your search
@@ -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,4 +1,4 @@
|
||||
import { execSync } from "child_process";
|
||||
import { execSync } from "node:child_process";
|
||||
|
||||
function checkCommandExists(command: string): boolean {
|
||||
try {
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user