mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 08:26:51 +00:00
Expose error stack traces (#211)
This commit is contained in:
@@ -20,6 +20,7 @@ let Changelogs: Change[] | Promise<Change[]> | null = null
|
||||
export async function getChangelogs() {
|
||||
if (!Changelogs) {
|
||||
const index = await (await fetch(`${repo}/index.json`)).json() as string[]
|
||||
throw new Error('Test')
|
||||
Changelogs = (await Promise.all(
|
||||
index.map((group, i) => fetchGroup(parseVersion(group), i))
|
||||
)).flat().map<Change>(change => ({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { CollectionRegistry } from '@mcschema/core'
|
||||
import config from '../../config.json'
|
||||
import { message } from '../Utils'
|
||||
import type { BlockStateRegistry, VersionId } from './Schemas'
|
||||
import type { CollectionRegistry } from '@mcschema/core';
|
||||
import config from '../../config.json';
|
||||
import { message } from '../Utils';
|
||||
import type { BlockStateRegistry, VersionId } from './Schemas';
|
||||
|
||||
// Cleanup old caches
|
||||
['1.15', '1.16', '1.17'].forEach(v => localStorage.removeItem(`cache_${v}`));
|
||||
|
||||
Reference in New Issue
Block a user