fix cache import
All checks were successful
Publish Package / build (push) Successful in 19s

This commit is contained in:
Lee 2024-04-19 20:39:30 +01:00
parent 9eaf6125b7
commit db98cf20a1
13 changed files with 20 additions and 15 deletions

@ -1,6 +1,6 @@
{ {
"name": "mcutils-library", "name": "mcutils-library",
"version": "1.2.4", "version": "1.2.5",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

@ -1,4 +1,5 @@
import {Status} from "../status"; import {Status} from "../status";
import {Cache} from "../cache";
export interface CachedEndpointStatus extends Cache, EndpointStatus { export interface CachedEndpointStatus extends Cache, EndpointStatus {
/** /**

@ -1,3 +1,5 @@
import {Cache} from "../cache";
export interface CachedPlayer extends Cache, Player {} export interface CachedPlayer extends Cache, Player {}
type Player = { type Player = {

@ -1,4 +1,5 @@
import {MinecraftServer} from "../server"; import {MinecraftServer} from "../server";
import {Cache} from "../../cache";
export interface CachedBedrockMinecraftServer extends Cache, BedrockMinecraftServer {} export interface CachedBedrockMinecraftServer extends Cache, BedrockMinecraftServer {}

@ -1,4 +1,5 @@
import {MinecraftServer} from "../server"; import {MinecraftServer} from "../server";
import {Cache} from "../../cache";
export interface CachedJavaMinecraftServer extends Cache, JavaMinecraftServer {} export interface CachedJavaMinecraftServer extends Cache, JavaMinecraftServer {}

@ -1,4 +1,4 @@
import { ServerPlatform, getBlockedStatus, getServer, getServerIcon } from "../dist"; import {getBlockedStatus, getServer, getServerIcon, ServerPlatform} from "../dist";
test("ensureGetServerLookupSuccess", async () => { test("ensureGetServerLookupSuccess", async () => {
const server = await getServer(ServerPlatform.Java, "mc.hypixel.net"); const server = await getServer(ServerPlatform.Java, "mc.hypixel.net");