Upgrade mcschema

This commit is contained in:
Misode
2020-11-12 18:15:50 +01:00
parent 104904fd7a
commit dd3ac92c4e
3 changed files with 17 additions and 16 deletions

24
package-lock.json generated
View File

@@ -5,30 +5,30 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@mcschema/core": { "@mcschema/core": {
"version": "0.11.4", "version": "0.11.5",
"resolved": "https://registry.npmjs.org/@mcschema/core/-/core-0.11.4.tgz", "resolved": "https://registry.npmjs.org/@mcschema/core/-/core-0.11.5.tgz",
"integrity": "sha512-ZLB+fJxOdwbfHqwxcKZkIwEKGMYU1dF5S1X9yA9C5KbHrBNK4niZfdinH3Z64qiNGmB7LP5t0IIktNb0QZQWXg==" "integrity": "sha512-ON7G3ePwcFZrG6hlsF6a1tUtybtTqyLTnVnKIO3/otuMdaozeE3aO/yUQac82GG/InQjGoPYRm2DWn3Bbl8v3Q=="
}, },
"@mcschema/java-1.16": { "@mcschema/java-1.16": {
"version": "0.5.14", "version": "0.5.15",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.16/-/java-1.16-0.5.14.tgz", "resolved": "https://registry.npmjs.org/@mcschema/java-1.16/-/java-1.16-0.5.15.tgz",
"integrity": "sha512-k9V9SN6+fkSaWIqGNpGS9CHfeaNDqPsApzm8+tOc1Azw0sBIIaa1XEDEuzHgFmx//O5L8RD6eC/3EPZG9udfbA==", "integrity": "sha512-0ZnRHThRcvtFg4KECtxeS+jkWNVsMRwA7SvRe97O7ro7o0AIfAC9f3jRg0EJJMoZ1QKdQ9EC2VTGYxhGLUmb3Q==",
"requires": { "requires": {
"@mcschema/core": "^0.11.2" "@mcschema/core": "^0.11.2"
} }
}, },
"@mcschema/java-1.17": { "@mcschema/java-1.17": {
"version": "0.1.5", "version": "0.1.6",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.17/-/java-1.17-0.1.5.tgz", "resolved": "https://registry.npmjs.org/@mcschema/java-1.17/-/java-1.17-0.1.6.tgz",
"integrity": "sha512-K8UJhRzavr7kK0LNPyBKBp1UYRgW7ZwP7jeNpXAr+iHx7u2HSPiOpR4CxHNQaB0a0JV8UQcqi5u8ZUti2sC4PQ==", "integrity": "sha512-KVN037LZYKa4xzom9/8jTX79rZtuXvp+DXLWjJCWGrPUsKigOv+fBuFvBsnILJXk0LnsAQCl8dZY8iqGIsUMYA==",
"requires": { "requires": {
"@mcschema/core": "^0.11.4" "@mcschema/core": "^0.11.4"
} }
}, },
"@mcschema/locales": { "@mcschema/locales": {
"version": "0.1.11", "version": "0.1.12",
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.11.tgz", "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.12.tgz",
"integrity": "sha512-ZRj51n7SmNP0djcaLBcB8gt6YWRn5R+oikhWPWY6loQ9b3DCmIKW97i3qE47Sh+uXhbzzQEQIJFNBK6sv1bjcg==" "integrity": "sha512-Fz8QNQdNpDoSMzWSiZUsMCwjCeAEsxzJ8XEZnFAMEHnwWm82h8sgQ4LvwA01sEL+TPYBqWUbbYOXYkLKQEYCjg=="
}, },
"@nodelib/fs.scandir": { "@nodelib/fs.scandir": {
"version": "2.1.3", "version": "2.1.3",

View File

@@ -12,10 +12,10 @@
"author": "Misode", "author": "Misode",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@mcschema/core": "^0.11.4", "@mcschema/core": "^0.11.5",
"@mcschema/java-1.16": "^0.5.14", "@mcschema/java-1.16": "^0.5.15",
"@mcschema/java-1.17": "^0.1.5", "@mcschema/java-1.17": "^0.1.6",
"@mcschema/locales": "^0.1.11", "@mcschema/locales": "^0.1.12",
"@types/google.analytics": "0.0.40", "@types/google.analytics": "0.0.40",
"@types/split.js": "^1.4.0", "@types/split.js": "^1.4.0",
"copy-webpack-plugin": "^6.0.1", "copy-webpack-plugin": "^6.0.1",

View File

@@ -164,6 +164,7 @@ export const renderHtml: Hook<[any, Mounter], [string, string, string]> = {
.filter(k => activeFields[k].enabled(path)) .filter(k => activeFields[k].enabled(path))
.map(k => { .map(k => {
const field = activeFields[k] const field = activeFields[k]
if (field.hidden && field.hidden()) return ''
const childPath = getChildModelPath(path, k) const childPath = getChildModelPath(path, k)
const category = field.category(childPath) const category = field.category(childPath)
const [cPrefix, cSuffix, cBody] = field.hook(this, childPath, value[k], mounter) const [cPrefix, cSuffix, cBody] = field.hook(this, childPath, value[k], mounter)