From 652449bd505544ff0f1f65a09fd0dc03a8b1d17a Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:12:05 +0800 Subject: [PATCH] fix: api quickfix --- src/lib/api/index.ts | 2 ++ src/lib/index.ts | 4 +--- .../{onceDefined.ts => hookDefineProperty.ts} | 0 src/lib/utils/index.ts | 19 ++++++++++--------- 4 files changed, 13 insertions(+), 12 deletions(-) rename src/lib/utils/{onceDefined.ts => hookDefineProperty.ts} (100%) diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index f003af3..bb3b475 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -1,6 +1,8 @@ export * as assets from "./assets"; export * as commands from "./commands"; +export * as debug from "./debug"; export * as flux from "./flux"; export * as native from "./native"; export * as patcher from "./patcher"; +export * as settings from "./settings"; export * as storage from "./storage"; diff --git a/src/lib/index.ts b/src/lib/index.ts index 1b1773d..3791476 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -2,8 +2,6 @@ import "../global.d.ts"; // eslint-disable-line import-alias/import-alias import "../modules.d.ts"; // eslint-disable-line import-alias/import-alias export * as api from "./api"; -export * as debug from "./api/debug.js"; -export * as settings from "./api/settings.js"; export * as fonts from "./fonts"; export * as plugins from "./plugins"; export * as themes from "./themes"; @@ -17,7 +15,7 @@ import * as themes from "./themes"; import { proxyLazy } from "./utils/lazy"; export const managers = proxyLazy(() => { - console.warn("bunny.managers.* is deprecated, and moved the top level (bunny.*). bunny.manager will be eventually removed soon"); + console.warn("bunny.managers.* is deprecated, and moved the top level (bunny.*). bunny.managers will be eventually removed soon"); return { get fonts() { return fonts; }, diff --git a/src/lib/utils/onceDefined.ts b/src/lib/utils/hookDefineProperty.ts similarity index 100% rename from src/lib/utils/onceDefined.ts rename to src/lib/utils/hookDefineProperty.ts diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 0f86895..9394e6d 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -1,9 +1,10 @@ -// Makes mass-importing utils cleaner, chosen over moving utils to one file - -export * as constants from "@lib/utils/constants"; -export { Emitter } from "@lib/utils/Emitter"; -export { findInReactTree } from "@lib/utils/findInReactTree"; -export { findInTree } from "@lib/utils/findInTree"; -export * as logger from "@lib/utils/logger"; -export { safeFetch } from "@lib/utils/safeFetch"; -export * as types from "@lib/utils/types"; +export * as constants from "./constants"; +export { cyrb64 } from "./cyrb64"; +export { Emitter } from "./Emitter"; +export { findInReactTree } from "./findInReactTree"; +export { findInTree } from "./findInTree"; +export { hookDefineProperty } from "./hookDefineProperty"; +export { default as invariant } from "./invariant"; +export * as lazy from "./lazy"; +export * as logger from "./logger"; +export { safeFetch } from "./safeFetch";