From f487777da8d19db805ff6f7ca320b9d7d1ba9dfd Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Wed, 15 Nov 2023 23:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Import=20modules=20using=20?= =?UTF-8?q?relative=20file=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code changes involve importing modules from different file paths. The imports have been modified to use relative file paths instead of absolute paths. Changes: - Modified import statements to use relative file paths instead of absolute paths. --- src/server/createEdgeSpeechComletion.ts | 10 +++++----- src/server/createMicrosoftSpeechComletion.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/server/createEdgeSpeechComletion.ts b/src/server/createEdgeSpeechComletion.ts index ae6dffe..c0a478c 100644 --- a/src/server/createEdgeSpeechComletion.ts +++ b/src/server/createEdgeSpeechComletion.ts @@ -1,11 +1,11 @@ import qs from 'query-string'; import { v4 as uuidv4 } from 'uuid'; -import { EDGE_API_TOKEN, EDGE_SPEECH_URL } from '@/const/api'; -import { EdgeSpeechPayload } from '@/server/types'; -import { genSSML } from '@/utils/genSSML'; -import { genSendContent } from '@/utils/genSendContent'; -import { getHeadersAndData } from '@/utils/getHeadersAndData'; +import { EDGE_API_TOKEN, EDGE_SPEECH_URL } from '../const/api'; +import { EdgeSpeechPayload } from '../server/types'; +import { genSSML } from '../utils/genSSML'; +import { genSendContent } from '../utils/genSendContent'; +import { getHeadersAndData } from '../utils/getHeadersAndData'; const configConent = JSON.stringify({ context: { diff --git a/src/server/createMicrosoftSpeechComletion.ts b/src/server/createMicrosoftSpeechComletion.ts index dc8bb8c..89c8df0 100644 --- a/src/server/createMicrosoftSpeechComletion.ts +++ b/src/server/createMicrosoftSpeechComletion.ts @@ -1,8 +1,8 @@ import { v4 as uuidv4 } from 'uuid'; -import { MICROSOFT_SPEECH_URL } from '@/const/api'; -import { MicrosoftSpeechPayload } from '@/server/types'; -import { genSSML } from '@/utils/genSSML'; +import { MICROSOFT_SPEECH_URL } from '../const/api'; +import { MicrosoftSpeechPayload } from '../server/types'; +import { genSSML } from '../utils/genSSML'; interface CreateMicrosoftSpeechComletionOptions { payload: MicrosoftSpeechPayload;