Commit 8ecaf791 authored by nanahira's avatar nanahira

add Date support

parent 742be8cc
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
"typescript": "^4.5.2" "typescript": "^4.5.2"
}, },
"peerDependencies": { "peerDependencies": {
"schemastery": "^3.4.3" "schemastery": "^3.5.1"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
...@@ -1886,9 +1886,9 @@ ...@@ -1886,9 +1886,9 @@
} }
}, },
"node_modules/cosmokit": { "node_modules/cosmokit": {
"version": "1.1.2", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.1.2.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.2.1.tgz",
"integrity": "sha512-cSNrcyxZ3GT+tjSlUzWIzMiK7Wndq1Nm/2tlRhT65RXltSIcH5zaHdmnz1TnIhLuOViaO9qfSdnRPzxNkxMv0g==", "integrity": "sha512-BTn7vRr31WUwX7Tq8Q/r+Qz+LPKTE3vA0d7xzVaYNes2NPvGPmIWiljYP0m/PIrdpqLLtdHpY1zGNr+OwDhA7A==",
"peer": true "peer": true
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
...@@ -4551,12 +4551,12 @@ ...@@ -4551,12 +4551,12 @@
} }
}, },
"node_modules/schemastery": { "node_modules/schemastery": {
"version": "3.4.3", "version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.4.3.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-Ui9sPoxOVaKa2EzR6GS08qB/nIMJUczUtkaLfWjeE44kjYZ+GLUFNVE3TpbXRdxjnbIIExwG+paMd0+M7YimqQ==", "integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.1.2" "cosmokit": "^1.2.1"
} }
}, },
"node_modules/semver": { "node_modules/semver": {
...@@ -6715,9 +6715,9 @@ ...@@ -6715,9 +6715,9 @@
} }
}, },
"cosmokit": { "cosmokit": {
"version": "1.1.2", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.1.2.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.2.1.tgz",
"integrity": "sha512-cSNrcyxZ3GT+tjSlUzWIzMiK7Wndq1Nm/2tlRhT65RXltSIcH5zaHdmnz1TnIhLuOViaO9qfSdnRPzxNkxMv0g==", "integrity": "sha512-BTn7vRr31WUwX7Tq8Q/r+Qz+LPKTE3vA0d7xzVaYNes2NPvGPmIWiljYP0m/PIrdpqLLtdHpY1zGNr+OwDhA7A==",
"peer": true "peer": true
}, },
"cross-spawn": { "cross-spawn": {
...@@ -8726,12 +8726,12 @@ ...@@ -8726,12 +8726,12 @@
} }
}, },
"schemastery": { "schemastery": {
"version": "3.4.3", "version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.4.3.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-Ui9sPoxOVaKa2EzR6GS08qB/nIMJUczUtkaLfWjeE44kjYZ+GLUFNVE3TpbXRdxjnbIIExwG+paMd0+M7YimqQ==", "integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.1.2" "cosmokit": "^1.2.1"
} }
}, },
"semver": { "semver": {
......
...@@ -59,6 +59,6 @@ ...@@ -59,6 +59,6 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"peerDependencies": { "peerDependencies": {
"schemastery": "^3.4.3" "schemastery": "^3.5.1"
} }
} }
...@@ -39,6 +39,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference { ...@@ -39,6 +39,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference {
return Schema.object({}).default({}); return Schema.object({}).default({});
case Function: case Function:
return Schema.function(); return Schema.function();
case Date:
return Schema.date();
default: default:
return Schema.from(schemaType); 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