Comparing version 0.10.4 to 0.10.5
@@ -7,6 +7,4 @@ /** | ||
var validator = require('validator'); | ||
var GeoJSON = require('gjtk'); | ||
var geojsonhint = require('geojsonhint'); | ||
/** | ||
@@ -50,3 +48,6 @@ * Type rules | ||
}, | ||
'geojson' : GeoJSON.isGeoJSON, | ||
'geojson' : function (value, opt) { | ||
var errors = geojsonhint.hint(value); | ||
return errors.length === 0 || !opt; | ||
}, | ||
'mediumtext' : _.isString, | ||
@@ -53,0 +54,0 @@ 'longtext' : _.isString, |
{ | ||
"name": "anchor", | ||
"version": "0.10.4", | ||
"version": "0.10.5", | ||
"description": "Recursive validation library with support for objects and lists", | ||
@@ -34,6 +34,11 @@ "homepage": "http://sailsjs.org", | ||
"dependencies": { | ||
"validator": "~3.41.2", | ||
"geojsonhint": "^1.1.0", | ||
"lodash": "~3.9.3", | ||
"gjtk": "~1.0.0b" | ||
"validator": "~3.41.2" | ||
}, | ||
"bundledDependencies": [ | ||
"geojsonhint", | ||
"lodash", | ||
"validator" | ||
], | ||
"devDependencies": { | ||
@@ -40,0 +45,0 @@ "async": "~0.2.10", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
3705886
854
54321
4
70
2
31
3
+ Addedgeojsonhint@^1.1.0
- Removedgjtk@~1.0.0b
- Removedgjtk@1.0.0-b(transitive)
- Removedlodash@3.9.3(transitive)
- Removedpoint-in-polygon@0.0.0(transitive)
- Removeduri-js@1.4.2(transitive)
- Removedvalidator@3.41.3(transitive)