mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Update spyglass versions and remove mcdoc patch
This commit is contained in:
915
package-lock.json
generated
915
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -9,20 +9,19 @@
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"postinstall": "patch-package"
|
||||
"lint": "eslint . --ext .ts,.tsx"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Misode",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@giscus/react": "^2.2.3",
|
||||
"@spyglassmc/core": "^0.4.15",
|
||||
"@spyglassmc/java-edition": "^0.3.19",
|
||||
"@spyglassmc/json": "^0.3.17",
|
||||
"@spyglassmc/locales": "^0.3.9",
|
||||
"@spyglassmc/mcdoc": "^0.3.18",
|
||||
"@spyglassmc/nbt": "^0.3.18",
|
||||
"@spyglassmc/core": "^0.4.16",
|
||||
"@spyglassmc/java-edition": "^0.3.22",
|
||||
"@spyglassmc/json": "^0.3.19",
|
||||
"@spyglassmc/locales": "^0.3.10",
|
||||
"@spyglassmc/mcdoc": "^0.3.20",
|
||||
"@spyglassmc/nbt": "^0.3.20",
|
||||
"@zip.js/zip.js": "^2.4.5",
|
||||
"brace": "^0.11.1",
|
||||
"buffer": "^6.0.3",
|
||||
@@ -57,7 +56,6 @@
|
||||
"@typescript-eslint/parser": "^5.28.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"eslint": "^8.17.0",
|
||||
"patch-package": "^8.0.0",
|
||||
"postcss": "^8.4.31",
|
||||
"preact": "^10.8.0",
|
||||
"preact-router": "^3.2.1",
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
diff --git a/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js b/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js
|
||||
index 2d51735..e37d8cc 100644
|
||||
--- a/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js
|
||||
+++ b/node_modules/@spyglassmc/mcdoc/lib/runtime/checker/index.js
|
||||
@@ -545,9 +545,9 @@ function simplifyReference(typeDef, context) {
|
||||
context.ctx.logger.warn(`Tried to access unknown reference ${typeDef.path}`);
|
||||
return { typeDef: { kind: 'union', members: [] } };
|
||||
}
|
||||
- if (data.simplifiedTypeDef) {
|
||||
- return { typeDef: data.simplifiedTypeDef };
|
||||
- }
|
||||
+ // if (data.simplifiedTypeDef) {
|
||||
+ // return { typeDef: data.simplifiedTypeDef };
|
||||
+ // }
|
||||
const simplifiedResult = simplify(data.typeDef, context);
|
||||
if (typeDef.attributes?.length) {
|
||||
simplifiedResult.typeDef = {
|
||||
@@ -555,16 +555,16 @@ function simplifyReference(typeDef, context) {
|
||||
attributes: [...typeDef.attributes, ...simplifiedResult.typeDef.attributes ?? []],
|
||||
};
|
||||
}
|
||||
- if (!simplifiedResult.dynamicData) {
|
||||
- symbol.amend({
|
||||
- data: {
|
||||
- data: {
|
||||
- ...data,
|
||||
- simplifiedTypeDef: simplifiedResult.typeDef,
|
||||
- },
|
||||
- },
|
||||
- });
|
||||
- }
|
||||
+ // if (!simplifiedResult.dynamicData) {
|
||||
+ // symbol.amend({
|
||||
+ // data: {
|
||||
+ // data: {
|
||||
+ // ...data,
|
||||
+ // simplifiedTypeDef: simplifiedResult.typeDef,
|
||||
+ // },
|
||||
+ // },
|
||||
+ // });
|
||||
+ // }
|
||||
return simplifiedResult;
|
||||
}
|
||||
function simplifyDispatcher(typeDef, context) {
|
||||
@@ -604,23 +604,23 @@ function resolveIndices(parallelIndices, symbolMap, symbolQuery, context) {
|
||||
let dynamicData = false;
|
||||
let values = [];
|
||||
function pushValue(key, data) {
|
||||
- if (data.simplifiedTypeDef) {
|
||||
- if (data.simplifiedTypeDef.kind === 'union') {
|
||||
- values.push(...data.simplifiedTypeDef.members);
|
||||
- }
|
||||
- else {
|
||||
- values.push(data.simplifiedTypeDef);
|
||||
- }
|
||||
- }
|
||||
- else {
|
||||
+ // if (data.simplifiedTypeDef) {
|
||||
+ // if (data.simplifiedTypeDef.kind === 'union') {
|
||||
+ // values.push(...data.simplifiedTypeDef.members);
|
||||
+ // }
|
||||
+ // else {
|
||||
+ // values.push(data.simplifiedTypeDef);
|
||||
+ // }
|
||||
+ // }
|
||||
+ // else {
|
||||
const simplifiedResult = simplify(data.typeDef, context);
|
||||
if (simplifiedResult.dynamicData) {
|
||||
dynamicData = true;
|
||||
}
|
||||
else if (symbolQuery) {
|
||||
- symbolQuery.member(key, s => s.amend({
|
||||
- data: { data: { ...data, simplifiedTypeDef: simplifiedResult.typeDef } },
|
||||
- }));
|
||||
+ // symbolQuery.member(key, s => s.amend({
|
||||
+ // data: { data: { ...data, simplifiedTypeDef: simplifiedResult.typeDef } },
|
||||
+ // }));
|
||||
}
|
||||
if (simplifiedResult.typeDef.kind === 'union') {
|
||||
values.push(...simplifiedResult.typeDef.members);
|
||||
@@ -628,7 +628,7 @@ function resolveIndices(parallelIndices, symbolMap, symbolQuery, context) {
|
||||
else {
|
||||
values.push(simplifiedResult.typeDef);
|
||||
}
|
||||
- }
|
||||
+ // }
|
||||
}
|
||||
let unkownTypeDef = false;
|
||||
function getUnknownTypeDef() {
|
||||
Reference in New Issue
Block a user