simple-graphql
Advanced tools
Comparing version 1.0.19 to 1.0.20
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -19,2 +19,8 @@ 'use strict'; | ||
serialize: function serialize(value) { | ||
if (typeof value === 'string') { | ||
value = (0, _moment2.default)(value); | ||
if (!value.isValid()) { | ||
throw new _graphql.GraphQLError('Field error: Invalid date'); | ||
} | ||
} | ||
if (!(value instanceof Date)) { | ||
@@ -21,0 +27,0 @@ throw new TypeError('Field error: value is not an instance of Date'); |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305036
5267