From f38c6e626354d1be80825f6962fbbb5ee16357bb Mon Sep 17 00:00:00 2001 From: Ansolve Date: Thu, 11 Jan 2024 04:21:53 +0800 Subject: [PATCH] fix: unrenamed. --- noname/util/browser.js | 10 +++++----- noname/util/struct/index.js | 2 +- .../{error-handler => promise-error-handler}/chrome.js | 0 .../firefox.js | 0 .../{error-handler => promise-error-handler}/index.js | 0 .../unknown.js | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename noname/util/struct/{error-handler => promise-error-handler}/chrome.js (100%) rename noname/util/struct/{error-handler => promise-error-handler}/firefox.js (100%) rename noname/util/struct/{error-handler => promise-error-handler}/index.js (100%) rename noname/util/struct/{error-handler => promise-error-handler}/unknown.js (100%) diff --git a/noname/util/browser.js b/noname/util/browser.js index 9e653667c..7e84aa899 100644 --- a/noname/util/browser.js +++ b/noname/util/browser.js @@ -1,4 +1,4 @@ -import { ErrorHandler } from './struct/index.js'; +import { PromiseErrorHandler } from './struct/index.js'; /** * 从浏览器名到不同浏览器下异步处理方式的映射 @@ -8,10 +8,10 @@ import { ErrorHandler } from './struct/index.js'; * @type {Record<"firefox" | "chrome" | "safari" | "other", new () => PromiseErrorHandler>} */ export const promiseErrorHandlerMap = { - 'chrome': ErrorHandler.ChromePromiseErrorHandler, - 'firefox': ErrorHandler.FirefoxPromiseErrorHandler, - 'safari': ErrorHandler.UnknownPromiseErrorHandler, - 'other': ErrorHandler.UnknownPromiseErrorHandler + 'chrome': PromiseErrorHandler.ChromePromiseErrorHandler, + 'firefox': PromiseErrorHandler.FirefoxPromiseErrorHandler, + 'safari': PromiseErrorHandler.UnknownPromiseErrorHandler, + 'other': PromiseErrorHandler.UnknownPromiseErrorHandler }; /** diff --git a/noname/util/struct/index.js b/noname/util/struct/index.js index 70eb9cd3c..3515a4fad 100644 --- a/noname/util/struct/index.js +++ b/noname/util/struct/index.js @@ -2,4 +2,4 @@ * 无名杀内部所需要的数据结构 */ -export * as ErrorHandler from './error-handler/index.js'; +export * as PromiseErrorHandler from './promise-error-handler/index.js'; diff --git a/noname/util/struct/error-handler/chrome.js b/noname/util/struct/promise-error-handler/chrome.js similarity index 100% rename from noname/util/struct/error-handler/chrome.js rename to noname/util/struct/promise-error-handler/chrome.js diff --git a/noname/util/struct/error-handler/firefox.js b/noname/util/struct/promise-error-handler/firefox.js similarity index 100% rename from noname/util/struct/error-handler/firefox.js rename to noname/util/struct/promise-error-handler/firefox.js diff --git a/noname/util/struct/error-handler/index.js b/noname/util/struct/promise-error-handler/index.js similarity index 100% rename from noname/util/struct/error-handler/index.js rename to noname/util/struct/promise-error-handler/index.js diff --git a/noname/util/struct/error-handler/unknown.js b/noname/util/struct/promise-error-handler/unknown.js similarity index 100% rename from noname/util/struct/error-handler/unknown.js rename to noname/util/struct/promise-error-handler/unknown.js