chore: rename fundamentals to base (#9119)

This commit is contained in:
forehalo
2024-12-13 06:27:12 +00:00
parent 8c24f2b906
commit 4c23991047
185 changed files with 183 additions and 193 deletions
@@ -2,7 +2,7 @@ import {
defineRuntimeConfig,
defineStartupConfig,
ModuleConfig,
} from '../../fundamentals/config';
} from '../../base/config';
import { CaptchaConfig } from './types';
declare module '../config' {
@@ -16,7 +16,7 @@ declare module '../config' {
}
}
declare module '../../fundamentals/guard' {
declare module '../../base/guard' {
interface RegisterGuardName {
captcha: 'captcha';
}
@@ -1,7 +1,7 @@
import { Controller, Get } from '@nestjs/common';
import { Throttle } from '../../base';
import { Public } from '../../core/auth';
import { Throttle } from '../../fundamentals';
import { CaptchaService } from './service';
@Throttle('strict')
@@ -9,7 +9,7 @@ import {
Config,
getRequestResponseFromContext,
GuardProvider,
} from '../../fundamentals';
} from '../../base';
import { CaptchaService } from './service';
@Injectable()
@@ -6,12 +6,12 @@ import type { Request } from 'express';
import { nanoid } from 'nanoid';
import { z } from 'zod';
import { TokenService, TokenType } from '../../core/auth/token';
import {
CaptchaVerificationFailed,
Config,
verifyChallengeResponse,
} from '../../fundamentals';
} from '../../base';
import { TokenService, TokenType } from '../../core/auth/token';
import { CaptchaConfig } from './types';
const validator = z