simple-graphql
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -40,3 +40,3 @@ "main": "lib/index.js", | ||
"moment": "^2.18.1", | ||
"sequelize": "^4.6.0" | ||
"sequelize": "^4.8.2" | ||
}, | ||
@@ -58,3 +58,3 @@ "devDependencies": { | ||
"pre-commit": "^1.2.2", | ||
"sqlite3": "^3.1.9", | ||
"sqlite3": "^3.1.10", | ||
"standard": "^10.0.3" | ||
@@ -61,0 +61,0 @@ }, |
@@ -19,8 +19,2 @@ '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)) { | ||
@@ -27,0 +21,0 @@ throw new TypeError('Field error: value is not an instance of Date'); |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -40,3 +40,3 @@ "main": "lib/index.js", | ||
"moment": "^2.18.1", | ||
"sequelize": "^4.6.0" | ||
"sequelize": "^4.8.2" | ||
}, | ||
@@ -58,3 +58,3 @@ "devDependencies": { | ||
"pre-commit": "^1.2.2", | ||
"sqlite3": "^3.1.9", | ||
"sqlite3": "^3.1.10", | ||
"standard": "^10.0.3" | ||
@@ -61,0 +61,0 @@ }, |
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
304674
5261
Updatedsequelize@^4.8.2