simple-graphql
Advanced tools
Comparing version 1.0.21 to 1.0.22
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"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') { | ||
var nValue = (0, _moment2.default)(value, 'YYYY-MM-DD HH:mm:ss.SSS ZZ'); | ||
if (nValue.isValid()) { | ||
value = nValue; | ||
} | ||
} | ||
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.21", | ||
"version": "1.0.22", | ||
"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
305027
5267