Update to esm, update deepslate (#244)

This commit is contained in:
Misode
2022-06-16 00:58:14 +02:00
committed by GitHub
parent cbef6ef41b
commit 561cd341a1
98 changed files with 1243 additions and 1104 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { isObject } from '../Utils'
import { isObject } from '../Utils.js'
const repo = 'https://raw.githubusercontent.com/misode/technical-changes/main'
+3 -3
View File
@@ -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 config from '../Config.js'
import { message } from '../Utils.js'
import type { BlockStateRegistry, VersionId } from './Schemas.js'
const CACHE_NAME = 'misode-v2'
const CACHE_LATEST_VERSION = 'cached_latest_version'
+4 -4
View File
@@ -1,9 +1,9 @@
import type { CollectionRegistry, INode, SchemaRegistry } from '@mcschema/core'
import { ChoiceNode, DataModel, Reference, StringNode } from '@mcschema/core'
import config from '../../config.json'
import { initPartners } from '../partners'
import { message } from '../Utils'
import { fetchData } from './DataFetcher'
import config from '../Config.js'
import { initPartners } from '../partners/index.js'
import { message } from '../Utils.js'
import { fetchData } from './DataFetcher.js'
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19'] as const
export type VersionId = typeof VersionIds[number]
+1 -1
View File
@@ -1,5 +1,5 @@
import lz from 'lz-string'
import type { VersionId } from './Schemas'
import type { VersionId } from './Schemas.js'
const API_PREFIX = 'https://z15g7can.directus.app/items'
+1 -1
View File
@@ -1,5 +1,5 @@
import yaml from 'js-yaml'
import { Store } from '../Store'
import { Store } from '../Store.js'
const INDENTS: Record<string, number | string | undefined> = {
'2_spaces': 2,
+5 -5
View File
@@ -1,5 +1,5 @@
export * from './Changelogs'
export * from './DataFetcher'
export * from './Schemas'
export * from './Sharing'
export * from './Source'
export * from './Changelogs.js'
export * from './DataFetcher.js'
export * from './Schemas.js'
export * from './Sharing.js'
export * from './Source.js'