Skip to content

Commit

Permalink
chore: due to swc-project/jest#161
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfulyang committed Sep 6, 2023
1 parent d7925ed commit 49e33c5
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/asset/asset.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AZUKI_ASSET_PATH, getBucketAssetPath } from '@/constants/asset_constant
import { ScheduleType } from '@/enum/ScheduleType';
import { InstagramBotService } from '@/libs/instagram-bot';
import { PinterestBotService } from '@/libs/pinterest-bot';
import type { PinterestInterface } from '@/libs/pinterest-bot/pinterest.interface';
import type { PinterestInterface } from '@/libs/pinterest-bot';
import { PixivBotService } from '@/libs/pixiv-bot';
import { ProxyFetchService } from '@/libs/proxy-fetch';
import { BaseService } from '@/service/base/BaseService';
Expand Down
1 change: 1 addition & 0 deletions src/libs/instagram-bot/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './instagram-bot.module';
export * from './instagram-bot.service';
export * from './instagram.interface';
2 changes: 1 addition & 1 deletion src/libs/instagram-bot/instagram-bot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Injectable } from '@nestjs/common';
import type { SavedFeedResponseMedia } from 'instagram-private-api';
import { IgApiClient } from 'instagram-private-api';
import { instagramCookieFilePath } from '@/constants/cookie-path';
import type { InstagramInterface } from '@/libs/instagram-bot/instagram.interface';
import type { InstagramInterface } from '@/libs/instagram-bot';
import { ProxyFetchService } from '@/libs/proxy-fetch';

@Injectable()
Expand Down
1 change: 1 addition & 0 deletions src/libs/pinterest-bot/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './pinterest-bot.module';
export * from './pinterest-bot.service';
export * from './pinterest.interface';
1 change: 1 addition & 0 deletions src/libs/pixiv-bot/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './pixiv-bot.module';
export * from './pixiv-bot.service';
export * from './pixiv.interface';
4 changes: 2 additions & 2 deletions src/libs/pixiv-bot/pixiv-bot.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from 'node:process';
import { Injectable } from '@nestjs/common';
import type { InstagramInterface } from '@/libs/instagram-bot/instagram.interface';
import type { PixivBotApiQuery, RESPixivInterface, Work } from '@/libs/pixiv-bot/pixiv.interface';
import type { InstagramInterface } from '@/libs/instagram-bot';
import type { PixivBotApiQuery, RESPixivInterface, Work } from '@/libs/pixiv-bot';
import { ProxyFetchService } from '@/libs/proxy-fetch';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion src/libs/proxy-fetch/proxy-fetch.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { DynamicModule } from '@nestjs/common';
import { ProxyFetchService } from '@/libs/proxy-fetch/proxy-fetch.service';
import { ProxyFetchService } from '@/libs/proxy-fetch';

