Commit 8ecaf791 authored by nanahira's avatar nanahira

add Date support

parent 742be8cc
......@@ -29,7 +29,7 @@
"typescript": "^4.5.2"
},
"peerDependencies": {
"schemastery": "^3.4.3"
"schemastery": "^3.5.1"
}
},
"node_modules/@babel/code-frame": {
......@@ -1886,9 +1886,9 @@
}
},
"node_modules/cosmokit": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.1.2.tgz",
"integrity": "sha512-cSNrcyxZ3GT+tjSlUzWIzMiK7Wndq1Nm/2tlRhT65RXltSIcH5zaHdmnz1TnIhLuOViaO9qfSdnRPzxNkxMv0g==",
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.2.1.tgz",
"integrity": "sha512-BTn7vRr31WUwX7Tq8Q/r+Qz+LPKTE3vA0d7xzVaYNes2NPvGPmIWiljYP0m/PIrdpqLLtdHpY1zGNr+OwDhA7A==",
"peer": true
},
"node_modules/cross-spawn": {
......@@ -4551,12 +4551,12 @@
}
},
"node_modules/schemastery": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.4.3.tgz",
"integrity": "sha512-Ui9sPoxOVaKa2EzR6GS08qB/nIMJUczUtkaLfWjeE44kjYZ+GLUFNVE3TpbXRdxjnbIIExwG+paMd0+M7YimqQ==",
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"peer": true,
"dependencies": {
"cosmokit": "^1.1.2"
"cosmokit": "^1.2.1"
}
},
"node_modules/semver": {
......@@ -6715,9 +6715,9 @@
}
},
"cosmokit": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.1.2.tgz",
"integrity": "sha512-cSNrcyxZ3GT+tjSlUzWIzMiK7Wndq1Nm/2tlRhT65RXltSIcH5zaHdmnz1TnIhLuOViaO9qfSdnRPzxNkxMv0g==",
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.2.1.tgz",
"integrity": "sha512-BTn7vRr31WUwX7Tq8Q/r+Qz+LPKTE3vA0d7xzVaYNes2NPvGPmIWiljYP0m/PIrdpqLLtdHpY1zGNr+OwDhA7A==",
"peer": true
},
"cross-spawn": {
......@@ -8726,12 +8726,12 @@
}
},
"schemastery": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.4.3.tgz",
"integrity": "sha512-Ui9sPoxOVaKa2EzR6GS08qB/nIMJUczUtkaLfWjeE44kjYZ+GLUFNVE3TpbXRdxjnbIIExwG+paMd0+M7YimqQ==",
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"peer": true,
"requires": {
"cosmokit": "^1.1.2"
"cosmokit": "^1.2.1"
}
},
"semver": {
......
......@@ -59,6 +59,6 @@
"testEnvironment": "node"
},
"peerDependencies": {
"schemastery": "^3.4.3"
"schemastery": "^3.5.1"
}
}
......@@ -39,6 +39,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference {
return Schema.object({}).default({});
case Function:
return Schema.function();
case Date:
return Schema.date();
default:
return Schema.from(schemaType);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment