@koopjs/featureserver
Advanced tools
Comparing version 8.1.8 to 8.1.9
{ | ||
"name": "@koopjs/featureserver", | ||
"version": "8.1.8", | ||
"version": "8.1.9", | ||
"description": "*An open source implementation of the GeoServices specification*", | ||
@@ -38,2 +38,3 @@ "main": "src/index.js", | ||
"lodash": "^4.17.21", | ||
"postgres-date": "^2.1.0", | ||
"wkt-parser": "^1.3.3" | ||
@@ -40,0 +41,0 @@ }, |
const _ = require('lodash'); | ||
const { | ||
isValidISODateString, | ||
isValidDate | ||
isValidDate, | ||
} = require('iso-datestring-validator'); | ||
const dateTimeParser = require('postgres-date'); | ||
@@ -27,3 +28,3 @@ const PROBLEMATIC_STRING_SYMBOLS = ['(', '[', '*', '+', '\\', '?']; | ||
return (value instanceof Date || (typeof value === 'string') && (isValidDate(value) || isValidISODateString(value))); | ||
return (value instanceof Date || (typeof value === 'string') && !!(dateTimeParser(value) || isValidDate(value) || isValidISODateString(value))); | ||
} | ||
@@ -30,0 +31,0 @@ |
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
99173
2481
12
+ Addedpostgres-date@^2.1.0
+ Addedpostgres-date@2.1.0(transitive)