export class ProxyFetchModule {
static forRoot(): DynamicModule {
Expand Down
3 changes: 1 addition & 2 deletions src/libs/proxy-fetch/proxy-fetch.service.e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { beforeAll, describe, expect, it } from '@jest/globals';
import type { TestingModule } from '@nestjs/testing';
import { Test } from '@nestjs/testing';
import { ProxyFetchModule } from '@/libs/proxy-fetch/proxy-fetch.module';
import { ProxyFetchService } from '@/libs/proxy-fetch/proxy-fetch.service';
import { ProxyFetchModule, ProxyFetchService } from '@/libs/proxy-fetch';

describe('proxy', () => {
let service: ProxyFetchService;
Expand Down
1 change: 1 addition & 0 deletions src/libs/weather/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './weather.module';
export * from './weather.service';
export * from './type';
2 changes: 1 addition & 1 deletion src/libs/weather/weather.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import process from 'node:process';
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import fetch from 'node-fetch';
import { LoggerService } from '@/common/logger/logger.service';
import type { AmapWeather } from '@/libs/weather/type';
import type { AmapWeather } from '@/libs/weather';

@Injectable()
export class WeatherService {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/wechat/mini-program.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, Res } from '@
import { ApiExcludeEndpoint, ApiTags } from '@nestjs/swagger';
import { FastifyReply } from 'fastify';
import { LoggerService } from '@/common/logger/logger.service';
import { MiniProgramService } from '@/libs/wechat/mini-program.service';
import {
WechatCheckSignatureRequest,
WechatGetUnlimitedQRCodeRequest,
WechatMessageOriginalRequest,
} from '@/type/wechat';
import { MiniProgramService } from './mini-program.service';

@Controller('mini-program')
@ApiTags('mini-program')
Expand Down
2 changes: 1 addition & 1 deletion src/libs/wechat/mini-program.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { CacheService } from '@/common/cache/cache.service';
import { LoggerService } from '@/common/logger/logger.service';
import { REDIS_KEYS } from '@/constants/REDIS_KEYS';
import { WeatherService } from '@/libs/weather';
import { WechatService } from '@/libs/wechat/wechat.service';
import type {
ReplySubscribeMessageRequest,
WechatBaseResponse,
WechatGetUnlimitedQRCodeRequest,
WechatMessageOriginalRequest,
WechatMiniProgramSendCustomMessageRequest,
} from '@/type/wechat';
import { WechatService } from './wechat.service';

@Injectable()
export class MiniProgramService extends WechatService {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/wechat/official-account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, Res } from '@
import { ApiExcludeEndpoint, ApiTags } from '@nestjs/swagger';
import { FastifyReply } from 'fastify';
import { LoggerService } from '@/common/logger/logger.service';
import { OfficialAccountService } from '@/libs/wechat/official-account.service';
import { WechatCheckSignatureRequest, WechatMessageOriginalRequest } from '@/type/wechat';
import { OfficialAccountService } from './official-account.service';

@Controller('official-account')
@ApiTags('official-account')
Expand Down
2 changes: 1 addition & 1 deletion src/libs/wechat/official-account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import fetch from 'node-fetch';
import { CacheService } from '@/common/cache/cache.service';
import { LoggerService } from '@/common/logger/logger.service';
import { REDIS_KEYS } from '@/constants/REDIS_KEYS';
import { WechatService } from '@/libs/wechat/wechat.service';
import type { WechatMessageOriginalRequest } from '@/type/wechat';
import { generateUuid } from '@/utils/uuid';
import { WechatService } from './wechat.service';

@Injectable()
export class OfficialAccountService extends WechatService {
Expand Down
6 changes: 3 additions & 3 deletions src/libs/wechat/wechat.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Module } from '@nestjs/common';
import { CacheModule } from '@/common/cache/cache.module';
import { LoggerModule } from '@/common/logger/logger.module';
import { WeatherModule } from '@/libs/weather';
import { MiniProgramController } from '@/libs/wechat/mini-program.controller';
import { MiniProgramService } from '@/libs/wechat/mini-program.service';
import { OfficialAccountController } from '@/libs/wechat/official-account.controller';
import { MiniProgramService } from './mini-program.service';
import { OfficialAccountController } from './official-account.controller';
import { MiniProgramController } from './mini-program.controller';
import { OfficialAccountService } from './official-account.service';

@Module({
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tools.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OcrService } from '@/tools/ocr/ocrService';
import { Module } from '@nestjs/common';
import { LoggerModule } from '@/common/logger/logger.module';
import { ProxyFetchModule } from '@/libs/proxy-fetch/proxy-fetch.module';
import { ProxyFetchModule } from '@/libs/proxy-fetch';
import { ToolsController } from './tools.controller';
import { ToolsService } from './tools.service';

Expand Down
2 changes: 1 addition & 1 deletion src/tools/tools.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LoggerService } from '@/common/logger/logger.service';
import { ProxyFetchService } from '@/libs/proxy-fetch/proxy-fetch.service';
import { ProxyFetchService } from '@/libs/proxy-fetch';
import { OcrService } from '@/tools/ocr/ocrService';
import { Injectable } from '@nestjs/common';
import { sha1 } from '@powerfulyang/node-utils';
Expand Down

0 comments on commit 49e33c5

Please sign in to comment.